var onmenu=0; var killmenu=0; var upad=99; var load=99; bannerpass=1; thedivs=new Array("headlines","getonline","addnonprofit","calresult","locallinks","contactus","emailusdiv","emailusresult","services","legislators"); thedivs=new Array("headlines","getonline","addnonprofit","calresult","locallinks","contactus","emailusdiv","emailusresult","services","legislators","aboutus","housead"); emails=new Array("advertising","calendar","classified","delivery","editor","letters","news","sports","webhelp","patricec","rayr","cryan","thomasn","lynnc","toddc","marilyna","dodied","stevenp","sebastiant","jlemanski","michellef","chrisd","daniellef","jodi","entertowin"); ads=new Array("44-HELOC_700x90.gif","tricounty.jpg","lilypad.jpg","Potts_38992.swf"); adslinks=new Array("https://www.savingsinstitute.com/personal/loans/heloc-home-equity-loans","http://www.visionsource-tricountyvision.com","http://www.lilypadart.com/info.html","http://www.allstateagencies.com/CPotts/Welcome") adnames=new Array("Savings_Institute","Tricounty","Lily_Pad","Christine_Potts"); adsdisplay=0; adscount=0; ////////////////////////////////////////////////////////////////// function startpage() { ////////////////////////////////////////////////////////////////// //document.getElementById('contactsadv').style.display='none'; //document.getElementById('contactsnews').style.display='none'; dobannerads(); ////////////////////////////////////////////////////////////////// } ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// function startpagebn() { ////////////////////////////////////////////////////////////////// document.getElementById('contactsadv').style.display='none'; document.getElementById('contactsnews').style.display='none'; dobannerads(); ////////////////////////////////////////////////////////////////// } ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// function dobannerads() { ////////////////////////////////////////////////////////////////// it=document.getElementById('bannerad'); //it.innerHTML=bannerstring(adslinks[adsdisplay],ads[adsdisplay]); it.innerHTML=bannerstring(adslinks[adsdisplay],ads[adsdisplay],adnames[adsdisplay]); if(adsdisplay==ads.length-1) {adsdisplay=0;} else {adsdisplay++;} setTimeout("dobannerads()",15000); ////////////////////////////////////////////////////////////////// } ////////////////////////////////////////////////////////////////// /////////// MENU FUNCTIONS AND SHOWDIV function setkill() {killmenu=setTimeout(menukill, 250);} function clearkill() {if(killmenu) {clearTimeout(killmenu);killmenu=null;}} function menukill() {if(onmenu) onmenu.style.visibility='hidden';} //////////////////////////////////// function showmenu(id) { //////////////////////////////////// clearkill(); if(onmenu && id!='menu10') {onmenu.style.visibility='hidden';} // if(id!='menu1' && id!='menu8') {onmenu=document.getElementById(id);onmenu.style.visibility='visible';} // if(id!='menu8') {onmenu=document.getElementById(id);onmenu.style.visibility='visible';} onmenu=document.getElementById(id);onmenu.style.visibility='visible'; //////////////////////////////////// } //////////////////////////////////// //////////////////////////////////// function columnscrolls() { //////////////////////////////////// leftcol=document.getElementById('leftcol'); rightcol=document.getElementById('rightcol'); centercol=document.getElementById('centercol'); headerheight=document.getElementById('header').offsetHeight; footerheight=document.getElementById('footer').offsetHeight; thescroll = window.scrollY ? window.scrollY : document.documentElement.scrollTop; theheight = window.innerHeight; leftlimit = (headerheight + leftcol.offsetHeight) - theheight; rightlimit = (headerheight + rightcol.offsetHeight) - theheight; centerlimit= (headerheight + centercol.offsetHeight) - theheight; if(thescrollleftlimit) {leftcol.style.top = headerheight + (thescroll-leftlimit);} if(thescrollrightlimit) {rightcol.style.top = headerheight + (thescroll-rightlimit);} if(thescroll>centerlimit) {leftcol.style.top = (headerheight + (thescroll-leftlimit))-(thescroll-centerlimit); rightcol.style.top = (headerheight + (thescroll-rightlimit))-(thescroll-centerlimit);} //////////////////////////////////// } //////////////////////////////////// //////////////////////////////////// function showdiv(passed) { //////////////////////////////////// leftcol=document.getElementById('leftcol'); rightcol=document.getElementById('rightcol'); centercol=document.getElementById('centercol'); longerheight = leftcol.offsetHeight > rightcol.offsetHeight ? leftcol.offsetHeight : rightcol.offsetHeight; //if(centercol.offsetHeight ///////////////////// END EMBEDDING VIDEO AD STUFF } ///////////////////// /////////////////////////////////////// function bannerstring(pass,pass2,pass3) { // BANNERSTRING() /////////////////////////////////////// //bannerstr=''; bannerstr=''; pstr=pass2; if(pstr.indexOf('.swf')==-1) { bannerstr+=''; } else { // bannerstr+=''; // bannerstr+=pass2 +''; bannerstr+="Get Adobe Flash player"; } return bannerstr; /////////////////////////////////////// } // END BANNERSTRING() /////////////////////////////////////// ///////////////////////////// function emailto(pass) { ///////////////////////////// showdiv(6); document.forms.emailusform.addressee.value=emails[pass] + '@thechronicle.com'; if(pass!=24) {document.forms.emailusform.firstname.focus();} mailcap=document.getElementById('mailcaption'); //mailcap.innerHTML='
Use the form below to send your message'; mailcap.innerHTML='
Use the form below to send your message, or email:
' + emails[pass] + '@thechronicle.com'; emailuscap=document.getElementById('emailuscap'); emailuscap.innerHTML='Email the Chronicle'; if(pass==3) {document.forms.emailusform.subject.value='Chronicle home delivery';emailuscap.innerHTML='Home delivery questions?';mailcap.innerHTML='Have questions about getting the Chronicle delivered? Send us a note, we\'ll be glad to help you out. Use the form below or email delivery@thechronicle.com';} if(pass==24) {document.forms.emailusform.subject.value='Enter me in the Home Show Ticket Contest';emailuscap.innerHTML='Win tickets to the Spring Home Show';mailcap.innerHTML='Enter to win tickets to the Spring Home Show at the XL Center, March 27-29. Provide your mailing address and phone number in the message for a chance to win. Use the form below or email entertowin@thechronicle.com';} ///////////////////////////// } ///////////////////////////// ///////////////////////////// function CheckForm() { ///////////////////////////// it=document.forms.emailusform; if(!it.addressee.value) {alert('Please enter an addressee in the "To:" field.\r\nYou may wish to click "Contact Us" again and start over.');it.addressee.focus();return false;} if(!it.firstname.value) {alert('Please enter a first name.');it.firstname.focus();return false;} if(!it.lastname.value) {alert('Please enter a last name.');it.lastname.focus();return false;} if(it.eaddress.value&&it.eaddress.value.indexOf('@')==-1||it.eaddress.value&&it.eaddress.value.indexOf('.')==-1) {alert('It appears you\'ve entered an invalid email address.');it.eaddress.focus();return false;} if(it.message.value==" ") {alert('Please enter a message.');it.message.value="";it.message.focus();return false;} if(!it.message.value) {alert('Please enter a message.');it.message.value="";it.message.focus();return false;} ///////////////////////////// } ///////////////////////////// ///////////////////////////// function CheckFormCal() { ///////////////////////////// it=document.forms.strform; if(!it.eventtxt.value) {alert('Please enter an Event for us to list.');it.eventtxt.focus();return false;} if(!it.descriptiontxt.value) {alert('Please enter the pertinent information in the "Description" field.');it.descriptiontxt.focus();return false;} ///////////////////////////// } ///////////////////////////// function toggle(pass) {document.getElementById(pass).style.display = document.getElementById(pass).style.display=='none' ? 'block' : 'none';} ////////////////////////////// function outgoing(name,thelink) {window.open("clicklink/outgoing.php?name="+name+"&thelink="+thelink);} function killbreaking() {document.getElementById('breaking').style.display='none';} document.onclick = menukill; document.onscroll = columnscrolls;