function go(loc)	{
	window.location.href = loc;
	}

function mousePtrHand()	{
	document.body.style.cursor='hand';
	}
function mousePtrDef()	{
	document.body.style.cursor='';
	}
		
function initText1Right(stopX, topY)	{
	document.getElementById("Text1").style.pixelTop = topY;
	document.getElementById("Text1").style.pixelLeft = document.body.clientWidth + 1;
	var cmd = "FlyFromRight('Text1',"+stopX+");"
	window.setTimeout(cmd,1000);
	initText2Right(stopX, topY);
	}
	
function initText2Right(stopX, topY)	{
	document.getElementById("Text2").style.pixelTop = topY+5;
	document.getElementById("Text2").style.pixelLeft = document.body.clientWidth + 1;
	window.setTimeout("FlyFromRight('Text2',"+stopX+");",3000);
	}

function FlyFromRight (oDiv,stopX) {
	document.getElementById(oDiv).style.visibility="visible";
        document.getElementById(oDiv).style.pixelLeft -= 100;
    if (document.getElementById(oDiv).style.pixelLeft <= stopX) {
        document.getElementById(oDiv).style.pixelLeft = stopX;
        }
    else
    {
        copyDiv = oDiv;
        copyX   = stopX;
        window.setTimeout("FlyFromRight(copyDiv,copyX);", 10);
    }     
}

function initTextFlyInRight(stop1X, top1Y, stop2X, top2Y)	{
	document.getElementById("Text1").style.pixelTop = top1Y;
	document.getElementById("Text1").style.pixelLeft = document.body.clientWidth + 1;
	window.setTimeout("FlyFromRight('Text1',"+stop1X+");",1000);

	document.getElementById("Text2").style.pixelTop = top2Y;
	document.getElementById("Text2").style.pixelLeft = document.body.clientWidth + 1;
	window.setTimeout("FlyFromRight('Text2',"+stop2X+");",3000);
	}

function hiLite(v,h)	{
	document.getElementById(v).style.color='#4682B4';
	mousePtrHand();
	showMenu(v,h);
	}
function hiLiteSide(v)	{
	document.getElementById(v).style.color='#4682B4';
	mousePtrHand();
	showSideMenu(v);
	}
function hiLiteButton(v)	{
	v.style.color='#4682B4';
	mousePtrHand();
	}

function dehiLiteButton(v)	{
	v.style.color='';
	mousePtrDef();
	}
		
function showMenu(v,h)	{
	var vMenu = v+"Menu";
	document.getElementById(vMenu).style.left = 0
	document.getElementById(vMenu).style.top = document.getElementById(v).offsetTop + h;
	document.getElementById(vMenu).style.display = 'block';
	}
function showSideMenu(v)	{
	var vMenu = v+"Menu";
	document.getElementById(vMenu).style.top = 0
	document.getElementById(vMenu).style.left = document.getElementById(v).offsetWidth - 3;
	document.getElementById(vMenu).style.display = 'block';
	}
function dehiLite(v)	{
	document.getElementById(v).style.color='';
	mousePtrDef();
	hideMenu(v);
	}

function hideMenu(v)	{
	var vMenu = v+"Menu";
	document.getElementById(vMenu).style.display='';
	}
	
function menuHiLite(v)	{
	mousePtrHand();
	v.style.backgroundColor = 'steelblue';
	v.style.color = 'steelblue';
	}
function menuDeHiLite(v)	{
	mousePtrDef();
	v.style.backgroundColor = '';
	v.style.color = '';
	}
		
function dehiLiteNoMenu(v)	{
	v.style.color='';
	mousePtrDef();
	}	
function hiLiteNoMenu(v)	{
	v.style.color='#4682B4';
	mousePtrHand();
	}	

function goNext()	{
	var dest = "";
	for (var i = 0; i <= 3; i++)
	if (document.info.type[i].checked)	{
		dest = document.info.type[i].value
		}
	if (dest == "") 	{
		alert("Please select the type of business you represent.")
		}
	else	{
		switch (dest)	{
			case "physician":
				document.getElementById("physinfo").style.display = "";
				break
			case "hospital":
				document.getElementById("hospinfo").style.display = "";
				break
			case "clinic":
				document.getElementById("clinicinfo").style.display = "";
				break
			case "billing service":
				document.getElementById("billingsvcinfo").style.display = "";
				break
			}
		document.getElementById("contactinfo").style.display = "none";
		}
	}

function goPrev(v)	{
	document.getElementById(v).style.display = "none";
	document.getElementById("contactinfo").style.display = "";
	}