// if you can read this please go to // http://www.jacksonholetraveler.com/old_browser.shtml // or // Remove the "/include/.." reference in your location bar, // reload the main page and click through all the java errors. // // Viewing this document means that you may need to update // web browser. var V = navigator.appVersion.substring(0,1); // top.alert(navigator.appVersion +"\n"+ navigator.userAgent +"\n"+ navigator.appName); if (V < 4) { window.location.href = "/old_browser.shtml"; // top.alert("This browser is too old. Please upgrade your broser."); } else if (navigator.appName.indexOf("Netscape") > -1) { } else if (navigator.appName.indexOf("Explorer") > -1) { var T = navigator.appVersion.indexOf("MSIE"); T += 5; V = navigator.appVersion.substring(T,eval(T+1)); if (V < 5) { // top.alert( V + "Off"); } } // top.alert (V); function MM_showHideLayers() { //v3.0 var args=MM_showHideLayers.arguments; var brsr = 0; var ston = 0; var baser = 'base'; if (navigator.appName.indexOf("Netscape") > -1) { brsr = 1; } else if (navigator.appName.indexOf("Explorer") > -1) { if (V < 5) { return false; } brsr = 2; } if (args[0] == "TOPLINKS" || args[0] == "") { baser = 'TOPLINKS'; ston = 1; } if (brsr != 0) { for (i = ston; i<(args.length-1); i+=2) { var obj = args[i]; var vis = args[i+1]; if (brsr == 1) { if (baser == "TOPLINKS") { if (document.layers[obj]) document.layers[obj].visibility = vis; } else { if (document.layers[baser].document.layers[obj]) document.layers[baser].document.layers[obj].visibility = vis; } } if (brsr == 2) { if (document.all[obj]) { document.all[obj].style.visibility = vis; } } } } } function Swap_Img(LOC,IMG) { document.images[LOC].src = eval(IMG+".src"); } function Rot_Img () { var RAND = Math.round(Math.random() * 15) + 1 // document.images["head_img"].src = "/pics/rotation/jh_rot_",RAND,".jpg"; document.write("") } function GenerateSelected () { FORM = document.forms['generate'] var SHOW = "" for (i=0;i < FORM.elements.length;i=i+1) { var FNAME = FORM.elements[i].name if (FNAME.indexOf('x') == 0) { if (FORM.elements[i].checked) { if (SHOW.length == 0) { SHOW = FORM.elements[i].value } else { SHOW = SHOW +"|"+ FORM.elements[i].value } } } } if (SHOW.length < 1) { top.alert("You have no specials selected.\n \nSelect the checkbox in the specials \nyou want to generate as coupons.") } else { var loct = "/generate/?show="+ SHOW GenWin(loct) } } function galWin (FILE) { gallWin = window.open(FILE,"gallWin","width=605,height=450,toolbar=0,location=0,directories=0,status=1,menubar=1,resizable=0"); gallWin.focus(); } function VirtWin (FILE) { virtWin = window.open("virtual_tours/"+FILE,"newWin","width=605,height=450,toolbar=0,location=0,directories=0,status=1,menubar=1,resizable=0"); virtWin.focus(); } function GenWin (FILE) { generateWin = window.open(FILE,"generateWin","width=450,height=450,toolbar=1,location=0,directories=0,status=1,menubar=1,resizable=1,scrollbars=1"); generateWin.focus(); } function PopVirt () { if (location.search.indexOf(".shtml") > 0) { var VirtFile = location.search.substring(1,location.search.length); VirtWin(VirtFile); } } function CopyInformation (FLDS) { var This = document.forms['content'].elements['list_id'] var x = This.options[This.selectedIndex].value; // CopyWin = window.open("/?act=copy&list_id="+x+"&fields="+FLDS ,"CopyWin","width=200,height=20,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0"); CopyWin.focus(); } function PasteAll() { // opener.document.forms[PasteAll.arguments[0]].elements[PasteAll.arguments[i]].name for (var i=1; i < PasteAll.arguments.length; i+=2) { // top.alert(PasteAll.arguments[0] + " : " + PasteAll.arguments[i] + " = " + PasteAll.arguments[i+1] + "\n" + opener.document.forms[PasteAll.arguments[0]].name); opener.document.forms[PasteAll.arguments[0]].elements[PasteAll.arguments[i]].value = PasteAll.arguments[i+1]; } }