// script for Franchise Locator // function doMoveBrowser(form) { parent.location.href = form.gomenu.options[getSelectedValue()].value; } function getSelectedValue() { return document.form1.gomenu.selectedIndex } // script for Time // var day=""; var month=""; var ampm=""; var ampmhour=""; var myweekday=""; var year=""; mydate = new Date(); myday = mydate.getDay(); mymonth = mydate.getMonth(); myweekday= mydate.getDate(); weekday= myweekday; myyear= mydate.getYear(); year = myyear; myhours = mydate.getHours(); ampmhour = (myhours > 12) ? myhours - 12 : myhours; ampm = (myhours >= 12) ? ' PM' : ' AM'; mytime = mydate.getMinutes(); myminutes = ((mytime < 10) ? ':0' : ':') + mytime; if(myday == 0) day = " Sunday, "; else if(myday == 1) day = " Monday, "; else if(myday == 2) day = " Tuesday, "; else if(myday == 3) day = " Wednesday, "; else if(myday == 4) day = " Thurday, "; else if(myday == 5) day = " Friday, "; else if(myday == 6) day = " Saturday, "; if(mymonth == 0) { month = "January ";} else if(mymonth ==1) month = "February "; else if(mymonth ==2) month = "March "; else if(mymonth ==3) month = "April "; else if(mymonth ==4) month = "May "; else if(mymonth ==5) month = "June "; else if(mymonth ==6) month = "July "; else if(mymonth ==7) month = "August "; else if(mymonth ==8) month = "September "; else if(mymonth ==9) month = "October "; else if(mymonth ==10) month = "November "; else if(mymonth ==11) month = "December "; // Netscape 3.0 compat. test (for javascriptimage swapping) compat = false; if( parseInt( navigator.appVersion ) >=3 ) { compat = true; } // cache images if( compat ) { insured = new Image(123,42); insured.src = "http://www.servpro.com/images/menu_insured.jpg"; insuredhi = new Image(123, 42); insuredhi.src = "http://www.servpro.com/images/menu_insured_active.jpg"; business = new Image(123,42); business.src = "http://www.servpro.com/images/menu_business.jpg"; businesshi = new Image(123, 42); businesshi.src = "http://www.servpro.com/images/menu_business_active.jpg"; home = new Image(123,42); home.src = "http://www.servpro.com/images/menu_home.jpg"; homehi = new Image(123, 42); homehi.src = "http://www.servpro.com/images/menu_home_active.jpg"; opp = new Image(123,42); opp.src = "http://www.servpro.com/images/menu_opportunity.jpg"; opphi = new Image(123, 42); opphi.src = "http://www.servpro.com/images/menu_opportunity_active.jpg"; } // swap images using cached images function glow(x, y) { if( compat ){ document.images[x].src=eval(y+'.src'); } }