function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}
 
 //Toggler
var brow=whichBrs();
brow=brow.toLowerCase();
if(brow=="firefox"){
		function tDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Bg.style.display=='block'){
		document.getElementById('pContentPowerTrain').style.display='none';
		document.getElementById('pContentInspection').style.display='none';
		document.getElementById('pContentReports').style.display='none';
		document.getElementById('pContentSelection').style.display='none';
		document.getElementById('pContentWarranty').style.display='none';
		document.getElementById(popupBg).style.display='none';
		document.getElementById(popupBg).style.height='1335px';
		}else{ 
		Bg.style.display='block';
		Diver.style.display='block';
		Diver.style.top='140px';
		var x = (window.innerWidth/2) - (790 / 2) + "px";
		Diver.style.left=x;
		}
		};
		
		function fDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Diver.style.display=='block'){
		Diver.style.display='none';
		Bg.style.height='1335px';
		}else{
		Diver.style.display='block';
		Bg.style.height='3000px';
		}
		};
}else if(brow=="safari"){
x=window.innerWidth;
x=x/2;
x=x-(790/2);
x=parseInt(x);
x=x+"px";
		function tDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Bg.style.display=='block'){
		document.getElementById('pContentPowerTrain').style.display='none';
		document.getElementById('pContentInspection').style.display='none';
		document.getElementById('pContentReports').style.display='none';
		document.getElementById('pContentSelection').style.display='none';
		document.getElementById('pContentWarranty').style.display='none';
		document.getElementById(popupBg).style.display='none';
		document.getElementById(popupBg).style.height='1335px';
		}else{ 
		Bg.style.display='block';
		Diver.style.display='block';
		Diver.style.top='140px';
		Diver.style.left=x;
		}
		};
		
		function fDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Diver.style.display=='block'){
		Diver.style.display='none';
		Bg.style.height='1335px';
		}else{
		Diver.style.display='block';
		Bg.style.height='3000px';
		}
		};
}else{
		function tDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Bg.style.display=='block'){
		document.getElementById('pContentPowerTrain').style.display='none';
		document.getElementById('pContentInspection').style.display='none';
		document.getElementById('pContentReports').style.display='none';
		document.getElementById('pContentSelection').style.display='none';
		document.getElementById('pContentWarranty').style.display='none';
		document.getElementById(popupBg).style.display='none';
		document.getElementById(popupBg).style.height='1335px';
		}else{ 
		Bg.style.display='block';
		Diver.style.display='block';
		Diver.style.top='140px';
		var IpopLeft = (document.body.offsetWidth - Diver.offsetWidth)/2;
		Diver.style.left=IpopLeft + document.body.scrollLeft;
		}
		};
		
		function fDisplay(divId,popupBg){
		var Bg=document.getElementById(popupBg);
		var Diver=document.getElementById(divId);
		if(Diver.style.display=='block'){
		Diver.style.display='none';
		Bg.style.height='1335px';
		}else{
		Diver.style.display='block';
		Bg.style.height='3000px';
		}
		};
};