window.addEvent('domready', function() {
	var lbImage = $('lbImage');
	lbImage.oncontextmenu = function(){
	return false;
	}
});

window.addEvent('domready', function() {
	var photos = $('photos');
	photos.oncontextmenu = function(){
	return false;
	}
});


/*******************************************************************************************/



var Site = {
	init: function ()
	{
		nSizes();
		ScrollNavigation.init();
	}
}






// LISTENERS *******************************************************************
/*******************************************************************************************/

var nScreenWidth = 0;
var nScreenWidth = 0;
var nSectionWidth = 870;
var nSectionHeight = 550;

function getSectionWidth () { return nSectionWidth; };
function setSectionWidth (num) { nSectionWidth = num;	};

function getSectionHeight () { return nSectionHeight; };
function setSectionHeight (num) { nSectionHeight = num; };

function getScreenWidth () { return (self.innerWidth)?self.innerWidth:document.documentElement.offsetWidth; };
function getScreenHeight () { return (self.innerHeight)?self.innerHeight:document.documentElement.offsetHeight; };

function getMarginTop () { return (getScreenHeight()/2) - (getSectionHeight()/2) };
function getMarginLeft () { return (getScreenWidth()/2) - (getSectionWidth()/2) };


function nSizes ()
{
	$('fullsite-wrapper').setStyle('width', getScreenWidth());
	$('fullsite-wrapper').setStyle('height', getScreenHeight());
}


/*******************************************************************************************/


var ScrollNavigation = {
	init: function ()
	{
		var scroll = new Fx.Scroll('fullsite-wrapper', {
			wait: false,
			duration: 1500,
			offset: {'x': -getMarginLeft(), 'y': -getMarginTop()},
			transition: Fx.Transitions.Quad.easeInOut
		});
		 
	}
}


window.addEvent('domready', Site.init);
window.onresize = function () {
	nSizes();
	//ScrollNavigation.init();
};


