function changepage(page)
{

document.getElementById('activecell').value='mediaspace';


http.open('get',page+'.php')
http.onreadystatechange=changepass;
http.send(null);

}

function homeback(pa)
{ 
var pa='<a href=javascript:void(0) onclick=changepage(\'choices\')>Home</a>';


}

function changepass()
{ 
cpass=http.responseText;
acti=document.getElementById('activecell').value;
document.getElementById(acti).innerHTML='';
document.getElementById(acti).innerHTML=cpass;

}

function createRequestObject()
{ 
	var ro;
	var browser=navigator.appName;
	if (browser=="Microsoft Internet Explorer")
	{ 
	ro=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{ 
	ro= new XMLHttpRequest();
	}
	return ro;
}
http=createRequestObject();




		var queryParameters = new Array();
        var flashVars = "";
		var tag = "";
		var url = "";
        
        window.onload = function ()
        {
 		
		}

        function initialise(a) 
        {
          

			function getUrlParam( name )
			{
				  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
				  var regexS = "[\\?&]"+name+"=([^&#]*)";
				  var regex = new RegExp( regexS );
				  var results = regex.exec( window.location.href );
				  if( results == null )
						return "";
				  else
						return unescape( results[1] );
			}

			

			queryParameters['source'] = getUrlParam('source');
			queryParameters['type'] = getUrlParam('type');
			queryParameters['idx'] = getUrlParam('idx');

          


           	flashVars += "&videoWidth=";
            flashVars += 0;

            flashVars += "&videoHeight=";
            flashVars += 0;

            flashVars += "&dsControl=";
            flashVars += unescape("manual");

            flashVars += "&dsSensitivity=";
            flashVars += 100;

            flashVars += "&serverURL=rtmp://fms.call54legal.com/vod/"+a+".flv";
/*            flashVars += queryParameters['source']; */

			flashVars += "&DS_Status=";
			flashVars += "true";

            flashVars += "&streamType=";
            flashVars += queryParameters['type'];

            flashVars += "&autoStart=false";
/*            flashVars += unescape("true"); */

			tag = "<object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' &gt;&lt;param name='movie' value='swfs/videoPlayer.swf' /&gt; &lt;param name='quality' value='high' /&gt; &lt;param name='bgcolor' value='#000000' /&gt; &lt;param name='allowfullscreen' value='true' /&gt; &lt;param name='flashvars' value= '"+					
			flashVars+"'/&gt;&lt;embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer'   flashvars='"+ flashVars +"' type='application/x-shockwave-flash'&gt; &lt;/embed></object&gt; &lt;a href=/&gt; Waaka &lt;/a&gt;";
							
			
        						<!--
											// Version check based upon the values defined in globals
											var hasRequestedVersion = DetectFlashVer(10, 0, 0);

											if(!hasRequestedVersion)
											{
												/* var div = document.getElementById("mediaspace");
												div.innerHTML = '<a href="http://www.adobe.com/go/getflashplayer/" style="color:black"><img src="images/ERROR_getFlashPlayer.gif" width="641" height="377" /></a>'; */
		var n=document.getElementById('noflashbox');
n.style.display='block';							
											}
											else{
var div = document.getElementById("mediaspace");


													AC_FL_RunContent("src", "swfs/videoPlayer","width", "640","height", "377","id", "videoPlayer","quality", "high","bgcolor", "#000000","name", "videoPlayer","allowfullscreen","true","type", "application/x-shockwave-flash","pluginspage", "http://www.adobe.com/go/getflashplayer","flashvars", flashVars);

var pa='<script src=scripts.js></script><a href=/>Home</a><input type=hidden id=activecell>';
	var n=document.getElementById('noflashbox');
n.style.display='block';										/* document.write(pa); */
						}
									  // --> 

}
