var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('<\/SCR' + 'IPT\> \n');
}

// flash //
function fls(lnk,nomemenu,src,tipo,larg,alt,targ,cor,Oid) {
	//if(tipo=="flash" && plugin){
		cls = (lnk!="") ? "" :  "class=object1 ";
	//			alert(src);
//	swfobject.embedSWF(src, "", larg, alt, "9.0.0","expressInstall.swf", {clickTAG:encodeURIComponent(lnk),rotulo:encodeURIComponent(nomemenu),targ:targ,cor:cor}, {wmode:"transparent", allowscriptaccess:"true", menu:"false"});
//	swfobject.embedSWF("img/enfermagem2009.swf", "bbanner", "242", "290", "9.0.0","expressInstal.swf", {}, {menu:"false"});

document.write('<OBJECT '+ cls +'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" ID=flashad WIDTH="'+ larg +'" HEIGHT="'+ alt +'"><PARAM NAME=movie VALUE="' + src + '?clickTAG='+ encodeURIComponent(lnk) +'&rotulo='+ encodeURIComponent(nomemenu)+'&targ='+ targ +'&cor='+ cor +'"> <param name="menu" value="false"><PARAM NAME=wmode VALUE=transparent><PARAM NAME=quality VALUE=high><EMBED swliveconnect="true" wmode="transparent" menu="false" quality="High" src="' + src + '?clickTAG='+ encodeURIComponent(lnk) +'&rotulo='+ encodeURIComponent(nomemenu)+'&targ='+ targ +'&cor='+ cor +'" quality=high NAME=flashad swLiveConnect=TRUE WIDTH="'+ larg +'" HEIGHT="'+ alt +'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');
		
//	}
}
window.onload=function(){
	var uri_ = window.location.href;
	swfobject.embedSWF(URL+"topo.swf", "ContentMenu", "760", "140", "9.0.0", "expressInstall.swf", {siteinfo:URL}, {wmode:"transparent"});
	/*window.alert(URL);*/
	if(uri_.lastIndexOf("site")==-1){
		swfobject.embedSWF(URL+"capa_loader.swf", "ContentTopo1", "730", "230", "9.0.0", "expressInstall.swf", {siteinfo:URL},{wmode:"transparent"});
		swfobject.embedSWF(URL+"Botao_Telefone.swf", "ContentFone", "270", "42", "9.0.0", "expressInstall.swf", {title:EFONE}, {wmode:"transparent"});
		
		if(document.getElementById("ContentDesCapaV")){
			EDESTAQUECAPA = document.getElementById("ContentDesCapaV").innerHTML;
			swfobject.embedSWF(URL+"SubTits.swf", "ContentDesCapa", "320", "28", "9.0.0", "expressInstall.swf", {title:EDESTAQUECAPA}, {wmode:"transparent"});
		}
		}else {
		swfobject.embedSWF(URL+"Channel_Name.swf", "ContentTitulo", "260", "50", "9.0.0", "expressInstall.swf", {title:(EPAI!=""?EPAI:ETITULO)}, {wmode:"transparent"});
		swfobject.embedSWF(URL+"Rotulo_Sub.swf", "myContentTitleInterna", "320", "40", "9.0.0", "expressInstall.swf", {title:ETITULO}, {wmode:"transparent"});			
	}
}