// JavaScript Document

/* MENU DROP DOWN */
/* Micox Pseudo-class-css2 to IE (MXPC). Activate .hover and .first-child in IE 6 */
 html * { color: expression( (function(who){ if(!who.MXPC){
   who.MXPC = '1';
   if(who.nodeName != 'A'){
      who.onmouseenter=function(){ who.className += ' hover'};
      who.onmouseleave=function(){ who.className = who.className.replace(' hover','')}; }
   (who==who.parentNode.firstChild) ? who.className += ' first-child' : '' ;
} } )(this) , 'auto') }

/* JQUERY ANCORA */
function irParaTopo() { $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' ); }
/* MENU DROP DOWN */
html*{ color: expression( (function(who){ if(!who.MXPC){
   who.MXPC = '1';
   if(who.nodeName != 'A'){
      who.onmouseenter=function(){ who.className += ' hover'};
      who.onmouseleave=function(){ who.className = who.className.replace(' hover','')}; }
   (who==who.parentNode.firstChild) ? who.className += ' first-child' : '' ;
} } )(this) , 'auto') }

/* AJAX CLICKS BANNER */
function clicks(id){ 
	//FUNÇÃO QUE MONTA A URL E CHAMA A FUNÇÃO AJAX
	url="admin/includes/contaClick.php?acao=click&id="+id; 
	
	ajax(url); 
}

/* SHOW HIDE DIV */
//<![CDATA[
function ShowHide(){
	$(".form-coment").animate({"height": "toggle"}, { duration: 1000 });
}
//]]>

//CAPTCHA

function Inibe() {
  document.coment.btnSubmit.disabled = true;
}
function Exibe(value) {
	var captcha = '58494';
	
   if(value == captcha){	
	  document.coment.btnSubmit.disabled = false;
   }else if(value != captcha){
	  alert('Valor incorreto, digite novamente!');   
   }else if(value == null){
	  alert('Campo Captcha está vazio!');    
   }
}
function abrirPop(URL,width,height){
   var left = 200;
   var top = 200;
   window.open(URL,'teste', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
