//scripted by Eckx Media Group: Alex Viet Tran
//remove requirement for ie users to click on obj before using.

function loadFlashObject(src, width, height, loop){
	htmlStr = '<object name="' +src+ '" ';
	htmlStr += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" ';
	htmlStr += 'width="' + width + '" height="' + height + '"';
	htmlStr += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';
	htmlStr += '<param name="movie" value="' + src + '" />';
	htmlStr += '<param name="quality" value="high" />';
	htmlStr += '<embed width="' + width + '" height="' + height + '" src="' + src + '" quality="high" ';
	htmlStr += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ></embed></object>';
	document.write(htmlStr);
	
	//start the movie
	var movieName = src;
	 if(window.document[movieName]){
		 window.document[movieName].play();
	  }
	  if(navigator.appName.indexOf("Microsoft Internet")==-1){
		if(document.embeds && document.embeds[movieName]){
		 	 document.embeds[movieName].play(); 
		}
	  }
}