
/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/


var swidth=140;

//scroller's height
var sheight=150;

//scroller's speed 
var sspeed=20;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause
var spause=9000;

//scroller's background
var sbcolor="";

//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]='<b>MUSIC MINISTRY</b> <br> We are looking for people willing to be trained on musical instruments and willing to be used by God';
singletext[1]='<b>Intercessory Ministry</b> <br/> Get involved and pray with us!<br> Monday to Friday, 7am to 9am; M-W-F, 12:10 to 1:30pm; and Friday 7pm; and Overnight Prayer Meeting every first Friday of the month';
singletext[2]='<b>JOB OPENING <br> for Hope General Hospital</b> <br> OB/Gyne, Pedia, Internal Medicine, Resident Physicians and licensed Pharmacist and Medical Technologist';
singletext[3]='<b>NO MINISTRY YET?</b> <br>We have many ministries you can choose from where your talents and God-given gifts can be harnessed! Look at the Ministry Page for you to choose the best ministry you like to be involved.';
///singletext[4]='<strong><span class="pubcal">Effective Quality Control Through Acceptance Sampling Techniques</span></strong><br/><br/><span class="pubcal2">Module 2: Acceptance Sampling<br/><br/><em>Date:</em>&nbsp;<strong>September 30, 2008</strong><br/><em>Training Fee:</em>&nbsp;<strong>Php 3,000/head</strong></span>';
///singletext[5]='<strong><span class="pubcal">Effective Records Management System</span></strong><br/><br/><em>Date:</em>&nbsp;<strong>October 17, 2008</strong><br/><em>Training Fee:</em>&nbsp;<strong>Php 3,000/head</strong></span>';
///singletext[6]='<strong><span class="pubcal">Conducting Feasibility Studies</span></strong><br/><br/><em>Date:</em>&nbsp;<strong>October 27-29, 2008</strong><br/><em>Training Fee:</em>&nbsp;<strong>Php 6,000/head</strong></span>';
///singletext[7]='<strong><span class="pubcal">QMS Project Management</span></strong><br/><br/><em>Date:</em>&nbsp;<strong>November 7, 2008</strong><br/><em>Training Fee:</em>&nbsp;<strong>Php 3,000/head</strong></span>';
///singletext[8]='<strong><span class="pubcal">Capturing the Voice of the Customer Through Quality Function Deployment (QFD)</span></strong><br/><br/><em>Date:</em>&nbsp;<strong>November 24-25, 2008</strong><br/><em>Training Fee:</em>&nbsp;<strong>Php 6,000/head</strong></span>'; -->
//singletext[3]='<div class=tan>Any message may be <b><i>as large as desired.</i></B><br><br>===<br><br>...<br><br>===<br><br>...<br><br>===<br><br>One may use <b><i>all the basic HTML code.</i></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 -->

window.onload=start;


