document.write(""); document.write(""); document.write(""); //Detect browser var tourbook_browserName; var tourbook_browserVersion; var tourbook_ieworkaround=false; preload_image0 = new Image(25,25); preload_image0.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/welcome.jpg';preload_image1 = new Image(25,25); preload_image1.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/qualityo.jpg';preload_image2 = new Image(25,25); preload_image2.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/realesta.jpg';preload_image3 = new Image(25,25); preload_image3.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/educatio.jpg';preload_image4 = new Image(25,25); preload_image4.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/parksand.jpg';preload_image5 = new Image(25,25); preload_image5.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/redevelo.jpg';preload_mimage = new Image(25,25); preload_mimage.src='http://www.hampdentownship.us/wp-content/themes/hampden/img/main.jpg';function ellwriteImageToDiv(imageName, width, height, xPos, yPos, divName, linkNameVar){ if(browserName=="Explorer"){ if( Number(browserVersion<7)){ if(linkNameVar!="") document.getElementById(divName).innerHTML+=''; else document.getElementById(divName).innerHTML+=''; return; } } if(linkNameVar!="") document.getElementById(divName).innerHTML+=""; else document.getElementById(divName).innerHTML+=""; } function elloverwriteImageToDiv(imageName, width, height, xPos, yPos, divName, linkNameVar){ if(browserName=="Explorer"){ if( Number(browserVersion<7)){ if(linkNameVar!="") document.getElementById(divName).innerHTML=''; else document.getElementById(divName).innerHTML=''; return; } } if(linkNameVar!="") document.getElementById(divName).innerHTML=""; else document.getElementById(divName).innerHTML=""; } var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; browserName=this.browser; browserVersion=this.version; }, searchString: function (data) { for (var i=0;i
'); ellwriteImageToDiv("http://www.hampdentownship.us/wp-content/themes/hampden/img/horiz_leftside.png", 16, 337, 0,0, "tourbookdiv", ""); ellwriteImageToDiv("http://www.hampdentownship.us/wp-content/themes/hampden/img/horiz_middle.png", 284, 337, 16,0, "tourbookdiv", ""); ellwriteImageToDiv("http://www.hampdentownship.us/wp-content/themes/hampden/img/horiz_rightside.png", 16, 337, 300,0, "tourbookdiv", ""); document.getElementById("tourbookdiv").innerHTML+="
"; document.getElementById("tourbookdiv").innerHTML+="
"; document.getElementById("tourbookdiv").innerHTML+="
"; document.getElementById("tourbookdiv").innerHTML+="
";document.getElementById('tourbook_col1').innerHTML+='
Welcome
';document.getElementById('tourbook_col1').innerHTML+='
Quality of Life
';document.getElementById('tourbook_col1').innerHTML+='
Real Estate and Relocation
';document.getElementById('tourbook_col1').innerHTML+='
Education
'; ellwriteImageToDiv("http://www.hampdentownship.us/wp-content/themes/hampden/img/main.jpg", 298, 168, 0,0, "photodiv", ""); document.getElementById("tourbookdiv").innerHTML+=""; document.getElementById('tourbook_col2').innerHTML+='
Parks and Recreation
';document.getElementById('tourbook_col2').innerHTML+='
Redevelopment
';if(document.getElementById("tourbook_col2")) document.getElementById("tourbook_col2").innerHTML+="

"; if(document.getElementById("tourbook_col3")) document.getElementById("tourbook_col3").innerHTML+="

"; if(document.getElementById("col4")) document.getElementById("col4").innerHTML+="

"; function elltour_over(row, col, textval){ elloverwriteImageToDiv(textval, 298, 168, 0,0, "photodiv", ""); cc=0; i=1; while(i<5){ if (document.getElementById(i+"-"+cc)) document.getElementById(i+"-"+cc).style.backgroundColor=""; cc++; if(cc%4==0){ i++; } } document.getElementById(row+"-"+col).style.backgroundColor="#c5e5ff"; } function elltour_out(){ elloverwriteImageToDiv("http://www.hampdentownship.us/wp-content/themes/hampden/img/main.jpg", 298, 168, 0,0, "photodiv", ""); cc=0; i=1; while(i<5){ if (document.getElementById(i+"-"+cc)) document.getElementById(i+"-"+cc).style.backgroundColor=""; cc++; if(cc%4==0){ i++; } } } function setTourbookTextPosition(){ if(document.getElementById("1-0")) document.getElementById("1-0inner").style.top=((document.getElementById("1-0").offsetHeight-document.getElementById("1-0inner").offsetHeight)/2)+"px"; if(document.getElementById("1-1")) document.getElementById("1-1inner").style.top=((document.getElementById("1-1").offsetHeight-2-document.getElementById("1-1inner").offsetHeight)/2)+"px"; if(document.getElementById("1-2")) document.getElementById("1-2inner").style.top=((document.getElementById("1-2").offsetHeight-2-document.getElementById("1-2inner").offsetHeight)/2)+"px"; if(document.getElementById("1-3")) document.getElementById("1-3inner").style.top=((document.getElementById("1-3").offsetHeight-2-document.getElementById("1-3inner").offsetHeight)/2)+"px"; if(document.getElementById("2-4")) document.getElementById("2-4inner").style.top=Math.floor(((document.getElementById("2-4").offsetHeight-document.getElementById("2-4inner").offsetHeight)/2))+"px"; if(document.getElementById("2-5")) document.getElementById("2-5inner").style.top=Math.floor(((document.getElementById("2-5").offsetHeight-2-document.getElementById("2-5inner").offsetHeight)/2))+"px"; if(document.getElementById("2-6")) document.getElementById("2-6inner").style.top=Math.floor(((document.getElementById("2-6").offsetHeight-2-document.getElementById("2-6inner").offsetHeight)/2))+"px"; if(document.getElementById("2-7")) document.getElementById("2-7inner").style.top=Math.floor(((document.getElementById("2-7").offsetHeight-2-document.getElementById("2-7inner").offsetHeight)/2))+"px"; if(document.getElementById("3-8")) document.getElementById("3-8inner").style.top=((document.getElementById("3-8").offsetHeight-document.getElementById("3-8inner").offsetHeight)/2)+"px"; if(document.getElementById("3-9")) document.getElementById("3-9inner").style.top=((document.getElementById("3-9").offsetHeight-3-document.getElementById("3-9inner").offsetHeight)/2)+"px"; if(document.getElementById("3-10")) document.getElementById("3-10inner").style.top=((document.getElementById("3-10").offsetHeight-3-document.getElementById("3-10inner").offsetHeight)/2)+"px"; if(document.getElementById("3-11")) document.getElementById("3-11inner").style.top=((document.getElementById("3-11").offsetHeight-3-document.getElementById("3-11inner").offsetHeight)/2)+"px"; if(document.getElementById("4-12")) document.getElementById("4-12inner").style.top=((document.getElementById("4-12").offsetHeight-document.getElementById("4-12inner").offsetHeight)/2)+"px"; if(document.getElementById("4-13")) document.getElementById("4-13inner").style.top=((document.getElementById("4-13").offsetHeight-3-document.getElementById("4-13inner").offsetHeight)/2)+"px"; if(document.getElementById("4-14")) document.getElementById("4-14inner").style.top=((document.getElementById("4-14").offsetHeight-3-document.getElementById("4-14inner").offsetHeight)/2)+"px"; if(document.getElementById("4-15")) document.getElementById("4-15inner").style.top=((document.getElementById("4-15").offsetHeight-3-document.getElementById("4-15inner").offsetHeight)/2)+"px"; } var TourbookPreScriptLoad = window.onload; window.onload = function() { if (typeof (TourbookPreScriptLoad) == 'function') { TourbookPreScriptLoad(); } setTourbookTextPosition(); }; function ellOpenWindow(url, w, h) {var windowprops = "width=" + w + ",height=" + h+", scrollbars=yes";popup = window.open(url,"remote",windowprops);}