$(document).ready(function(){
    
    if ($('form#rightFreeScreening').length)
	{
		$('form#rightFreeScreening').validate({
			errorPlacement:function(error,element){}
		});
	}
	
	if ($('form#freeScreening').length)
	{
		$('form#freeScreening').validate({
			errorPlacement:function(error,element){}
		});
	}
	
    $(".faqList div").hide();
	$(".faqList h4").toggle(function(){
		$(this).next(".faqList div").slideDown(800);
		$(this).toggleClass("active");
	}, function(){
		$(this).next(".faqList div").slideUp(600);
		$(this).toggleClass("active");
	});
    
    
		$('#facebook').hover(
			function () {
				t=setTimeout(function(){
					if ($('#facebook').css('right')=='-292px')
					  	{
						    $('#facebook').animate({
						       right: '+=292'
						  	}, 400, function() {});
					    }
	        	}, 200);
			},
			function () {
				clearTimeout(t);
				if ($('#facebook').css('right')=='0px')
				{
					$('#facebook').animate({
					   right: '-=292'
					}, 400, function() {});
				}
			}
		);

    if ($('.fader').length)
    {
    	$(".fader").innerfade({
			speed: 1500,
			timeout: 5500,
			type: "sequence"
		});
    }
    
    
    
    
    
});

Shadowbox.init({
	language:   "en",
	players:    ['img', 'html', 'iframe', 'wmp', 'flv']
});
