/*!
 * Diagonal, Horizontal and Vertical Scroll
 * JavaScript Document: dhv_scroll.js
 * File In Use: http://www.hanneholm.dk
 * Version: 2.1.04.06.2010
 * Author: KD. dsignpoetry.com
 * 
 * Copyright © 1984-2011 dsignPOETRY. All Rights Reserved.
 * http://www.dsignpoetry.com
*/

// Begin Diagonal, Horizontal and Vertical Scroll
$(document).ready(function() {
	$('a.panel').click(function () {
		$('a.panel').removeClass('selected');
		$(this).addClass('selected');		
		current = $(this);		
		$('#wrapper').scrollTo($(this).attr('href'), 800);				
		return false;
	});
	$(window).resize(function () {
		resizePanel();
	});
});

function resizePanel() {
	width = $(window).width();
	height = $(window).height();
	mask_width = width * $('.dhv_page').length;		
	$('#debug').html(width  + ' ' + height + ' ' + mask_width);		
	$('#wrapper, .dhv_page').css({width: width, height: height});
	$('#dhv_mask').css({width: mask_width, height: height});
	$('#wrapper').scrollTo($('a.selected').attr('href'), 0);		
}
//  End of Diagonal, Horizontal and Vertical Scroll -->	
