function clearit(){
		document.myform.imvalue.value = "";
	}

	// Some variables
		var base= "images/menuimages/"
	var nrm = new Array();
	var omo = new Array();
	var stuff = new Array('download','buynow','download2','buynow2','playnow','buttons_getit');
		
	// Pre-load part.
	function preload(sitepath){
		if(sitepath){
			var mypath = "http://gfsitelink.com/";
		}else{
			var mypath = "";
		}
		if (document.images){
			for (i=0;i<stuff.length;i++){
				nrm[i] = new Image;
				nrm[i].src = mypath + base + stuff[i] + "1.gif";
				omo[i] = new Image;
				omo[i].src = mypath + base + stuff[i] + "2.gif";
				
			}	
		}
	}
	
	
	// The functions: first mouseover, then mouseout
	function over(no){

		if (document.images){
			document.images[stuff[no]].src = omo[no].src;
			
			
		}
	}
	
	function out(no){
		if (document.images){
			document.images[stuff[no]].src = nrm[no].src;
		}
	}
	function menuhover(state,menu,pageid){
		if(state==1){
			if(menu=='gamemenu'){
				if (!pageid == 2 && !pageid == 9)
				  { document.getElementById(menu).style.display='block';
					document.getElementById('myaccountmenu').style.display='none';
					
				  }
			}else if(menu=='myaccountmenu'){
				if (!pageid == 6 && !pageid == 24 && !pageid == 25)	
				{
					document.getElementById(menu).style.display='block';
					document.getElementById('gamemenu').style.display='none';
					
				}
			}
			
		}else{
			document.getElementById('gamemenu').style.display='none';
			document.getElementById('myaccountmenu').style.display='none';
			
		}
	}
