//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.

//<script src="../FuncoesJs/AC_RunActiveContent.js" type="text/javascript">< /script>
//<script>
//jetFlash('Banner/Home_banner5_12x',778,105)
//< /script>

function jetFlash(SwfName, width, height, https, id, bgcolor, xmlDataPath, wmode, cache)
{
	var noCache = cache || cache == undefined ? "" : "?" + new Date();
	var wmode = wmode || wmode == undefined ? "opaque" : "transparent";
	
	if (https == true)
		var strHttps = "https:"
	else
		var strHttps = "http:";
		
	
	if (id==null) id = 'flash';

	str = '';
	str += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	str += 'codebase="'+strHttps+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	str += 'width="'+width+'" height="'+height+'">';
	
	if 	(xmlDataPath!=null) str += '<param name="FlashVars" value="xmlDataPath='+xmlDataPath+'" />';
	if (bgcolor!=null) str += '<param name="bgcolor" value="'+bgcolor+'" />';	
	
	str += '<param name="movie" value="'+SwfName+'" />';				  
	str += '<param name="scale" value="noscale" />';	
	str += '<param name="quality" value="high" />';				  
	str += '<param name="wmode" value="'+ wmode +'" />';
	str += '<embed src="'+SwfName+'" id="'+id+'" ';	
	str += '				quality="high"  ';
	str += '				scale="noscale"  ';
	str += '				type="application/x-shockwave-flash"  ';
	str += '				width="'+width+'" height="'+height+'"  ';
	str += '				wmode="'+wmode+'" ';
	if 	(xmlDataPath!=null) str += 'flashvars="xmlDataPath='+xmlDataPath+'"  ';
	if (bgcolor!=null) str += 'bgcolor="'+bgcolor+'"  ';
	str += '				pluginspage="http://www.macromedia.com/go/getflashplayer" /> ';	
	str += '</embed>';
	str += '</object>';	

	
  	document.write(str);
}


