
﻿
function postform(){document.forms[0].action='';document.forms[0].submit();}
function addBookmark(){title=document.title;url=window.location.href;if(window.sidebar){window.sidebar.addPanel(title,url,'');}else if(window.opera){var a=document.createElement("A");a.rel="sidebar";a.target="_search";a.title=title;a.href=url;a.click();}else if(document.all){window.external.AddFavorite(url,title);}}
function aboutHovered(){var obj=document.getElementById("aboutusdiv");var obj2=document.getElementById("aboutusiframe");var obj3=document.getElementById("aboutspan");var obj4=document.getElementById("abouturl");obj.style.display='block';obj2.style.display='block';obj3.style.backgroundPosition='100% -40px';obj4.style.backgroundPosition='0% -40px';}
function aboutUnhovered(){var obj=document.getElementById("aboutusdiv");var obj2=document.getElementById("aboutusiframe");var obj3=document.getElementById("aboutspan");var obj4=document.getElementById("abouturl");obj.style.display='none';obj2.style.display='none';obj3.style.backgroundPosition='100% 0px';obj4.style.backgroundPosition='0% 0px';}
function showTab4(a,b,c,d,e)
{try{var f=document.getElementById(a);f.style.display="block"}catch(e){}
try{var g=document.getElementById(b);g.style.display="none"}catch(e){}
try{var h=document.getElementById(c);h.style.display="none"}catch(e){}
try{var i=document.getElementById(d);i.style.display="none"}catch(e){}
try{var j=document.getElementById(e);j.style.display="none"}catch(e){}}
function changeTabActive4(a,b,c,d,f,e)
{try{var g=document.getElementById(b);g.className=a}catch(e){}
try{var h=document.getElementById(c);h.className=""}catch(e){}
try{var i=document.getElementById(d);i.className=""}catch(e){}
try{var j=document.getElementById(f);j.className=""}catch(e){}}
function loadpopunder(url)
{try
{var win2;win2=window.open("http://www.car-supermarkets.com/popunder.aspx?url="+url,"","height=600,width=800,resizable=1,scrollbars=1");win2.blur();window.focus();}
catch(e)
{}}
function SetCookie(cookieName,cookieValue,nDays){var today=new Date();var expire=new Date();if(nDays==null||nDays==0)nDays=1;expire.setTime(today.getTime()+3600000*24*nDays);document.cookie=cookieName+"="+escape(cookieValue)
+";expires="+expire.toGMTString();}
function showNav(anchorID)
{var aNav=document.getElementById(anchorID);switch(anchorID){case'linkFeaturedCS':if(document.getElementById("featuredCSpanel").style.display=='none'){aNav.className="left-nav-active";document.getElementById("linkCarLoans").className="";document.getElementById("linkOtherCS").className="";document.getElementById("linkManufacturers").className="";document.getElementById("linkRecentLinks").className="";SetCookie('acopendivids',"",-1);SetCookie('acgroupswithpersist',"",-1);SetCookie('acopendivids','featuredCSpanel');SetCookie('acgroupswithpersist','csLeft');}
else
{aNav.className="";}
break;case'linkCarLoans':if(document.getElementById("carLoansPanel").style.display=='none'){aNav.className="left-nav-active";document.getElementById("linkFeaturedCS").className="";document.getElementById("linkOtherCS").className="";document.getElementById("linkManufacturers").className="";document.getElementById("linkRecentLinks").className="";SetCookie('acopendivids',"",-1);SetCookie('acgroupswithpersist',"",-1);SetCookie('acopendivids','carLoansPanel');SetCookie('acgroupswithpersist','csLeft');}
else
{aNav.className="";}
break;case'linkOtherCS':if(document.getElementById("otherCSpanel").style.display=='none'){aNav.className="left-nav-active";document.getElementById("linkFeaturedCS").className="";document.getElementById("linkCarLoans").className="";document.getElementById("linkManufacturers").className="";document.getElementById("linkRecentLinks").className="";SetCookie('acopendivids',"",-1);SetCookie('acgroupswithpersist',"",-1);SetCookie('acopendivids','otherCSpanel');SetCookie('acgroupswithpersist','csLeft');}
else
{aNav.className="";}
break;case'linkManufacturers':if(document.getElementById("manufacturersPanel").style.display=='none'){aNav.className="left-nav-active";document.getElementById("linkFeaturedCS").className="";document.getElementById("linkCarLoans").className="";document.getElementById("linkOtherCS").className="";document.getElementById("linkRecentLinks").className="";SetCookie('acopendivids',"",-1);SetCookie('acgroupswithpersist',"",-1);SetCookie('acopendivids','manufacturersPanel');SetCookie('acgroupswithpersist','csLeft');}
else
{aNav.className="";}
break;case'linkRecentLinks':if(document.getElementById("recentLinksPanel").style.display=='none'){aNav.className="left-nav-active";document.getElementById("linkFeaturedCS").className="";document.getElementById("linkCarLoans").className="";document.getElementById("linkOtherCS").className="";document.getElementById("linkManufacturers").className="";SetCookie('acopendivids',"",-1);SetCookie('acgroupswithpersist',"",-1);SetCookie('acopendivids','recentLinksPanel');SetCookie('acgroupswithpersist','csLeft');}
else
{aNav.className="";}
break;}}
function initPanels(){var link1=document.getElementById("linkFeaturedCS");var link2=document.getElementById("linkCarLoans");var link3=document.getElementById("linkOtherCS");var link4=document.getElementById("linkManufacturers");var link5=document.getElementById("linkRecentLinks");var panel1=document.getElementById("featuredCSpanel");var panel2=document.getElementById("carLoansPanel");var panel3=document.getElementById("otherCSpanel");var panel4=document.getElementById("manufacturersPanel");var panel5=document.getElementById("recentLinksPanel");switch(document.cookie)
{case'acopendivids=featuredCSpanel; acgroupswithpersist=csLeft':link1.className='left-nav-active';break;case'acopendivids=carLoansPanel; acgroupswithpersist=csLeft':link2.className='left-nav-active';break;case'acopendivids=otherCSpanel; acgroupswithpersist=csLeft':link3.className='left-nav-active';break;case'acopendivids=manufacturersPanel; acgroupswithpersist=csLeft':link4.className='left-nav-active';break;case'acopendivids=recentLinksPanel; acgroupswithpersist=csLeft':link5.className='left-nav-active';break;case'nada':link1.className='left-nav-active';SetCookie('acopendivids','featuredCSpanel');SetCookie('acgroupswithpersist','csLeft');break;case'':link1.className='left-nav-active';SetCookie('acopendivids','featuredCSpanel');SetCookie('acgroupswithpersist','csLeft');break;}}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}}}