/*********************************	
// WRITE SWF TO STAGE
*********************************/	
function writeSwf( srcDiv, srcClip, srcWidth, srcHeight, srcProps){
	//
	/*var title = "This is the Title";
	var showControls = "true";
	var img = "";*/
	//var isLooped = "false";
	//
	var clip = ( srcClip != undefined ) ? "clip="+srcClip : "";
	var link = "&link="+window.location; 
	if(srcProps != undefined){
		//
		var splashBackgroundColor = (srcProps.splashBackgroundColor != undefined ) ? "&splashBackgroundColor="+srcProps.splashBackgroundColor : "";
		var controlBarHeight = (srcProps.controlBarHeight != undefined ) ? "&controlBarHeight="+srcProps.controlBarHeight : "";
		var backgroundColor = (srcProps.backgroundColor != undefined ) ? "&backgroundColor="+srcProps.backgroundColor : "";
		var controlBarColor = (srcProps.controlBarColor != undefined ) ? "&controlBarColor="+srcProps.controlBarColor : "";
		var constrainRatio = (srcProps.constrainRatio != undefined ) ? "&constrainRatio="+srcProps.constrainRatio : "";
		var startVideo = (srcProps.startVideo != undefined ) ? "&startVideo="+srcProps.startVideo : "";
		var splashImage= (srcProps.splashImage != undefined ) ? "&splashImage="+srcProps.splashImage : "";
		//
	}else{
		//
		var splashBackgroundColor = "";
		var controlBarHeight = "";
		var backgroundColor = "";
		var controlBarColor = "";
		var constrainRatio = "";
		var startVideo = "";
		var splashImage= "";
		//
	}
	//
	document.getElementById(srcDiv).style.width = srcWidth+"px";
	document.getElementById(srcDiv).style.height = srcHeight+"px";
	//
	var flashVarStr =  clip+link+splashBackgroundColor+controlBarHeight+backgroundColor+controlBarColor+constrainRatio+startVideo+splashImage;
	//
	so = new SWFObject("flash/FLVPlayer_v1_1.swf", "video", srcWidth,srcHeight, "8", "#000000");
	//
	so.addParam("wmode", "transparent");
	so.addParam("flashVars",flashVarStr);
	so.addParam("allowFullscreen","true");
	so.write(srcDiv);
	//
}
/*********************************	
// SWF MOVIE FINDER
*********************************/	
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}else{
		if(document[movieName].length != undefined){
			return document[movieName][1];
		}
		return document[movieName];
	}
}