function initFlash(swfname,parameters){
	//alert("initFlash()")
	FlashControl.createSWFObject(
		swfname+"?id="+parameters+"&autoPlay=true",
		{
			width:"718px",
			height:"317px",
			bgcolor:"#ffffff",
			quality:"high",
			align:"left",
			zindex:1000,
			salign:"t",
			allowScriptAccess:"sameDomain",
			FlashVars:"id="+parameters,
			FlashVars:"autoPlay=false",
			id:"flash_player"
		},
		"flashdiv",
		{
			detectFlash:true,
			flashVersion:8,
			detectResolution:false,
			onError:errorHandler
			
		}
	)

	
}
function errorHandler(err,erros){
	//alert("error")
	var wrapper = document.getElementById("flashdiv")
	var _html=""
	switch (err){
		case "invalidFlash":
			_html+= 'You do not have the required flash version installed on your machine. <a href="http://www.macromedia.com/go/getFlashPlayer">Please download it here.</a>'
			wrapper.innerHTML = _html
			
		break;
	}
}
	
