//Vertical Scroller v1.2- by Brian of www.ScriptAsylum.com
//Updated for bug fixes
//Visit JavaScript Kit (http://javascriptkit.com) for script

//ENTER CONTENT TO SCROLL BELOW.
var content='<font color="#006600"><b>ANNOUNCEMENTS</b><br \><br \>City Council Meetings<br \>1st and 3rd Wednesday<br \>@ City Hall<br \><a target="_blank" href="http://www.cityofrc.us/cityhall/meetings/default.asp"><font color="#006600">Agendas &amp; Minutes</font></a></font><br \><br \><br \><br \><font color="#660000"><b>EVENTS</b><br \><br \>Thursday, Feb 23rd @ 7:00am<br \>BCN @ Central Park<br \><br \>Tuesday, Feb 28th @ 11:30am<br \>RaPour Grand Opening<br \>in Victoria Gardens<br \><br \>Wednesday, Feb 29th @ 11:30am<br \>Craig Shelly Fine Jewelry<br \>Grand Opening<br \>in Victoria Gardens<br \><br \><br \><b>DECEMBER NEW MEMBERS</b><br \><br \>Citrus Valley Association of Realtors<br \><br \>Fenton Consulting<br \><br \>J Grimes Plumbing &amp; Property Maintenance<br \><br \>Jack Lam<br \><br \>Paul Davis Emergenciy Services<br \><br \><br \><b>JANUARY NEW MEMBERS</b><br \><br \>All In One Service<br \><br \>American Sleep Centers<br \><br \>Bakers Drive-Thru Inc.<br \><br \>Craig Shelly Fine Jewelry<br \><br \>Graphic Marketing<br \><br \>Greear Consultant Group LLC<br \><br \>IE Biz Magazine<br \><br \>Just In Time Communications Inc.<br \><br \>Direct TV Provider-Lyoness<br \><br \>Mad Mac Foundation<br \><br \>Marcus Heart Foundation<br \><br \>Outreach Nation Corp.<br \><br \>Popular Creations<br \><br \>Sharp Business Systems<br \><br \>SimpliciTEa<br \><br \>Vicenti Llyoyd Stutzman LLP<br \><br \><br \><b>DECEMBER RENEWING MEMBERS</b><br \><br \><b><i>40 Years</i></b><br \>Frito-Lay, Inc.<br \><br \><b><i>31 Years</i></b><br \>Vavrinek, Trine, Day &amp; Co., LLP<br \><br \><b><i>22 Years</i></b><br \>Euclid Management Company<br \><br \><b><i>17 Years</i></b><br \>Radford &amp; Associates Inc./Liberty Tax Service<br \><br \><b><i>16 Years</i></b><br \>Minuteman Press<br \>Bernell Hydraulics<br \><br \><b><i>15 Years</i></b><br \>University of La Verne<br \><br \><b><i>11 Years</i></b><br \>Rancho Cucamonga Dental Group<br \>StorQuest Self Storage-Rancho Cucamonga<br \>Unlimited Potential<br \><br \><b><i>10 Years</i></b><br \>Camino Real<br \>Geoffrey H. Hopper &amp; Associates, Inc.<br \>UTI Universal Technical Institute<br \><br \><b><i>7 Years</i></b><br \>AMLI at Victoria Arbors<br \><br \><b><i>6 Years</i></b><br \>Rally Staffing<br \><br \><b><i>4 Years</i></b><br \>Lowes Home Improvement<br \>Citizens Business Bank Arena<br \>Vasquez Construction<br \>Captain Bill Catlett<br \><br \><b><i>3 Years</i></b><br \>Little Blessings Childcare &amp; Preschool<br \>Bella Noche Classic Party Rentals<br \>Rock the Keys Dueling Piano Bar &amp; Nightclub<br \><br \><b><i>2 Years</i></b><br \>New Beginning Fitness, The<br \>Carino&#039;s Italian Restaurant (Johnny Carinos)<br \>Water of Life Christian School<br \>Rose Paving<br \><br \><br \><b>JANUARY RENEWING MEMBERS</b><br \><br \><b><i>28 Years</i></b><br \>Auto Restorators, Inc.<br \>Ontario International Airport<br \><br \><b><i>23 Years</i></b><br \>Cheatham &amp; Associates<br \><br \><b><i>22 Years</i></b><br \>Younger &amp; Associates<br \><br \><b><i>19 Years</i></b><br \>Savage BMW, Inc.<br \><br \><b><i>15 Years</i></b><br \>Inland Empire Utilities Agency<br \><br \><b><i>14 Years</i></b><br \>Sharp Image Collision Centers, Inc.<br \><br \><b><i>12 Years</i></b><br \>Carmel @ Terra Vista<br \>Sierra Lakes Golf Club<br \>Ford Printing &amp; Mailing<br \><br \><b><i>11 Years</i></b><br \>Etiwanda School District<br \>Payroll Link Inc.<br \><br \><b><i>8 </i>Years</b><br \>Dr. Bob the Computer Doctor (Payne Consultants)<br \><br \><b><i>6 Years</i></b><br \>Stor-N-Lock Self Storage<br \>Jenkins Orthodontics<br \>Daisy I. T. Supplies, Sales &amp; Service<br \>Executive Suite at Haven LLC, The<br \><br \><b><i>5 Years</i></b><br \>Enterprise Funding Corporation<br \><br \><b><i>4 Years</i></b><br \>Citycom Real Estate Services<br \>Oremor Automotive (Nissan, Jeep, Chrysler, Dodge, Mazda)<br \><br \><b><i>3 Years</i></b><br \>Bella Noche Classic Party Rentals<br \>Shakey’s Pizza Parlor<br \>All Nations Realty<br \><br \><b><i>2 Years</i></b><br \>JC Supply &amp; Manufacturing<br \>Claremont Toyota<br \><br \><br \><b><i>1 Years</i></b><br \>Realty Executives- Edwards Team<br \>Deloach &amp; Associates, LLC';


var boxheight=200;        // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=268;         // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="";   // BACKGROUND BOX COLOR.
var speed=30;             // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1;          // PIXELS "STEPS" PER REPITITION.
var godown=false;         // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE

// DO NOT EDIT BEYOND THIS POINT

var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ilayer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer  name="inner"  width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ></div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner"  style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'</div>';
txt+='</div>';
}
document.write(txt);

function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}

function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}

function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}

function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}

window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}

window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
