$(document).ready(function(){
	$("#b_busc").click(function(event){
		var direc=$('#f_busc').attr('action')+'&txt='+$.URLEncode($('#t_busc').val());
		window.location=direc;
	});
	$(".zonas").hover(function() {
		$(this).find('img.img_sobre').show().css({'opacity': '0'}).stop(true, true).fadeTo('slow', 1);
	},
	function() {
		$(this).find('img.img_sobre').stop(true, true).fadeTo('fast', 0, function(){$(this).hide();});
	});
	$(".menu_hover").mouseenter(function() {
		var $this=$(this).parent('td').find('div.menu_hover1');
		if($this.is(':visible')) return;
		$('div.menu_hover1').hide();
		$this.css({opacity: 0.0}).animate({opacity: 1.0}, {queue:false, duration:1000});
		$this.slideDown(700);
	});
	$('.menu_hover1').mouseenter(function(){
		//$('.menu_hover1').not(this).hide();
    }).mouseleave(function(){
		//$(this).hide();
    });
	$("a[rel='thumb_image']").colorbox({});
	//$(".noticias").colorbox({width:"300", height:"420", iframe:true});
	$(".inline").colorbox({inline:true});
	$(".noticias").colorbox({
		innerWidth:250,
		innerHeight:400,
		iframe:true
	});
	$(".video_image").colorbox({
		iframe:true,
		innerWidth:425,
		innerHeight:344,
	});
	$('.obj_ini').each(function(index) {
		$(this).delay(Math.floor(Math.random()*20)*100).fadeTo(2000, 1);
	});
	$("#theflecha").rotate({ 
		bind: { 
			mouseover : function() { 
				$(this).find('img:first').rotate({animateTo:180});
				$(this).find('div:first').animate({opacity: 0.1}, {queue:false, duration:1000});
			},
			mouseout : function() { 
				$(this).find('img:first').rotate({animateTo:0});
				$(this).find('div:first').animate({opacity: 0.4}, {queue:false, duration:1000});
			}
		}
	});
	$("#theflecha div:first").css({opacity: 0.4});
	Cufon.now();
});
Cufon.replace('h4,h7', {
	fontFamily:'Helvetica Neue Bold Cond',
	hover: {
		color: '-linear-gradient(#173542, #FFFFFF)'
	}
});
Cufon.replace('h5', {
	color:'#FFFFFF',
	fontFamily:'Helvetica Neue Bold Cond',
	hover: {
		color: '-linear-gradient(#FFFFFF, #173542)'
	}
});
Cufon.replace('h6', {
	fontFamily:'Helvetica Light'
});
