// 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>December 1, 2009<p>Author/Illustrator Event</b><br />Moriches Elementary School<P><i>Moriches, NY</I>\";\n" );
document.write( "fcontent[1]=\"<b>December 3, 2009<p>Author/Illustrator Event</b><br />Parliament Place Elementary School<P>\";\n" );
document.write( "fcontent[2]=\"<b>December 8, 2009<p>Author/Illustrator Event</b><br />Dayton Avenue School<p><i>Manorville, NY</i>\";\n" );
document.write( "fcontent[3]=\"<b>January 13, 2010<p>Author/Illustrator Event</b><br />Ivy League Schools<p><i>Smithtown, NY</i>\";\n" );
document.write( "fcontent[4]=\"<b>March 2, 2010<p>Author/Illustrator Event</b><br />Southampton Elementary<p><i>Southampton, NY</i>\";\n" );
document.write( "fcontent[5]=\"<b>March 4, 2010<p>Author/Illustrator Event</b><br />Bellmore Schools<P>\";\n" );
document.write( "fcontent[6]=\"<b>March 10, 2010<p>Author/Illustrator Event</b><br />Northport School District<P>\";\n" );
document.write( "fcontent[7]=\"<b>March 23, 2010<p>Author/Illustrator Event</b><br />Tuckahoe Elementary<p><i>Southampton, NY</i>\";\n" );
document.write( "fcontent[8]=\"<b>March 25, 2010<p>Author/Illustrator Event</b><br />Tremont Elementary<p><i>Patchogue, NY</i>\";\n" );
document.write( "fcontent[9]=\"<b>April 13, 2010<p>Author/Illustrator Event</b><br />Tecumseh Elementary School<p>\";\n" );
document.write( "fcontent[10]=\"<b>April 14, 2010<p>Author/Illustrator Event</b><br />JFK Intermediate School<p><i>Deer Park, NY</i>\";\n" );
document.write( "fcontent[11]=\"<b>April 22, 2010<p>Author/Illustrator Event</b><br />Bretton Woods Elementary<p><i>Hauppauge, NY</i>\";\n" );
document.write( "fcontent[12]=\"<b>May 18, 2010<p>Author/Illustrator Event</b><br />Gatelot Elementary School<p><i>Ronkonkoma, NY</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>" );
