
$(document).ready(function() {
	var lastpane;
	var href;
	var zcount = 2;
	var inprogress = false;
	var lastPanel;
	var ref;
	$('a').click(function(){
		if (!inprogress && $(this).attr('atitle') != lastpane) {
			inprogress = true;
			zcount = zcount+1;
			$(lastpane).css("z-index","1");
			var href = $(this).attr('atitle');
			$(href).css("left","960px");
			$(href).css("z-index",zcount);
			$(href).animate({"left": "0"},{duration:1000, easing: 'easeOutBounce', complete:function() {
					$(lastpane).css("left","960px");
					lastpane = href;
					inprogress = false;
					}
			});
		}
	});
	jQuery(function(){
	     $(".img-swap").hover(
	          function(){this.src = this.src.replace("_off","_on");},
	          function(){this.src = this.src.replace("_on","_off");
	     });
	});

});

