
/*
Cross browser marquee script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

var isMinNS4=(navigator.appName.indexOf("Netscape")>=0&&parseFloat(navigator.appVersion)>=4)?1:0;
var isMinIE4=(document.all)?1:0;
var isMinIE5=(isMinIE4&&navigator.appVersion.indexOf("5.")>=0)?1:0;

//Specify the marquee's width (in pixels)
var marqueewidth=getPageWidth()-25
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=5
//Specify the marquee's scroll speed (larger is faster)
var speed=3

//Specify the marquee contents
var marqueecontents='<font face="Arial"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
//marqueecontents += 'TESTING BY DAVID </strong></font>'
//marqueecontents += '&nbsp;&nbsp;&nbsp;&nbsp;<a href="hipaa.htm">View HIPAA information.</a>&nbsp;&nbsp;-&nbsp;&nbsp;The new &nbsp;<a target="_top" href="https://www.medicalmanagement.com/index_secure_forms.html">MMA 2005 Salary Survey</a> &nbsp; for medical practices is now available. '
marqueecontents += '&nbsp; <b>Thank you for visiting Medical Management Associates.</b></font>'


if (document.all)
		document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')


function regenerate(){
	window.location.reload()
}

function regenerate2(){
	if (document.layers)
	{
		setTimeout("window.onresize=regenerate",50)
		marqueewidth=getPageWidth()-25
		marqueeheight=5
		speed=3
		// marqueecontents = '<font face="Arial">TESTING BY DAVID</font>'
		marqueecontents += '<b>&nbsp;&nbsp; &nbsp;&nbsp; Try out &nbsp;<a href="tools.htm">MMA Tools</a> to analyze your practice\'s fees and coding.&nbsp; </b> '
		marqueecontents += '<b>Thank you for visiting Medical Management Associates.</strong></font>'
		intializemarquee(marqueewidth,marqueeheight)
	}
}

function getPageWidth()
	{
		if(isMinNS4)	
			return document.width
		if(isMinIE4 )
			return document.width
		return 300; 
	}

function intializemarquee(marqueewidth,marqueeheight){
	document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
	document.cmarquee01.document.cmarquee02.document.close()
	thelength=document.cmarquee01.document.cmarquee02.document.width
	scrollit(marqueewidth,marqueeheight)
}

function scrollit(marqueewidth,marqueeheight){
	if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
		document.cmarquee01.document.cmarquee02.left-=speed
		setTimeout("scrollit()",100)
	}
	else{
		marqueewidth=getPageWidth();
		document.cmarquee01.document.cmarquee02.left=marqueewidth
		scrollit()
	}
}

window.onload=regenerate2;
window.onresize=regenerate2;
