$(function(){	// Tabs	$('.dataPhotog').hide();	$('.photoData').hide();	$('.portfolio').hover(function() {		$(this).css("z-index", "3");		$(this).css("box-shadow", " 0 0 4px #AAA");		$(this).css("-moz-box-shadow", " 0 0 4px #AAA");		$(this).css("-webkit-box-shadow", " 0 0 4px #AAA");		$(this).css("-o-box-shadow", " 0 0 4px #AAA");		$(this).css("-ms-box-shadow", " 0 0 4px #AAA");		$(this).children('.dataPhotog').slideDown("slow");		//$(this).children('.data').fadeOut();	});	$('.portfolio').mouseleave(function() {		$(this).css("z-index", "2").children('.dataPhotog').slideUp("slow", function(){			$('.portfolio').css("z-index", "0");		});		$(this).css("box-shadow", " 0 0 3px #DAFF4F");		$(this).css("-moz-box-shadow", " 0 0 3px #DAFF4F");		$(this).css("-webkit-box-shadow", " 0 0 3px #DAFF4F");		$(this).css("-o-box-shadow", " 0 0 3px #DAFF4F");		$(this).css("-ms-box-shadow", " 0 0 3px #DAFF4F");	});		$('.photo').hover(function() {		$(this).children('.photoData').slideToggle("slow");		//$(this).children('.data').fadeOut();	});			/*STAR RATING*/	/*$('.ratings_stars').hover(  		// Handles the mouseover		function() {  			$(this).prevAll().andSelf().addClass('ratings_over');  			$(this).nextAll().removeClass('ratings_vote');					},  		// Handles the mouseout  		function() {  			$(this).prevAll().andSelf().removeClass('ratings_over');  			set_votes($(this).parent());  		}  	);		$('.rate_widget').each(function(i) {  		var widget = this;  		var out_data = {  			widget_id : $(widget).attr('id'),  			fetch: 1  		};  		$.post(  			'http://behind-the-lens.com/wp-content/themes/bp-btl/ratings.php',  			out_data,  			function(INFO) {  				$(widget).data( 'fsr', INFO );  				set_votes(widget);			},  			'json'  		);			});	function set_votes(widget) {				var avg = $(widget).data('fsr').whole_avg;  		var votes = $(widget).data('fsr').number_votes;  		var exact = $(widget).data('fsr').dec_avg;  	  		$(widget).find('.star_' + avg).prevAll().andSelf().addClass('ratings_vote');  		$(widget).find('.star_' + avg).nextAll().removeClass('ratings_vote');  		$(widget).find('.total_votes').text( votes + ' votes recorded (' + exact + ' rating)' );  	}	  	$('.ratings_stars').bind('click', function() {		var star = this;  		var widget = $(this).parent();  	  		var clicked_data = {  			clicked_on : $(star).attr('class'),  			widget_id : widget.attr('id')  		};  		$.post(  			'http://behind-the-lens.com/wp-content/themes/bp-btl/ratings.php',  			clicked_data,  			function(INFO) {  				widget.data( 'fsr', INFO );  				set_votes(widget);			},  			'json'  		);  	});*/	});$(document).ready(function(){	// simple jRating call	$(".basic").jRating();	// more complex jRating call	$(".basic").jRating({	step:true,	length : 5, // nb of stars	onSuccess : function(){	alert('Success : your rate has been saved :)');	}	});});$(window).load(function() {    $('#slider').nivoSlider();});
