
/***********************************
*   http://news-ticker.vbarsan.com/
*   This notice may not be removed 
***********************************/

//Parameters:
//width of the TICKER in pixels: set to your own;
var dwidth=420; 
//height of the TICKER in pixels: set to your own; 
var dheight=22; 
//speed: the higher the slower - set your own!
var setdelay=6500;
//Enter delay between msgs, in mili-seconds
var dspeed=15; // One sec=1000; 
//1.Background color: could be like: "#ffff00" or "yellow";
//set it "" for no background color;
var dbcolor="";

//The STYLE for your message - not recommended to use both!; 
//when left aligned, ticker goes from left to right;
//when center aligned, ticker goes from center out;
var expclass='class=leftaln';

//Message:
var msgs = new Array(
     '<font color="#000080">Get 15 Tips That Will Improve Your Medical Billing And Collections</font>',
	 '<font color="#800000">Get 10 Tips For Selecting An EMR System That Fits Your Practice’s Specific Needs</font>',
     '<font color="#008000">Get 10 Tips That Will Help You Attract and Retain Your Patients</font>',
     '<font color="#800080">Get 10 Tips That Will Help You Manage Your Medical Practice More Efficiently</font>',
     '<font color="#993300">Register For A Free Consultation That Will Help You Manage Your Practice</font>'); // No comma after last ticker msg

//Inside any message you MUST use \' in lieu of ';
var mesaj=msgs[0];
//Algorithm:
var jj=-1;var kk=0;var wds=0;
var count=0;
	
function iens6exp(){jj++;
if(kk==0&&mesaj.charAt(jj)=="<"){kk=1;wds=0;}else if(kk==1&&mesaj.charAt(jj)==">"){kk=0;wds=0;}else if(kk==1)wds=0;
if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length){wds=1;
iens6div.innerHTML='<a href="form_landing.php?page='+pagename+'">'+mesaj.substring(0,jj)+'</a>';}
if(wds>0&&jj<=mesaj.length)setTimeout("iens6exp()",dspeed);else if(jj<=mesaj.length)iens6exp();}

function ns4exp(){jj++;
if(kk==0&&mesaj.charAt(jj)=="<"){kk=1;wds=0;}else if(kk==1&&mesaj.charAt(jj)==">"){kk=0;wds=0;}else if(kk==1)wds=0;
if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length){wds=1;
ns4div.document.write('<div '+expclass+'>'+mesaj.substring(0,jj)+'</div>');ns4div.document.close();}
if(wds>0&&jj<=mesaj.length)setTimeout("ns4exp()",dspeed);else if(jj<=mesaj.length)ns4exp();}

function startexp(){if(document.getElementById){alch=document.getElementById('chthis');iens6div=document.getElementById('expdiv');iens6div.innerHTML='';iens6exp();}else if(document.all){alch=chthis;iens6div=expdiv;iens6div.innerHTML='';iens6exp();}else if(document.layers){ns4div=document.ns4expb0.document.ns4expb1;ns4div.document.write('');ns4div.document.close();ns4exp();}
}

function moveit(how){
 if (how==1){ //cycle foward
	if (count<msgs.length-1) count++; else count=0;
	}
	else{ if (count==0) count=msgs.length-1; else count--;
	}
 
 mesaj=msgs[count];
 //alert(count+' :: '+mesaj);
 jj=-1; kk=0; wds=0;
 iens6exp();

}

