/************************************************************/
/*															*/
/*	BGH  navigation-script									*/
/*															*/
/*	lombego systems 2008 => www.lombego.de					*/
/*															*/
/************************************************************/

var mem = 0;

var cursor = 0;

function now(id) 
{
	
	for (i=1;i<8;i++)
	{
		if(i==id)
		{
			document.getElementById(i).className='main_nav_link_1 now';
			document.getElementById('n_'+i).className='neck_show';
			if(document.getElementById('sn_'+i)){document.getElementById('sn_'+i).className='sub_nav_show';}
		}
		else
		{
			document.getElementById(i).className='main_nav_link_1';
			document.getElementById('n_'+i).className='neck_hide';
			if (document.getElementById('sn_'+i)){document.getElementById('sn_'+i).className='sub_nav_hide';}
		}
	}

}

function setcursor(current)
{
	cursor = current;	
}

function resetcursor()
{	
	cursor = mem;
}

function save(id)
{
	mem = id;	
}

function jumpback(id)
{	
	setTimeout('swap("'+ id +'")', 500);
}

function swap(id)
{
	document.getElementById(id).className='main_nav_link_1';
	document.getElementById('n_'+id).className='neck_hide';
	if (document.getElementById('sn_'+id)){document.getElementById('sn_'+id).className='sub_nav_hide';}

	if(document.getElementById(cursor)){document.getElementById(cursor).className='main_nav_link_1 now';}
	if(document.getElementById('n_'+cursor)){document.getElementById('n_'+cursor).className='neck_show';}
	if(document.getElementById('sn_'+cursor)){document.getElementById('sn_'+cursor).className='sub_nav_show';}
}
