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