// JavaScript Document


/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages 
//scroller's width
var swidth=157;

//scroller's height
var sheight=350;


//scroller's speed 
var sspeed=30;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=7000;

//scroller's background
var sbcolor="#E1E1E1";

//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>;
var singletext=new Array();
singletext[0]='<img src="images/layout/news_divider.jpg" /><p><strong>May.20.08.</strong><br /><br />rg cs launches electronic newsletter mailer service. Target your customer base with this easy to use and customisable service. For more information go to:<br /><br /><a href="http://www.rg-cs.co.uk/newsletters.php">Newsletter Information</a></p><img src="images/layout/news_divider.jpg" />';
singletext[1]='<img src="images/layout/news_divider.jpg" /><p><strong>Nov.18.07.</strong><br /><br />rg cs is merging with littleangel design to provide a larger suit of services. for morespecial offers and more information check out:<br /><br /><a href="http://www.la-rg-e.co.uk">www.la-rg-e.co.uk</a></p><br /><a href="http://www.la-rg-e.co.uk"><img src="images/features/large.jpg" /></a><br /><img src="images/layout/news_divider.jpg" />';
singletext[2]='<img src="images/layout/news_divider.jpg" /><p><strong>Sept.01.07.</strong><br /><br />We are pleased to announce the expansion of our daytime support team. A team of staff is now available to answer your calls during office hours. so call <strong>0800 0833 166</strong> or email: <br /><br /><a href="mailto:support@rg-cs.co.uk">support@rg-cs.co.uk </a></p><img src="images/layout/news_divider.jpg" />';
singletext[3]='<img src="images/layout/news_divider.jpg" /><p><strong>Jan.17.07.</strong><br /><br />We are pleased to announce the expansion of our daytime support team. A team of staff is now available to answer your calls during office hours. so call <strong>0800 0833 166</strong> or email: <br /><br /><a href="mailto:support@rg-cs.co.uk">support@rg-cs.co.uk </a></p><img src="images/layout/news_divider.jpg" />';
//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();}}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
