﻿function addSWF (URL, WIDTH, HEIGHT, TRANSPARENT)
{

document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write ('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
document.write ('width="'+ WIDTH +'" height="'+ HEIGHT +'">');
document.write ('<param name="movie" value="'+ URL +'" />');
document.write ('<param name="quality" value="high" />');

if ( TRANSPARENT ) {
  document.write (' <param name="Wmode" value="Transparent" />'); 
}

document.write (' <embed src="'+ URL +'" quality="high" ');

if ( TRANSPARENT ) {
document.write (' Wmode = "transparent" ');
}
 document.write (' Wmode = "opaque" ');

document.write (' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write (' type="application/x-shockwave-flash" width="'+ WIDTH +'" height="'+ HEIGHT +'"></embed> ');
document.write (' </object>');

}


function esconder(){
el = document.getElementById("cor");
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
 var FirstElement = el.firstChild;
    document.all.myFra.style.visibility="visible";
	document.all.my.style.visibility="visible";
}
function overa(){

	el = document.getElementById("overal");
	el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
	var FirstElement = el.firstChild;
    document.all.myFra.style.visibility="visible";
	document.all.my.style.visibility="visible";
	
  	}
	 function apagar() {
	
	el = document.getElementById("overlay");
	er = document.getElementById("my");
	er.style.visibility = "hidden";
	el.style.visibility = "hidden";
	document.all.myFrame.style.visibility="hidden";
	
	}
	
    function leva_estado(cbo)
    {
        var id = cbo.value;
        var url = window.location;
        url += '&QSUf='+id;
        window.location.href=url;
    }
        
	function overlay() {
		el = document.getElementById("overlay");
		el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
        var FirstElement = el.firstChild;
        document.all.myFrame.style.visibility="visible";
		
		
	}
	function botao(){
	var	el = document.getElementById("my");
	el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
		document.all.my.style.visibility="visible";
	}
	function overla() {
		el = document.getElementById("overlay");
		el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
        var FirstElement = el.firstChild;
        document.all.myFrame.style.visibility="visible";
		document.all.my.style.visibility="visible";
		
		
	}
	
	function over(){
	el = document.getElementById("over");
	el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
    var FirstElement = el.firstChild;
    document.all.myFrame.style.visibility="visible";
		
	
	}


<!--
browserOK = true;
pics = new Array();
var objCount = 0; // número de imagens (que se modificam) na página
function preload(name, first, second) {  
  // pré-carrega as imagens e as põe no array
  if (browserOK) {     
    pics[objCount] = new Array(11);
    pics[objCount][0] = new Image();
    pics[objCount][0].src = first;
    pics[objCount][1] = new Image();
    pics[objCount][1].src = second;
    pics[objCount][2] = name;
    objCount++;
  }	
}

function imgOn(name){
  if (browserOK) {
	 for (i = 0; i < objCount; i++) {
      if (document.images[pics[i][2]] != null)
        if (name != pics[i][2]) { 
          // volta as imagens ao normal
          document.images[pics[i][2]].src = pics[i][0].src;
        } else {
           // exibe a segunda figura porque o cursor se move sobre ela
          document.images[pics[i][2]].src = pics[i][1].src;
        }
    }
  }
}

function imgOff(){
  if (browserOK) {
     for (i = 0; i < objCount; i++) {
      // volta as imagens ao normal
      if (document.images[pics[i][2]] != null) 
        document.images[pics[i][2]].src = pics[i][0].src;
    }
  }
}

preload("menu01", "../i/menu01-off.gif", "../i/menu01-on.gif");
preload("menu02", "../i/menu02-off.gif", "../i/menu02-on.gif");
preload("menu03", "../i/menu03-off.gif", "../i/menu03-on.gif");
preload("menu04", "../i/menu04-off.gif", "../i/menu04-on.gif");
preload("menu05", "../i/menu05-off.gif", "../i/menu05-on.gif");
preload("menu06", "../i/menu06-off.gif", "../i/menu06-on.gif");

preload("central01", "../i/centralNovo_menu01-off.gif", "../i/centralNovo_menu01-on.gif");
preload("central02", "../i/centralNovo_menu02-off.gif", "../i/centralNovo_menu02-on.gif");

preload("bannerPartc01", "../i/bannerParticipante001-off.gif", "../i/bannerParticipante001-on.gif");
preload("bannerPartc02", "../i/bannerParticipante002-off.gif", "../i/bannerParticipante002-on.gif");
preload("bannerPartc03", "../i/bannerParticipante003-off.gif", "../i/bannerParticipante003-on.gif");

		function MM_showHideLayers() {
  		var i,p,v,obj,args=MM_showHideLayers.arguments, visibility;
  		for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; document.getElementById('fechada').style.display='none';
		document.getElementById('fechada1').style.display='none';document.getElementById('fechada2').style.display='none';}
		obj.visibility=v; }
									}
	function MM_findObj(n, d) { 
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//verifyBrowser();

var browserName=navigator.appName.toUpperCase(); 
if (browserName=="MICROSOFT INTERNET EXPLORER") {
	//alert("Hi, Explorer User!");
	/*document.write('<div id="fechada" style="position:absolute;z-index:1;widht:362px;height:238px;left:100px;top:20px;visibility:visible;">')
	document.write('<iframe style="position:absolute;z-index:1;width:330px;height:285px;left:100px;top:20px;visibility:visible;" name="fechada1" id="fechada1" src="">');
	document.write('</iframe>');
	document.write('<div border="0" id="fechada2" style="position:absolute;z-index:5;widht:320px;height:238px;left:100px;top:20px;visibility:visible;">')
	document.write('<table border=0 style="border:1px solid #f1f1f1;background-color:#dc8c1b;filter:Alpha(Opacity=200,FinishOpacity=80,Style=2,StartX=100,StartY=100,FinishX=100,FinishY=1);"><tr><td>')
	document.write('<table width="100" height="125" border="0" cellspacing="1" cellpadding="1">')
	document.write('<tr align=right>')
	document.write("<td><input type='button' style='background-color:#fefefe;cursor:hand;color:#333333;border:0px;font-face:Arial;font-size:7pt;font-weight: bold' value='Fechar X' onClick=\"MM_showHideLayers('fechada','','hide')\" title='Fechar!'>")
	document.write('</td>')
	document.write('</tr>')
	document.write('<tr>')
	document.write('<td>')  
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  width="500" height="500" id="swf/cartao_natal.swf" VIEWASTEXT>')
	document.write('<PARAM NAME=movie VALUE="swf/cartao_natal.swf">')
	document.write('<PARAM NAME=quality VALUE=high>')
	document.write('</OBJECT>')
	document.write('<td>')  
	document.write('</td>')
	document.write('<td></td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</div>')
	document.write('</div>')*/
}
else {
	//alert("What ARE you browsing with here?");
	/*document.write('<div id="fechada" style="position:absolute;z-index:1;widht:320px;height:238px;left:100px;top:120px;visibility:visible;">')
document.write('<iframe style="position:absolute;z-index:1;width:320px;height:248px;left:100px;top:120px;visibility:visible;" name="fechada1" id="fechada1" src="">');
		document.write('</iframe>');
		document.write('<div border="0" id="fechada2" style="position:absolute;z-index:300;widht:320px;height:238px;left:100px;top:120px;visibility:visible;">')
	document.write('<table border=0 style="border:1px solid #f1f1f1;background-color:#dc8c1b;filter:Alpha(Opacity=200,FinishOpacity=80,Style=2,StartX=100,StartY=100,FinishX=100,FinishY=1);"><tr><td>')
	document.write('<table width="100" height="125" border="0" cellspacing="1" cellpadding="1">')
	document.write('<tr align=right>')
	document.write("<td><input type='button' style='background-color:#fefefe;cursor:hand;color:#333333;border:0px;font-face:Arial;font-size:7pt;font-weight: bold' value='Fechar X' onClick=\"MM_showHideLayers('fechada','','hide')\" title='Fechar!'>")
	document.write('</td>')
	document.write('</tr>')
	document.write('<tr>')
	document.write('<td><a href="http://www.infraprev.org.br/hotsite_Fotografia/home.html"> <img src=fotografia_hotsite.jpg border="0"  title="Visite o Hotsite de Fotografia!"></a></td>')  
//document.write('<td><input   type=image src=fotografia_hotsite.jpg  title="Visite o Hotsite de Fotografia!"></td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</div>')
	document.write('</div>')*/
}


// Hook for Internet Explorer.
function verifBrowser() {
	if (navigator.appName.toUpperCase("INTERNET EXPLORER")) {

	}
	else {
	
	}
}
function valorBusca()
{
	document.getElementById('ctl00_txtBusca').value = '';
}
function ValidaBuscaSite()
{
    if(document.getElementById('ctl00_txtBusca').value.length < 2)
    {
        alert("Digite no mínimo 2 caracteres!");
        return false;
    }
    return true;
}

//-->