document.write('<div id="floater" style="position: absolute; z-index:200; top: 0px; left:0px; width:780px; height:430px; visibility:hidden">');
if(temflash){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='780' height='430' align='middle' name='anima' id='anima'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='movie' value='swf/anima_index.swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='swLiveConnect' value='true' />");
	document.write("<embed src='swf/anima_index.swf' name='anima' id='anima' quality='high' bgcolor='#ffffff' width='780' height='430' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
} else {
	document.write('<img src="imagens/abertura.gif" width="780" height="460" border="0" />');
}
document.write('</div>');
function flashHome(){
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ){
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN(parseInt(words[i]))) continue;
			var versao_flash = words[i];
		}
	plugin=versao_flash >= 5;
	}else if(navigator.userAgent.indexOf("IE")!=-1&&navigator.userAgent.indexOf("Linux")==-1){
		document.writeln('<SCRIPT LANGUAGE=VBScript\>');
		document.writeln('on error resume next');
		document.writeln('Pluginflash=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))');
		document.writeln('</SCRIPT\>\n');
	}
	if((typeof Pluginflash!='undefined')&& Pluginflash==true||plugin==true)return true;
	else return false;
}
function fecharFloater(){
	setTimeout("fecharFloaterAux();",0);
	//document.getElementById("homeflash").style.display = "";
}
function fecharFloaterAux(){
	document.getElementById("floaterguiaexame").innerHTML = "";
	document.getElementById("floaterguiaexame").style.display = "none";
return false;
}
function montaFloaterPrinc(id,arrBase,varrandom,floater,zindex){
	//setTimeout("fecharFloaterAux();",13000);
	ie = navigator.userAgent.indexOf("MSIE")>-1;
	var contentHTML = "";
	if((flashHome())&& arrBase[varrandom][0]!=''){
		contentHTML += '<div id="'+ id +'" style="position:absolute;left:'+ arrBase[varrandom][6] +'%; top:'+ arrBase[varrandom][7] +'%; width:'+ arrBase[varrandom][4] +'px;height:'+ arrBase[varrandom][5] +'px;z-index:'+ zindex +';">';
		contentHTML += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://get.adobe.com/br/flashplayer/" width="'+ arrBase[varrandom][4] + '" height="' + arrBase[varrandom][5] + '" id="'+ arrBase +'" align="middle">';
		contentHTML += '<param name="allowScriptAccess" value="sameDomain" />';
		contentHTML += '<param name="movie" value="'+ arrBase[varrandom][0] +'" />';
		contentHTML += '<param name="quality" value="high" />';
		contentHTML += '<param name="bgcolor" value="#ffffff" />';
		contentHTML += '<embed src="'+ arrBase[varrandom][0] +'" quality="high" bgcolor="#ffffff" width="'+ arrBase[varrandom][4] + '" height="' + arrBase[varrandom][5] + '" name="'+ arrBase +'" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://get.adobe.com/br/flashplayer"/>';
		contentHTML += '</object>';
		
		//document.getElementById("homeflash").style.display = "none";
	}
	else{
		contentHTML += '<div id="'+ id +'" style="position:absolute;left:'+ arrBase[varrandom][6] +'%; top:'+ arrBase[varrandom][7] +'%; width:'+ arrBase[varrandom][4] +'px;height:'+ arrBase[varrandom][5] +'px;">';
		contentHTML += '<img src="'+ arrBase[varrandom][1] +'" usemap="#Map" width="'+ arrBase[varrandom][4] + '" height="' + arrBase[varrandom][5] + '" border="0" />';
		contentHTML += '<map nflashMeame="Map" id="Map"><area shape="rect" coords="15,43,774,517" href="javascript:void(openLink(\'http://get.adobe.com/br/flashplayer;popup,1024,768\'));"/><area shape="rect" coords="709,12,762,42" href="javascript:fecharFloater();" /></map>';
		//document.getElementById("homeflash").style.display = "";
	}
	contentHTML += '</div>';
	document.getElementById("floaterguiaexame").innerHTML = contentHTML;
}
