

/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/

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

//scroller's height
var sheight=80;

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

//scroller's pause
var spause=2000;

//scroller's background
var sbcolor="none";


//messages: change to 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]='<div class=news_title><a href="news.php">Urgently required  Orthopaedic and Surgical Nurses</a> </div> <div class=news_date>01 June 2009</div> <div class=news_text>Due to a new contract award in South Kent, Superior Care urgently requires trained nurses with some orthopaedic or surgical experience</div>';

singletext[1]='<div class=news_title><a href="news.php">Expanding homecare division, community carers required!</a> </div> <div class=news_date>01 June 2009</div> <div class=news_text>We are continuing to expand our homecare services in our Whitstable branch and are urgently seeking candidates</div>';

singletext[2]='<div class=news_title><a href="news.php">Whitstable branch on the move, but not far!</a> </div> <div class=news_date>01 June 2009</div> <div class=news_text>Superior Care&#8217;s East Kent operations have continued to expand and, to accommodate our enlarged team, the Whitstable branch will move</div>';

singletext[3]='<div class=news_title><a href="news.php">Superior Care appearing at Kent Care Expo!</a> </div> <div class=news_date>14th May 2009 </div> <div class=news_text>Superior Care will be appearing at the Kent Care Expo on Thursday 18 June 2009 </div>';

singletext[4]='<div class=news_title><a href="news.php">Welcome to the team, Julie!</a> </div> <div class=news_date>04 May 2009</div> <div class=news_text>With the continued expansion of our domiciliary division, we are delighted to welcome Julie Alexander to the team.</div>';

singletext[5]='<div class=news_title><a href="news.php">Superior Care launches specialist continuing care division</a> </div> <div class=news_date>06 April 2009</div> <div class=news_text>Superior Care has launched a specialist division of our care group, Superior Continuing Care</div>';

singletext[6]='<div class=news_title><a href="news.php">Superior Care acquires Haydon Mayer</a> </div> <div class=news_date>April 2008</div> <div class=news_text>On 07 April,  Superior Care acquired the Haydon Mayer Nursing Agency, the highly respected, Canterbury based homecare agency.</div>';

singletext[7]='<div class=news_title><a href="news.php">Have you seen us?!</a> </div> <div class=news_date>April 2008 </div> <div class=news_text>We are delighted to promote our local presence &#8211; you might already have seen our outdoor advertising </div>';

singletext[8]='<div class=news_title><a href="news.php">Superior Care is graded Excellent by CSCI</a> </div> <div class=news_date>April 2008 </div> <div class=news_text>Further to CSCIs recent inspection of our service, we are proud to have been graded Excellent in both our nursing and domiciliary registrations.</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 -->
