$(document).ready(function() {

//REMOVES JAVASCRIPT FIX CLASSES
	$('#portfolio1-content').removeClass("js-off-overflow");
	$('.portfolio1-thumbs').removeClass("js-off-position");
	
//INITIALIZES PRETTYPHOTO PLUGIN

	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'}); //choose between different styles / dark_rounded / light_rounded / dark_square / light_square / facebook /

	
//INITIALIZES TWITTER FEED PLUGIN

	$('#twitter-feed').tweet({
		username: "ivanjezh",  //just enter your twitter username
		join_text: "auto",
		avatar_size: null,
		count: 2, //number of tweets showing
		auto_join_text_default: "",
		loading_text: "loading latest tweets..." //text displayed while loading tweets
	});

//ANYTHING SLIDER NAVIGATION BUTTONS
	
	var q = ["#prev-button", "#next-button", ".arrow", ".forward", ".back"];
	var buttons = q.join(", ");
	
	$(".featured").hover( function() {
		$(buttons).stop().show()
	}).mouseleave( function() {
		$(buttons).stop().hide()
	});
	
	


	
//PORTFOLIO NAVIGATION
	
	$("ul.portfolio1-nav").tabs("#portfolio1 > #portfolio1-content > ul.portfolio1-thumbs", {effect: 'fade', fadeInSpeed: 800, fadeOutSpeed: 800});


// PORTFOLIO HOVER EFFECT	

 $('ul.portfolio1-thumbs li').hover(function(){  
         $(".overlay", this).stop().animate({top:'0px'},{queue:false,duration:300});  
     }, function() {  
        $(".overlay", this).stop().animate({top:'190px'},{queue:false,duration:300});  
    });  

	


});	//END of jQuery






