// MODIFIED 07/21/08 MR. VB FOR QUICK MESSAGE DROP-DOWN // INSTRUCTIONS: // 1) GO DOWN TO WHERE IT SAYS ---- EDIT BELOW THIS LINE---- // 2) Set TurnOn = '1'; // 3) headInfo is the heading lines. // 4) bodyInfo is the message body text. // // DROP-DOWN WILL APPEAR ONCE PER DAY ON MAYOR.HTML HOME PAGE AFTER 07/24/08 FEMA/DEC MESSAGE. // // AND PLACE YOUR HTML TEXT BETWEEN THE '' --- // ---- EDIT BELOW THIS LINE ---- ************************************************************************************* var MessageType = 'Message9'; var TurnOn = '0'; // SET TurnOn TO '1' TO ACTIVATE POPUP BOX. '0' TO TURN OFF. var headInfo = 'Heading Text Line 1
Heading Text Line 2'; var bodyInfo = 'Begin-Message Text Line 1 Message Text Line 1-End
Begin-Message Text Line 2 Message Text Line 2-End'; // ---- DO NOT EDIT BELOW THIS LINE--------------------------------------------------------------------------------- // //------------------------------------------------------------------------------------------------------------------ // //function getCookieValue(varname) { // varname += "="; // startpos = document.cookie.indexOf(varname); // if (startpos >= 0) { // startpos += varname.length; // endpos = document.cookie.indexOf(";", startpos); // if (endpos == -1) endpos = document.cookie.length; // return document.cookie.substring(startpos, endpos); // } //} function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } var ie=document.all var dom=document.getElementById var ns4=document.layers var bouncelimit=32 //(must be divisible by 8) var direction="left" var todaydate = new Date(); var visitdate = new Date(); //var rvcvisit = getCookieValue(MessageType); function initbox(){ if (!dom&&!ie&&!ns4) return cen=(ie)? document.body.clientWidth/4 : (dom)?window.innerWidth/4 : window.innerWidth/4 //2-155 crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin scroll_top=(ie)? document.body.scrollTop : window.pageYOffset crossobj.top=scroll_top-300 //200//250 crossobj.width=650 //410 750 crossobj.left=cen/2 crossobj.visibility=(dom||ie)? "visible" : "show" dropstart=setInterval("dropin()",50) } function dropin(){ scroll_top=(ie)? document.body.scrollTop : window.pageYOffset if (parseInt(crossobj.top)<125+scroll_top) crossobj.top=parseInt(crossobj.top)+40 else{ clearInterval(dropstart) bouncestart=setInterval("bouncein()",50) } } function bouncein(){ crossobj.top=parseInt(crossobj.top)-bouncelimit if (bouncelimit<0) bouncelimit+=8 bouncelimit=bouncelimit*-1 if (bouncelimit==0){ clearInterval(bouncestart) } } function dismissbox(){ if (window.bouncestart) clearInterval(bouncestart) crossobj.visibility="hidden" } function dismissopen(sendit){ if (window.bouncestart) clearInterval(bouncestart) crossobj.visibility="hidden" ///window.open('PSC_WEB.html') window.location = sendit; //For local link //window.open(sendit,'_blank'); //For External Link } function updateWin(url) { updateWindow = window.open(url,'update','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=455,height=570'); } function openindex(width,height,theurl) { OpenWindow=window.open(theurl, "newwin", "height="+height+", width=" + width + ",toolbar=no,scrollbars=" + 1 + ",menubar=no,resizable=yes"); self.name="main"; } function doPopup() { // start var monthstr = "JanFebMarAprMayJunJulAugSepOctNovDec"; var date = visitdate.getDate(); var monthint = visitdate.getMonth() * 3; var month = monthstr.substring(monthint, monthint + 3); var year = visitdate.getYear(); var monthnum = visitdate.getMonth() + 1; var daynum = visitdate.getDay(); var yearnum = year; yearnum=yearnum+''; monthnum=monthnum+''; daynum=daynum+''; if (monthnum.length == 1) { monthnum='0'+monthnum;} if (daynum.length == 1) { daynum='0'+daynum;} tdate=yearnum+monthnum+daynum; //if ((rvcvisit == null) && (tdate > '20040301') && (tdate < '20040326')) { //if (rvcvisit == null) { // rvcvisit = 0; // visitdate.setTime(0); //START //---New Date Range Checking------- var myDate1=new Date(); var myDate2=new Date(); //var myDate3=new Date(); myDate1.setFullYear(2010,7-1,29); myDate2.setFullYear(2008,10-1,13); //myDate3.setFullYear(2008,12-1,14); var today = new Date(); if (today<=myDate1) { //Before Target date //var info = '

2010 Spring Hydrant Flushing

To All Village Residents:

The Rockville Centre Water Department has scheduled the spring hydrant flushings for Wednesday, April 14 through Tuesday, April 20. The flushing of hydrants may cause some fluctuation in water pressure and may cause discolored water to flow into homes and businesses.

     Though the water is both chemically and bacteriologically safe to drink, the discoloration could stain laundry. Consumers are advised not to schedule projects which require clear water during the entire flushing period.

Click here for more information

'; //var info = '

2010 Spring Hydrant Flushing

To All Village Residents:

The Rockville Centre Water Department has scheduled the spring hydrant flushings for Wednesday, April 14 through Tuesday, April 20. The flushing of hydrants may cause some fluctuation in water pressure and may cause discolored water to flow into homes and businesses.

     Though the water is both chemically and bacteriologically safe to drink, the discoloration could stain laundry. Consumers are advised not to schedule projects which require clear water during the entire flushing period.

Click here for more information

'; //var info = '

Final Budget Hearing
Village Hall

Apr 19,2010 @ 7:00 PM

 


 

'; var info = '

Continental Youth Championships Parade
The CYC parade is scheduled for
Thursday, 7/29/10 at 6:50 PM.

The parade route is N. Forest Ave, west bound to Maple Ave,
northbound on N. Park Are, westbound on College and Quealy Place.
The roads will be closed from about 6:50 P.M. to end of parade at 9:00 P.M. North Village Ave. will remain open for access to the Train Station.

'; } else { //On or after target date var info = ''; } // var info='
DEC

Flood Insurance Map Meeting

Thursday, July 24
4 to 9 P.M.

Click here for information
 

'; // var info='

←Click on the flag for more information.
Fireworks canceled due to inclimate weather
              
'; // var info='

'+headInfo+'


'+bodyInfo; // info = info + '


 

'; // var info='

Environmental Clean-up
at Darby Drug Site

Public Meeting Held on June 10, 2008 8 P.M.
Village Hall.

Darby Drug Site Documents
Ask a Question Online
 

'; // var info='
Cardboard Recycling

Beginning Wednesday, 11/28:
Residents may put out corrugated
boxes along with their newspaper
for recycling.

Cardboard may either be collapsed and tied
into bundles or stuffed inside a larger
cardboard box and left at the curbside
for pick-up.

 

'; if (ie) { document.all.dropin.innerHTML = info; document.all.dropin.left='200'; } else if (ns4) { document.layers['dropin'].document.open(); document.layers['dropin'].document.write(info); document.layers['dropin'].document.close(); } else if (dom) { document.getElementById('dropin').innerHTML= info; } // initbox(); //END //window.open("popup_2.htm","popup2","Width=550,Height=350"); //location.href="http://www.ci.rockville-centre.ny.us/"; //} else { // visitdate.setTime(rvcvisit); //} var x = readCookie('rvccookie'); if (x) { //do nothing } else { //alert(url); createCookie('rvccookie','onceperbrwsr',0); initbox(); } } //var today = todaydate.getTime(); // check for at least 1 hour elapsing before updating //alert(yearnum+monthnum+daynum); // 3600000 //if ((today - rvcvisit) > 1800000) { // var expires = new Date(); // set expiry to 12 hours 43200000 [ 12hrs*60 1 month ] // expires.setTime(today + 43200000); // document.cookie = MessageType + "=" + today + "; expires=" + //Expires.toGMTString(); //}