window.onresize = rePos; isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false; IEmac = ((document.all)&&(isMac)) ? true : false; if (!document.getElementById || IEmac == true) window.location="/browserupgrade.php"; if(navigator.userAgent.indexOf("Safari/") >= 0) { var safariArray = navigator.userAgent.split("Safari/"); var safariArray = parseInt(safariArray[1]); if(safariArray < 125) window.location="/browserupgrade.php"; } var TheBrowserName = navigator.appName; var TheBrowserVersion = parseFloat(navigator.appVersion); //tem pagename code function pageName(page) { document.write('
welcome TEM employee
'); document.write('page: ' + page + '
'); document.write('remove this text
'); } function cookieControl(cookie) { //set cookie if(cookie == 'on') { var days = 60; var expires = new Date (); expires.setTime(expires.getTime() + days * (24 * 60 * 60 * 1000)); document.cookie = 'temcookie=true;path=/;expires=Thu, 01-Jan-2005 00:00:01 GMT'; } else { var today = new Date(); var expires = new Date(today.getTime() - 48 * 60 * 60 * 1000); // set back 2 days document.cookie = 'temcookie=true;expires=' + expires.toGMTString(); var sURL = unescape(window.location.pathname); window.location.href = sURL; } } //tem pagename code function rolloverImage(cellName, imageName){ // usage -- if(document.images){ document[cellName].src = imageName; } } function ResetForm(formname){ // usage -- href="javascript:ResetForm('formname');" document.forms[formname].reset(); } function SubmitForm(formname){ // usage -- href="javascript:SubmitForm('formname');" document.forms[formname].submit(); } function thumbSwap(theImage) { // usage: onError="imgSwap(this)" theImage.src = 'notbroken.gif'; } function imgSwap(theImage){ theImage.src = '/spacer.gif'; } var MM_contentVersion = 6; var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if ( plugin ) { var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; var MM_PluginVersion = words[i]; } var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion; FlashMode = 0; if (navigator.plugins && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash"]) { var plugin_version = 0; var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; plugin_version = words[i]; } if (plugin_version >= 6) { var plugin = navigator.plugins["Shockwave Flash"]; var numTypes = plugin.length; for (j = 0; j < numTypes; j++) { mimetype = plugin[j]; if (mimetype) { if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1)) // Mac wierdness FlashMode = 1; if (navigator.mimeTypes["application/x-shockwave-flash"] == null) FlashMode = 0; } } } } } if (FlashMode == 1) var MM_FlashCanPlay = true; else var MM_FlashCanPlay = false; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { document.write(' \n'); //FS hide this from IE4.5 Mac by splitting the tag document.write('on error resume next \n'); document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n'); document.write(' \n'); } function dynWin(url,name,width,height) { window.open(url, name, "toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=" + width + ",height=" + height + ",top=5,left=5"); } //repositioning code var isDHTML = 0; var isLayers = 0; var isAll = 0; var isID = 0; if (document.getElementById) { isID = 1; isDHTML = 1; } else { if (document.all) { isAll = 1; isDHTML = 1; } } function findDOM(objectID,withStyle) { if (withStyle == 1) { if (isID) { return (document.getElementById(objectID).style) ; } else { if (isAll) { return (document.all[objectID].style); } } } else { if (isID) { return (document.getElementById(objectID)); } else { if (isAll) { return (document.all[objectID]); } } } } function findBottom(objectID) { var domStyle = findDOM(objectID,1); var dom = findDOM(objectID,0); if (domStyle.top) return (domStyle.top + domStyle.clip.height); if (domStyle.pixelTop) return (domStyle.pixelTop + dom.offsetHeight); if (dom.offsetTop) return (dom.offsetTop + dom.offsetHeight); return (null); } function rePos() { var domStyle = findDOM('txtarea',1); var domStyle3 = findDOM('maintext',1); var domStyle4 = findDOM('seo_gradient',1); var domStyle5 = findDOM('footerbg',1); bottomPos = findBottom('bottom') + 110; //var domStyle2 = findDOM('bottom',1); var docWidth = document.getElementById("body").offsetWidth; if(docWidth > 1015) { domStyle.top = 100; domStyle.left = 755; //var offsetRight = docWidth - 800; domStyle.width = 215; domStyle.background = "url(http://gaimgs.getauto.com/imgs/design/ag/agonyx/autoblue/1024-shadow-tile.gif) repeat-y #ffffff"; domStyle3.width = 190; domStyle3.marginTop = -10; domStyle3.marginLeft = 10; domStyle4.width = 215; domStyle4.marginTop = 0; domStyle4.marginLeft = 0; domStyle5.width = 685; domStyle5.marginLeft = 40; domStyle5.background = "url(http://gaimgs.getauto.com/imgs/design/ag/gabandit/banditblue/gradient-divider688x102.jpg) no-repeat"; //domStyle2.top = bottomPos - 10; } else { domStyle.top = bottomPos - 3; domStyle.left = 0; domStyle.width = 775; domStyle.background = "url(http://gaimgs.getauto.com/imgs/design/ag/gabandit/banditblue/bodytile-775x2.jpg) repeat-y"; domStyle.zIndex = 100; domStyle3.width = 640; domStyle3.marginLeft = 20; domStyle4.width = 685; domStyle4.marginLeft = 40; domStyle4.background = "url(http://gaimgs.getauto.com/imgs/design/ag/gabandit/banditblue/gradient-divider688x102.jpg) no-repeat"; domStyle5.width = 685; domStyle5.marginLeft = 40; domStyle5.background = "url(http://gaimgs.getauto.com/imgs/design/ag/gabandit/banditblue/gradient-divider688x102.jpg) no-repeat"; var idHeight = document.getElementById("txtarea").offsetHeight; var botHeight = idHeight + bottomPos; //var domStyle2 = findDOM('bottom',1); // domStyle2.top = botHeight; } } //repositioning code function RunFlashHeader(flashtext,size,color2,scale,line,domain) { flashVersion = 'v002'; if (domain == null || domain == "undefined" || domain.length == 0) { var domain = ''; } switch (size) { case 'sm': var width = '205'; break case 'md': var width = '250'; break case 'lg': var width = '680'; break default : var width = '250'; } var height = '20'; var color1 = '5294d0'; var swf_path = domain + 'swf/header' + width + 'x' + height + '.swf'; var flashParams = '?header=' + flashtext + '&size=' + scale; document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); } function flashNav(homeURL,browseURL,sellURL,dealersURL,leadsURL,aboutURL,contactURL,searchURL,leadsURL,dealersearchURL,rvsearchURL) { flashParams = '?homeURL=' + homeURL + '&browseURL=' + browseURL + '&dealersURL=' + dealersURL + '&leadsURL=' + leadsURL + '&aboutURL=' + aboutURL + '&contactURL=' + contactURL + '&searchURL=' + searchURL + '&leadsURL=' + leadsURL + '&dealersearchURL=' + dealersearchURL + '&rvsearchURL=' + rvsearchURL ; document.write(' '); document.write(' '); document.write(' '); } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i