// JavaScript Document

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function abre(url,janela,larg,alt,scroll,pos1,pos2){
window.open(url,janela,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=no,copyhistory=no,top='+pos1+',left='+pos2+',screenY='+pos1+',screenX='+pos2+',width='+larg+',height='+alt);
}



function OpenPopup(arq, width, height, scroll)
{   
 
    var URL = arq
    var W = width
    var H = height
    var S = scroll
    var desktop = window.open( URL, "_blank", "width="+W+",height="+H+",toolbar=no,location=no,status=yes,menubar=no,scrollbars="+S+",resizable=no" );
    
}

// SLIDES MELHORES REDACOES
      $('.slide_fichario').cycle({ 
      fx: 'fade',
	  speed:400,
      timeout: null, 
      pager:  '.menu_fichario', 
      pagerAnchorBuilder: function(idx, slide_fichario) { 
        // return selector string for existing anchor 
        return '.menu_fichario li:eq(' + idx + ') a'; 
    }  
}); 
