//Declare a First DIV ID here
var viewportwidth;
var viewportheight;
var isIE = document.all?true:false;
if (!isIE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMousePosition;
document.onmousemove = placeObj;
function getMousePosition(e) {
  var _x;
  var _y;
  if (!isIE) {
    _x = e.pageX;
    _y = e.pageY;
  }
  if (isIE) {
    _x = event.clientX + document.body.scrollLeft;
    _y = event.clientY + document.body.scrollTop;
  }
  return true;
}

var timer = setInterval (placeObj, 50);

function placeObj(){
	viewscreen();
	document.getElementById("disable_all_layers").style.height = viewportheight;
	document.getElementById("disable_all_layers").style.top = document.body.scrollTop-1;
	document.getElementById("bio_cont").style.height = viewportheight;
	document.getElementById("bio_cont").style.top = document.body.scrollTop-1;
}

function popOut(e, flag){
	if ( e == "prev"){
		fullpath = prevpath;
	}else{
		def_path = "physician_bio/";
		fullpath = def_path + e;
		prevpath = fullpath;
	}
	if (flag){
		
		placeObj();
		document.getElementById("disable_all_layers").style.display = "block";
		document.getElementById("bio_cont").style.display = "block";
		getpage.load('bio_pop_text', fullpath, true);
	}else{
		document.getElementById("disable_all_layers").style.display = "none";
		document.getElementById("bio_cont").style.display = "none";
	}
}

function viewscreen(){
	  // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	if (typeof window.innerWidth != 'undefined')
	{
		viewportwidth = window.innerWidth;
		viewportheight = window.innerHeight;
	}
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0)
	{
		viewportwidth = document.documentElement.clientWidth;
		viewportheight = document.documentElement.clientHeight;
	}
	// older versions of IE
	else
	{
		viewportwidth = document.getElementsByTagName('body')[0].clientWidth;
		viewportheight = document.getElementsByTagName('body')[0].clientHeight;
	}
	//cont.innerHTML = viewportheight;
}

