$(document).ready(function(){ 
	function popup(u, h, w, n) { if (n == "") { n = '_pop'}; nw = window.open(u, n, "width="+w+"px, height="+h+"px, scrollbars=yes, top ="+((screen.height-h)/2)+", left ="+((screen.width-w)/2)); if (window.focus) { nw.focus() } return false; }
	function html2entities(str){var keys = new Array("&amp;", "&nbsp;", "&iexcl;", "&cent;", "&pound;", "&curren;", "&yen;", "&brvbar;", "&sect;", "&uml;", "&copy;", "&ordf;", "&laquo;", "&not;", "&shy;", "&reg;", "&macr;", "&deg;", "&plusmn;", "&sup2;", "&sup3;", "&acute;", "&micro;", "&para;", "&middot;", "&cedil;", "&sup1;", "&ordm;", "&raquo;", "&frac14;", "&frac12;", "&frac34;", "&iquest;", "&Agrave;", "&Aacute;", "&Acirc;", "&Atilde;", "&Auml;", "&Aring;", "&AElig;", "&Ccedil;", "&Egrave;", "&Eacute;", "&Ecirc;", "&Euml;", "&Igrave;", "&Iacute;", "&Icirc;", "&Iuml;", "&ETH;", "&Ntilde;", "&Ograve;", "&Oacute;", "&Ocirc;", "&Otilde;", "&Ouml;", "&times;", "&Oslash;", "&Ugrave;", "&Uacute;", "&Ucirc;", "&Uuml;", "&Yacute;", "&THORN;", "&szlig;", "&agrave;", "&aacute;", "&acirc;", "&atilde;", "&auml;", "&aring;", "&aelig;", "&ccedil;", "&egrave;", "&eacute;", "&ecirc;", "&euml;", "&igrave;", "&iacute;", "&icirc;", "&iuml;", "&eth;", "&ntilde;", "&ograve;", "&oacute;", "&ocirc;", "&otilde;", "&ouml;", "&divide;", "&oslash;", "&ugrave;", "&uacute;", "&ucirc;", "&uuml;", "&yacute;", "&thorn;", "&yuml;", "&quot;", "&lt;", "&gt;", "");var values = new Array("&", " ", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "¬", "­", "®", "¯", "°", "±", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "»", "¼", "½", "¾", "¿", "À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï", "Ð", "Ñ", "Ò", "Ó", "Ô", "Õ", "Ö", "×", "Ø", "Ù", "Ú", "Û", "Ü", "Ý", "Þ", "ß", "à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ý", "þ", "ÿ", "\"", "<", ">", "");for(var i=0; i<keys.length; i++){ if(values[i]!="&nbsp;"){ str = str.replace(keys[i], values[i]); } }return str;}
	function objR() { if(navigator.appName == "Microsoft Internet Explorer"){ return new ActiveXObject("Microsoft.XMLHTTP"); } else { return new XMLHttpRequest(); } }
	var http = objR();
});

function noopa(id){
	//alert(id);
	$('#'+id).fadeIn('slow',function(){
		$(this).removeClass('opa');
		//$(this).addClass('no-opa');
	});
}

function opa(id){
	//alert(id);
	$('#'+id).fadeIn('slow',function(){
		//$(this).removeClass('no-opa');
		$(this).addClass('opa');
	});
}

function pover(pro){
	var p = '#'+pro;
	
	$(p).addClass('ativo');
	$(p).find('h3').removeClass('txt15');
	$(p).find('h3').addClass('txt16');
	$(p).find('span').removeClass('txt13');
	$(p).find('span').addClass('txt18');
}

function pout(pro){
	var p = '#'+pro;
	
	$(p).removeClass('ativo');
	$(p).find('h3').removeClass('txt16');
	$(p).find('h3').addClass('txt15');
	$(p).find('span').removeClass('txt18');
	$(p).find('span').addClass('txt13');
	
}

function ir(link){
	window.location.href=''+link+'';
}

//MENU
$(document).ready(function(){
	
if ($("#mn01").hasClass('inativo01')){	
$("#mn01").mouseover(function(){
	$(this).css("background-position","0px -86px");	
}).mouseout(function(){
	$(this).css("background-position","0px -47px");		
});
}

if ($("#mn02").hasClass('inativo02')){	
$("#mn02").mouseover(function(){
	$(this).css("background-position","-94px -86px");	
}).mouseout(function(){
	$(this).css("background-position","-94px -47px");		
});
}

if ($("#mn03").hasClass('inativo03')){	
$("#mn03").mouseover(function(){
	$(this).css("background-position","-188px -86px");	
}).mouseout(function(){
	$(this).css("background-position","-188px -47px");		
});
}

if ($("#mn04").hasClass('inativo04')){	
$("#mn04").mouseover(function(){
	$(this).css("background-position","-282px -86px");	
}).mouseout(function(){
	$(this).css("background-position","-282px -47px");		
});
}

if ($("#mn05").hasClass('inativo05')){
$("#mn05").mouseover(function(){
	$(this).css("background-position","-376px -86px");	
}).mouseout(function(){
	$(this).css("background-position","-376px -47px");		
});
}

});