// JavaScript Document
// 	User Interface Image and Text Helper
// (c) PcPc Websites and Graphics
// 	 www.robspcpc.com
// r.20081217.1441

var ds = new Array();
var dt = new Array();
var ts = 12000;
var ns = 7, ni=0;
var Dobj = new Object();
var Gobj = new Object();
var el;
var ky = new Object();
var MSbr = 1;
//(navigator.appName.search(/microsoft/i)>=0);


ds[0] = "Welcome to CHIROLANE.com - Your online resource to begin feeling better...";
dt[0] = 8000;
ds[1] = "Specializing in complete Family, Personal, and Emergency Health Care Services. ";
dt[1] = 8000;
ds[2] = "Your complete and proper recovery is naturally our main goal.";
dt[2] = 8000;
ds[3] = "Use our Instant Contact for feedback, questions, or to subscribe to our electronic newsletter.";
ds[4] = "Our feedbackServer allows patients to submit prescreening, insurance, and other information on a secure internet connection.";
ds[5] = "Existing Patients can use the feedbackServer after treatment, helping us provide more effective care.";
ds[6] = "The Virtual Spine is an interactive way to learn about your spine and which areas are likely to cause pain, disease, or discomfort.";
ds[7] = "If you would like regular updates on chiropractic or more information about our office sign up for our newsletter. It is health news you can use.";
ds[11] = "Site design by PcPc Websites and Graphics. Click to visit www.RobsPcPc.com.";
ds[12] = "View a map to locate our office.";
ds[13] = "Learn more about the Doctor and the members of our staff.";
ds[14] = "Learn more about the services we provide.";
ds[15] = "Learn about Chiropractic Care, Education, and History.";
ds[16] = "View our Privacy Policy.";
ds[17] = "Get a discount on your first visit just for visiting our website!";
ds[18] = "Secure Contact form for Dr. Lane and his office.";
ds[19] = "Review important information for first time patients.";

var	ph = ["images/Doc-6o09_03-over.jpg",
			"images/Doc-6o09_03-over.jpg"],
	po = ["images/Doc-6o09_03.jpg",
			"images/Doc-6o09_03.jpg"],
	sz = [600,900];

function chgProp(who,what,how)
{
var frank	= document.getElementById(who);
var e = frank.setAttribute(what,how);
}


function init1()
{
Dobj = document.getElementById('DynObj');
Gobj = document.getElementById('groupPic');
MM_preloadImages('images/feedback-sm-5b_01-over.gif','images/body-sm-5b_01-over.gif');
MM_reloadPage(true);
if(MSbr){startTimer(0);}
}

function startTimer(ii,uu)
{
window.clearTimeout(el);
//if(uu) {
var dd = ds[ni];
var tts;
window.status=ds[ni];
Dobj.innerHTML = dd; 
ni++;
 if(ni>ns)
	{ni=0;}
if(dt[ni-1]>0) {tts = dt[ni-1]; } else {tts = ts;}
el = window.setTimeout(startTimer,tts/(ii||1));
}



function jumpTimer(ji,js,jn,jh)
{
window.clearTimeout(el);
var dth = "DynTextHilite"+(jh||"");
var ts2 = (js)?ts/2:ts*1.5;
if(!jn){ni = jn = ji;}
Dobj.innerHTML = ds[jn];
Dobj.className = dth;
if(MSbr)
 {
if((js&&jn>=js)) 
	{
	el=window.setTimeout(reStartTimer,ts2);
	}
else
	{
	var JTS = "jumpTimer("+ji+","+js+","+jn+",'"+jh+"')";
	el = window.setTimeout(JTS,ts);
	}
 }
else
 { window.status=ds[0]; }
}


function reStartTimer()
{
window.clearTimeout(el);
Dobj.className = 'DynText';
if(MSbr)
 { startTimer(5); }
else
 { Dobj.innerHTML = ds[0]; }
}



function MM_reloadPage(init) 
{ 
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

// outPic();

}


function overPic()
{
var dow = document.body.offsetWidth;
if(dow>sz[0])
	{ Gobj.src = ph[0]; }
else if(dow>sz[1])
	{ Gobj.src = ph[1]; }
else
	{ Gobj.src = ph[1]; }
}


function outPic()
{
var dow = document.body.offsetWidth;
if(dow>sz[0])
	{ Gobj.src = po[0]; }
else if(dow>sz[1])
	{ Gobj.src = po[1]; }
else
	{ Gobj.src = po[2]; }
}


function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
