
$(window).resize(function() {
	$('#pop').css('left',(window.innerWidth/2) - 300);
});
 
 jQuery(document).ready(function(){
	/*$('#slideshow').fadeSlideShow({PlayPauseElement: false,
		NextElement: false,
		PrevElement: false,
		ListElement: false});*/
    
   //Esconder el popup 
//   $("#pop").hide();
  	
   $("#cerrar").click(function (){ 
      $('#pop').fadeOut('slow'); 
      $('#bg').fadeOut('slow'); 
	   //escribo el swf
	   
   });
   
   $('#pop').css('left',(window.innerWidth/2) - 300);
   $("#cerrar").hover(
	function(){
		$(this).find('span').animate({left:'-46px',opacity:'toggle'},{duration:200});
	},
	function(){
		$(this).find('span').animate({left:'-20px',opacity:'toggle'},{duration:200});
	}
   );
   
    $("#irA").hover(
	function(){
		$(this).find('img').css({marginTop:'-60px'},{duration:200});
	},
	function(){
		$(this).find('img').css({marginTop:'0px'},{duration:200});
	}
   );
   
   $('#fondos').fadeSlideShow();
 });
