// JavaScript Document
function flashmake(parel,swf,swfnaam,width,height,wmode){
	if (wmode==null){
		wmode="opaque"
	}
	//alert(navigator.appName.toLowerCase())
	if(navigator.userAgent.toLowerCase().indexOf("safari")>-1){
		wmode="window"
	}
	
	retval='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+swfnaam+'" align="middle">'
	retval+='<param name="allowScriptAccess" value="always" />'
	retval+='<param name="allowFullScreen" value="true" />'
	retval+='<param name="movie" value="'+swf+'" />'
	retval+='<param name="quality" value="high" />'
	retval+='<param name="wmode" value="'+wmode+'" />'
	retval+='<param name="bgcolor" value="#000000" />'
	retval+='<embed src="'+swf+'" quality="high" bgcolor="#000000" width="'+width+'" height="'+height+'" name="'+swfnaam+'" align="middle" allowScriptAccess="always" wmode="'+wmode+'" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	retval+='</object>'
	$(parel).innerHTML=retval
}
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}
function dopainting(swf,swfname,width,height,flashvars, params, attributes){
	swfobject.embedSWF(swf, swfname, width, height, "9.0.0", "./flash/expressInstall.swf", flashvars, params, attributes);

 //init the youTubeLoader javascript methods
	SWFID = swfname;

}
