//Chama flash no site (correção do IE)
function exibeFlash(swf, width, height, wmode, cache, vars)
{
noCache = cache || cache == undefined ? "" : "?" + new Date();
wmode = wmode || wmode == undefined ? "opaque" : "transparent";

monta_swf = "";
monta_swf += "<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 +"\" title=\"\">";
monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"&"+vars+"\" />";
monta_swf += "<param name=\"quality\" value=\"high\" />";
monta_swf += "<param name=\"menu\" value=\"0\" />";
monta_swf += "<param name=\"wmode\" value=\"transparent\" />";
monta_swf += "<param name=\"FlashVars\" value=\""+vars+"\" />";
monta_swf += "<embed src=\""+ swf + noCache +"&"+vars+"\" quality=\"high\" wmode=\""+ wmode +"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
monta_swf += "</object>";

document.write(monta_swf);
}

var bo_ns_id = 0;
function startIeFix(){  
	if(isIE()){    
		document.write('<div style="display: none;" id="bo_ns_id_' + bo_ns_id + '">');
	}
}
function endIeFix(){
	if(isIE()){
		document.write('</div>');
		var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
		if(theObject.firstChild.data){
			theObject.firstChild.removeAttribute('data');
		}    
		var theParams = theObject.getElementsByTagName("param");
		var theParamsLength = theParams.length;
		for (var j = 0; j < theParamsLength; j++) {
			if(theParams[j].name.toLowerCase() == 'flashvars'){
				var theFlashVars = theParams[j].value;      
			}    
		}    
		var theInnnerHTML = theObject.innerHTML;    
		var re = /<param name="FlashVars" value="">/ig;    
		theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + vars + "'>");
		theObject.outerHTML = theInnnerHTML;  
	}
}
function isIE(){  
		var strBrwsr = navigator.userAgent.toLowerCase();
		if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
			return true;  
		}
		else{
			return false;  
		}
	}