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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

//**************************************************
//THIS FUNCTION IS ALSO CHANGED
function MM_showHideLayers() {


  var i,p,v,obj,args=MM_showHideLayers.arguments;
  
  //CHANGED ON 09-06-2008
  
  		if(navigator.appName.indexOf('Netscape') != -1)
		{
			var bl_left1;
			var lft1;
			
			lft1 = (screen.availWidth-950) / 2;
			bl_left1 = lft1 + 172;
			if(screen.availWidth == 800 || screen.availWidth == 640)
			{
			//CHANGE THIS LINE VALUE 207 TO 200  updated 04 06 2008
			bl_left1=200;
			}
			
			bl_left1 = document.getElementById("contenttd1").offsetLeft + document.getElementById("contenttd").offsetLeft;
			
			//alert("1 ="+document.getElementById("contenttd1").offsetLeft);
			
			//alert("2 ="+document.getElementById("contenttd").offsetLeft);
			//COPY THIS CODE SEGMENT FOR THE SCROLL CALCULATION  updated 04 06 2008
				//if(document.documentElement.scrollHeight <= document.documentElement.clientHeight)
				//{
				//bl_left1 = bl_left1 + 10;
				//}
				//else
				//{/
				//alert("scroll");
				//}
			//alert("2 ="+bl_left1);
			document.getElementById("solutions").style.left = bl_left1+"px";
			document.getElementById("industries").style.left = bl_left1+"px";
			document.getElementById("solutions").style.top = "40px";
			document.getElementById("industries").style.top = "100px";
		}
		else
		{
	    var menuLeft = 0;
        var menuTop = 0;
        
        menuLeft = document.getElementById("menutd").offsetLeft +  200;
        menuTop = document.getElementById("menutd").offsetTop +  35;
        menuTop1 = document.getElementById("menutd").offsetTop +  115;

		document.getElementById("solutions").style.left = menuLeft;
		document.getElementById("industries").style.left = menuLeft;
        document.getElementById("solutions").style.top = menuTop;
        document.getElementById("industries").style.top = menuTop1;
		}
		
		  //CHANGED ON 09-06-2008


  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')?'':(v=='hide')?'none':v; }
    obj.display=v; }
}
//**************************************************
//THIS FUNCTION IS ALSO CHANGED




//#########################################################################
//NEW FUNCTION ADDED 09-06-2008 FOR DISPLAYING THE MENU IN INDEX, ABOUT US, LOGIN AND CONTACT US PAGES
function MM_showHideLayers_home() {

  var i,p,v,obj,args=MM_showHideLayers_home.arguments;
  
  //alert("home menu");
  //CHANGED ON 09-06-2008
  
  		if(navigator.appName.indexOf('Netscape') != -1)
		{
			var bl_left1;
			var lft1;
			
			lft1 = (screen.availWidth-950) / 2;
			bl_left1 = lft1 + 172;
			if(screen.availWidth == 800 || screen.availWidth == 640)
			{
			//CHANGE THIS LINE VALUE 207 TO 200  updated 04 06 2008
			bl_left1=200;
			}
			
		bl_left1 = document.getElementById("contenttd1").offsetLeft + document.getElementById("contenttd").offsetLeft;
/*
			//COPY THIS CODE SEGMENT FOR THE SCROLL CALCULATION  updated 04 06 2008
				if(document.documentElement.scrollHeight <= document.documentElement.clientHeight)
				{
				bl_left1 = bl_left1 + 10;
				}
				*/
				
				
			document.getElementById("solutions").style.left = bl_left1+"px";
			document.getElementById("industries").style.left = bl_left1+"px";
			document.getElementById("solutions").style.top = "265px";
			document.getElementById("industries").style.top = "355px";
		}
		else
		{
	    var menuLeft = 0;
        var menuTop = 0;
        
        menuLeft = document.getElementById("menutd").offsetLeft +  200;
        menuTop = document.getElementById("menutd").offsetTop +  265;
        menuTop1 = document.getElementById("menutd").offsetTop +  355;

		document.getElementById("solutions").style.left = menuLeft+"px";
		document.getElementById("industries").style.left = menuLeft+"px";
        document.getElementById("solutions").style.top = menuTop+"px";
        document.getElementById("industries").style.top = menuTop1+"px";
		}
		
		  //CHANGED ON 09-06-2008


  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')?'':(v=='hide')?'none':v; }
    obj.display=v; }
}
//#########################################################################
//NEW FUNCTION ADDED 09-06-2008 FOR DISPLAYING THE MENU IN INDEX, ABOUT US, LOGIN AND CONTACT US PAGES

function MM_preloadgraphics() { //v3.0
  var d=document; if(d.graphics){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadgraphics.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_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_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 openWindow(page,width,height)
    {
             windowFeatures = "";
                 window_width = width;
                 window_height = height;
                 window_top = (screen.availHeight-window_height)/2
                 window_left = (screen.availWidth-window_width)/2
                 windowFeatures += "width=" + window_width + ",height=" + window_height + ",top="
                 windowFeatures += window_top
                 windowFeatures += ",left="
                 windowFeatures += window_left
                 windowFeatures += ",scrollbars=1"
             window.open(page,'type',windowFeatures)
    }
     
     //Function to disable the Login link if the window is popup. 
     function DisableLogin()
     {
        if(typeof(window.opener)!="undefined") 
        {
            document.getElementById('loginTd').style.display='none';
        }
     }


