function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


/*function MM_showHideLayers() { //v6.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')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
*/
function MM_showHideLayers() { //v6.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; }
}




/* for home page video links  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
function openVideo(url) {
	MM_openBrWindow(url,'video','location=no,scrollbars=yes,resizable=yes,width=360,height=300');
}
function vOne() {
	MM_swapImage('v01','','../../imgs/fellows/home/01-over.jpg',1);
	MM_showHideLayers('videoZero','','hide','introOne','','show','introTwo','','hide','introThree','','hide','introFour','','hide','introFive','','hide','introSix','','hide');
}
function vTwo() {
	MM_swapImage('v02','','../../imgs/fellows/home/02-over.jpg',1);
	MM_showHideLayers('videoZero','','hide','introOne','','hide','introTwo','','show','introThree','','hide','introFour','','hide','introFive','','hide','introSix','','hide');
}
function vThree() {
	MM_swapImage('v03','','../../imgs/fellows/home/03-over.jpg',1);
	MM_showHideLayers('videoZero','','hide','introOne','','hide','introTwo','','hide','introThree','','show','introFour','','hide','introFive','','hide','introSix','','hide');
}
function vFour() {
	MM_swapImage('v04','','../../imgs/fellows/home/04-over.jpg',1);
	MM_showHideLayers('videoZero','','hide','introOne','','hide','introTwo','','hide','introThree','','hide','introFour','','show','introFive','','hide','introSix','','hide');
}
function vFive() {
	MM_swapImage('v05','','../../imgs/fellows/home/05-over.jpg',1);
	MM_showHideLayers('videoZero','','hide','introOne','','hide','introTwo','','hide','introThree','','hide','introFour','','hide','introFive','','show','introSix','','hide');
}
function vSix() {
	MM_swapImage('v06','','../../imgs/fellows/home/06-over.jpg',0);
	MM_showHideLayers('videoZero','','hide','introOne','','hide','introTwo','','hide','introThree','','hide','introFour','','hide','introFive','','hide','introSix','','show');
}
function vOut() {
	MM_swapImgRestore();
	MM_showHideLayers('videoZero','','show','introOne','','hide','introTwo','','hide','introThree','','hide','introFour','','hide','introFive','','hide','introSix','','hide');
}
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */



/* for home page stills  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
function layerOne() {
	MM_showHideLayers('homeOne','','show','homeTwo','','hide','homeThree','','hide','homeFour','','hide','homeFive','','hide','homeSix','','hide');
}
function layerTwo() {
	MM_showHideLayers('homeOne','','hide','homeTwo','','show','homeThree','','hide','homeFour','','hide','homeFive','','hide','homeSix','','hide');
}
function layerThree() {
	MM_showHideLayers('homeOne','','hide','homeTwo','','hide','homeThree','','show','homeFour','','hide','homeFive','','hide','homeSix','','hide');
}
function layerFour() {
	MM_showHideLayers('homeOne','','hide','homeTwo','','hide','homeThree','','hide','homeFour','','show','homeFive','','hide','homeSix','','hide');
}
function layerFive() {
	MM_showHideLayers('homeOne','','hide','homeTwo','','hide','homeThree','','hide','homeFour','','hide','homeFive','','show','homeSix','','hide');
}
function layerSix() {
	MM_showHideLayers('homeOne','','hide','homeTwo','','hide','homeThree','','hide','homeFour','','hide','homeFive','','hide','homeSix','','show');
}
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */






// popups for outside links
var OwinWidth = "620"		// popup window for research pages
var OwinHeight = "300"
var BwinWidth = "675"		// popup window for bio pages
var BwinHeight = "400"
var CwinWidth = "670"		// popup window for course description pages
var CwinHeight = "400"
var winWidth = "820"			// popup window for everything else
var winHeight = "520"
var winScrollbars = "yes"
var winToolbar = "yes"
var winResizable = "yes"
var winLocation = "yes"
var winStatus = "yes"

function doWin(winURL) {
  window.open(winURL,"","width="+winWidth+",height="+winHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}
function openResearch(winURL) {
  window.open(winURL,"","width="+OwinWidth+",height="+OwinHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}
// popups for bio pages
function BioWin(winURL) {
  window.open(winURL,"","width="+BwinWidth+",height="+BwinHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}
// popups for course pages
function courseWin(winURL) {
  window.open(winURL,"","width="+CwinWidth+",height="+CwinHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}

/*
<a href="javascript:doWin('http://sloanfyc.mit.edu');">
*/



/* obsolete
//tmtC_cssOnPlatform
tmt_css_Mac = "css_mac.css";
tmt_css_Win = "css_pc_netscapt.css";
if((navigator.appVersion.indexOf("Mac")!= -1)){
   document.write("<link rel='stylesheet' href='" + tmt_css_Mac + "' type='text/css'>");
}
else{





//tmtC_cssOnBrowser
tmt_css_NN = "css_pc_ns.css";
tmt_css_IE = "css_pc_ie.css";
if(document.layers){
   document.write("<link rel='stylesheet' href='" + tmt_css_NN + "' type='text/css'>");
}
if(document.all){
   document.write("<link rel='stylesheet' href='" + tmt_css_IE + "' type='text/css'>");
} else{
   document.write("<link rel='stylesheet' href='" + tmt_css_NN + "' type='text/css'>");
}//tmtC_cssOnBrowserEnd

}//tmtC_cssOnPlatformEnd

*/