// JavaScript Document

	  if (document.images)
	    {
		  menu_reseller = new Image()
		  menu_reseller.src = "images/button-reseller.gif";
		    
		  menu_reseller_hover= new Image()
		  menu_reseller_hover.src = "images/button-reseller-h.gif";
		  
		  menu_freehosting = new Image()
		  menu_freehosting.src = "images/button-freehosting.gif";  
		  
		  menu_freehosting_hover= new Image()
		  menu_freehosting_hover.src = "images/button-freehosting-h.gif";
		 
		  menu_other = new Image()
		  menu_other.src = "images/button-other.gif";
		  
		  menu_other_hover= new Image()
		  menu_other_hover.src = "images/button-other-h.gif";
		  
	
		  
   
		}

      ck=new Array() 
		
	function clickchpic(picid,picname,n)  
		{  
		for(var i=0;i<=3;i++) 
			{
			ck[i]=i	
		  	if(ck[i]==n)  { document[picid].src = eval(picname + ".src") } 
		    	else 	if(ck[i]==0) {document.pic2.src=menu_reseller.src; ck[i]=null; }
		    	else	if(ck[i]==1) {document.pic1.src=menu_freehosting.src; ck[i]=null;}
		    	else	if(ck[i]==2) {document.pic3.src=menu_other.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;
}


//Switch Content
function switch1(div)
{
if (document.getElementById('one'))
{
var option=['one','two','three','four','five'];
for(var i=0; i<option.length; i++)
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none"; }
}
}
window.onload=function(){switch1('one');}

