var tabsName=new Array();var tabs=new Array();function getTabs(selectedTabName, isAgent, hideYourAccount, hideHorizontalLine, secure, customCareNumber){  getTabs(selectedTabName, isAgent, hideYourAccount, hideHorizontalLine, secure, customCareNumber, null, null, null, null,null,null,null)}function getTabs(selectedTabName, isAgent, hideYourAccount, hideHorizontalLine, secure, customCareNumber, target, hideTabs, hideRightSpace, shiftTabBy){  getTabs(selectedTabName, isAgent, hideYourAccount, hideHorizontalLine, secure, customCareNumber, target, hideTabs, hideRightSpace, shiftTabBy,null,null,null)}function getTabs(selectedTabName, isAgent, hideYourAccount, hideHorizontalLine, secure, customCareNumber, target, hideTabs, hideRightSpace, shiftTabBy,tabArray,ibaseURL,ilinkURL){     if(shiftTabBy==null){      shiftTabBy=67;   }   var myTarget='';   if(target!=null){      myTarget=' target="'+target+'"';   }   tabsName=new Array();   tabsName["about"]=1;   tabsName["market"]=2;   tabsName["services"]=3;   tabsName["clients"]=4;   tabsName["contact"]=5;   var selectedTab=tabsName[selectedTabName];      tabs=new Array(      new Array('<a href="index.htm"><img src="images/about_', '.gif" border="0" srcover="images/about_1.gif"></a>'),      new Array('<a href="market.htm"><img src="images/market_', '.gif" border="0" srcover="images/market_1.gif"></a>'),      new Array('<a href="services.htm"><img src="images/services_', '.gif" border="0" srcover="images/services_1.gif"></a>'),      new Array('<a href="clients.htm"><img src="images/clients_', '.gif" border="0" srcover="images/clients_1.gif"></a>'),      new Array('<a href="contact.htm"><img src="images/contact_', '.gif" border="0" srcover="images/contact_1.gif"></a>')  );   // allow overide of tabs   if(tabArray!=null){      tabs=tabArray;   }document.write('<table width="800" border="0"  align="center" cellpadding="0" cellspacing="0">');document.write('<tr>');document.write('<td><img src="images/spacer.gif" width="91" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="145" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="94" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="90" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="109" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="271" height="1" border="0" /></td>');document.write('<td><img src="images/spacer.gif" width="1" height="1" border="0" /></td>');document.write('</tr>');document.write('<tr>');document.write('<td>'+getImageTab(1, selectedTab)+'</td>');document.write('<td>'+getImageTab(2, selectedTab)+'</td>');document.write('<td>'+getImageTab(3, selectedTab)+'</td>');document.write('<td>'+getImageTab(4, selectedTab)+'</td>');document.write('<td>'+getImageTab(5, selectedTab)+'</td>');document.write('<td><img name="bar" src="images/bar.gif" width="272" height="27" border="0" id="bar" /></td>');document.write('</tr>');document.write('</table>');/* THIS THE END POINT FOR REPLACEMENT OF WINTER SCENE */}function getImageTab(tabIndex, selectIndex){   var result=tabs[tabIndex-1][0];   if(tabs[tabIndex-1][1]!=null){      if(selectIndex==tabIndex){         result+='1';      }      else{         result+='0';      }      result+=tabs[tabIndex-1][1];   }   return result;}function imageholderclass(){	this.over=new Array();	this.down=new Array();	this.src=new Array();	this.store=store;		function store(src, down, over){		var AL=this.src.length;		this.src[AL]=new Image(); this.src[AL].src=src;		this.over[AL]=new Image(); this.over[AL].src=over;		this.down[AL]=new Image(); this.down[AL].src=down;	}}var ih = new imageholderclass();var mouseisdown=0;function preloader(t){	for(i=0;i<t.length;i++){		if(t[i].getAttribute('srcover')||t[i].getAttribute('srcdown')){						storeimages(t[i]);			var checker='';			checker=(t[i].getAttribute('srcover'))?checker+'A':checker+'';			checker=(t[i].getAttribute('srcdown'))?checker+'B':checker+'';						switch(checker){			case 'A' : mouseover(t[i]);mouseout(t[i]); break;			case 'B' : mousedown(t[i]); mouseup2(t[i]); break;			case 'AB' : mouseover(t[i]);mouseout(t[i]); mousedown(t[i]); mouseup(t[i]); break;			default : return;						}						if(t[i].src){t[i].setAttribute("oldsrc",t[i].src);}		}	}}function mouseup(t){	var newmouseup;	if(t.onmouseup){		t.oldmouseup=t.onmouseup;		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");this.oldmouseup();}	}	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");}}	t.onmouseup=newmouseup;}function mouseup2(t){	var newmouseup;	if(t.onmouseup){		t.oldmouseup=t.onmouseup;		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");this.oldmouseup();}		}	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");}}	t.onmouseup = newmouseup;}function mousedown(t){	var newmousedown;	if(t.onmousedown){		t.oldmousedown=t.onmousedown;		newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");this.oldmousedown();}}	}	else{newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");}}}	t.onmousedown=newmousedown;}function mouseover(t){	var newmouseover;	if(t.onmouseover){		t.oldmouseover=t.onmouseover;		newmouseover=function(){this.src=this.getAttribute("srcover");this.oldmouseover();}	}	else{newmouseover=function(){this.src=this.getAttribute("srcover");}}	t.onmouseover=newmouseover;}function mouseout(t){	var newmouseout;	if(t.onmouseout){		t.oldmouseout=t.onmouseout;		newmouseout=function(){this.src=this.getAttribute("oldsrc");this.oldmouseout();}	}	else{newmouseout=function(){this.src=this.getAttribute("oldsrc");}}	t.onmouseout=newmouseout;}function storeimages(t){	var s=(t.getAttribute('src'))?t.getAttribute('src'):'';	var d=(t.getAttribute('srcdown'))?t.getAttribute('srcdown'):'';	var o=(t.getAttribute('srcover'))?t.getAttribute('srcover'):'';	ih.store(s,d,o);}function preloadimgsrc(){	if(!document.getElementById) return;	var it=document.getElementsByTagName('IMG');	var it2=document.getElementsByTagName('INPUT');	preloader(it);	preloader(it2);}if(window.addEventListener){window.addEventListener("load", preloadimgsrc, false);} else{	if(window.attachEvent){window.attachEvent("onload", preloadimgsrc);}	else{if(document.getElementById){window.onload=preloadimgsrc;}}}
