$(document).ready(function(){
	
	//Noticias Slider		
	$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	
	//Open External Links in New Window
		$('a[href^="http://"].target')	.attr({ target: "_blank" });
		
	//Subnav Drop Down
		$("#header ul li a.sub").hover(function() {
			$(this).parent().next().stop().slideDown('fast').show('slow', function(){
				$(this).height("auto");
			});
		});
		
		$("#header ul li").hover(function() {
			if ( $(this).find('ul.subnav').length > 0 ) { 
				$(this).addClass("subhover");
			}
			} , function () {
			$(this).removeClass("subhover");
			$(this).find('ul.subnav').slideUp('fast');
		});
		
		$("#contact input.contact_btn").attr({ value: "" })

	});

function estaSeguro(objeto,url,id) {
	if(confirm('¿Está seguro de que quiere borrar este '+objeto+'?')){
		window.location.href=url+objeto+'Borrar/'+id;
	}
}
