// Confirm a link before deletion function confirmLink(theLink,confirmMsg) { if (confirmMsg == '' || typeof(window.opera) != 'undefined') { return true; } var is_confirmed = confirm(confirmMsg); return is_confirmed; } // For off CP next/prev links function DetermineOffset (offsetnum) { document.sort.offset.value = offsetnum; document.sort.submit(); } // Hide E-mail address from spam-bots function sendMailTo(name, company, domain) { locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain; window.location.replace(locationstring); } function popUp(URL, id) { day = new Date(); if (id == null) { id = day.getTime(); } eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=790,height=500,left=265,top=212');"); } var sURL = ''; var root_image_folder = 'http://www.lasvegaspartytents.com/images/front_end/'; var site_image_folder = 'http://www.lasvegaspartytents.com/images/front_end/lvpt/'; function refresh_routine(no_close) { // This version of the refresh function will cause a new // entry in the visitor\'s history. It is provided for // those browsers that only support JavaScript 1.0. // //window.location.href = sURL; if (no_close == true) { if (parent.frames['main_frame']) { parent.frames['main_frame'].refresh(); } else { window.refresh(); } } if (parent.frames['main_frame']) { parent.frames['main_frame'].refresh(); if (close_override == false && (do_close == true || (window.opener && no_close != true && forward_url != null && is_add != true))) { window.close(); } return; } if (window.opener) { if (window.opener.top.frames.length > 0) { if (window.opener.top.frames['main_frame']) { window.opener.top.frames['main_frame'].refresh(); } else { window.opener.refresh(); } } } if (window.opener) { if (window.opener.is_window == true) { window.opener.refresh_routine(true); } else { } } if (close_override == false && (do_close == true || (window.opener && no_close != true && forward_url != null && is_add != true))) { window.close(); } } function refresh() { // This version of the refresh function will cause a new // entry in the visitor's history. It is provided for // those browsers that only support JavaScript 1.0. if (sURL != '') { window.location.href = sURL; } else { window.location.href = window.location.href; } } function close_nav () { if (parent.frames['main_frame']) { parent.cmHideMenuTime(); } else { return; } } // Open history window function remoteStart() { var remoteWin = null; remoteWin = window.open('','htRemote', 'toolbar=0,width=380,height=100,directories=0,status=0,scrollbars=0,menubar=0'); if (remoteWin != null) { if (remoteWin.opener == null) { remoteWin.opener = self; } remoteWin.location.href = "http://www.lasvegaspartytents.com/do.php?action=history_tracker"; } } // Used to encrypt all data fields function encrypt_data_fields (form) { // Define some common variables var fields_to_encrypt = form; var field_name; var field_data; // Start looping through the fields for (var loop = 0; loop \ .switchcontent{\ display:none;\ }\ ') var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off) var memoryduration="7" //persistence in # of days var contractsymbol='http://www.lasvegaspartytents.com/images/control_panel/icons/icon_minus.gif' //Path to image to represent contract state. var expandsymbol='http://www.lasvegaspartytents.com/images/control_panel/icons/icon_plus.gif' //Path to image to represent expand state. /////No need to edit beyond here ////////////////////////// function getElementbyClass(rootobj, classname){ var temparray=new Array() var inc=0 var rootlength=rootobj.length for (i=0; i0){ var el=document.getElementById(cid) el.style.display=(document.getElementById(cid).style.display!="none")? "none" : document.body.filters? "block" : el.tagName=="TR"? "table-row" : el.tagName=="TD"? "table-cell" : "block" curobj.src=(document.getElementById(cid).style.display=="none")? expandsymbol : contractsymbol } if (window.opera) saveswitchstate(); } function revivecontent(){ selectedItem=getselectedItem() selectedComponents=selectedItem.split("|") for (i=0; i 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function getselectedItem(){ if (get_cookie(script_pathname) != ""){ selectedItem=get_cookie(script_pathname) return selectedItem } else return "" } function saveswitchstate(){ var inc=0, selectedItem="" while (ccollect[inc]){ if (ccollect[inc].style.display!=="none") selectedItem+=ccollect[inc].id+"|" inc++ } if (get_cookie(script_pathname)!=selectedItem){ //only update cookie if current states differ from cookie's var expireDate = new Date() expireDate.setDate(expireDate.getDate()+parseInt(memoryduration)) document.cookie = script_pathname+"="+selectedItem+";path=/;expires=" + expireDate.toGMTString() } } function do_onload(){ uniqueidn=script_pathname+"firsttimeload" var alltags=document.all? document.all : document.getElementsByTagName("*") ccollect=getElementbyClass(alltags, "switchcontent") statecollect=getElementbyClass(alltags, "showstate") sweeptoggle('contract', 1) if (enablepersist=="on" && get_cookie(script_pathname)!="" && ccollect.length>0) revivecontent() if (ccollect.length>0 && statecollect.length>0) revivestatus() } if (window.addEventListener) window.addEventListener("load", do_onload, false) else if (window.attachEvent) window.attachEvent("onload", do_onload) else if (document.getElementById) window.onload=do_onload if (enablepersist=="on" && document.getElementById) window.onunload=saveswitchstate /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var menuwidth='165px' //default menu width var menubgcolor='lightyellow' //menu bgcolor var disappeardelay=0 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500 if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)