function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}}mycookieval=readCookie("CSDemos");myfirst=readCookie("CSDemos")+"|end";myfirst=myfirst.substring((myfirst.indexOf("nameFirst:"))+10,(myfirst.indexOf("|")));function newCookie(B,C,A){if(!A){A=new Date()}document.cookie=B+"="+escape(C)+"; expires="+A.toGMTString()+"; path=/; domain=.autonews.com"}function killCookie(){var A=new Date();A.setTime(A.getTime()+(1000*60*1*1*1));newCookie("CSDemos","",A);winlocation="https://home.autonews.com/clickshare/logout.do?CSTargetURL="+window.location.href;window.location.href=winlocation}function setStyleSheet(C,G,B){if(!C){alert("cssRootId variable must be set");return}if(!document.getElementById(C)){alert('No ID matching "'+C+'" has been found.');return}var F=document.getElementById(C);if(F.nodeName!="LINK"){alert('"'+C+'" must be an ID attribute on a <UL> tag');return}F.setAttribute("href",G);var A=B.parentNode.parentNode;var E=A.getElementsByTagName("A");for(var D=0;D<E.length;D++){E[D].className=""}B.className="font_sizer_active"}function noFlicker(){try{document.execCommand("BackgroundImageCache",false,true)}catch(A){}}function toggle_sitemap(B,A){var C=document.getElementById(A);if(!C){return}if(C.style.display=="none"){C.style.display="block";B.innerHTML="Site Index [-]"}else{C.style.display="none";B.innerHTML="Site Index [+]"}};