// Generated using NetSyndic 1.0.1.
// See http://www.thesitewizard.com/netsyndic/ for more information
// on how to create your own JavaScript to syndicate your articles.
document.write( "<script type=\"text/javascript\">\n" );
document.write( "\n" );
document.write( "/***********************************************\n" );
document.write( "* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)\n" );
document.write( "* This notice MUST stay intact for legal use\n" );
document.write( "* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code\n" );
document.write( "***********************************************/\n" );
document.write( "\n" );
document.write( "var delay = 3000; //set delay between message change (in miliseconds)\n" );
document.write( "var maxsteps=30; // number of steps to take to change from start color to endcolor\n" );
document.write( "var stepdelay=40; // time in miliseconds of a single step\n" );
document.write( "//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect\n" );
document.write( "var startcolor= new Array(0,0,0); // start color (red, green, blue)\n" );
document.write( "var endcolor=new Array(255,255,255); // end color (red, green, blue)\n" );
document.write( "\n" );
document.write( "var fcontent=new Array();\n" );
document.write( "begintag='<div style=\"font: normal 12px Verdana; padding: 5px;\">'; //set opening tag, such as font declarations\n" );
document.write( "fcontent[0]=\"<b>November 2, 2011<p>Literacy Luau</b><br />Connetquot Foundation for the Advancement of Children<P><i>7pm-9pm</I>\";\n" );
document.write( "fcontent[1]=\"<b>November 21, 2011<p>Book Launch/Signing</b><br />Barnes and Noble at the Smith Haven Mall<P><i>6:30pm</I>\";\n" );
document.write( "fcontent[2]=\"<b>December 1, 2011<p>Author/Illustrator Event</b><br />Parliament Place Elementary School, North Babylon, NY<P><i>7pm-9pm</I>\";\n" );
document.write( "fcontent[3]=\"<b>January 24, 2012<p>Author/Illustrator Event</b><br />Old Mill Road Elementary School, Merrick, NY<P><i>7pm-8:30pm</I>\";\n" );
document.write( "fcontent[4]=\"<b>February 10-11, 2012<p>Lake Bomoseen Association's Winterfest</b><br />Bomoseen, Vermont\";\n" );
document.write( "fcontent[5]=\"<b>March 6, 2012<p>A/I Event & Presentations</b><br />Southampton Elementary School, Southampton, NY<P><i>1pm-4:30pm\";\n" );
document.write( "fcontent[6]=\"<b>May 9, 2012<p>Author Visit</b><br />Manhassett Public Library, Manhassett, NY<P><i>4pm</I>\";\n" );
document.write( "fcontent[7]=\"<b>May 22, 2012<p>Author/Illustrator Event</b><br />Academy Street Elementary School, Bayport, NY<P><i>6pm-7:30pm</I>\";\n" );
document.write( "closetag='</div>';\n" );
document.write( "\n" );
document.write( "var fwidth='150px'; //set scroller width\n" );
document.write( "var fheight='150px'; //set scroller height\n" );
document.write( "\n" );
document.write( "var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.\n" );
document.write( "\n" );
document.write( "///No need to edit below this line/////////////////\n" );
document.write( "\n" );
document.write( "\n" );
document.write( "var ie4=document.all&&!document.getElementById;\n" );
document.write( "var DOM2=document.getElementById;\n" );
document.write( "var faderdelay=0;\n" );
document.write( "var index=0;\n" );
document.write( "\n" );
document.write( "\n" );
document.write( "/*Rafael Raposo edited function*/\n" );
document.write( "//function to change content\n" );
document.write( "function changecontent(){\n" );
document.write( "  if (index>=fcontent.length)\n" );
document.write( "    index=0\n" );
document.write( "  if (DOM2){\n" );
document.write( "    document.getElementById(\"fscroller\").style.color=\"rgb(\"+startcolor[0]+\", \"+startcolor[1]+\", \"+startcolor[2]+\")\"\n" );
document.write( "    document.getElementById(\"fscroller\").innerHTML=begintag+fcontent[index]+closetag\n" );
document.write( "    if (fadelinks)\n" );
document.write( "      linkcolorchange(1);\n" );
document.write( "    colorfade(1, 15);\n" );
document.write( "  }\n" );
document.write( "  else if (ie4)\n" );
document.write( "    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;\n" );
document.write( "  index++\n" );
document.write( "}\n" );
document.write( "\n" );
document.write( "// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////\n" );
document.write( "// Modified by Dynamicdrive.com\n" );
document.write( "\n" );
document.write( "function linkcolorchange(step){\n" );
document.write( "  var obj=document.getElementById(\"fscroller\").getElementsByTagName(\"A\");\n" );
document.write( "  if (obj.length>0){\n" );
document.write( "    for (i=0;i<obj.length;i++)\n" );
document.write( "      obj[i].style.color=getstepcolor(step);\n" );
document.write( "  }\n" );
document.write( "}\n" );
document.write( "\n" );
document.write( "/*Rafael Raposo edited function*/\n" );
document.write( "var fadecounter;\n" );
document.write( "function colorfade(step) {\n" );
document.write( "  if(step<=maxsteps) {	\n" );
document.write( "    document.getElementById(\"fscroller\").style.color=getstepcolor(step);\n" );
document.write( "    if (fadelinks)\n" );
document.write( "      linkcolorchange(step);\n" );
document.write( "    step++;\n" );
document.write( "    fadecounter=setTimeout(\"colorfade(\"+step+\")\",stepdelay);\n" );
document.write( "  }else{\n" );
document.write( "    clearTimeout(fadecounter);\n" );
document.write( "    document.getElementById(\"fscroller\").style.color=\"rgb(\"+endcolor[0]+\", \"+endcolor[1]+\", \"+endcolor[2]+\")\";\n" );
document.write( "    setTimeout(\"changecontent()\", delay);\n" );
document.write( "	\n" );
document.write( "  }   \n" );
document.write( "}\n" );
document.write( "\n" );
document.write( "/*Rafael Raposo's new function*/\n" );
document.write( "function getstepcolor(step) {\n" );
document.write( "  var diff\n" );
document.write( "  var newcolor=new Array(3);\n" );
document.write( "  for(var i=0;i<3;i++) {\n" );
document.write( "    diff = (startcolor[i]-endcolor[i]);\n" );
document.write( "    if(diff > 0) {\n" );
document.write( "      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);\n" );
document.write( "    } else {\n" );
document.write( "      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);\n" );
document.write( "    }\n" );
document.write( "  }\n" );
document.write( "  return (\"rgb(\" + newcolor[0] + \", \" + newcolor[1] + \", \" + newcolor[2] + \")\");\n" );
document.write( "}\n" );
document.write( "\n" );
document.write( "if (ie4||DOM2)\n" );
document.write( "  document.write('<div id=\"fscroller\" style=\"border:0px solid black;width:'+fwidth+';height:'+fheight+'\"></div>');\n" );
document.write( "\n" );
document.write( "if (window.addEventListener)\n" );
document.write( "window.addEventListener(\"load\", changecontent, false)\n" );
document.write( "else if (window.attachEvent)\n" );
document.write( "window.attachEvent(\"onload\", changecontent)\n" );
document.write( "else if (document.getElementById)\n" );
document.write( "window.onload=changecontent\n" );
document.write( "\n" );
document.write( "</script>" );

