jQuery(function(){



	jQuery(".thumbnail-div .info-button").click(function(){

	  jQuery(this).prev(".info").slideToggle("slow");

		jQuery(this).toggleClass("active"); return false;

	});





	jQuery(".bar .rating").click(function(){

	  jQuery(this).prev(".ratingbox").slideToggle("slow");

		jQuery(this).toggleClass("active"); return false;

	});

	

	jQuery(".post-wrapper .lightboxclick").click(function(){

	  jQuery(this).prev(".lightbox").slideToggle("slow");
	  var imgW = (jQuery('.lightbox-image').width())/2;
	  jQuery('#offset').css('margin-left',-imgW)

		jQuery(this).toggleClass("active"); return false;

	});



});

jQuery(document).ready(function(){



	jQuery(".ratingbox .delete").click(function(){

	  jQuery(this).parents(".ratingbox").animate({ opacity: "hide" }, "slow");

	});



});

jQuery(document).ready(function(){



	jQuery(".lightbox .lightboxdelete").click(function(){

	  jQuery(this).parents(".lightbox").animate({ opacity: "hide" }, "slow");

	});



});

	var query = new Object();

	window.location.search.replace(

	new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ),

		function( jQuery0, jQuery1, jQuery2, jQuery3 ){

			query[ jQuery1 ] = jQuery3;

		}

	);

	easing = query['e'] || 'Circ';

	

	function loadEasing(e) {

		location.href = location.pathname+'?e='+e;

	}

	

	function setEasing(e) {

		loadLamps(e);

	}



// for dynamic easing changes		

	function loadLamps(easing) {

		jQuery('#lavaLampBasicImage').lavaLamp({

			fx: 'easeIn'+easing,

			speed: 800

		});



		jQuery('#lavaLampVariableImage').lavaLamp({

			fx: 'easeOut'+easing,

			speed: 800,

			linum: 0

		});



	}

	

// jquery initialize:

	jQuery(function() {

		loadLamps(easing);

		

		jQuery('select#easing option[value='+easing+']').attr('selected','selected');

		jQuery('.easingLabel').text(easing);

	});

	

// hover preview

jQuery(document).ready(function(){



	jQuery(".menu a").hover(function() {

		jQuery(this).next("em").animate({opacity: "show", top: "-170"}, "slow");

	}, function() {

		jQuery(this).next("em").animate({opacity: "hide", top: "-180"}, "fast");

	});





});

jQuery(document).ready(function(){



	jQuery(".login").click(function(){

		jQuery(".login-div").slideToggle("slow");

		jQuery(this).toggleClass("active"); return false;

	});

	

	 

});


