
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() {
	window.location.href = window.location.href;
}

function init(x) {
if(!document.all && !document.getElementById)
	{
	if(x<=800) 
		{
		tmt_DivMove('TopMenu',eval((bwidth - 500)/2),'4');
		//tmt_DivMove('QuitButton',eval(bwidth - 80),'5');
		//tmt_DivMove('ScrollHeadlines','270','383');
		} 
	else 
		{
		tmt_DivMove('TopMenu',eval((bwidth - 500)/2),'4');
		//tmt_DivMove('QuitButton',eval(bwidth - 80),'5');
		//tmt_DivMove('ScrollHeadlines',eval((bwidth-500)-((bwidth-740)/2)),'383');
		}
	}
else
	{
	if(x<=800) 
		{
		tmt_DivMove('TopMenu',eval((bwidth - 500)/2),'4');
		//tmt_DivMove('QuitButton',eval(bwidth - 80),'5');
		//tmt_DivMove('ScrollHeadlines','270','383');
		} 
	else 
		{
		tmt_DivMove('TopMenu',eval((bwidth - 500)/2),'4');
		//tmt_DivMove('QuitButton',eval(bwidth - 80),'5');
		//tmt_DivMove('ScrollHeadlines',eval((bwidth-500)-((bwidth-740)/2)),'383');
		}
	//tmt_DivMove('SideM07b','143','376');
	}
	
}


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 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);}
}


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;
}

var timerID = null;
var intervalID = null;

function hidemenu() {
	//if(!document.all && !document.getElementById)
		intervalID = setInterval("MM_showHideLayers('menu_corp','','hide','menu_news','','hide','menu_investor','','hide','menu_hr','','hide','menu_press','','hide','menu_bus_units','','hide')", 2000);
	//MM_showHideLayers('Layer1','',x);
	//timerID = setTimeout("hidemenu()",5000);
	
}

function hideAllLayers() {
	MM_showHideLayers('menu_corp','','hide','menu_news','','hide','menu_investor','','hide','menu_hr','','hide','menu_press','','hide','menu_bus_units','','hide');
}

function Pause_Rollover(){
	//if(!document.all && !document.getElementById){
		//clearTimeout(timerID);
		clearInterval(intervalID);
	//}
}

function openBrWindow(theURL,winName,winReturn) { //v2.0
	if(isNav){
	winReturn = window.open(theURL,winName,'width=470,height=380,screenX=0,screenY=0,left=0,top=0,scrollbars=1');
	} else {
	winReturn = window.open(theURL,winName,'width=470,height=380,screenX=0,screenY=0,left=0,top=0,scrollbars=1');
	}
}