var_richardscroll300x250a=('<style type="text/css">\n'+
'#richardpscroller1300x250a{\n'+
'width: 300px !important;\n'+
'height: 250px !important;\n'+
'border: 1px solid black;\n'+
'padding: 0px;\n'+
'background-color: #E0DED1;\n'+
'font-family:arial,helvetica;\n'+
'font-size: 0.70em !important;\n'+
'color: #000000 !important;\n'+
'font-weight : normal;\n'+
'text-align:left;\n'+
'}\n'+

'#richardpscroller1300x250a a{\n'+
'font-family:arial,helvetica;\n'+
'font-size: 0.9em;\n'+
'color: #800000;\n'+
'font-weight : normal;\n'+
'}\n'+

'.richardsomeclass300x250a{ //class to apply to your scroller(s) if desired\n'+
'font-family:arial,helvetica;\n'+
'font-size: 0.70em !important;\n'+
'color: #000000 !important;\n'+
'font-weight : normal;\n'+
'}\n'+


'</style>\n'+

'<script type="text/javascript">\n'+

'/*Example message arrays for the two demo scrollers*/\n'+

'var pausecontent300x250a=new Array()\n'+
'pausecontent300x250a[0]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25011.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[1]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25012.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[2]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25013.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[3]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25014.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[4]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25015.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[5]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25016.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[6]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25017.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[7]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25029.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[8]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25020.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+
'pausecontent300x250a[9]=\'<a href="http://richard.hopto.org/www/adv/openx/www/delivery/ck.php?oaparams=2__bannerid=11__zoneid=2__OXLCA=1__cb=3de32507be__oadest=http%3A%2F%2Frichard.hopto.org%2Fservicii%2F30-oferte-si-preturi%2F61-vreau-optimizare-site-promovare-site.html"><img src="http://richard.hopto.org/www/images/banner/300x250/promotion300x25021.jpg" border="0" alt="Vreau Optimizare site, Promovare site, Web-design "></a>\'\n'+

'var pausecontent2=new Array()\n'+
'pausecontent2[0]=\'<a href="http://www.news.com">News.com: Technology and business reports</a>\'\n'+
'pausecontent2[1]=\'<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>\'\n'+
'pausecontent2[2]=\'<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>\'\n'+

'</script>\n'+
'<script type="text/javascript">\n'+

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

'function pausescroller(content, divId, divClass, delay){\n'+
'this.content=content //message array content\n'+
'this.tickerid=divId //ID of ticker div to display information\n'+
'this.delay=delay //Delay between msg change, in miliseconds.\n'+
'this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)\n'+
'this.hiddendivpointer=1 //index of message array for hidden div\n'+
'document.write(\'<div id="\'+divId+\'" class="\'+divClass+\'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%; font-weight: normal; color: #000000; font-size: 11px;" id="\'+divId+\'1">\'+content[0]+\'</div><div class="innerDiv"  style="position: absolute; width: 100%; visibility: hidden; font-weight: normal; color: #000000; font-size: 11px;" id="\'+divId+\'2">\'+content[1]+\'</div></div>\')\n'+
'var scrollerinstance=this\n'+
'if (window.addEventListener) //run onload in DOM2 browsers\n'+
'window.addEventListener("load", function(){scrollerinstance.initialize()}, false)\n'+
'else if (window.attachEvent) //run onload in IE5.5+\n'+
'window.attachEvent("onload", function(){scrollerinstance.initialize()})\n'+
'else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec\n'+
'setTimeout(function(){scrollerinstance.initialize()}, 500)\n'+
'}\n'+

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

'pausescroller.prototype.initialize=function(){\n'+
'this.tickerdiv=document.getElementById(this.tickerid)\n'+
'this.visiblediv=document.getElementById(this.tickerid+"1")\n'+
'this.hiddendiv=document.getElementById(this.tickerid+"2")\n'+
'this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))\n'+
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)\n'+
'this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"\n'+
'this.getinline(this.visiblediv, this.hiddendiv)\n'+
'this.hiddendiv.style.visibility="visible"\n'+
'var scrollerinstance=this\n'+
'document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}\n'+
'document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}\n'+
'if (window.attachEvent) //Clean up loose references in IE\n'+
'window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})\n'+
'setTimeout(function(){scrollerinstance.animateup()}, this.delay)\n'+
'}\n'+


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

'pausescroller.prototype.animateup=function(){\n'+
'var scrollerinstance=this\n'+
'if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){\n'+
'this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"\n'+
'this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"\n'+
'setTimeout(function(){scrollerinstance.animateup()}, 50)\n'+
'}\n'+
'else{\n'+
'this.getinline(this.hiddendiv, this.visiblediv)\n'+
'this.swapdivs()\n'+
'setTimeout(function(){scrollerinstance.setmessage()}, this.delay)\n'+
'}\n'+
'}\n'+

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

'pausescroller.prototype.swapdivs=function(){\n'+
'var tempcontainer=this.visiblediv\n'+
'this.visiblediv=this.hiddendiv\n'+
'this.hiddendiv=tempcontainer\n'+
'}\n'+

'pausescroller.prototype.getinline=function(div1, div2){\n'+
'div1.style.top=this.visibledivtop+"px"\n'+
'div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"\n'+
'}\n'+

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

'pausescroller.prototype.setmessage=function(){\n'+
'var scrollerinstance=this\n'+
'if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)\n'+
'setTimeout(function(){scrollerinstance.setmessage()}, 100)\n'+
'else{\n'+
'var i=this.hiddendivpointer\n'+
'var ceiling=this.content.length\n'+
'this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1\n'+
'this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]\n'+
'this.animateup()\n'+
'}\n'+
'}\n'+

'pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any\n'+
'if (tickerobj.currentStyle)\n'+
'return tickerobj.currentStyle["paddingTop"]\n'+
'else if (window.getComputedStyle) //if DOM2\n'+
'return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")\n'+
'else\n'+
'return 0\n'+
'}\n'+

'</script>\n'+
'<script type="text/javascript">\n'+



//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

'new pausescroller(pausecontent300x250a, "richardpscroller1300x250a", "richardsomeclass300x250a", 13000)\n'+
'document.write("<br />")\n'+
'//new pausescroller(pausecontent2, "pscroller2", "someclass", 2000)\n'+
'</script>\n')

document.write(var_richardscroll300x250a);
