

// * ============================================================== *
// SPI Scripts
// * ============================================================== *	
	
    /// scroll
		var swidth=145;
		var sheight=204;
		var sspeed=3;
		sbcolor="#ffffff";
		
		var singletext=new Array();
		singletext[0]="<iframe width='145' height='550' scrolling='No' style='background-color:#eff7ff;' src='http://timesofindia.indiatimes.com/cms.dll/bnews' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0'></iframe>";
		
		if (singletext.length>1)ii=1;else ii=0;
		function start(){
		if (document.all)
		   {iens6div.style.top=sheight;iescroll(iens6div);}
		else if (document.layers)
		   {document.ns4div.document.ns4div1.top=sheight;document.ns4div.document.ns4div1.visibility='show';ns4scroll(document.ns4div.document.ns4div1);}
		else if (document.getElementById)
		   {document.getElementById('iens6div').style.top=sheight;ns6scroll(document.getElementById('iens6div'));}}
	
		function iescroll(whichdiv)
		  {iediv=eval(whichdiv);sizeup=iediv.offsetHeight;if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll(iediv)",100);}if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed;setTimeout("iescroll(iediv)",100);}else{iediv.style.pixelTop=sheight;iediv.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}
		function ns4scroll(whichlayer)
		  {ns4layer=eval(whichlayer);sizeup=ns4layer.document.height;if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll(ns4layer)",100);}if (ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll(ns4layer)",100);}else{ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();if(ii==singletext.length-1)ii=0;else ii++;}}
		function ns6scroll(whichdiv)
		  {ns6div=eval(whichdiv);sizeup=ns6div.offsetHeight;if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll(ns6div)",100);}if (parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed;setTimeout("ns6scroll(ns6div)",100);}else{ns6div.style.top=sheight;ns6div.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}


		function launchCenter(url, name, height, width) {
	     if (screen.width == 800){
	     	height = 380;
		    width= 600;  }
		 else {
	     	height = 480;
		    width= 720;  }
	
		  var str = "height=" + height + ",innerHeight=" + height;
		  str += ",width=" + width + ",innerWidth=" + width;
		  if (window.screen) {
		    var ah = screen.availHeight - (-40);
		    var aw = screen.availWidth - (-20);
		
		    var xc = ((aw - width) / 2) - 18;
		    var yc = (ah - height) / 2;
		
		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
			str += ",toolbar=1,location=1,scrollbars=1,directories=1,status=1,MenuPosition=1,resizable=1,menubar=1"
		  }
		  return window.open(url, name, str);
		}
        
		function launchSPIWindow(url, name, height, width) {
	     if (screen.width == 800){
	     	height = 380;
		    width= 600;  }
		 else {
	     	height = 510;
		    width= 720;  }
	
		  var str = "height=" + height + ",innerHeight=" + height;
		  str += ",width=" + width + ",innerWidth=" + width;
		  if (window.screen) {
		    var ah = screen.availHeight - (-40);
		    var aw = screen.availWidth - (-10);
		
		    var xc = ((aw - width) / 2 ) - 18;
		    var yc = (ah - height) / 2;
		
		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
			str += ",toolbar=0,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
		  }
		  return window.open(url, name, str);
		}
		
		// more news
		function launchmorenews(url, name, height, width) {
	     if (screen.width == 800){
	     	height = 380;
		    width= 600;  }
		 else {
	     	height = 480;
		    width= 720;  }
	
		  var str = "height=" + height + ",innerHeight=" + height;
		  str += ",width=" + width + ",innerWidth=" + width;
		  if (window.screen) {
		    var ah = screen.availHeight - (-2);
		    var aw = screen.availWidth - (-10);
		
		    var xc = ((aw - width) / 2 ) - 18;
		    var yc = (ah - height) / 2;
		
		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
			str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
		  }
		  return window.open(url, name, str);
		}
		
		// sublinks
		function launchsublinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=0,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.subc.subcategory.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.subc.subcategory.value;
			  return window.open(url,'Links', str);  }
			}
		
		// pagelinks
		function launchpagelinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=0,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.page.pages.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.page.pages.value;
			  return window.open(url,'Links', str);  }
			}
			
		// Health tools
		//  medlinks
		function launchmedlinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.med.smed.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.med.smed.value;
			  return window.open(url,'Links', str);  }
			}
		
		//  exrlinks
		function launchexrlinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.exr.sexr.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.exr.sexr.value;
			  return window.open(url,'Links', str);  }
			}
		
		//  hoslinks
		function launchhoslinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.hos.shos.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.hos.shos.value;
			  return window.open(url,'Links', str);  }
			}
		
		
		// BABY Corner
		//  birlinks
		function launchbirlinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.bir.sbir.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.bir.sbir.value;
			  return window.open(url,'Links', str);  }
			}
		
		//  aftlinks
		function launchaftlinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.aft.saft.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.aft.saft.value;
			  return window.open(url,'Links', str);  }
			}
		
		//  yrrslinks
		function launchyrrslinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.yrrs.syrrs.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.yrrs.syrrs.value;
			  return window.open(url,'Links', str);  }
			}
			
		//  factlinks
		function launchfactlinks() {
		     if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var lg = document.fact.sfact.value.length;
			  if (lg == 0 ) {
			     return false;  }
			  else	{ 
			  url = document.fact.sfact.value;
			  return window.open(url,'Links', str);  }
			}

        // time and date
		function launchtimedate() {
		      if (screen.width == 800){
		     	height = 380;
			    width= 600;  }
			 else {
		     	height = 510;
			    width= 720;  }
			 
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - (-40);
			    var aw = screen.availWidth - (-10);
			
			    var xc = ((aw - width) / 2 ) - 18;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=0,location=0,scrollbars=1,directories=0,status=0,MenuPosition=0,resizable=1,menubar=0"
			  }
			  
			  var llg = document.timedate.town.value.length;
			  if (llg == 0) {
			     return false;  }
			  else	{ 
			  url = document.timedate.timedateurl.value+escape(document.timedate.town.value);
			  return window.open(url,'TimeDate', str); }
			}
			
	
		function launchsearch1() {
		     if (screen.width == 800){
		     	height = 300;
			    width= 600;  }
			 else {
		     	height = 420;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - 30;
			    var aw = screen.availWidth - 10;
			
			    var xc = ((aw - width) / 2) - 8;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=1,status=1,MenuPosition=1,resizable=1,menubar=1"
			  }
			  
			  var lg = document.srch.EngineUrl1.value.length;
			  var llg = document.srch.SearchString.value.length;
			  if (lg == 0 || llg == 0) {
			     return false;  }
			  else	{ 
			  url = document.srch.EngineUrl1.value+escape(document.srch.SearchString.value);
			  return window.open(url,'Search', str); }
			  
			}
           
		   function launchsearch2() {
		     if (screen.width == 800){
		     	height = 300;
			    width= 600;  }
			 else {
		     	height = 420;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - 30;
			    var aw = screen.availWidth - 10;
			
			    var xc = ((aw - width) / 2) - 8;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=1,status=1,MenuPosition=1,resizable=1,menubar=1"
			  }

  			  var lg = document.srch.EngineUrl2.value.length;
			  var llg = document.srch.SearchString.value.length;
			  if (lg == 0 || llg == 0) {
			     return false;  }
			  else	{ 
			  url = document.srch.EngineUrl2.value+escape(document.srch.SearchString.value);
			  return window.open(url,'Search', str); }

			}
		
		function launchsearch3() {
		     if (screen.width == 800){
		     	height = 300;
			    width= 600;  }
			 else {
		     	height = 420;
			    width= 720;  }
		
			  var str = "height=" + height + ",innerHeight=" + height;
			  str += ",width=" + width + ",innerWidth=" + width;
			  if (window.screen) {
			    var ah = screen.availHeight - 30;
			    var aw = screen.availWidth - 10;
			
			    var xc = ((aw - width) / 2) - 8;
			    var yc = (ah - height) / 2;
			
			    str += ",left=" + xc + ",screenX=" + xc;
			    str += ",top=" + yc + ",screenY=" + yc;
				str += ",toolbar=1,location=0,scrollbars=1,directories=1,status=1,MenuPosition=1,resizable=1,menubar=1"
			  }

  			  var lg = document.srch.EngineUrl3.value.length;
			  var llg = document.srch.SearchString.value.length;
			  if (lg == 0 || llg == 0) {
			     return false;  }
			  else	{ 
			  url = document.srch.EngineUrl3.value+escape(document.srch.SearchString.value);
			  return window.open(url,'Search', str); }

			}
			
		// change color	
		function change_onover(var_id)
				{
				object_name	= document.getElementById(var_id);
				object_name.className="bodytextcolor";
				}
		
		function change_onout(var_id)
				{
				object_name	= document.getElementById(var_id);
				object_name.className="bodytextdark";
			}
			
	 // Menu 
	 
	 //////////////
	//standard.js	
	var pfadjust=0;
	var isIE, isNN, dom, isMac, isN6;
    var STYLE_PATH = "";
	if (document.all){
		isIE = true;
		dom = document.all;
	} else if (document.layers){
		isNN = true;
		dom = document.layers;
		document.captureEvents(Event.RESIZE);
	    window.onresize = handleNNResize;
		//pfadjust=pfadjust-1;
	} else if ((navigator.appName == "Netscape") && (document.getElementById)){
		isN6 = true;
        dom = document.getElementsByTagName;
    }
	

	var agent = navigator.userAgent.toLowerCase();
	if (agent.lastIndexOf('mac') < 0) {
		isMac = false;
	} else {
		isMac = true;
	}
	
	var is_major = parseInt(navigator.appVersion);
	var is_ie   = (agent.indexOf("msie") != -1);
	var is_ie3  = (is_ie && (is_major < 4));
	var is_ie4  = (is_ie && (is_major == 4) && (agent.indexOf("msie 5.0")==-1) );
	var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

	// handle netscape resize bug
	var ws, hs;
	if (isNN){
		ws = window.innerWidth;
		hs = window.innerHeight;
	}
	
	function handleNNResize(){
		if (isNN){
			if (window.innerWidth != ws || window.innerHeight != hs) {
				window.location.href = window.location.href;
			}
		}
	}
	
	function writeLayer(n,x,y,w,h,z,vis,cnt,exn,exe) {
		document.write(returnLayer(n,x,y,w,h,z,vis,cnt,exn,exe));
	}
	
	function returnLayer(n,x,y,w,h,z,vis,cnt,exn,exe){
		if (isNN) {
			vis == 1 ? vis='show' : vis='hide';
			return '<layer width='+w+' height='+h+' left='+x+' top='+y+' name="'+n+'" z-index='+z+' visibility="'+vis+'" '+exn+'>'+cnt+'</layer>';
		} else if (isIE) {
			vis == 1 ? vis='visible' : vis='hidden';
			return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+y+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
		} else if (isN6) {
			vis == 1 ? vis='visible' : vis='hidden';
            //return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+(y-10)+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
        return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+y+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
		}
		
	}
	
	function switchImg(which,newSrc,nnLayer){
		var layerInfo = "";
		var my_src = eval(newSrc);
		if (isNN){
			layerInfo = nnLayer;
		}
		eval(layerInfo + "document.images['" + which + "'].src = '" + my_src.src + "'");
	}
	
	function returnMapArea(left,top,width,height,href,over,out){
		var str = '<AREA COORDS="'+ left +','+ top +','+ (left + width) +','+ (top + height) +'" HREF="'+ href +'" onmouseover="'+ over +'" onmouseout="'+ out +'">';
		return str;
	}
	
	function switchVis(id, state){
		var my_vis;
		if (isIE) {
			state ? my_vis = "visible" : my_vis = "hidden";
			dom[id].style.visibility = my_vis;
		} else if (isNN) {
			state ? my_vis = "show" : my_vis = "hide";
			dom[id].visibility = my_vis;
		} else if (isN6) {
            state ? my_vis = "visible" : my_vis = "hidden";
            document.getElementById(id).style.visibility = my_vis;
        }
	}
	
	function writeStyle(style_chunk){
		str = '<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.DakshinSolutions.com' + STYLE_PATH;
		if (isNN){
			str += style_chunk + "_nn.css";
		} else {
			str += style_chunk + "_ie.css";
		}
		str += '">';
		document.write(str);
	}
	
	function goLocation(loc){
		location.href = loc;
	}
	   
	function updateParent(newURL) {
		opener.document.location = newURL;
		timoutID=setTimeout("focusMain()",100)
	}
	
	function focusMain(){
		opener.document.focus();
		clearTimeout(timeoutID)
	}
	
	function popMailWin() {
        var pageURL   = escape(self.document.URL);
        var pageTitle = escape(self.document.title);
        var formURL   = "" + pageURL + "&group=instyle&title=" + pageTitle + "";
        window.open(formURL, "emailpop","height=345,width=350,resizable,scrollbars");
        return false;
	}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

	
	function openWin(file,winame,resize,status,scroll,tool,locater,menur,width,height) {
	ispopwin = window.open(file,winame,"left=200,top=200,resizable="+resize+",status="+status+",scrollbars="+scroll+",toolbar="+tool+",location="+locater+",menu="+menur+",height="+height+",width="+width);
	if (window.focus) {
  	ispopwin.focus();
 	}
}

function getLogoPos(){
		var offX, offY;
		if (isNN) {
		var POS_IMG_NAME = "pants2";
		} else {
		var POS_IMG_NAME = "pants";
}
		if (isIE){
			myEl = document.all[POS_IMG_NAME];
			offY = myEl.offsetTop;
			if (isMac && (agent.indexOf("msie 5.1")!=-1)) {
				while(myEl.offsetParent != null){
					myEl =  myEl.offsetParent;
					offY += myEl.offsetTop;
				}
			} else if (isMac && is_ie4) {
				while(myEl.parentElement != null){
					myEl =  myEl.parentElement;
					offY += myEl.offsetTop;
				}
			}  else {
				while(myEl.offsetParent != null){
					myEl =  myEl.offsetParent;
					offY += myEl.offsetTop;
				}
			}
		} else if(isNN) {
			offY = document.images[POS_IMG_NAME].y;
		} else if(isN6) {
			var myEl = document.getElementById(POS_IMG_NAME);
			var offY = parseInt(myEl.offsetTop)-1;
			while(myEl.offsetParent != null){
					myEl =  myEl.offsetParent;
					offY += myEl.offsetTop;
				}
		}
		return offY;
	}
	
function handleError (err, url, line) {
      return true; // error is handled
  }
  window.onerror = handleError;
  // End of menu		
			
			