﻿/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=190;

//scroller's height
var sheight=150;


//scroller's speed 
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause
var spause=3000;

//scroller's background
var sbcolor="#ffffff";

//Messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="... URL ...">..message..</a>;
//Preloading images is recommended:
preload1 = new Image();
preload1.src = "";
preload2 = new Image();
preload2.src = "";
//When no preloading, use below the actual image path instead of '+preload...+';
var singletext=new Array();
singletext[0]='<table width="180" CELLSPACING="0" CELLPADDING="0"><tr><td height="150px" valign="middle"><font face="arial" size="0.5em" color="#444444">Glosap team has successfully completed SAP A1 sales pitch Training @ Singapore </p> <p><a href="javascript:saptraining();" align=right>Read more</a></p></font></td></tr></table>';
singletext[1]='<table width="180" CELLSPACING="0" CELLPADDING="0"><tr><td height="150px" valign="middle"><font face="arial" size="0.5em" color="#444444">Glosap team has been trained Prospecta experts for the Master Data Online Solutions</p> <p><a href="javascript:openNewWindow();" align=right>Read more</a></p></font></td></tr></table>';
singletext[2]='<table width="180" CELLSPACING="0" CELLPADDING="0"><tr><td height="150px" valign="middle"><font face="arial" size="0.5em" color="#444444">Glosap team is working with our European Partner for development of GTM Solutions <ul><li>Risk Management</li><li>Parcel Execution</li><li>Expenses Management</li></ul></font></td></tr></table>';
//singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="160px" valign="middle"><div class="tabb"><a class="tabb" target="_self" href="http://news-scroller.vbarsan.com/"><img src='+preload3.src+' width="160px" height="120px" alt="Dhtml Horizontal News Scroller Javascript"><br>Horizontal Scroller v7.0</a></div></td></tr></table>';
//singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="160px" valign="middle"><div class="tabb"><a class="tabb" target="_self" href="http://news-ticker.vbarsan.com/"><img src='+preload4.src+' width="160px" height="120px" alt="Dhtml Typewriter Vertical Text Scroller Javascript"><br>Typewriter Scroller v5.0</a></div></td></tr></table>';
//singletext[4]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="160px" valign="middle"><div class="tabb"><a class="tabb" target="_self" href="http://javascripts.vbarsan.com/"><img src='+preload5.src+' width="140px" height="100px" alt="Vertical Scroller,Horizontal Scroller,Typewriter Scroller"><br>Vertical,Horizontal & Typewriter Scrollers</a></div></td></tr></table>';
//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else 
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}

//-- end Algorithm -->
