    
    function openWindow(which) {
		//window.open('science_timeline.php','mywin','left=0,top=0,width=593,height=400,toolbar=0,resizable=0');
		w = document.body.clientWidth || window.innerWidth;
		h = document.body.clientHeight || window.innerHeight;
		//alert(w);
		
		ar = getScrollXY();
		//alert(ar[1]);
		
		if(document.body.scrollHeight > h) {
			nh = document.body.scrollHeight;
		} else {
			nh = h;
		}
		
	
		
		document.getElementById('bg').style.width = w + "px";
		document.getElementById('bg').style.height = nh + "px";
		document.getElementById('bg').style.display = 'block';
		
		if(which == 'science') {
		
			document.getElementById('flashContainer').style.display = 'block';
			document.getElementById('flashContainer').style.left = ((w/2) - (593/2)) + "px";
			document.getElementById('flashContainer').style.top = ((h/2) - (430/2)) + "px";
		} else if(which == 'milestones') {
			document.getElementById('milestones').style.display = 'block';
			document.getElementById('milestones').style.left = ((w/2) - (593/2)) + "px";
			document.getElementById('milestones').style.top = ((h/2) - (430/2)) + "px";
		}
		
		
	}
	
	function getScrollXY() {
	  var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	  }
	  return [ scrOfX, scrOfY ];
	}
	
	function closeWindow(which) {
		document.getElementById('bg').style.display = 'none';
		if(which == 'science') {
			document.getElementById('flashContainer').style.display = 'none';
		} else {
			document.getElementById('milestones').style.display = 'none';
		}
	}
	