		var BaseURL = "/activities/studyjams/video/";
		
		function ShowClose(Jam){
			obj = document.getElementById("FlashClose");
			if (Jam) 
			{
				obj.style.top="10px";
				obj.style.left="1044px";
			}
			else
			{
				obj.style.top="95px";
				obj.style.left="990px";
			}
			obj.style.display="";
		}
		
		function Player(flv,swf,title,datafile,PlayerName,AudioFile, Player)
		{
			document.getElementById("FlashClose").style.display="none";
			if (!swf) swf = 'video_player';
			if (!PlayerName) PlayerName = swf;
			var so = new SWFObject("/activities/studyjams/video/" + swf + ".swf", PlayerName, "971", "580", "8", "#FFFFFF");
			so.addParam("wmode", "transparent");
			so.addVariable("title", title);
			if (flv) so.addVariable("flv", "rtmp://cp35063.edgefcs.net/ondemand/flash/studyjams/video/" + flv);
			if (datafile) so.addVariable("datafile", BaseURL + datafile);
			if (Player)	so.addVariable("player", BaseURL + Player );
			if (AudioFile) so.addVariable("audiofile", BaseURL + AudioFile);
			so.addVariable("enableJSURL","true");
			so.addVariable("enableHREF","true");
			so.useExpressInstall("expressinstall.swf");
			so.write("player");
			var intM = f_scrollTop();
			document.getElementById("PlayerWrapper").style.top=intM + "px";
			document.getElementById("PlayerWrapper").style.display="";
		}
		
		function f_scrollTop() {
			return f_filterResults (
				window.pageYOffset ? window.pageYOffset : 0,
				document.documentElement ? document.documentElement.scrollTop : 0,
				document.body ? document.body.scrollTop : 0
			);
		}
		function f_filterResults(n_win, n_docel, n_body) {
			var n_result = n_win ? n_win : 0;
			if (n_docel && (!n_result || (n_result > n_docel)))
				n_result = n_docel;
			return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
		}

		function FakePlayer()
		{
			document.getElementById("player").innerHTML = "<img src=\"images/JamStudio_lrgr.jpg\" alt=\"\" />";
			ShowClose(1);
			document.getElementById("PlayerWrapper").style.display="";
		}
		
		function ClosePlayer() 
		{
			document.getElementById("PlayerWrapper").style.display="none";
			document.getElementById("player").innerHTML = "";
		}
		
		function onNavigationChange(e)
		{
			if (e == 'player_close') ClosePlayer();
		}
