function flashCheck() {
/*if (top.leftFrame.location.pathname.lastIndexOf("LeftFrame_NoFlash.htm") != -1) {
    return false;
}
else {
*/
   return true;
//}
}

// Handle all reload, back, forward functions
/*function doreload () {
	var path = top.mainFrame.location.pathname;
	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	var amenu = InternetExplorer ? top.leftFrame.menu : parent.leftFrame.document.menu;

  if (amenu != "") {	
	if (path.lastIndexOf("Home.htm") != -1) {
		amenu.GotoFrame(23);
		amenu.Play();
		window.status = "Laser Cooling and Trapping";
	} else if (path.lastIndexOf("AtomCooling.htm") != -1) {
		amenu.GotoFrame(2);
		amenu.Play();
		window.status = "Atom Cooling";
	} else if (path.lastIndexOf("PhaseSpace.htm") != -1) {
		amenu.GotoFrame(5);
		amenu.Play();
		window.status = "Quantum Chaos";
	} else if (path.lastIndexOf("Introduction.htm") != -1) {
		amenu.GotoFrame(8);
		amenu.Play();
		window.status = "Phase Space Tunneling";
	} else if (path.lastIndexOf("MicroBECIntro.htm") != -1) {
		amenu.GotoFrame(11);
		amenu.Play();
		window.status = "Introduction";
	} else if (path.lastIndexOf("Publications.htm") != -1) {
		amenu.GotoFrame(14);
		amenu.Play();
		window.status = "Publications";
	} else if (path.lastIndexOf("Contacts.htm") != -1) {
		amenu.GotoFrame(17);
		amenu.Play();
		window.status = "Contacts";
	} else if (path.lastIndexOf("Links.htm") != -1) {
		amenu.GotoFrame(20);
		amenu.Play();
		window.status = "Links";
	}
  }
}
*/
function load() {
if (flashCheck()) {
//	doreload();
}
}

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub load()\n');
	document.write('  call load()\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

