var selection;
var _hrf=location.href;
var sPage=_hrf.substring(_hrf.lastIndexOf('/')+1 ,_hrf.lastIndexOf('.'));
if (sPage =='index' || sPage =='') selection=1;
if (sPage =='aboutus') selection=2;
if (sPage =='mission') selection=3;
if (sPage =='products'|| sPage =='gargtmt'||sPage =='garhrms'||sPage =='squreandrounds'||sPage =='anglesflats') selection=4;
if (sPage =='quality'||sPage =='qualityControl'||sPage =='qualitymsc') selection=5;
if (sPage =='marketingnetwork')selection=6;
if (sPage =='brandpublicity'||sPage =='press'||sPage =='advertisements')selection=7;
if (sPage =='contactus')selection=8;

  document.write('<table width="100%"><tr height="80"><td width="100%"></td></tr><tr><td width="100%"><img src="images/logo.gif" width="233" height="51" border="0"></td></tr><tr height="21"><td width="100%"></td></tr></table>');
  
  
  document.write('<table width="100%"><tr><td width="30%"  align="left"><table width="100%" height="84">');
  
if (selection==1)
	document.write('<tr><TD><img src="images/ihome.gif" alt="" name="pic1" id="pic1" width="33" height="12" border="0"></td></tr>');
else
	document.write('<tr><TD><a href="index.html" onmouseover="hiLite(\'pic1\',\'npic1\')" onmouseout="hiLite(\'pic1\',\'npic1a\')"><img src="images/home.gif" alt="" name="pic1" id="pic1" width="33" height="12" border="0"></a></td></tr>');

if (selection==2)
	document.write('<tr><TD><img src="images/iaboutus.gif" alt="" name="pic2" id="pic2" width="54" height="12" border="0"></td></tr>');
else
	document.write('<tr><TD><a href="aboutus.html" onmouseover="hiLite(\'pic2\',\'npic2\')" onmouseout="hiLite(\'pic2\',\'npic2a\')"><img src="images/aboutus.gif" alt="" name="pic2" id="pic2" width="54" height="12" border="0"></a></td></tr>');


if (selection==3)
	document.write('<tr><TD><img src="images/imission.gif" alt="" name="pic3" id="pic3" width="44" height="12" border="0"></td></tr>');
else
		document.write('<tr><TD><a href="mission.html" onmouseover="hiLite(\'pic3\',\'npic3\')" onmouseout="hiLite(\'pic3\',\'npic3a\')"><img src="images/mission.gif" alt="" name="pic3" id="pic3" width="44" height="12" border="0"></a></td></tr>');

if (selection==4)
	document.write('<tr><TD><img src="images/iproducts.gif" alt="" name="pic4" id="pic4" width="56" height="12" border="0"></td></tr>');
else
	document.write('<tr><td><a href="products.html" onmouseover="hiLite(\'pic4\',\'npic4\')" onmouseout="hiLite(\'pic4\',\'npic4a\')"><img src="images/products.gif" alt="" name="pic4" id="pic4" width="56" height="12" border="0"></a></td></tr>');



    document.write('</table></td><td width="21%" align="center"><img src="images/separator.gif" /></td><td width="49%" align="left"><table width="100%" height="84">');


	
if (selection==5)
	document.write('<tr><td><img src="images/iquality.gif" alt="" name="pic5" id="pic5" width="44" height="12" border="0"></td></tr>');
else
	document.write('<tr><td><a href="quality.html" onmouseover="hiLite(\'pic5\',\'npic5\')" onmouseout="hiLite(\'pic5\',\'npic5a\')"><img src="images/quality.gif" alt="" name="pic5" id="pic5" width="44" height="12" border="0"></a></td></tr>');

    
 if (selection==6)
	document.write('<tr><td><img src="images/imarketingnetwork.gif" alt="" name="pic6" id="pic6" width="109" height="12" border="0"></td></tr>');
else
	document.write('<tr><td><a href="marketingnetwork.html" onmouseover="hiLite(\'pic6\',\'npic6\')" onmouseout="hiLite(\'pic6\',\'npic6a\')"><img src="images/marketingnetwork.gif" alt="" name="pic6" id="pic6" width="109" height="12" border="0"></a></td></tr>');

if (selection==7)
	document.write('<tr><td><img src="images/ibrandpublicity.gif" alt="" name="pic7" id="pic7" width="88" height="12" border="0"></td></tr>');
else
	document.write('<tr><td><a href="brandpublicity.html" onmouseover="hiLite(\'pic7\',\'npic7\')" onmouseout="hiLite(\'pic7\',\'npic7a\')"><img src="images/brandpublicity.gif" alt="" name="pic7" id="pic7" width="88" height="12" border="0"></a></td></tr>');

    
 if (selection==8)
	document.write('<tr><td><img src="images/icontactus.gif" alt="" name="pic8" id="pic8" width="64" height="12" border="0"></td></tr>');
else
	document.write('<tr><td><a href="contactus.html" onmouseover="hiLite(\'pic8\',\'npic8\')" onmouseout="hiLite(\'pic8\',\'npic8a\')"><img src="images/contactus.gif" alt="" name="pic8" id="pic8" width="64" height="12" border="0"></a></td></tr>');

    document.write('</table></td></tr></table>');
         


agent = navigator.userAgent
browserVer = 2
if (agent.substring (0,7) == "Mozilla")
{
	if (parseInt (agent.substring (8,9)) >= 3) {browserVer = 1;}
}
	npic1 = new Image;
	npic1.src = "images/home_over.gif";
	npic1a = new Image;
	npic1a.src = "images/home.gif";
	
	npic2 = new Image;
	npic2.src = "images/aboutus_over.gif";
	npic2a = new Image;
	npic2a.src = "images/aboutus.gif";
	
	npic3 = new Image;
	npic3.src = "images/mission_over.gif";
	npic3a = new Image;
	npic3a.src = "images/mission.gif";
	
	npic4 = new Image;
	npic4.src = "images/products_over.gif";
	npic4a = new Image;
	npic4a.src = "images/products.gif";
	
	npic5 = new Image;
	npic5.src = "images/quality_over.gif";
	npic5a = new Image;
	npic5a.src = "images/quality.gif";
	
	npic6 = new Image;
	npic6.src = "images/marketingnetwork_over.gif";
	npic6a = new Image;
	npic6a.src = "images/marketingnetwork.gif";
	
	npic7 = new Image;
	npic7.src = "images/brandpublicity_over.gif";
	npic7a = new Image;
	npic7a.src = "images/brandpublicity.gif";
	
	npic8 = new Image;
	npic8.src = "images/contactus_over.gif";
	npic8a = new Image;
	npic8a.src = "images/contactus.gif";
	

function hiLite(id,imgObjName) 
{
    if (browserVer == 1)
	{
    	document.images[id].src = eval(imgObjName + ".src");
	}
}	


function PopupWindow(sPicURL) {

	var H =screen.height  / 5;
		var L = screen.width / 2;
  
     window.open( "popup.htm?"+sPicURL, "",  
     "resizable=0,HEIGHT=200,WIDTH=200,top="+H+",left="+L+""); 
	    } 
