// ROLLOVER IMAGES
// check browser version & preload images
browserName=navigator.appName; browserVer=parseInt(navigator.appVersion);
if(browserVer >=3) version="3";
else version="2"; if (version=="3")
{
home_on=new Image(); home_on.src="images/home-2.gif";
home_off=new Image(); home_off.src="images/home.jpg";
home_Whiteoff=new Image(); home_Whiteoff.src="images/home-3.jpg";
aboutOsteo_on=new Image(); aboutOsteo_on.src="images/about-osteopathy-2.gif";
aboutOsteo_off=new Image(); aboutOsteo_off.src="images/about-osteopathy.jpg";
aboutOsteo_Whiteoff=new Image(); aboutOsteo_Whiteoff.src="images/about-osteopathy-3.jpg";
treatment_on=new Image(); treatment_on.src="images/treatment-2.jpg";
treatment_off=new Image(); treatment_off.src="images/treatment.jpg";
treatment_Whiteoff=new Image(); treatment_Whiteoff.src="images/treatment-3.jpg";
aboutMe_on=new Image(); aboutMe_on.src="images/about-me-2.gif";
aboutMe_off=new Image(); aboutMe_off.src="images/about-me.jpg";
aboutMe_Whiteoff=new Image(); aboutMe_Whiteoff.src="images/about-me-3.jpg";
awards_on=new Image(); awards_on.src="images/awards-education-2.jpg";
awards_off=new Image(); awards_off.src="images/awards-education.jpg";
awards_Whiteoff=new Image(); awards_Whiteoff.src="images/awards-education-3.jpg";
faqs_on=new Image(); faqs_on.src="images/faqs-2.gif";
faqs_off=new Image(); faqs_off.src="images/faqs.jpg";
faqs_Whiteoff=new Image(); faqs_Whiteoff.src="images/faqs-3.jpg";
contact_on=new Image(); contact_on.src="images/contact-2.jpg";
contact_off=new Image(); contact_off.src="images/contact.jpg";
contact_Whiteoff=new Image(); contact_Whiteoff.src="images/contact-3.jpg";
}

// rollover nameswap scripts
function rollIn(imgName) { if (version=="3") { document[imgName].src=eval(imgName + "on.src"); } }
function rollOut(imgName) { if (version=="3") { document[imgName].src=eval(imgName + "off.src"); } }
function rollOutWhite(imgName) { if (version=="3") { document[imgName].src=eval(imgName + "Whiteoff.src"); } }

// Dropdown Menu
function MM_findObj(n, d) { //v4.01
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; 
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); 
  return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
    if ((obj=MM_findObj(args[i]))!=null) { 
	  v=args[i+2];
      if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v='hide')?'none':v; }
      obj.display = v;

      if (v == 'block') document.getElementById('xmenu').value = '11';
	}
}

var timerID = "global";
function hidemenus() { MM_showHideLayers('menu1','','hide'); MM_showHideLayers('menu2','','hide'); MM_showHideLayers('menu3','','hide') }
function startTimer() { stopTimer(); timerID = setTimeout("hidemenus()", 2000); }
function startTimer2() { stopTimer(); timerID = setTimeout("hidemenus()", 1); }
function stopTimer() { clearTimeout(timerID); }

function MM_callJS(jsStr) { return eval(jsStr) }