function setCookie(g,i,e){var c=new Date();c.setDate(c.getDate()+e);var j="/";var f=new String(window.location);var h=f.substring(7,f.indexOf(".com/"));h=h.substring(h.lastIndexOf(".")+1,h.length)+".com";var a=f.substring(7,f.indexOf(".com/"))+".com";document.cookie=g+"="+i+";expires="+c.toGMTString()+";path="+j+";host="+a+";false";}function getCookie(c){var f=" "+document.cookie;var e=" "+c+"=";var g=null;var h=0;var a=0;if(f.length>0){h=f.indexOf(e);if(h!=-1){h+=e.length;a=f.indexOf(";",h);if(a==-1){a=f.length;}g=unescape(f.substring(h,a));}}return(g);}var dealerZip=true;function browserStats(){var a=" "+navigator.userAgent.toLowerCase();this.nn=a.indexOf("mozilla")>0;this.safari=a.indexOf("safari")>0;a.indexOf("compatible")>0?this.nn=false:"";this.ie=a.indexOf("msie")>0;this.version=parseInt(navigator.appVersion);this.mac=a.indexOf("mac")>0;this.ie?a.indexOf("msie 5")>0?this.version=5:"":"";this.ie?a.indexOf("msie 6")>0?this.version=6:"":"";return this;}var b=new browserStats();function getDomain(a){var f=document.location.href;var e="";var c="chrysler.com";if(f.indexOf("iw-mount")>=0||f.indexOf("organic")>=0){e="";}else{if(f.indexOf("://test")>=0){e="http://test";}else{if(f.indexOf("://uat")>=0){e="http://uat";}else{e="http://www";}}}if(e!=""){e=e+"."+c;}if(a){if(a.indexOf("javascript:")>=0||a.indexOf("/")!=0){return a;}else{return e+a;}}else{return e;}}function getDomainImg(c){var g=document.location.href;var e=getDomain();var f="";if(g.indexOf("-5")>=0){f=g.indexOf("https:")>=0?"https://":"http://";if(f=="https://"){var a=e.split("://")[1];a=a.replace(/\./,"-5.");e=f+a;}}return e;}function invokeURL(a){window.location=getDomain(a);}var cssPath=getDomainImg()+"/css/",cssFile;b.nn&&b.version>=5?cssFile="netscape_font_adjust.css":"";b.ie?cssFile="ie_font_adjust.css":b.mac&&b.ie&&b.version>=5?cssFile="mac_ie_font_adjust.css":"";b.mac&&b.safari?cssFile="safari_font_adjust.css":"";var fullCssPath=cssPath+cssFile;if(b.nn&&b.version<5){widthCheck=window.innerWidth;heightCheck=window.innerHeight;window.onresize=resizeFix;}function resizeFix(){widthCheck!=window.innerWidth||heightCheck!=window.innerHeight?window.location.reload(true):"";}function trackHit(){_hbSend();}function trackNamedHit(f,a){var g=/ /g;var c=f.replace(g,"+");var e=a.replace(g,"+");_hbSet("lid",c);_hbSet("lpos",e);trackHit();}var d=document;var _a=(d.all)?1:0;var l=(!d.getElementById&&b.nn)?1:0;function getE(c,a){if(l){a=(a)?a:self;V=a.document.layers;if(V[c]){return V[c];}for(W=0;W<V.length;){t=getE(c,V[W++]);}return t;}if(_a){return d.all[c];}return d.getElementById(c);}function showE(a){a=getE(a);if(l){a.visibility="show";}else{a.style.visibility="visible";}}function hideE(a){a=getE(a);if(l){a.visibility="hide";}else{a.style.visibility="hidden";}}function getX(a){a=getE(a);if(l){return a.left;}else{return a.style.left;}}function setX(c,a){c=getE(c);if(l){c.left=a;}else{c.style.left=a;}}function getY(a){a=getE(a);if(l){return a.top;}else{return a.style.top;}}function setY(a,c){a=getE(a);if(l){a.top=c;}else{a.style.top=c;}}function setZ(a,c){a=getE(a);if(l){a.zIndex=c;}else{a.style.zIndex=c;}}function setW(c,a){c=getE(c);if(l){c.clip.width=a;}else{c.style.width=a;}}function getW(a){a=getE(a);if(l){return a.document.width;}if(_a){return a.scrollWidth;}return a.offsetWidth;}function setH(c,a){c=getE(c);if(l){c.clip.height=a;}else{c.style.height=a;}}function getH(a){a=getE(a);if(l){return a.document.height;}if(_a){return a.scrollHeight;}return a.offsetHeight;}function setC(h,f,g,c,a){h=getE(h);if(l){X=h.clip;X.top=f;X.right=g;X.bottom=c;X.left=a;}else{h.style.clip="rect("+f+" "+g+" "+c+" "+a+")";}}function writeH(c,a){c=getE(c);if(l){Y=c.document;Y.write(a);Y.close();}else{c.innerHTML=a;}trackHit();}function getMouseX(a){if(_a){return event.clientX;}return a.pageX;}function getMouseY(a){if(_a){return event.clientY;}return a.pageY;}function getScrollX(){if(_a){return d.body.scrollLeft;}return window.pageXOffset;}function getScrollY(){if(_a){return d.body.scrollTop;}return window.pageYOffset;}var path=location.pathname;if((path.indexOf("/es/")>=0)||(path.indexOf("/mktcode/index.html")>=0)){}else{onload_register("setup_menus()");}
