var $ = jQuery.noConflict(); 
// cufon starts 
            Cufon.replace('h1, h2, h3, h4, h5, h6');
			Cufon.replace('.pageTitle' , {color: '-linear-gradient(#333333, #000000)'});
			Cufon.replace('.pageTitle' , {textShadow: '1px 1px rgba(255,246,144,1)'});
// cufon ends

// scroll back to top starts
            $(function(){
               $('.backToTop').click(function(e){
               e.preventDefault();
               $('html, body').animate({scrollTop: '0px'}, 1200, 'easeOutCubic');
              });
            });
// scroll back to top ends 
// document ready starts
$(document).ready(function(){
// animate menu links start
		$('a.scrollto').hover(
							  function(){
			
		$(this).stop().animate({"margin-left": "15px"}, 100);
		
	    },
	    function(){
		
		$(this).stop().animate({"margin-left": "0px"}, 100);
	
        });
// animate menu links end

// animate social links start
		$('.socialDetails a').hover(
							  function(){
			
		$(this).stop().animate({"margin-top": "-5px"}, 100);
		
	    },
	    function(){
		
		$(this).stop().animate({"margin-top": "0px"}, 100);
	
        });
// animate social links end
// animate portfolio items start
		$('.portfolioItemOver').hover(
							  function(){
			
			
		$(this).stop().animate({opacity: 0.5}, 300);
		
	    },
	    function(){
		$(this).stop().animate({opacity: 0}, 300);
	
        });
// animate portfolio items end		
// animate grid portfolio items start
		$('.portfolioGridItemImage').hover(
							  function(){
			
		$(this).find('.portfolioGridText').stop().animate({"bottom": "0px"}, 100);
		$(this).find('.portfolioGridInfo').stop().animate({opacity: 1}, 200);
		
	    },
	    function(){
		
		$(this).find('.portfolioGridText').stop().animate({"bottom": "-30px"}, 100);
	    $(this).find('.portfolioGridInfo').stop().animate({opacity: 0}, 200);
        });
// animate grid portfolio items end		
// animate gallery items start
		$('.galleryItemOver').hover(
							  function(){
			
			
		$(this).stop().animate({opacity: 0.5}, 300);
		
	     },
	    function(){
		$(this).stop().animate({opacity: 0}, 300);
	
        });
// animate gallery items end   
// scroll to starts
	    $(".scrollto").click(function() {
		$.scrollTo($($(this).attr("href")), {
			duration: 1000,
			easing: 'easeOutCubic'
		});
		window.location.hash = $(this).attr("href");
		return false;
	    });
// scroll to ends 	
// nivo slider starts
        $('#sliderWindow').nivoSlider();
//nivo slider ends
// colorbox starts
        $("a.portfolioItemOver").colorbox();
		$("a.portfolioGridExpand").colorbox();
		$("a.galleryItemOver").colorbox();
		
// colorbox ends 
// tabs start
        $(function() {
			$("ul.tabs").tabs("#galleryContent >  ul.galleryPage", {effect: 'fade', fadeSpeed: 500});
			$("ul.portfolioTabs").tabs("#portfolioGridContent >  ul.portfolioPage", {effect: 'fade', fadeSpeed: 500});
		});
// tabs end
});// document ready ends 
