<!--
	var activemenu=null;
	var activesubmenu=null;
	var globalcounter=0;
	var globalInterval=null;
	var globalmenuID=null;
	var globalstate=null;
	var menuswitch=false;
	var globaldebug=false;
	var globalspeed=100;
	var globaltimes=20;
	
	function getAnchorWindowPosition(anchorname){var coordinates=getAnchorPosition(anchorname);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else{x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else if(document.all){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else if(document.layers){x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}coordinates.x=x;coordinates.y=y;return coordinates;}
	function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent) != null){ol += el.offsetLeft;}return ol;}
	function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;}
	function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent) != null){ot += el.offsetTop;}return ot;}
	function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;}
	function getAnchorPosition(anchorname){var useWindow=false;var coordinates=new Object();var x=0,y=0;var use_gebi=false, use_css=false, use_layers=false;if(document.getElementById){use_gebi=true;}else if(document.all){use_css=true;}else if(document.layers){use_layers=true;}if(use_gebi && document.all){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_gebi){var o=document.getElementById(anchorname);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else if(use_css){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_layers){var found=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==anchorname){found=1;break;}}if(found==0){coordinates.x=0;coordinates.y=0;return coordinates;}x=document.anchors[i].x;y=document.anchors[i].y;}else{coordinates.x=0;coordinates.y=0;return coordinates;}coordinates.x=x;coordinates.y=y;return coordinates;}
	
	function loadmenu(menuid)
	{
		toggleMenus();
		//initanimate();
		menu_arr = menuid.split("_");
		menu_size = menu_arr.length;
		//alert(menu_arr[0]);
			
		//activate(menu_arr[0]);
		if (activemenu==menu_arr[0])
		{
			
			dealSubmenu(menu_arr[0],true);
			globalmenuID = menu_arr[0];
			globalstate=true;
			mdisplay=(globalstate)?"block":"none";
			for (i=1;i<=13;i++)
			{
				if (eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"')"))
			{
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').style.display='"+ mdisplay +"'");
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').style.visibility='visible'");
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').firstChild.className='submenu'");
				
				if(eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"_submenu')"))
				{
					eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"_submenu').style.display='none'");
				}
			}
			else
			{
				initanimate();
				
			}
			}
		}
		else
		{
			if (activemenu!=null)
			{
				
				dealSubmenu(activemenu,true);
				document.getElementById(activemenu).style.left="0px";
				submenu_ob_string="document.getElementById('"+activemenu+"_submenu')";
				dealSubmenu3(activemenu,false);
				if (eval(submenu_ob_string))
				{
					eval("document.getElementById('"+activemenu+"_submenu').className='hid'");
				}
			}
			
			globalmenuID= menu_arr[0];
			globalstate=true;
			mdisplay=(globalstate)?"block":"none";
			for (i=1;i<=13;i++)
			{
				if (eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"')"))
			{
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').style.display='"+ mdisplay +"'");
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').style.visibility='visible'");
				eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"').firstChild.className='submenu'");
				
				if(eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"_submenu')"))
				{
					eval("document.getElementById('"+ menu_arr[0] +"_"+ i +"_submenu').style.display='none'");
				}
			}
			else
			{
				initanimate();
				
			}
			}
			
				parentClassName=eval("document.getElementById('"+ menu_arr[0] +"').firstChild.className");
				parentClassNameArr=parentClassName.split("_");
				eval("document.getElementById('"+ menu_arr[0] +"').firstChild.className='"+ parentClassNameArr[0] +"'")
			
			document.getElementById(menu_arr[0]).style.left="125px";
			submenu_ob_string="document.getElementById('"+menu_arr[0]+"_submenu')";
			if (eval(submenu_ob_string))
			{
				eval("document.getElementById('"+menu_arr[0]+"_submenu').className='vis'");
			}
			activemenu=menu_arr[0];
			
			for (j=3;j<=13;j++)
			{
				menuString="menu"+j;
				if (menuString!=activemenu)
				{
					//malert(menuString);
					if (eval("document.getElementById('"+ menuString +"')"))
					{
						parentClassName=eval("document.getElementById('"+ menuString +"').firstChild.className");
						if (parentClassName.indexOf("_off")==-1)
						{
							parentClassNamenew=parentClassName+"_off";
							eval("document.getElementById('"+ menuString +"').firstChild.className='"+ parentClassNamenew +"'");
						}
					}
				}
			}
		}
			
			
			
			
		/////////////step2////////////////
		submenuID=menu_arr[0]+"_"+menu_arr[1];
		SubmenuArr=submenuID.split("_");
		for (i=1;i<=13;i++)
		{
			if (i!=SubmenuArr[1])
			{
				if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"')"))
				{
					
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').style.display='none'");
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').className='submenu'");
					
				}
				else
				{
					break;
				}
				
			}
			else
			{
				parent_className=eval(submenuID +".parentNode.parentNode.firstChild.className");
				active_className=parent_className+"_active";
				eval(submenuID +".firstChild.className='"+active_className+"'");
				initanimate();
				activesubmenu=submenuID;
				globalmenuID= submenuID;
				globalstate=true;
				//globalInterval = setInterval ( "dealSubmenu4()", globalspeed );
				//dealSubmenu4()
				//menuID = globalmenuID;
				state = globalstate;
				mdisplay=(state)?"block":"none";
				SubmenuArr=submenuID.split("_");
				
				for (j=3;j<=13;j++)
				{
						if (eval("document.getElementById('"+ submenuID +"_"+ i +"')"))
						{
							eval("document.getElementById('"+ submenuID +"_"+ i +"').style.display='"+ mdisplay +"'");
							eval("document.getElementById('"+ submenuID +"_"+ i +"').style.visibility='visible'");
							eval("document.getElementById('"+ submenuID +"_"+ i +"').firstChild.className='submenu'");
							
							if(eval("document.getElementById('"+ submenuID +"_"+ i +"_submenu')"))
							{
								eval("document.getElementById('"+ submenuID +"_"+ i +"_submenu').style.display='none'");
							}
						}
						else
						{
							initanimate();
							
						}
				}
				///end dealSubmenu4
				
			}
		}
		
		
		
		/////////////end step 2///////////////
		
		//////// step3 ///////////
		
		SubmenuArr=menuid.split("_");
		for (i=1;i<=13;i++)
		{
			if (i!=SubmenuArr[2])
			{
				if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"')"))
				{
					
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"').style.display='none'");
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"').className='submenu'");
					
				}
				else
				{
					break;
				}
				
			}
			
			else
			{
				
				parent_className=eval(menuid +".parentNode.parentNode.firstChild.className");
				active_className=parent_className+"_active";
				
				eval(menuid +".firstChild.className='"+active_className+"'");
				eval(menuid +".firstChild.className="+menuid +".parentNode.parentNode.firstChild.className");
				//alert(eval(submenuID +".parentNode.parentNode.firstChild.className"));
				parent_newclassName=parent_className.split("_");
				//alert(parent_newclassName[0]);
				eval(menuid +".parentNode.parentNode.firstChild.className='"+ parent_newclassName[0] +"'");
			}
			
		}
		if (eval("document.getElementById('"+ menuid +"_submenu')"))//if 3rd level exists
		{
			//alert("3rd level");
			eval("document.getElementById('"+ menuid +"_submenu').style.display='block'");
			
			var oElement = eval("document.getElementById('"+ menuid +"_submenu')"); 
			var oDivs = oElement.getElementsByTagName("div");
			for (i=0; i<=oDivs.length-1; i++)
			{
				//alert(oDivs[i].id);
				oDivs[i].style.display="block";
				oDivs[i].firstChild.className="collection_off";
				oDivs[i].parentNode.parentNode.firstChild.className="collection_active";
				
			}
		}
		
		/////// end step3 ///////
		if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_submenu')"))
		{
			//alert(eval("document.getElementById('"+ menuid +"').className"));
			eval("document.getElementById('"+ menuid +"').style.display='block'");
			eval("document.getElementById('"+ menuid +"').className='submenu visible'");
			eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_submenu').className='vis'");
			eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_submenu').style.display='block'");
			eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_submenu').style.visibility='visible'");
			//alert("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_submenu').className='vis'")
			
			//alert(eval("document.getElementById('"+ menuid +"').className"));
		}
		
		
	}
	
	
	function frameit(anchorname)
	{
		
		document.getElementById("frame").style.top=getAnchorPosition(anchorname).y;
		document.getElementById("frame").style.left=getAnchorPosition(anchorname).x;
		//malert(document.getElementById("frame").style.top+","+getAnchorPosition(anchorname).y);
	}
	function deframeit()
	{
		document.getElementById("frame").style.top="-1000px";
		document.getElementById("frame").style.left="-1000px";
	}
	function malert(msg)
	{
		if (globaldebug)
		{
			document.getElementById("watcher").value=msg+"\n"+document.getElementById("watcher").value;
		}
	}
	
	function dealSubmenu(menuID,state)
	{
		mdisplay=(state)?"block":"none";
		SubmenuArr=menuID.split("_");
		for (i=1;i<=13;i++)
		{
				if (eval("document.getElementById('"+ activesubmenu +"_"+ i+"')"))
				{
					eval("document.getElementById('"+ activesubmenu +"_"+ i+"').style.visibility='hidden'");
				}
				else
				{
					break;
				}
		}
	
	}
	
	
	function dealSubmenu2()
	{
		
		menuID = globalmenuID;
		state = globalstate;
		mdisplay=(state)?"block":"none";
		SubmenuArr=menuID.split("_");
			i=globalcounter+1;
			globalcounter=i;
			
			if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"')"))
			{
				eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').style.display='"+ mdisplay +"'");
				eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').style.visibility='visible'");
				eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').firstChild.className='submenu'");
				
				if(eval("document.getElementById('"+ menuID +"_"+ i +"_submenu')"))
				{
					eval("document.getElementById('"+ menuID +"_"+ i +"_submenu').style.display='none'");
				}
			}
			else
			{
				initanimate();
				
			}
	
	}
	
	function dealSubmenu4()
	{

		menuID = globalmenuID;
		state = globalstate;
		mdisplay=(state)?"block":"none";
		SubmenuArr=menuID.split("_");
			i=globalcounter+1;
			globalcounter=i;
			
			if (eval("document.getElementById('"+ menuID +"_"+ i +"')"))
			{
				eval("document.getElementById('"+ menuID +"_"+ i +"').style.display='"+ mdisplay +"'");
				eval("document.getElementById('"+ menuID +"_"+ i +"').style.visibility='visible'");
				eval("document.getElementById('"+ menuID +"_"+ i +"').firstChild.className='submenu'");
				
				if(eval("document.getElementById('"+ menuID +"_"+ i +"_submenu')"))
				{
					eval("document.getElementById('"+ menuID +"_"+ i +"_submenu').style.display='none'");
				}
			}
			else
			{
				initanimate();
				
			}
	
	}	
	
	
	function dealSubmenu3(menuID, state)
	{
		mdisplay=(state)?"block":"none";
		SubmenuArr=menuID.split("_");
		for (i=1;i<=13;i++)
		{
			if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"')"))
			{
				eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').style.visibility='hidden'");
			}
			else
			{
				break;
			}
		}
	
	}
	
	
	function initanimate()
	{
		clearInterval(globalInterval);
		globalcounter=0;
		globalInterval=null;
		globalmenuID=null;
		globalstate=null;
		
	}
	
    function activate(menuID)
	{
		initanimate();
		
		if (activemenu==menuID)
		{
			
			dealSubmenu(menuID,true);
			globalmenuID= menuID;
			globalstate=true;
			globalInterval = setInterval ( "dealSubmenu2()", globalspeed );
		}
		else
		{
			if (activemenu!=null)
			{
				
				dealSubmenu(activemenu,true);
				document.getElementById(activemenu).style.left="0px";
				submenu_ob_string="document.getElementById('"+activemenu+"_submenu')";
				dealSubmenu3(activemenu,false);
				if (eval(submenu_ob_string))
				{
					eval("document.getElementById('"+activemenu+"_submenu').className='hid'");
				}
			}
			
			globalmenuID= menuID;
			globalstate=true;
			globalInterval = setInterval ( "dealSubmenu2()", globalspeed );
			
				parentClassName=eval("document.getElementById('"+ menuID +"').firstChild.className");
				parentClassNameArr=parentClassName.split("_");
				eval("document.getElementById('"+ menuID +"').firstChild.className='"+ parentClassNameArr[0] +"'")
			
			document.getElementById(menuID).style.left="125px";
			submenu_ob_string="document.getElementById('"+menuID+"_submenu')";
			if (eval(submenu_ob_string))
			{
				eval("document.getElementById('"+menuID+"_submenu').className='vis'");
			}
			activemenu=menuID;
			
			for (j=3;j<=13;j++)
			{
				menuString="menu"+j;
				if (menuString!=activemenu)
				{
					//malert(menuString);
					if (eval("document.getElementById('"+ menuString +"')"))
					{
						parentClassName=eval("document.getElementById('"+ menuString +"').firstChild.className");
						if (parentClassName.indexOf("_off")==-1)
						{
							parentClassNamenew=parentClassName+"_off";
							eval("document.getElementById('"+ menuString +"').firstChild.className='"+ parentClassNamenew +"'");
						}
					}
				}
			}
		}
		
	}
	function activate_sub(submenuID)
	{
		
		SubmenuArr=submenuID.split("_");
		for (i=1;i<=13;i++)
		{
			if (i!=SubmenuArr[1])
			{
				if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"')"))
				{
					
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').style.display='none'");
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ i +"').className='submenu'");
					
				}
				else
				{
					break;
				}
				
			}
			else
			{
				parent_className=eval(submenuID +".parentNode.parentNode.firstChild.className");
				active_className=parent_className+"_active";
				eval(submenuID +".firstChild.className='"+active_className+"'");
				initanimate();
				activesubmenu=submenuID;
				globalmenuID= submenuID;
				globalstate=true;
				globalInterval = setInterval ( "dealSubmenu4()", globalspeed );
			}
		}
		if (eval("document.getElementById('"+ submenuID +"_submenu')"))
		{
			eval("document.getElementById('"+ submenuID +"_submenu').style.display='block'");
			
		}
		
	}
	function activate_sub_sub(submenuID)
	{
		SubmenuArr=submenuID.split("_");
		for (i=1;i<=13;i++)
		{
			if (i!=SubmenuArr[2])
			{
				if (eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"')"))
				{
					
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"').style.display='none'");
					eval("document.getElementById('"+ SubmenuArr[0] +"_"+ SubmenuArr[1] +"_"+ i +"').className='submenu'");
					
				}
				else
				{
					break;
				}
				
			}
			
			else
			{
				
				parent_className=eval(submenuID +".parentNode.parentNode.firstChild.className");
				active_className=parent_className+"_active";
				
				eval(submenuID +".firstChild.className='"+active_className+"'");
				eval(submenuID +".firstChild.className="+submenuID +".parentNode.parentNode.firstChild.className");
				//alert(eval(submenuID +".parentNode.parentNode.firstChild.className"));
				parent_newclassName=parent_className.split("_");
				//alert(parent_newclassName[0]);
				eval(submenuID +".parentNode.parentNode.firstChild.className='"+ parent_newclassName[0] +"'");
			}
			
		}
		if (eval("document.getElementById('"+ submenuID +"_submenu')"))//if 3rd level exists
		{
			eval("document.getElementById('"+ submenuID +"_submenu').style.display='block'");
			
			var oElement = eval("document.getElementById('"+ submenuID +"_submenu')"); 
			var oDivs = oElement.getElementsByTagName("div");
			for (i=0; i<=oDivs.length-1; i++)
			{
				//alert(oDivs[i].id);
				oDivs[i].style.display="block";
				oDivs[i].firstChild.className="collection_off";
				oDivs[i].parentNode.parentNode.firstChild.className="collection_active";
				
			}
		}
		//malert("document.getElementById('"+ submenuID +"_submenu')");
		
	}
	
	function deallevelfour(submenuID,active_catID)
	{
		//alert(submenuID);
		SubmenuArr=submenuID.split("_");
		if (eval("document.getElementById('"+ submenuID +"_submenu')"))
		{
			var oElement = eval("document.getElementById('"+ submenuID +"_submenu')");
			
		
			var oDivs = oElement.getElementsByTagName("div");
			for (i=0; i<=oDivs.length-1; i++)
			{
				//alert(oDivs[i].id+" - "+ active_catID);
				
				if (oDivs[i].id==active_catID) 
				{
					oDivs[i].style.display="block";
					//alert(oDivs[i].style.className);
					//alert(oDivs[i].className);
					oDivs[i].firstChild.className="collection_active";
					oDivs[i].parentNode.parentNode.firstChild.className="collection";
					//alert(oDivs[i].className);
				}
				else
				{
					oDivs[i].style.display="none";
				}
				
			}
		}
	}
	
	function applybackground()
	{
		if (document.getElementById("dombody"))
		{
			sw=screen.width;
			if (sw>=1400)
			{
				document.getElementById("dombody").className="level1";
			}
			if (sw>=1240 && sw<1400)
			{
				document.getElementById("dombody").className="level2";
			}
			if (sw>=1150 && sw<1240)
			{
				document.getElementById("dombody").className="level3";
			}
			if (sw<1150)
			{
				document.getElementById("dombody").className="level4";
			}
		}
	}
	function toggleMenus()
	{
		for (i=3;i<=13;i++)
		{
			disp=(menuswitch)?"block":"none";
			if (eval("document.getElementById('menu"+ i +"')"))
			{
				eval("document.getElementById('menu"+ i +"').style.display='"+ disp +"'");
			}
			
		}
		document.getElementById("menu2").firstChild.style.backgroundImage=(menuswitch)?"url('_gfx/menu_arrow.gif')":"url('_gfx/menu_arrow2.gif')";
		menuswitch=!menuswitch;
		if (menuswitch)
		{
			blinkoff();
		}
		else
		{
			blinkpause();
		}
	}
	var blinkInterval_on;
	var blinkInterval_off;
	function blinkon()
	{
		clearTimeout(blinkInterval_off);
		document.getElementById("menu2").style.display="block";
		blinkInterval_on = setTimeout( "blinkoff()", 2000 );
	}
	function blinkoff()
	{
		clearTimeout(blinkInterval_on);
		document.getElementById("menu2").style.display="none";
		blinkInterval_off = setTimeout( "blinkon()", 500 );
	}
	function blinkpause()
	{
		document.getElementById("menu2").style.display="block";
		clearTimeout(blinkInterval_on);
		clearTimeout(blinkInterval_off);
	}
	
	function debug()
	{
		if (document.getElementById("debug"))
		
		{
			if (globaldebug)
			{
				document.getElementById("debug").style.display="block";
			}
			else
			{
				document.getElementById("debug").style.display="none";
			}
		}
	}
	function initpage()
	{
		
		//applybackground(); 
		toggleMenus();
		document.getElementById("menubox").className="vis";
		checksound();
		
		
		
		//debug();
	}
	
	
	
	
	
	function togglesound()
	{
		
		//alert();
		if (parent.frames[0])
		{
			if (Get_Cookie("sound")=="off" || Get_Cookie("sound")==null) {
				parent.frames[1].location.href="sound.php";
				//var soundwindow=window.open('sound.php','sound','width=153,height=140, toolbars=no,scrollbars=yes,resizable=no')
				document.getElementById("soundimg").src="_gfx/sound_1.gif";
				document.getElementById("soundref").innerHTML="sound on";
				
				
				Set_Cookie('sound', 'on',  '', '/', '', '' );
			}
			else
			{
				Set_Cookie('sound', 'off',  '', '/', '', '' );
				document.getElementById("soundimg").src="_gfx/sound_0.gif";
				document.getElementById("soundref").innerHTML="sound off";
				parent.frames[1].location.href="blank.html";
			}
		}
		else
		{
			document.getElementById("soundimg").src="_gfx/trans.gif";
				
			document.getElementById("soundref").innerHTML="";
		}
		//alert(Get_Cookie("sound"));
		
	}
	
	function checksound(){
		
		/*
//alert(parent.frames[0]);
		if (parent.frames[0])
		{
			if (Get_Cookie("sound")=="off" || Get_Cookie("sound")==null) {
				
				document.getElementById("soundimg").src="_gfx/trans.gif";
				document.getElementById("soundref").innerHTML="sound";
				parent.frames[1].location.href="blank.html";
				Set_Cookie('sound', 'off',  '', '/', '', '' );
			}
			else
			{
				
				document.getElementById("soundimg").src="_gfx/sound_on.gif";
				
				document.getElementById("soundref").innerHTML="<span style=''>sound</span>";
				parent.frames[1].location.href="sound.php";
				Set_Cookie('sound', 'on',  '', '/', '', '' );
			}
		}
		else
		{
			document.getElementById("soundimg").src="_gfx/trans.gif";
				
			document.getElementById("soundref").innerHTML="<span style=''></span>";
		}
		*/
		
	}
	function checksoundhome(){
		/*
		
		if (parent.frames[0])
		{
			
			if (Get_Cookie("sound")==null) {
				
				//var soundwin = window.open('sound.php','sound','width=153,height=140, toolbars=no,scrollbars=yes,resizable=no');
				//parent.soundtrack.src="sound.php";
				parent.frames[1].location.href="sound.php";
				document.getElementById("soundimg").src="_gfx/sound_on.gif";
				document.getElementById("soundref").innerHTML="sound";
				Set_Cookie('sound', 'on',  '', '/', '', '' );
			}
		}
		else
		{
			document.getElementById("soundimg").src="_gfx/trans.gif";
				
			document.getElementById("soundref").innerHTML="<span style=''></span>";
			Set_Cookie('sound', 'off',  '', '/', '', '' );
		}
		*/
		
	}
function Set_Cookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) +( ( secure ) ? ";secure" : "" );
}

// this function gets the cookie, if it exists
function Get_Cookie( name ) {
	
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}
	
	
// this deletes the cookie when called
function Delete_Cookie( name, path, domain ) {
if ( Get_Cookie( name ) ) document.cookie = name + "=" +
( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

    //-->