$(document).ready(function () {
	$("#wptmenu").hide(0).fadeIn(1000);
	$('#wptmenu li').hover(
		function() { $('ul', this).css('z-index',99).css('display', 'block'); },
		function() { $('ul', this).css('display', 'none');
		});

	$(".addpet").click(function() { 	
		var check=false;
		for (i=0; i<10; i++) {
			var thispet='pet'+i;
			if ($('#'+thispet).hasClass('off') && check==false) {
				$('#'+thispet).removeClass('off');
				$('#'+thispet).addClass('on');
				check=true;
			}
		}	
	});

});
