	function getFlashMovie(movieName) {
  		var isIE = navigator.appName.indexOf("Microsoft") != -1;
  		return (isIE) ? window[movieName] : document[movieName];
	}

	function call_Ctrl(currSet,currTitle,str,setTime,ctrl_L,ctrl_R,ctrl_W,ctrl_H){

     		getFlashMovie("java_as3_player").sendToActionscript(currSet,str,setTime,ctrl_L,ctrl_R,ctrl_W,ctrl_H);


		if(currSet == 2){
			document.getElementById('set_videoTitle').firstChild.nodeValue = currTitle;
		}
	}

	function sendToJavaScript(val){
		document.getElementById('playTime').firstChild.nodeValue = val;
	}

	function sendScrubberInfo(time1,time2){
	     
		var multiple1 = time1;
		var multiple2 = time2 - 200;

		var devide = multiple2 / 200;

		if(time2 < 100){
			document.getElementById('scrubber1').style.width = time1*1.7;
			document.getElementById('scrubber2').style.width = time2*1.7;
		}
		if((time2 > 100) && (time2 < 200)){
			document.getElementById('scrubber1').style.width = time1 / 2 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 2 * 1.7;
		}
		if((time2 > 200) && (time2 < 300)){
			document.getElementById('scrubber1').style.width = time1 / 3 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 3 * 1.7;
		}
		if((time2 > 300) && (time2 < 400)){
			document.getElementById('scrubber1').style.width = time1 / 4 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 4 * 1.7;
		}
		if((time2 > 400) && (time2 < 500)){
			document.getElementById('scrubber1').style.width = time1 / 5 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 5 * 1.7;
		}
		if((time2 > 500) && (time2 < 600)){
			document.getElementById('scrubber1').style.width = time1 / 6 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 6 * 1.7;
		}
		if((time2 > 600) && (time2 < 700)){
			document.getElementById('scrubber1').style.width = time1 / 7 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 7 * 1.7;
		}
		if((time2 > 700) && (time2 < 800)){
			document.getElementById('scrubber1').style.width = time1 / 8 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 8 * 1.7;
		}
		if((time2 > 800) && (time2 < 900)){
			document.getElementById('scrubber1').style.width = time1 / 9 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 9 * 1.7;
		}
		if((time2 > 900) && (time2 < 1000)){
			document.getElementById('scrubber1').style.width = time1 / 10 * 1.7;
			document.getElementById('scrubber2').style.width = time2 / 10 * 1.7;
		}

	}


function getJavaPlayer(address,movie,color,x,y,width,height,volume){

	document.write("<script language='JavaScript' type='text/javascript'> ");
	document.write("var java_link1 = '" + address + "';");
	document.write("var java_movie1 = '" + movie + "';");
	document.write("var java_bkgClr1 = " + color + ";");
	document.write("var java_x1 = '" + x + "';");
	document.write("var java_y1 = '" + y + "';");
	document.write("var java_width1 = '" + width + "';");
	document.write("var java_height1 = '" + height + "';");
	document.write("var java_vol1 = '" + volume + "';");

	document.write("AC_FL_RunContent(	");
	document.write("	'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',");
	document.write("	'width', '300',");
	document.write("	'height', '250',");
	document.write("	'src', 'java_as3_player',");
	document.write("	'quality', 'high',");
	document.write("	'pluginspage', 'http://www.adobe.com/go/getflashplayer',");
	document.write("	'align', 'middle',");
	document.write("	'play', 'true',");
	document.write("	'loop', 'true',");
	document.write("	'scale', 'showall',");
	document.write("	'wmode', 'window',");
	document.write("	'devicefont', 'false',");
	document.write("	'id', 'java_as3_player',");
	document.write("	'bgcolor', '#ffffff',");
	document.write("	'name', 'java_as3_player',");
	document.write("	'FlashVars', 'java_link=' + java_link1 + '&java_movie=movies/' + java_movie1 + '&java_bkgClr=' + java_bkgClr1 + '&java_x=' + java_x1 + '&java_y=' + java_y1 + '&java_width=' + java_width1 + '&java_height=' + java_height1 + '&java_vol=' + java_vol1 , ");

	document.write("	'menu', 'true',");
	document.write("	'allowFullScreen', 'false',");
	document.write("	'allowScriptAccess','sameDomain',");
	document.write("	'movie', 'java_as3_player',");
	document.write("	'salign', ''");
	document.write("	); ");
	document.write("</script>");

	document.write("<noscript>");
	document.write("	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='300' height='250' id='java_as3_player' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='sameDomain' />");
	document.write("	<param name='allowFullScreen' value='false' />");
	document.write("	<param name='FlashVars' value='java_link=' + java_link1 + '&java_movie=movies/' + java_movie1 + '&java_x=' + java_x1 + '&java_y=' + java_y1 + '&java_width=' + java_width1 + '&java_height=' + java_height1 + '&java_vol=' + java_vol1 />");

	document.write("	<param name='movie' value='java_as3_player.swf'/><param name='quality' value='high' /><param name='bgcolor' value='#ffffff'/><embed src='java_as3_player.swf' quality='high' bgcolor='#ffffff' width='300' height='250' name='java_as3_player' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer'/>");
	document.write("	</object>");
	document.write("</noscript>");

}

