function agregar(){
//IE
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url="http://www.enfiestaweb.com/"; //Cambia esta dirección por la de tu web
var titulo="Enfiestaweb - Noche de Córdoba"; //Cambia esta nombre por el de tu web
window.external.AddFavorite(url,titulo);
}
//Para Firefox
else {
if(navigator.appName == "Netscape")
//Hay que modificar el nombre por el de vuestra pagina
window.sidebar.addPanel("Enfiestaweb - Noche de Córdoba", "http://www.enfiestaweb.com/","");
}
}
////////////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function() {
	
	
	$("ul.subnav").parent().prepend("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	$("ul.topnav span").hover(function() 
	{ //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").fadeIn('fast').show(); //Drop down the subnav on click
		//$(this).find("ul.subnav").css('background-color', 'red'); 
		$(this).parent().hover(function() 
		{
		}, function()
		{	
			$(this).find("ul.subnav").fadeOut('fast'); //When the mouse hovers out of the subnav, move it back up
		});
 
	});	
	
							   
redimen()	

$(window).resize(function() {

	redimen()			 
				});

//funcion redimencionar
function redimen() {

alto = $(window).height();
if (alto < 580){
	
$('#headerflash').slideUp();
$('#logochico').slideDown();


$('body').css('background-image','none');

;}

if (alto > 580){
	
$('#headerflash').slideDown();
$('#logochico').slideUp();

$('body').css('background-image','url(img/fondo-body.jpg)');
}
// intro home
if (alto < 650){
$('#presentacion').slideUp();

}

if (alto > 650){
$('#presentacion').slideDown();


}

ancho = $(window).width();

if (ancho < 800){
//$(".menufire").css('width',735);
//$("#columna3").css('display','none');

}

if (ancho > 800){
//$(".menufire").css('width',990);
//$("#columna3").css('display','block');

}

}

//$(".tituloventana1").attr('onclick', 'colapsar()');
$(".tituloventana1").prepend().append('<img class="imgcolap" src="http://www.enfiestaweb.com/img/flecha-colapsa.gif" onclick="_gaq.push([\'_trackEvent\', \'cliks\', \'colapsar ventana\', \'click colapsar ventana general\']);">');

 
$(".tituloventana1 img").live("click", function(){
//alert ('hola');
$(this).parent().next('div').slideToggle('fast')
});
if($.browser.mozilla){
$('.menufire').css('bottom','2px');
$('.menufire').css('left','-2px');
}

//$('#contenido').fadeIn('slow');


altodelivery = '20';
$('.deliveryhome li').css('height',altodelivery);
$('.deliveryhome li a').removeAttr("title");

$('.deliveryhome li a').hover(function(){
	$(this).parents('li').stop().animate({
    height: "90"
  }, 600 )
  }, function() {
  $(this).parents('li').stop().animate({
    height: altodelivery,
  }, 200 )

});


altocine = '80';
$('.peliculas-home li').prepend('<img src="img/backlinks.png" class="sombragold" />');

$('.peliculas-home li').css('height',altocine);
$('.peliculas-home li a').removeAttr("title");

$('.peliculas-home li a').hover(function(){
	$(this).parents('li').stop().animate({
    height: "230"
  }, 600 )
  }, function() {
  $(this).parents('li').stop().animate({
    height: altocine,
  }, 200 )

});

//$('iframe[title="YouTube video player"]').html('body').find('embed').attr('wmode', 'transparent');


});
////////////////////////////////////////////////////////////////////////


function esconder(elemento) {
	$(elemento).slideUp()
	}
 
function colapsar(elemento) {
	$(elemento).slideToggle()
	}
 
