<!--
//**********************************************    GLOBAL VARIABLES
var isIE = document.all ? true : false;
var isDOM = document.getElementById ? true : false;
var isMac = navigator.userAgent.match(/mac/i)? 1 : 0 ;
var isNS = (navigator.appName == "Netscape")? 1 : 0 ;
var PH;
var PW;
var firstLoad;
var progreSS = 0;
var limit;

var btnSource = new Array("AOverview_MNU.gif","CProfile_MNU.gif","History_MNU.gif","CWorks_MNU.gif","Rehabilitation_MNU.gif","References_MNU.gif","AReport_MNU.gif");
var pageList = new Array("overV.html","profile.html","history.html","works.html","rehab.html","references.html","balance.html");


	function revealImg() {
		var theContent = document.getElementById("contentPane");
		var thePane = document.getElementById("imgPane");
		var theLSign = document.getElementById("loadSign");
		theLSign.style.visibility = "hidden";
		limit = thePane.width
		thePane.width = 0;
		limit = 1164;
		thePane.style.visibility = "visible";
		revealIFA();
		
	}


	function revealIFA() {
		var thePane = document.getElementById("imgPane");
		if (thePane.width < limit) {
			thePane.width = parseInt(thePane.width)+5;
			setTimeout("revealIFA()",100);
		} else {
			firstLoad = 0;
			revealTAB();
		}
	}
	function revealTAB() {
		var theCover = document.getElementById("coverLayer");
		var thePane = document.getElementById("imgPane");
		//var cTab = document.getElementById("contTable");
		//var cWidth = cTab.rows[0].cells[0].width;
		//var theSub = document.getElementById("subTable");
		//var pSub = parseInt(theSub.rows[0].cells[0].style.paddingLeft);
		var opac;
 			if (document.all){ 
 				opac = "theCover.style.filter = 'alpha(opacity=" + parseInt(100-(progreSS/2)) + ")'";
 			} else if (!document.all && document.getElementById) { 
 				opac = "theCover.style.MozOpacity = 'alpha(opacity=" + parseInt(100-(progreSS/2)) + ")'";
			} 
		if (progreSS < 200) {
			progreSS = progreSS + 20
			eval(opac);
			//cTab.rows[0].cells[0].width = cWidth - 20;
			setTimeout("revealTAB()",100);
		} else if (progreSS >= 200) {
			theCover.style.visibility = "hidden";
			progreSS = 0;
			revealLOG();
		}
	}

	function revealLOG() {

		var theSub = document.getElementById("subTable");
		var pSub = parseInt(theSub.rows[0].cells[0].style.paddingLeft);
		if (progreSS < 140) {
			progreSS = progreSS + 20
			theSub.rows[0].cells[0].style.paddingLeft = pSub + 10 + "px";
			setTimeout("revealLOG()",100);
		}
	}

	function pageLayout() {

		var theSub = document.getElementById("subTable");
		var theMenu = document.getElementById("menuPane");
		var theContent = document.getElementById("contentPane");
		theContent.height = parseInt(PH)-170;

		if (theContent.contentDocument) {
		//NS6
			theContent.contentDocument.location.replace("Home/pages/" + top.pageList[0]);
		} else if (theContent.contentWindow) {
		//IE5.5, IE6				
			theContent.contentWindow.document.location.replace("Home/pages/" + top.pageList[0]);
		} else if (theContent.document) {
		//IE5
			theContent.document.location.replace("Home/pages/" + top.pageList[0]);
		} else {
			return true;
			alert("error");
		}


		theSub.rows[0].cells[0].style.paddingLeft = "90px";
		theSub.rows[0].cells[0].align = "left";
		theMenu.height = parseInt(PH);
		theMenu.src = "Home/menu.html";
		var theCover = document.getElementById("coverLayer");
		var thePane = document.getElementById("imgPane");
		theCover.width = (PW < 950)? 329: 429; 
		theCover.height = parseInt(PH);

		var offTopPan = parseInt((parseInt(PH) - 620)/2);
		var updTop = (isIE)? 365: 350;
		thePane.style.top = (offTopPan > 0)?  updTop + offTopPan + "px": updTop + "px";

		var maxW = limit + parseInt(theCover.width);
		if (PW < maxW) {
			var pageOffset = PW - 1200;
			thePane.style.left = (pageOffset > 0)? pageOffset + "px": "0px";
		}
	}		

	function printPage(page) {
		var olW = parseInt(screen.width/2) - 310;
		var olH = 0;

		var sH = parseInt(screen.height)-120;
		var theFeats = "height=" + sH + ",width=620,location=no,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=no";
		var printWin = window.open("pages/print.html?page=" + page, "Print", theFeats);
		printWin.moveTo(olW,olH);
		printWin.focus();
	}


//-->