// 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="sage peachtree accounting and financial software.htm"><br><b>Sage has released 2012 version of Sage Peachtree</b><br><br>Sage Peachtree 2012 with number of new features including BI Tool with Inventory dash boards is now in the Market and you will get this very latest version with a very special discount for all existing Sage Peachtree users.</div>';

singletext[1]='<div class=marquee><a href="perfect_service_manager.htm"><b>Service Manager Module</b><br><br>Another excellent add-on module that has been lunched by PBSS to manage all your service related issues which will reduce the entire customer complains to give a better after Sales service for your most valuable asset which means your clients. Special offer is available for all existing Sage Peachtree & Sage Evolution ERP clients.</div>';

singletext[2]='<div class=marquee><a href="perfect stock aging.htm"><b>Perfect Stock Aging - Sage Evolution ERP Add-On</b><br><br>PBSS launches its latest add-on product, Perfect Stock Aging, for Sage Evolution ERP which will help your organization generate accurate FIFO reporting of your inventory with multiple definable aging criteria.</div>';

singletext[3]='<div class=marquee><a href="news.htm"><b>PBSS implemented a new supporting method</b><br><br>All the existing PBSS clients can call our helpdesk anytime which the customer will be getting a reference number which will be tracking in our CRM and one of the customer support Executives will be contacting within half an hours time to solve your matter over the phone, online or to send a consultant to the site.</div>';

singletext[4]='<div class=marquee><a href="news.htm"><b>Energizer Sri Lanka is under PBSS wings</b><br><br>Market leader in Battery manufactures and distributors, who has been taken a wise decision to implement Sage UBS Accounting with Stock controlling to their 25 Island wide distributors in Sri Lanka.</div>';

singletext[5]='<div class=marquee><a href="news.htm"><b>Sage Simply Accounting 2012</b><br><br>Take control of your business financials with flexible software solutions from Canadian-made Sage Simply Accounting 2012. This feature-packed and easy-to-use accounting software allows you to manage your cash flow, invoicing and billing which the software is having the availability of expanding even for 20 users.</div>';

singletext[6]='<div class=marquee><a href="news.htm"><br> <b>RMS</b> <br><br>PBSS has been appointed as the Exclusive Partner for Sri Lanka & Maldives to distribute RMS Hotel Management System.</div>';

singletext[7]='<div class=marquee><a href="training.htm"><br> <b>PBSS Training Center</b><br>PBSS offers an International Certificate for Sage Evolution ERP. Other than that we offer Diplomas in Sage Peachtree Accounting & Sage 50.</div>';

singletext[8]='<div class=marquee><a href="news.htm"><b>PBSS has successfully implemented Sage UBS Time Attendance System at Zahira Collage</b><br><br>Zahira College is one of the leading schools in Sri Lanka which the school has decided to go ahead with PBSS, which has been already minimized the Time Attendance related issues after the successful implementation Sage UBS Time Attendance System.</div>';

singletext[9]='<div class=marquee><a href="news.htm"><br><b>PBSS Opens Jaffna Branch</b> <br><br>PBSS opens its first local branch at Jaffna peninsula with the aim to cater the reawakening northern commercial sector.</div>';

singletext[10]='<div class=marquee><a href="pbss-australia.htm"><b>PBSS moves in to Australia</b><br><br> PBSS expands its global operations with the latest branch in Australia and looking forward to cater the BPO sector and the customized solution requirements in the region....</div>';

singletext[11]='<div class=marquee><a href="sage-pastel-partner.htm"><br><b>Sage Pastel Partner V.11 is now available </b><br><br> Latest version of Sage Pastel Partner (Partner V.11) is now available and special discount will be given for upgrades of V.6, V7, and V.8.</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 -->
