$(document).ready(function(){
	/**
	 * Global vars
	 */
	viewportHeight =  self.innerHeight || jQuery.boxModel && document.documentElement.clientHeight || document.body.clientHeight;
	viewportwidth =  self.innerWidth || jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth;
	
	/**
	 * Functions
	 */
	function moveTo(frm) {
		currentFrm = frm;
		$('body').scrollTo( {
			top:(parseInt($(frm).css("top"), 0) /*- (viewportHeight / 2) + ($(frm).height() / 2)*/), 
			left:(parseInt($(frm).css("left"), 0) - (viewportwidth / 2) + $(frm).width() / 2)
		}, 800 );
		return false;
	}
	
	/**
	 * Event handlers
	 */
	$(".lnkFrm").click(function(e) {
		return moveTo($(this).attr('href'));
	});
	
	
	/**
	 * Initialisation
	 */
	moveTo("#frmWhatsnext");
	
});