var browser_type=navigator.appName
if (browser_type=="Netscape"){
	doc = document;}
else if (browser_type=="Microsoft Internet Explorer"){
	doc = document.all;}
else{
	doc = document.all;}
	
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

function gotoPage(i){
	if (i==2){
		window.location.href = "about.asp";
	}
	if (i==3){
		window.location.href = "machines.asp?MachinesType=1";
	}
	if (i==4){
		window.location.href = "services.asp";
	}
	if (i==5){
		window.location.href = "dealers.asp";
	}
	if (i==6){
		window.location.href = "technical.asp";
	}
	if (i==7){
		window.location.href = "contactus.asp";
	}
	if (i==61){
		window.location.href = "technical.asp?Sub=1";
	}
	if (i==62){
		window.location.href = "technical.asp?Sub=2";
	}
	if (i==63){
		window.location.href = "technical.asp?Sub=3";
	}
	if (i==64){
		window.location.href = "technical.asp?Sub=4";
	}
	if (i==65){
		window.location.href = "technical.asp?Sub=5";
	}
	if (i==66){
		window.location.href = "technical.asp?Sub=6";
	}
	if (i==67){
		window.location.href = "technical.asp?Sub=7";
	}
}

function change2(i){
	if (i==1){
		doc.img2.src="images/about2.jpg"
		doc.p2.src="images/bright2_LL.jpg";
	}
	else{
		doc.img2.src="images/about1.jpg"
		doc.p2.src="images/dim2_LL.jpg";
	}	
}

function change3(i){
	if (i==1){
		
		doc.img3.src="images/machines2.jpg"
		doc.p3.src="images/bright3_LL.jpg";
		/*if (ie4){
			doc.menu1.style.visibility = "visible";
		}
		if (ns4) { 
			document.menu1.visibility = "show";
		}
		if (dom){ 
			document.getElementById("menu1").style.visibility = "visible";
		} */
	}
	else{
	
		doc.img3.src="images/machines1.jpg"
		doc.p3.src="images/dim3_LL.jpg";
		/*if (ie4){
			doc.menu1.style.visibility = "hidden";
		}
		if (ns4) { 
			document.menu1.visibility = "hide";
		}
		if (dom){ 
			document.getElementById("menu1").style.visibility = "hidden";
		} */
	}	
}
function change4(i){
	if (i==1){
		doc.img4.src="images/services2.jpg"
		doc.p4.src="images/bright4_LL.jpg";
	}
	else{
		doc.img4.src="images/services1.jpg"
		doc.p4.src="images/dim4_LL.jpg";
	}	
}

function change5(i){
	if (i==1){
		
		doc.img5.src="images/signin2.jpg"
		doc.p5.src="images/bright5_LL.jpg";
	}
	else{
		doc.img5.src="images/signin1.jpg"
		doc.p5.src="images/dim5_LL.jpg";
	}	
}

function change6(i){
	if (i==1){
		
		doc.img6.src="images/technical2.jpg"
		doc.p6.src="images/bright6_LL.jpg";
		/*if (ie4){
			doc.menu2.style.visibility = "visible";
		}
		if (ns4) { 
			document.menu2.visibility = "show";
		}
		if (dom){ 
			document.getElementById("menu2").style.visibility = "visible";
		}*/
	}
	else{
		doc.img6.src="images/technical1.jpg"
		doc.p6.src="images/dim6_LL.jpg";
		/*if (ie4){
			doc.menu2.style.visibility = "hidden";
		}
		if (ns4) { 
			document.menu2.visibility = "hide";
		}
		if (dom){ 
			document.getElementById("menu2").style.visibility = "hidden";
		}*/
	}	
}
function change63(i){
	if (i==1){
		if (ie4){
			doc.menu3.style.visibility = "visible";
		}
		if (ns4) { 
			document.menu3.visibility = "show";
		}
		if (dom){ 
			document.getElementById("menu3").style.visibility = "visible";
		}
	}
	else{
		if (ie4){
			doc.menu3.style.visibility = "hidden";
		}
		if (ns4) { 
			document.menu3.visibility = "hide";
		}
		if (dom){ 
			document.getElementById("menu3").style.visibility = "hidden";
		}
	}	
}

function change64(i){
	if (i==1){
		if (ie4){
			doc.menu4.style.visibility = "visible";
		}
		if (ns4) { 
			document.menu4.visibility = "show";
		}
		if (dom){ 
			document.getElementById("menu4").style.visibility = "visible";
		}
	}
	else{
		if (ie4){
			doc.menu4.style.visibility = "hidden";
		}
		if (ns4) { 
			document.menu4.visibility = "hide";
		}
		if (dom){ 
			document.getElementById("menu4").style.visibility = "hidden";
		}
	}	
}
function change7(i){
	if (i==1){
		
		doc.img7.src="images/contact2.jpg"
		doc.p7.src="images/bright7_LL.jpg";
	}
	else{
		doc.img7.src="images/contact1.jpg"
		doc.p7.src="images/dim7_LL.jpg";
	}	
}

function play()
  {
   document.sound.play();
  }
