// JavaScript Document

/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=180;

//scroller's height
var sheight=160;


//scroller's speed 
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2500;

//scroller's background
var sbcolor="##333399";

//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do:  target=... href="... URL ...">..message..;
var singletext=new Array();
singletext[0]='<div class=marquee><a href="http://www.training.perfectbss.com/erp conference.htm"><br> <b>ERP Conference & Workshop</b> ERP conference & workshop on 30 January 2010 at Nalahiya Hotel - Maldives ... </div>';
singletext[1]='<div class=marquee><a href="http://www.perfectbss.com/hotel-management-system.htm"><br> <b> PBSS launches Fiesta Integrated Hotel Management System in Sri Lanka and Maldives </b> </div>';
singletext[3]='<div class=marquee><a href="news.htm"><br> <b> PBSI-Maldives participated in MHTE 2009, Maldives Hotel Trade Exhibition in Male </b> </div>';
singletext[4]='<div class=marquee><a href="http://www.itpro.lk/?q=node/1548"><b>ADK Group, Maldives now on Evolution ERP.</b><br> PBSS signed an MOU with ADK Group of Maldives as their Business Solution Software partner. ADK hospital is the largest hospital in the Maldives...</div>';
singletext[5]='<div class=marquee><a href="news.htm#pastel"><br><br><b>Sage pastel appointed PBSS as a silver business partner for <br><br><ul>Sri Lanka, <br>Saudi Arabia, <br>Maldives. ...</b></div>';
singletext[6]='<div class=marquee><a href="newsletter/NewsLetter_Aug-Sep.htm#1"><b>Sage Pastel Partner version 10 released </b>Sage Pastel has released the version 10 of Pastel Partner on 1st September 2008. Pastel Partner is an Integrated System with advanced features and modules like Multi Currency, Multi Warehouse, Fixed Assets and Business Intelligence Centre...</div>';
singletext[7]='<div class=marquee><a href="pbss-training.htm"><b>PBSS Training Center </b><br><br>PBSS the authorized training center for sage Pastel Evolution ERP in Sri Lanka inaugurated its operation during the first week of December 2008.  </div>';
singletext[8]='<div class=marquee><a href="pbss-training.htm"><br> <b>The training center offers an International Certificate for Sage Evolution ERP. Other than that we offer Diplomas in Sage Peachtree Accounting & Computerized HRM. </b></div>';
singletext[2]='<div class=marquee><a href="pbss-training.htm"><br> <b>Sage Peachtree Training. </b> <br> Batch 01 will be started on 19th September 2009, Batch 02 will be started on 20th September 2009. <br><b> Sage HRM Training </b> <br>New batch will be started on 19th September 2009 </div>';
singletext[9]='<div class=marquee><a href="news.htm"><b>Partnership with Ceylinco IT to provide backend solutions to Ceylinco IT’s clients.</b><br> ... <b></div>';
//singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="80px" valign="middle"><div class=tan><b>Javascript Vertical Scroller v3.5</b><br>Once a message left, next one comes in.<br>Adjustable: Size, Speed, Pause and Background.<br>Speed may be adjusted on the fly as well!<br>Runs any number of Messages/Images.</div></td></tr></table>';
//singletext[4]='<div class=tan><b>On Windows/Linux:</b><br>ie4+ firefox1+ ns6+ opera7+ ns4+.<br><br><b>On Mac OS X</b>:<br>Safari, ie5+ firefox1+ opera7+.<br><br>Any message may be <b><i>as large as desired.</i></B><br>===<br><br><font color="olive">Any wider row will automatically be adjusted into as many rows as to fit the width you set for the scrolling area.</font><br><br>===<br>One may use <b><i>any basic HTML code.</i><br><br>===</B></div>';
//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 -->