var IEplayTalent = "";
var IEflashObject = "";
var IEobjnr = "";
function demoByDOM(mp3,flashObject,objnr){
	var mac = navigator.userAgent.indexOf('Macintosh') > -1;
	var win = navigator.userAgent.indexOf('Windows') > -1;
	var ie = navigator.appName.indexOf('Microsoft') > -1;
	var net = navigator.appName.indexOf('Netscape') > -1;
	//
	var newObj = document.createElement('object');
	newObj.setAttribute('classid','clsid:d27cdb6e-ae6d-11cf-96b8-444553540000');
	newObj.setAttribute('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0');
	newObj.setAttribute('width','51');
	newObj.setAttribute('height','39');
	newObj.setAttribute('allowScriptAccess','always');
	newObj.setAttribute('FlashVars','utn=' + mp3);
	if (ie){
	IEplayTalent = mp3;
	IEflashObject = flashObject;
	IEobjnr = objnr;
	//newObj.attachEvent('onclick',doDemo);
	//newObj.setAttribute("onclick",'makeCall(playTalent,\'' + flashObject + '\')');
	newObj.setAttribute('id',flashObject);
	newObj.setAttribute('align','middle');
	//newObj.allowScriptAccess = 'sameDomain';
	//newObj.FlashVars = 'utn=' + mp3;
	newObj.movie = 'http://www.voiceovermiami.com/vm_images/play.swf';
	newObj.loop = 'false';
	newObj.menu = 'false';
	newObj.wmode = 'transparent';
	newObj.bgcolor = '#ffffff';
	}
	//
	var mbed = document.createElement('embed');
	mbed.setAttribute('src','vm_images/playxx.swf');
	mbed.setAttribute('FlashVars','utn=' + mp3);
	mbed.setAttribute('loop','false');
	mbed.setAttribute('menu','false');
	mbed.setAttribute('wmode','transparent');
	mbed.setAttribute('bgcolor','#ffffff');
	mbed.setAttribute('width','51');
	mbed.setAttribute('height','39');
	mbed.setAttribute('name',flashObject);
	mbed.setAttribute('align','middle');
	mbed.setAttribute('allowScriptAccess','sameDomain');
	mbed.setAttribute('type','application/x-shockwave-flash');
	mbed.setAttribute('pluginspage','http://www.macromedia.com/go/getflashplayer');
	if (net){
		mbed.setAttribute('onclick','javascript:makeCall(playTalent,\'' + flashObject + '\')');
	}
	//
	if (net){
		newObj.appendChild(mbed);
	}
	
	//
	var test = document.getElementById("demoObject" + objnr);
	test.appendChild(newObj);
}

function doDemo(){
		makeCall(playTalent,IEflashObject)
}