/**
 * Quotz : a jQuery Plug-in
 
 This code has been modified from an original sliding tab code by Kevin Lofthouse at www.iamkreative.co.uk
 
 Andy Johnstone/www.focusphotos.com 2010

 */
			var $j = jQuery.noConflict();
$j(document).ready(function(){
 
   $j("#quotz, .quotzcontent").hide(); //hides the panel and content from the user
 
   $j('#tab').toggle(function(){ //adding a toggle function to the #tab
      $j('#quotz').stop().animate({width:"400px", opacity:1}, 500, function() {//sliding the #panel to 400px
	  $j('.quotzcontent').fadeIn('slow'); //slides the content into view.
	  });  
   },
   function(){ //when the #tab is next cliked
   $j('.quotzcontent').fadeOut('slow', function() { //fade out the content 
      $j('#quotz').stop().animate({width:"0", opacity:0.1}, 500); //slide the #panel back to a width of 0
	  });
   });
 
});
