// JavaScript Document

	  if (document.images)
	    {
		  menu_home = new Image()
		  menu_home.src = "images/Templates/Main/menu_home.gif";
		    
		  menu_home_over= new Image()
		  menu_home_over.src = "images/Templates/Main/menu_home_over.gif";
		  
		  menu_emu = new Image()
		  menu_emu.src = "images/Templates/Main/menu_emu.gif";  
		  
		  menu_emu_over= new Image()
		  menu_emu_over.src = "images/Templates/Main/menu_emu_over.gif";
		 
		  menu_walkthough = new Image()
		  menu_walkthough.src = "images/Templates/Main/menu_walkthough.gif";
		  
		  menu_walkthough_over= new Image()
		  menu_walkthough_over.src = "images/Templates/Main/menu_walkthough_over.gif";
		  
		  menu_cartoon = new Image()
		  menu_cartoon.src = "images/Templates/Main/menu_cartoon.gif";
		  
		  menu_cartoon_over= new Image()
		  menu_cartoon_over.src = "images/Templates/Main/menu_cartoon_over.gif";
		  
  		  menu_wallpaper = new Image()
		  menu_wallpaper.src = "images/Templates/Main/menu_wallpaper.gif";
		  
		  menu_wallpaper_over= new Image()
		  menu_wallpaper_over.src = "images/Templates/Main/menu_wallpaper_over.gif";
		  
		  menu_contactus = new Image()
		  menu_contactus.src = "images/Templates/Main/menu_contactus.gif";
		  
		  menu_contactus_over = new Image()
		  menu_contactus_over.src = "images/Templates/Main/menu_contactus_over.gif";
		  
		  contactus = new Image()
		  contactus.src = "images/Templates/ContactUs/Contactus.gif";
		    
		  contactus_over= new Image()
		  contactus_over.src = "images/Templates/ContactUs/Contactus_over.gif";
		  
		  aboutus= new Image()
		  aboutus.src = "images/Templates/ContactUs/Aboutus.gif";  
		  
		  aboutus_over= new Image()
		  aboutus_over.src = "images/Templates/ContactUs/Aboutus_over.gif";
		 
		  portfolio = new Image()
		  portfolio.src = "images/Templates/ContactUs/Portfolio.gif";
		  
		  portfolio_over= new Image()
		  portfolio_over.src = "images/Templates/ContactUs/Portfolio_over.gif";		  
		}

      ck=new Array() 
		
	function clickchpic(picid,picname,n)  
		{  
		for(var i=0;i<=6;i++) 
			{
			ck[i]=i	
		  	if(ck[i]==n)  { document[picid].src = eval(picname + ".src") } 
		    	else 	if(ck[i]==0) { document.pic2.src=menu_home.src; ck[i]=null; }
		    	else	if(ck[i]==1) { document.pic1.src=menu_emurom.src; ck[i]=null;}
		    	else	if(ck[i]==2) {document.pic3.src=menu_walkthough.src; ck[i]=null;}
				else	if(ck[i]==3) {document.pic4.src=menu_cartoon.src; ck[i]=null;}
				else	if(ck[i]==4) {document.pic5.src=menu_wallpaper.src; ck[i]=null;}
				else	if(ck[i]==5) {document.pic6.src=menu_contactus.src; ck[i]=null;}
			}
		}
		
	function chpic(picid,picname,n)
		{     
	    	if(ck[n]==null) { document[picid].src = eval(picname + ".src"); }
		}


      subck=new Array() 
		
	function clickchpicsub(picid,picname,n)  
		{  
		for(var i=0;i<=3;i++) 
			{
			subck[i]=i	
		  	if(subck[i]==n)  { document[picid].src = eval(picname + ".src") } 
		    	else 	if(ck[i]==0) { document.pic2.src=contactus.src; ck[i]=null; }
		    	else	if(ck[i]==1) { document.pic1.src=aboutus.src; ck[i]=null;}
		    	else	if(ck[i]==2) {document.pic3.src=portfolio.src; ck[i]=null;}
			}
		}
		
	function chpicsub(picid,picname,n)
		{     
	    	if(subck[n]==null) { document[picid].src = eval(picname + ".src"); }
		}

function popitup(url,width,height)
{
	newwindow = window.open(url, '_blank', 'width='+width+',height='+height+',scrollbars=1,resizable=0,status=0');
	if (window.focus) {newwindow.focus()}
	return false;
}
