function display(method,content,stage, width,height) {
	try {
		method = parseInt(method);
		if(method == 1 || method == 2) {
			var ext = content.substr(content.length-3,3);
			if(ext=="flv" || ext=="fla") {
				var code ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">';
				   code +='<param name="movie" value="images/Flvplayer.swf" />';
				   code +='<param name="quality" value="high" />';
				   code +='<param name="allowFullScreen" value="true" />';
				   code +='<param name="FlashVars" value="vcastr_file='+content+'&LogoText=erpfox&BufferTime=3" />';
				   code +='<embed src="images/Flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file='+content+'&LogoText=erpfox" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>';
				   code +='</object>';
				   document.getElementById(stage).innerHTML = code;
			}
			else if(ext=="swf") {
				var so = new SWFObject(content, "sotester", width, height, "9", "#3A3A3A");		
				so.write(stage);	
			}
			else {
				var code = '<embed src="'+content+'" autostart="true" loop="true" width="'+width+'" height="'+height+'"></embed>';	
				document.getElementById(stage).innerHTML = code;
			}
			
			
		}
		else if(method == 3) {
			document.getElementById(stage).innerHTML = content;
		}
		else {
			//wa ha ha
		}
	}
	catch(e){alert(e);}                              		
	return false;
}