function videoSize(p_w, p_h) {
		if(document.all && !document.getElementById) {
				document.all['videoDiv'].style.pixelWidth = p_w;
				document.all['videoDiv'].style.pixelHeight = p_h;
		} else {
				document.getElementById('videoDiv').style.width = p_w;
				document.getElementById('videoDiv').style.height = p_h;
		}
}

function appendParameter(p_args, p_name, p_value) {
		if (p_args == "")
				return p_name+"="+escape(p_value);
		else
				return p_args+"&"+p_name+"="+escape(p_value);
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function FLVPlayer_DoFSCommand(command, args) {
		var FLVPlayerObj = isInternetExplorer ? document.all.FLVPlayer : document.FLVPlayer;
		//var myText = isInternetExplorer ? document.all['myText'] : document.getElementById('myText')
		//
		// Place your code here.
		//
		switch (command) {
				case "videoSize":
						var a = args.split(",");
						videoSize(a[0], a[1]);
						//myText.value = "videoSize("+a[0]+","+a[1]+")\r" + myText.value;
						break;
				case "done":
						//myText.value = "Done Playing\r" + myText.value;
						break;
				//Add custom events here
				default:
						//myText.value = command+" ("+args+")\r" + myText.value;
		}
}

// 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 FLVPlayer_FSCommand(ByVal command, ByVal args)\n');
		document.write('Call FLVPlayer_DoFSCommand(command, args)\n');
		document.write('End Sub\n');
		document.write('</script\>\n');
}

var args = "";
		args = appendParameter(args, "configFile", "http://flash.audiovideoweb.com/flashgen.cgi?sname=il80fls25093/FHC-1_complete256K_Stream001.flv&aname=str");

		args = appendParameter(args, "skinName", "http://flashlinks.audiovideoweb.com/flash_skins/flashclearskin3.swf");
		if(readCookie("pageVisited") == "true"){
			args = appendParameter(args, "autoPlay","false");
		}else{
			args = appendParameter(args, "autoPlay","true");
			writeCookie("pageVisited", "true");
		}
		args = appendParameter(args, "autoRewind","true");
		args = appendParameter(args, "isLive","false");                          
	   
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="FLVPlayer" align="">');

document.write('<param name="movie" value="http://flashlinks.audiovideoweb.com/flash_skins/FLVPlayer.swf?'+args+'"/>');

document.write('<param name="salign" value="lt" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="bgcolor" value="#000000" />');
document.write('<embed src="http://flashlinks.audiovideoweb.com/flash_skins/FLVPlayer.swf?'+args+'" quality="high" scale="noscale" bgcolor="#ffffff" width="100%" height="100%" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');

document.write('</object>');

/*

*/
