<!--

var undefined;
var isNav, isIE;

if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true
		} 
	else {
		isIE = true
		}
}

var vwidth=screen.width;
var vheight=screen.height;
var bwidth, bheight;

if(!document.all){
		bwidth=innerWidth;
		bheight=innerHeight;
}

function resize_ie() {
	//MM_showHideLayers('topLayer','','hide');
	window.location.href = window.location.href;
}

function init(x) {

if(!document.all && document.getElementById)
	{
	if(x<=828) 
		{
		tmt_DivMove('topLayer','0','15');
		} 
	else 
		{
		tmt_DivMove('topLayer',eval((bwidth/2) - 375),'15');
		}
	}
else
	{
	if(x<=828) 
		{
		tmt_DivMove('topLayer','32','15');
		MM_showHideLayers('topLayer','','show');
		} 
	else 
		{
		tmt_DivMove('topLayer',eval((bwidth/2) - 375),'15');
		MM_showHideLayers('topLayer','','show');
		}
	}
/*	
var x = (document.layers) ? ".left" : ".style.left";
var y = (document.layers) ? ".top" : ".style.top";
var z = (document.layers) ? ".height" : ".style.height";
var fun = (document.getElementById) ? "tmt_findObj" : "MM_findObj";
var obj = eval(fun+"('topLayer')");
if(obj){
	var tlHeight = parseInt(eval(fun+"('topLayer')"+z));
	}
	alert(obj.style.height);
	
if(!document.all && document.getElementById)
	{
	if(x<=828) 
		{
		tmt_DivMove('layCopyright','0',parseInt(obj.style.height));
		} 
	else 
		{
		tmt_DivMove('layCopyright',parseInt(obj.style.left),parseInt(obj.style.height));
		}
	}
else
	{
	if(x<=828) 
		{
		tmt_DivMove('layCopyright',parseInt(obj.style.left),parseInt(obj.style.height));
	MM_showHideLayers('layCopyright','','show');
		} 
	else 
		{
		tmt_DivMove('layCopyright',parseInt(obj.style.left),parseInt(obj.style.height));
		MM_showHideLayers('layCopyright','','show');
		}
	}

//alert(parseInt(obj.style.height));
*/
}


function moveLayerOffScreen(layer){
	//MM_showHideLayers('topLayer','','hide');
	MM_showHideLayers('topLayer','','hide');
	//MM_showHideLayers('layCopyright','','hide');
	//tmt_DivMove(layer,'2000','-1');
}



function changeImages() {
	if (document.images) {// && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function tmt_findObj(n){
	var x,t; 
	if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}
	else{
	x=document.getElementById(n)}return x;
}


function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}


function PutScreenSize() {
	document.write('Screen Res: ' + vwidth + ' x ' + vheight + '\n\n'); 
	document.write('Document Res: ' + bwidth + ' x ' + bheight);
} 


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 MM_openBrWindow(theURL,winName) { //v2.0
	if(isNav){
	var xWidth = 344;
	var screenLeft = vwidth - 570;
	//var windowPos = 'width=550,height=282,screenX=0,screenY=0,left=500,top=0,scrollbars=0';
	
  	window.open(theURL,winName,'width=610,height=314,screenX=0,screenY=0,left=0,top=0,scrollbars=0');
	} else {
	window.open(theURL,winName,'width=610,height=314,screenX=0,screenY=0,left=0,top=0,scrollbars=0');
	}
}


function MM_openBrWindowSub(theURL,winName) { //v2.0
	if(isNav){
	var xWidth = 344;
	var screenLeft = vwidth - 570;
	//var windowPos = 'width=500,height=400,screenX=0,screenY=0,left=500,top=0,scrollbars=0';
	
  	window.open(theURL,winName,'width=500,height=400,screenX=0,screenY=0,left=0,top=0,scrollbars=1');
	} else {
	window.open(theURL,winName,'width=500,height=400,screenX=0,screenY=0,left=0,top=0,scrollbars=1');
	}
}


function MM_openBrWindowHelp(theURL,winName) { //v2.0
	if(isNav){
	window.open(theURL,winName,'width=300,height=350,screenX=0,screenY=0,left=0,top=0,scrollbars=0');
	} else {
	window.open(theURL,winName,'width=300,height=350,screenX=0,screenY=0,left=0,top=0,scrollbars=0');
	}
}


function tmt_DivMove(theDiv, l, t){
	var x = (document.layers) ? ".left" : ".style.left";
	var y = (document.layers) ? ".top" : ".style.top";
	var fun = (document.getElementById) ? "tmt_findObj" : "MM_findObj";
	var obj = eval(fun+"(theDiv)");
	if(obj){
	eval(fun+"('"+theDiv+"')"+y+"="+t);
	eval(fun+"('"+theDiv+"')"+x+"="+l);
	//alert(obj.style.left);
	}
}

function ns_table_fix() {
	var filename = "";
	if(!document.all) {
		filename = window.location.href;
		var x = filename.length - 4;
		filename = filename.substring(0,x);
		//location.replace = location.assign
		window.location.replace(filename + "ns.htm");
		}
}

function tmt_Scale(theDiv, w, h){
	var x = (document.layers) ? ".width" : ".style.width";
	var y = (document.layers) ? ".height" : ".style.height";
	var fun = (document.getElementById) ? "tmt_findObj" : "MM_findObj";
	var obj = eval(fun+"(theDiv)");if(obj){
	eval(fun+"('"+theDiv+"')"+y+"="+t);
	eval(fun+"('"+theDiv+"')"+x+"="+l);}
}

var timerID="";
var intervalID="";

function hidemenu() {
	if(intervalID==""){
		//Pause_Rollover();
		//MM_swapImgRestore();
		if(!document.all && !document.getElementById){
			intervalID = setInterval("MM_showHideLayers('lyrServices','','hide','lyrDesign','','hide','lyrTraining','','hide','lyrCombustion','','hide','lyrRefrigeration','','hide','lyrAtmospheric','','hide');MM_swapImgRestore();", 500);
		} else {
			intervalID = window.setInterval("MM_showHideLayers('lyrServices','','hide','lyrDesign','','hide','lyrTraining','','hide','lyrCombustion','','hide','lyrRefrigeration','','hide','lyrAtmospheric','','hide');MM_swapImgRestore();", 500);
		}
	} else {
		
		//MM_showHideLayers('Layer1','',x);
		//timerID = setTimeout("hidemenu()",5000);
	}
	
}

function Pause_Rollover(){
	if(intervalID!=""){
		if(!document.all && !document.getElementById){
			//clearTimeout(timerID);
			clearInterval(intervalID);
		} else {
			window.clearInterval(intervalID);
			intervalID="";
		}
	}
}


function openBrWindowImage(theURL,winName,imageTitle){
	//alert(imageTitle);
	xImage = new Image();
	xImage.src = theURL;
	var winTitle = "";
	
	if(imageTitle==""){ 
		winTitle = "Kentain Image"; 
	}else{
		winTitle = imageTitle;
	}
	
	testLoad(theURL,winTitle);
}

function testLoad(img,winTitle){
	//alert(winTitle)
	if((xImage.width!=0)&&(xImage.height!=0)){
		showWindow(img,winTitle);
	}else{
		
		temp="testLoad('"+img+"'\,'"+winTitle+"')";
		//alert(temp)
		tempInterval=setTimeout(temp,200);
	}
}

function showWindow(img,winTitle){

	xWidth = xImage.width;
	xHeight = xImage.height;
	
	var newWindow=window.open('','','width='+xWidth+',height='+xHeight+',screenX=0,screenY=0,left=0,top=0,scrollbars=0');
	
	newWindow.document.write('<html><head><title>'+winTitle+'</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><img src="'+img+'" width="'+xWidth+'" height="'+xHeight+'" border="0"></body></html>');
}


function changeBg(layername,col) { 
	//if (document.all){
   		document.all(layername).style.backgroundColor=col; 
		document.all(layername).style.cursor="hand";
	//} else if {
	//	(document.layers) document.layers[layername].bgColor='red';
	//}
} 

function gotolink(theLink){
	alert(theLink);
	window.location.href = theLink;
}

//Load ActiveX control externally
function loadMainFlash(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="748" height="209">');
	document.write('<param name=movie value="main_intro.swf"><param name=quality value=high><param name="wmode" value="transparent">');
	document.write('<embed src="main_intro.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="748" height="209" wmode="transparent"></embed></object>');
}


//-->