<!--
/*********************************
 * author@TechSystems.com        *
 * http://www.portaldepot.net    *
 * management@portaldepot.net    *
 * (c)TechSystems.com 2008       *
 * All Rights Reserved.          *
 *********************************
 */

var delayS = 30;              //Delay between iterations (fine tuning).
var scrollerDelay = 1700;      //Pause between msg scrolls. 1000 = 1 second. 
var scrollerWidth = '200px';    //Set width, height and bgcolor below.
var scrollerHeight = '100px';
var scrollerBgcolor = '#f2f3f5';
var paddingTop = 16;             //Set stopping point, where message pauses.
var iteration = '1';            //Set iteration to the number of pixels to move between each delay.
var scrollerBackground = '';   //Set to your image source ie: '../Images/imgSource.jpg' if you 
                              //don't wish to use a background image leave it empty.
															
//Add your messages below. You can input most any html into each mssg ie: <a>,<img/>,<b>,<font>
//You should keep each message to 4 lines of text or less.
var mssg=new Array()
mssg[0]='<a href="index.html" style="font:bold 11 arial;color:#000000;text-decoration: none">Visit Portal Depot get all your website needs, Scripts, Digital Delivery Systems, Web Promotion & more.</a>';
mssg[1]='<a href="BannerRotator.html" style="font:bold 11 arial;color:#000000;text-decoration: none">For Banner Rotators and Random Banner Generators Click Here -<u style="color:#0000ff">BannerRotator</u></a>';
mssg[2]='<a href="PopUps.html" style="font:bold 11 arial;color:#000000;text-decoration: none">If you need PopUps, Message Boxes, Calanders or Sci Calculator popups, Click Here - <u style="color:#0000ff">PopUps</u></a>';
mssg[3]='<a href="index.html" style="font:bold 11 arial;color:#000000;text-decoration: none"><img src="ExpoActive.jpg" align="absmiddle" border="0" height="26" width="26" valign="3" style="float:left;position:relative;right:3"/>You can input hyperlinked images.' 
mssg[3]+=' You could put only images, with no text and vertically rotate the images. You can also put in a background image<span style="color:#0000ff"> &nbsp;-&nbsp;&nbsp;More info.</span></a>';
mssg[4]='<a href="AdvHTMLjvScript.html" style="font:bold 11 arial;color:#000000;text-decoration: none">Looking for Javascript Apps to expand your content - Go Here <u style="color:#0000ff">Advanced JavaScripts</u></a>';


///////DO NOT EDIT PASS THIS LINE///////

var dom=document.getElementById;
if (mssg.length > 2) iv = 2;
else iv = 0;

function move(whichdiv){
tdiv=eval(whichdiv);
if (parseInt(tdiv.style.top) > 0 && parseInt(tdiv.style.top) <= iteration){
tdiv.style.top = 0 + "px";
setTimeout("move(tdiv)",scrollerDelay);
setTimeout("move2(second2_obj)",scrollerDelay);
return}
if (parseInt(tdiv.style.top) >= tdiv.offsetHeight * -1){
tdiv.style.top = parseInt(tdiv.style.top) - iteration + "px";
setTimeout("move(tdiv)",delayS);}
else{
tdiv.style.top=parseInt(scrollerHeight) + "px";
tdiv.innerHTML = mssg[iv];
if (iv == mssg.length-1) iv = 0;
else iv++}}

function move2(whichdiv){
tdiv2=eval(whichdiv);
if (parseInt(tdiv2.style.top) > 0 && parseInt(tdiv2.style.top) <= iteration){
tdiv2.style.top = 0 + "px";
setTimeout("move2(tdiv2)",scrollerDelay);
setTimeout("move(first2_obj)",scrollerDelay);
return}
if (parseInt(tdiv2.style.top) >= tdiv2.offsetHeight * -1){
tdiv2.style.top = parseInt(tdiv2.style.top) - iteration + "px";
setTimeout("move2(second2_obj)",delayS);}
else{
tdiv2.style.top = parseInt(scrollerHeight) + "px";
tdiv2.innerHTML = mssg[iv];
if (iv == mssg.length-1) iv = 0;
else iv++}}

function startScroll(){
first2_obj = document.getElementById("first2");
second2_obj = document.getElementById("second2");
move(first2_obj);
second2_obj.style.top = scrollerHeight;
second2_obj.style.visibility = 'visible' }

function pauseScroller(scrSpeed){delayS = scrSpeed}

document.writeln('<div id="main2" style="position:relative;width:'+scrollerWidth+';height:'+scrollerHeight+';overflow:hidden;background-color:'+scrollerBgcolor+' ;background-image:url('+scrollerBackground+');">');
document.writeln('<div style="position:absolute;width:'+scrollerWidth+';height:'+scrollerHeight+';left:0px;top:0px;">');
document.writeln('<div id="first2" style="position:absolute;padding-top:'+paddingTop+';width:'+scrollerWidth+';left:0px;top:1px;text-align: justify;">');
document.write(mssg[0]+'</div>');
document.writeln('<div id="second2" style="position:absolute;padding-top:'+paddingTop+';width:'+scrollerWidth+';left:0px;top:0px;visibility:hidden;text-align: justify;">');
document.write(mssg[dyndetermine=(mssg.length==1)? 0 : 1]);
document.writeln('</div></div></div>');

if (window.addEventListener)
window.addEventListener("load", startScroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startScroll)
else if (dom)
window.onload=startScroll
//-->