$(document).ready(function() {

	//Fancybox					   
	$("a.fb_caption_pic", this).fancybox({
		'titlePosition'		: 'inside',
		'overlayColor'		: '#000000',
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'none'
	});
	$("a.fb_caption_video").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'none'
	});
	

	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'180px'},{queue:false,duration:160});
	});
			

	$('.fb_captionfull').hover(function(){
		$(".fb_caption_pic", this).fadeIn(160);

	}, function() {
		$(".fb_caption_pic", this).fadeOut(160);
	});
	
	$('.fb_captionfull').hover(function(){
		$(".fb_caption_video", this).fadeIn(160);

	}, function() {
		$(".fb_caption_video", this).fadeOut(160);
	});
	
	//Superfish Menu
	jQuery('ul.sf-menu').superfish({
		animation: {opacity:'show'},
		autoArrows:  true,
		dropShadows: true, 
		speed: 200,
		delay: 10,
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animatio

	});
	
	jQuery('ul.top_menu').superfish({
		animation: {opacity:'show'},
		autoArrows:  true,
		dropShadows: true, 
		speed: 200,
		delay: 10,
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animatio

	});

});
