﻿function Jump(record){
	if (record == 'unrequited') {
		$('#nav').fadeOut('slow', function() {
			$('#art').hide("slide", { direction: "left" }, 1000, function() {
			
				$('body').css('background', '#f3eae1');
				$('.middleoftheworld').hide();
				$('#art').css('background', 'url(images/unrequited.png)');
				$('.unrequited').show();
				
				$('#art').show("slide", { direction: "right" }, 1000, function() { 
					$('#nav').fadeIn('slow');
				})
			})
		});
	}
	else { // middle of the world
		$('#nav').fadeOut('slow', function() {
			$('#art').hide("slide", { direction: "right" }, 1000, function() {
			
				$('body').css('background', '#d2d8dd');
				$('.unrequited').hide();
				$('#art').css('background', 'url(images/motw.png)');
				$('.middleoftheworld').show();
				
				$('#art').show("slide", { direction: "left" }, 1000, function() { 
					$('#nav').fadeIn('slow');
				})
			})
		});
		
	}
}

// var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
// document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
// 
// try {
// var pageTracker = _gat._getTracker("UA-12566670-1");
// pageTracker._setDomainName(".evangoodberry.com");
// pageTracker._trackPageview();
// } catch(err) { alert(err); }