//alert(window.top.name);
//alert(window.self.location);

if( window.top != window.self )
{
   openWindow(window.self.location, 400, 450);
   top.bottom_parent.main_win.location = '/SCRIPT/AltCertProg/scripts/student/serve_tree.pl?1024141404++START++_side_nav';
}


function loadSiteIndex()
{
  //alert(opener.top.bottom_parent)
  //opener.top.bottom_parent.main_win.location = '/SCRIPT/AltCertProg/scripts/student/serve_tree.pl?1024141404++START++_side_nav';
	//window.close();
	alert("Site index only loads in the live version of the site.");
	//return false;
}

function openWindow(type, width, height)
{
	love = top.open(type, "", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
	return false;
}

function openLimitedWindow(type, width, height)
{
	ver = getQuicktimeVersion();
	love = top.open(type + "?qtVer=" + ver, "", "location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,screenx=100,screeny=100,top=100,left=100,width=" + width + ",height=" + height);
	return false;
}

var quicktimeVersion = 0;
function getQuicktimeVersion() {
	//quicktimeVersion = 7;
	return quicktimeVersion;
}

var agent = navigator.userAgent.toLowerCase(); 

// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Quicktime plugin in plugin array
if (navigator.plugins != null && navigator.plugins.length > 0) {
  for (i=0; i < navigator.plugins.length; i++ ) {
	 var plugin =navigator.plugins[i];
	 if (plugin.name.indexOf("QuickTime") > -1) {
		quicktimeVersion = parseFloat(plugin.name.substring(18));
	 }
  }
}

// IE4+ Win32:  attempt to create an ActiveX object using VBScript
else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
  document.write('<scr' + 'ipt language="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('dim obQuicktime \n');
	document.write('set obQuicktime = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n');
	document.write('if IsObject(obQuicktime) then \n');
	document.write('   if obQuicktime.IsQuickTimeAvailable(0) then \n');
	document.write('      quicktimeVersion = CInt(Hex(obQuicktime.QuickTimeVersion) / 1000000) \n');
	document.write('   end if \n');
	document.write('end if \n');
	document.write('</scr' + 'ipt\> \n');
}

// Can't detect in all other cases
else {
	quicktimeVersion = quicktimeVersion_DONTKNOW;
}

	
	


quicktimeVersion_DONTKNOW = -1;
