/*$(window).resize(function() {
  var computed_width = $('div#sidebar').width();  
  console.log(computed_width);
  $('div.fb-like-box iframe').attr('style', 'overflow: hidden; height:  400px; border: 1px solid red; width: ' + computed_width + 'px');
});*/

 $().ready(function(){
 
 $("ul#main_nav > li").hover(function(){
 		var $ul = $(this).find("ul");
 		var $clone = $ul.clone(true);
 		$("#subnav").html($clone);
 
 });
 
 $(".video_item").equalHeights();
 
	$("#slideshow").cycle({
		easing: 'easeOutQuart',
		fx:     'scrollLeft', 
		timeout: 5000,
		speed: 1500,
		after: after,
		before: before,
		pager:  '#slideshow_nav',
		next:   '#next', 
		prev:   '#prev',
		pauseOnPagerHover: 1,
		pause: 1
	});
	
	// show the title after load
	function after(currSlideElement, nextSlideElement, options, forwardFlag){
		$(this).find('.details').animate({top: '-60'}, 500, 'easeOutQuart');
	}
	
	// hide the title before the slide starts
	function before(currSlideElement, nextSlideElement, options, forwardFlag){
		$(this).find('.details').animate({top: '65'}, 1, 'easeOutQuart');
	}
		
 
 });





















