$(document).ready(function() { 
  $('#slideshow').cycle({
    fx:'scrollHorz',
    speed:2000,
    timeout:6000,
    prev: '#prev',
    next: '#next'
  });
  
  $('#slideshow a').hover(function(){
    $(this).find('span').fadeIn("fast");
  },function(){	  
    $(this).find('span').fadeOut("fast");
  });
  
  $("a.fancypop").fancybox({
    width:'80%',
    height:'80%',
    hideOnContentClick:'false',
    type:'iframe',
    'onStart':function(){
     $.alert("omg");
    }
  });

/*  $('#slideshow div').css("width","100%");*/

  $(window).resize(function() {
    $('#slideshow').css("width","100%");
    $('#slideshow div').css("width","100%");
    //document.location = document.location
  });

});


