// functions var checkState = false; function toggleCheckboxState(cbName) { checkState = !checkState; for (i = 0; i < cbName.length; i++) { cbName[i].checked = checkState; } return checkState; } // Cookie functions function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + value + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) { return null; } } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return dc.substring(begin + prefix.length, end); } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } function checkNSet(name, value, expires, path, domain, secure) { if (!getCookie(name)) { setCookie(name, value, expires, path, domain, secure) } } // rollover functions function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i0; var isNav = navigator.appName.indexOf("Netsc")>=0; var myWA=''; /* Disable MyWa ************************************************************************************* var mwUser = getCookie("myWAuser") var mwUID = getCookie("myWAuid") myWA = myWA + '
'; if (mwUID>0) { myWA = myWA + 'Hello ' + mwUser + '!

' + ' - <' + 'a style="color:white; " href="/myWA">View My Washington

' + ' - <' + 'a style="color:white; " href="/myWA/Logout.aspx">Log out

' + ' - <' + 'a style="color:white; " href="/myWA/AddPage.aspx' + '?cat= ' + mwCat + '&title=' + escape(document.title) + '">Add this page to My Washington' + '
' + '

'; } else { myWA = myWA + '
' + '' + '' + '' + '' + '' + '' + '' + '
 
User Name:
 
Password:
myWashington allows you to store and print items, or create and share your own itineraries.' + '
<' + 'a class=myWAlink href="/myWA/Register.aspx">Register here' + '
' + '
'; } myWA = myWA + '
'; // *******************************************************************************************************/ //* Popup Survey Code ********************************************************************************* function openpopup() { var popurl="/surveyinvitation.html" winpops=window.open(popurl,"","width=790,height=200,") } function loadornot() { var numDaysTillNextPopup = 90; // Only show popup once every 90 days var popupFrequency = 10; // Popup only has a 1 out of 10 chance of showing... var numMillisecsInDay = 1000 * 60 * 60 * 24; var strCookieName = "surveyPopup"; if (!Math.floor(Math.random()*popupFrequency) && // Only show popup randomly.., getCookie(strCookieName) == null && document.location.href.indexOf("/admin") == -1) // Not in admin site { openpopup(); var objExpiresTime = new Date(); objExpiresTime.setTime(objExpiresTime.getTime()+ (numMillisecsInDay * numDaysTillNextPopup)); setCookie(strCookieName, "yes", objExpiresTime.toUTCString(), "/", "", ""); } } loadornot()