$(document).ready(function(){
	$('.photoGallery').jqGalScroll({ width:238, height:238});
	/*
	// tool tip for non-logged in users
	$('.addToFavorites_notLoggedIn').bt('<span class="loginTip">Hi, please <a href="registration.html">log-in</a> so we can add this pet to your list of favorites.</span>',
	{
		trigger: 'click',
		fill: '#fff',
		width: 250,
		strokeWidth: 1, 
		strokeStyle: '#502900',
		spikeLength: 10,
		spikeGirth: 7,
		padding: 10,
		cornerRadius: 5
	});
	
	
	
	$('.addToFavorites').click(function(){
		
		// sample data to be sent to the add fav scripts, requires rel attribute in the html
		var myId =  $(this).attr('rel');
		
		$this = $(this);
		
		$this.bt(
		'<img style="margin:3px 3px 0px; border:0px;" src="assets/images/layout/ajax/smallLoader.gif"/>',
		{                     
			trigger: 'none',  
			fill: '#fff',     
			width: 22,       
			strokeWidth: 1,   
			strokeStyle: '#502900',
			spikeLength: 10,  
			spikeGirth: 7,    
			padding: 10,      
			cornerRadius: 5   
		});
		$this.btOn();
		
		$.get("echo.php", { id: myId },
		
			function(data){	
				
				if(data=="success"){
			
					$this.bt(
					'<span class = "loginTip">This pet has been added to your favorites. <a href="acc_favorite.html">View your favorites now.</a></span>',
					{                     
						trigger: 'none',  
						fill: '#fff',     
						width: 250,       
						strokeWidth: 1,   
						strokeStyle: '#502900',
						spikeLength: 10,  
						spikeGirth: 7,    
						padding: 10,      
						cornerRadius: 5   
					});                   
					$this.btOn();
				
					// hide the tool tip after 2.5 secs
					$this.oneTime(2500, "hide", function() {
						$(this).btOff();
					});
					
				}else{
					$this.btOff();
				}
			}
		);
		return false;
	});
	*/
});
