$(document).ready(function() {
	if (self != top) top.location.href=self.location.href;

	jQuery('#parallax').jparallax();
	
	$('#parallax a').tooltip({track: true, delay: 400, showURL: false, showBody: " - ", fade: 250,top: -100 });
	
	var sizes = new Array();
	$('#contents a').hover(function() {
		sizes[this.id] = $('#' + this.id + ' img').css('width');
		$(this).css({'z-index' : '600'}); /*Add a higher z-index value so this image stays on top*/ 		
		$(this).find('img').addClass("hover").stop() 	/* Add class of "hover", then stop animation queue buildup*/
			.animate({
				width: '200px', /* Set new width */
			}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */
	
		} , function() {
		$(this).css({'z-index' : '500'}); /* Set z-index back to 0 */
		$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
			.animate({
				width: sizes[this.id], /* Set width back to default */
			}, 400);
	});
});
