$(window).load(function(){
	$('.slideshow').cycle({
		random: 1,
		fx: 'fade',
		speed: 3500,
		timeout: 7000,
		prev:   '#prev1', 
		next:   '#next1'
	});
	if($(window).width() < $(document).width()){
 		$("#headerBackground").width($(document).width());
 	}
 	else{
 		$("#headerBackground").width($(window).width());
 	}
	$(".bp_list .category a.last").hover(
  function () {
    var height = $(this).prev().height();
  	$(this).height(height);
  },
  function () {
  }
);
 	
});
$(window).resize(function() {
	$("#headerBackground").width(0);
	if($(window).width() < $(document).width()){
 		$("#headerBackground").width($(document).width());
 	}
 	else{
 		$("#headerBackground").width($(window).width());
 	}
});
