/* <![CDATA[ */

$(document).ready(function (){
	
	var urlCurrPage = window.location.toString();
	var currPagePhp = urlCurrPage.substring(urlCurrPage.lastIndexOf('/') + 1);
	
	if(currPagePhp == "productions.php" || currPagePhp == "contact.php") {
		$("div#header ul li a.change-cont").attr("href", "contact.php");
		$("div#header ul li a.change-cont").html("Contact Us");
	}
	
	$(".gallery a span").ready(function(){
    $(".gallery a span").animate({opacity:"0.50",speed:"fast"});
	});
	
	$(".gallery a").hover(function() {
		$(this).find('span').addClass("hover").stop()
			.animate({
        opacity: '0.5'
        
			}, 1000);
		
		} , function() {
		$(this).find('span').removeClass("hover").stop()
			.animate({
        opacity: '1'
			}, 2000);
	});
	
	/* Pajinate Script 
	$('#category').pajinate({
		num_page_links_to_display : 8,
		items_per_page : 6	
	});*/
	
  	$("body").ready(function(){
			$("body").animate({opacity:"0.2",speed:"fast"});
			$("body").animate({opacity:"1",speed:"fast"});
		});
/*Jquery Fancybox */ 
  $(".fancypic, a[rel=fancypic]").fancybox({
    'titleShow'		: false,
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });
  
   $(".inline").fancybox({
    'titleShow'		: false,
	'autoScale'		: false,
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
  });
  
    });
/* ]]> */
