<!--
var isMAC,isWIN,isIE5,isIE4,isIE45,isNAV,isIE,isIE50,isFF;//FF15 added isFF

if (navigator.appVersion.indexOf("Microsoft")!=-1)	{
  isIE=true;
    if(navigator.appVersion)
 	if (navigator.appVersion.indexOf("MSIE 5")!=-1) isIE5=true;
 	if (navigator.appVersion.indexOf("MSIE 4")!=-1) isIE4=true;
	
}
else {
// 	if (navigator.appName.indexOf("Netscape")!=-1) isNAV=true;
	if (navigator.userAgent.indexOf("Firefox")!=-1) isFF=true;//FF15 added line
	if (navigator.appVersion.indexOf("Mac")!=-1) isMAC=true;
	if (navigator.appVersion.indexOf("Win")!=-1) isWIN=true;
	if (navigator.appVersion.indexOf("MSIE 4.5")!=-1) isIE45=true;
	if (navigator.appVersion.indexOf("MSIE 5.0")!=-1) isIE50=true;

}
if (isNAV) {
	document.write('<link rel="stylesheet" href="style/nndiv.css">');
} else if (isFF) {
	document.write('<link rel="stylesheet" href="style/ff.css">');// FF15 added check for firefox
} else if (isMAC&&isIE45) {
	document.write('<link rel="stylesheet" href="style/ie45.css">');
} else if (isMAC&&isIE50) {
	document.write('<link rel="stylesheet" href="style/macIE50.css">');
} else {
	document.write('<link rel="stylesheet" href="style/all.css">');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function submitOrder(){
	// here preprocess tyres and articleNumbers - remove unnecessary symbols, etc
	if(document.forms["orderform"].articleCnt.value == 1){
		// open target URL
		var s = document.forms["orderform"].articleNumber.value.replace("^", "");
		var url = '/wheelset.php?c='+s+'&pneu='+document.forms["orderform"].tyres.value;
		window.open(url, "_top");
	}
	if(document.forms["orderform"].articleCnt.value > 1){
		//open intermidiate page which will display tyres info
		document.forms["orderform"].submit();
	}

} 


function MenBoxOff(){
var name;
	if (isNAV){
     document.layers.lheader.visibility="hidden"
	} else {
      document.getElementById('snav1').style.visibility="hidden"; // FF15
      document.getElementById('snav2').style.visibility="hidden"; // FF15
      document.getElementById('snav3').style.visibility="hidden"; // FF15
      document.getElementById('snav4').style.visibility="hidden"; // FF15
      document.getElementById('snav5').style.visibility="hidden"; // FF15
      document.getElementById('snav6').style.visibility="hidden"; // FF15
	}
}

function MenBoxOn(name){
var name;
	if (isNAV){
     document.layers.lheader.visibility="hidden"
	} else {
      document.getElementById('snav1').style.visibility="hidden"; // FF15
      document.getElementById('snav2').style.visibility="hidden"; // FF15
      document.getElementById('snav3').style.visibility="hidden"; // FF15
      document.getElementById('snav4').style.visibility="hidden"; // FF15
      document.getElementById('snav5').style.visibility="hidden"; // FF15
      document.getElementById('snav6').style.visibility="hidden"; // FF15
     document.getElementById([name]).style.visibility="visible"; // FF15
	}
}


//-->
