var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-2)) == 10 || parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= podsVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+podsVersion+'")))\n');
	document.write('</SCR'+'IPT\> \n');
}
if ( plugin ) {
	podsPortalCode =' <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	podsPortalCode +=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+podsVersion+',0,0,0" ';
	podsPortalCode +=' ID=cstvad WIDTH='+podsWidth+' HEIGHT='+podsHeight+'>';
	podsPortalCode +=' <PARAM NAME=movie VALUE="'+podsSWF+'?9e"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE='+podsScale+'> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE='+podsWmode+'> <PARAM NAME=bgcolor VALUE=#'+podsBkgCol+'> <PARAM NAME=FlashVars VALUE='+podsVars+'> <PARAM NAME=AllowScriptAccess VALUE=always> '; 
	podsPortalCode +=' <EMBED src="'+podsSWF+'?9e" menu=false quality=high scale='+podsScale+' salign=LT wmode='+podsWmode+' bgcolor=#'+podsBkgCol+' swLiveConnect=FALSE WIDTH='+podsWidth+' HEIGHT='+podsHeight+' FlashVars='+podsVars;
	podsPortalCode +=' AllowScriptAccess=always TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>';
	document.write(podsPortalCode);
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
	document.write(podsDefault);
}

function launchGTpods(id, sport, school) {
	gtWindow = window.open("http://onlyfans.cstv.com/schools/" + school + "/gametracker/launch/?event=" + id + "&school=" + school + "&sport=" + sport + "&", sport + "GameTracker", "width=976,height=660,toolbar=no,scrollbars=no");
}
