var reg_email=/^([a-zA-Z0-9\.-_]+)\@([a-zA-Z0-9\.-]+)\.([a-zA-Z]{2,4})/;

/*
var busca=new Array();
busca['termo']='';
busca['seleciona']=-1;
var url1="20963|428";
var url2="61487|213";
var url3="64540|000";
function ativar(id){
		if(typeof(id) == "object"){
				$.each(id,function(item,index){
						var obj = "#"+ index;
						$(obj).toggleClass("Ativo");
				});
		}else{
				var obj = "#"+id;
				$(obj).toggleClass("Ativo");
		}
}
function exibeBox(id){
		if(typeof(id) == "object"){
				$.each(id,function(item,index){
						var obj = "#"+index;
						$(obj).toggle("scale");
				});
		}else{
				var obj = "#"+id;
				$(obj).toggle("scale");
		}
}
function remove(str, sub) {
		i = str.indexOf(sub);
		r = "";
		if (i == -1) return str;
		r += str.substring(0,i) + remove(str.substring(i + sub.length), sub);
		return r;
}
function mudaTipo(obj,tipo){
		document.getElementById(obj).type=tipo;
}
/**FUNCOES DE INTERAÇÃO COM O FLASH DA HOME
function p1(){
		window.location.href=siteURL + "onde-encontrar/" + url1;
}
function p2(){
		window.location.href=siteURL + "onde-encontrar/" + url2;
}
function p3(){
		window.location.href=siteURL + "onde-encontrar/" + url3;
}
function openRules(){
		var urlModal = siteURL +'modal/regulamento' ;
		$.nyroModalManual({
				url: urlModal,
				closeButton: '<a href="#" class="nyroModalClose" id="closeBut" title="Fechar">Fechar</a>',
				padding: 0,
				margin:0,
				width:600,
				height:587,
				showLoading: true,
				resizable: false,
				autoSizable: false,
				bgColor: '#151515'
		});
		$('iframe').attr('scrolling','no');
		return false;
}
function openWinner(){
		var urlModal = siteURL +'modal/ganhador' ;
		//alert(urlModal);
		$.nyroModalManual({
				url: urlModal,
				closeButton: '<a href="#" class="nyroModalClose" id="closeBut" title="Fechar">Fechar</a>',
				padding: 0,
				margin:0,
				width:600,
				height:587,
				showLoading: true,
				resizable: false,
				autoSizable: false,
				bgColor: '#151515'
		});
		$('iframe').attr('scrolling','no');
		return(false);
}
*/

$(document).ready(function(){
	$(':input + strong').hide();
	$('input').cleanField();
	$('a.LinkExterno').click(function(){
		$(this).attr('target', '_blank');
	});
	$('div.Interactive').hide();
    $('a.Interactive').click(function(e){
    	e.preventDefault();
    	if($(this).next($('div.Interactive')))
    		$(this).next('div.Interactive').animate({
    			'opacity': 'toggle'
    		}, {
    			'duration': 'slow', 'easing': 'swing'
    	});
    	$(this).parent('div.Interactive').animate({
        	'opacity': 'toggle'
        }, {
            'duration': 'slow',
            'easing': 'swing'
        });
    });
/*
	$("a.regulamento").click(function(e){
		e.preventDefault();
		openRules();
	});
	$("a.ganhador").click(function(e){
		e.preventDefault();
		openWinner();
	});
	$("body").click(function(){
		$('#box-suggestion').empty();
		$('#box-suggestion').fadeOut();
	});
	$("select.Custom").linkselect();
	$("box-suggestion").hide();
*/
});