	function over_tr(the_row,state)
	{
		if (state) the_row.style.background = "#EEEEEE";
		else the_row.style.background = "#FFFFFF";
	}

	function popup(filename,x,y,w,h)
	{
		win = window.open(filename,"popup","width="+w+",height="+h+",left="+x+",top="+y);
		win.focus();
	}


// -- main menu ------------------------------------------------
	
	sub_img_sel = new Array(false,false,false,false);
	sub_div_sel = new Array(false,false,false,false);
	
	sub_pos_x1 = new Array(10,140,271,402);
	sub_pos_x2 = new Array(10,142,273,404);
	sub_pos_y = 56;
	
	over_img = false;
	over_div = false;
	
	function overImg(id,state)
	{
		sub_img_sel[id-1] = state;
		update_menus();
	}
	
	function overDiv(id,state)
	{ 
		sub_div_sel[id-1] = state;
		update_menus();		
	}
	
	function update_menus()
	{
		for (var i=0; i<sub_img_sel.length; i++)
		{
			// browser depending stuff:
			if (document.getElementById) // DOM3 = IE5, NS6 
			{ 
				window.status = "new generation browser detected."
				var sel_div1 = document.getElementById('sub'+(i+1));					
				var sel_div2 = document.getElementById('item'+(i+1));					
			} 
			else // old NS
			{ 
				window.status = "old fashioned browser detected."
				eval("var sel_div1 = document.all.sub"+(i+1));
				eval("var sel_div2 = document.all.item"+(i+1));
			} 
			
			if ((sub_img_sel[i])||(sub_div_sel[i])||((selected_id-1)==i))
			{
				sel_div1.style.visibility = "visible"; 
				sel_div1.style.left = sub_pos_x1[i];
				sel_div1.style.top = sub_pos_y;
				
				sel_div2.style.visibility = "visible"; 
				sel_div2.style.left = sub_pos_x2[i];
				sel_div2.style.top = sub_pos_y+185;
			}
			else
			{
				if ((selected_id-1)!=i)
				{
					sel_div1.style.visibility = "hidden"; 
					sel_div2.style.visibility = "hidden"; 
				}
			}
		}
	}
	

// -- submenu 2 ------------------------------------------------

	function swapImg(img,over)
	{
		if (over)	var new_file = img.src.substr(0,img.src.length-5)+"2.png";
		else new_file = img.src.substr(0,img.src.length-5)+"1.png";
		img.src = new_file;
	}
	

// -- scroll text ----------------------------------------------
	scrollTextCounter = 0;
	scrollTextContent = "nettys Internet Fitness-Corner";

	function scrollText()
	{
		scrollTextCounter++;
		if (scrollTextCounter>=scrollTextContent.length) scrollTextCounter = 0;
		window.status = scrollTextContent.substr(scrollTextCounter,scrollTextContent.length-1)+" | "+scrollTextContent.substr(0,scrollTextCounter-1);
	}	

	//window.setInterval("scrollText()",150);