window.onload = function(){};


function init() {
	
	setContainerSize();
	resizeAll();
	placeBlocNote();

	
function setContainerSize(){
	
	var h = $(window).height();
	var w = $(window).width();
	var maxW = 1600;
	var maxH = 1200;
	
	$('#footer').css({'width': w});
	
	if(w >= maxW){
		w = maxW;
		$('body').css({'background-position': 'center top'});
	}else {
		w = w;
	};
	
	
	if(h >= maxH){
		h = maxH;
	}else {h = h;};
	//alert(w);
	$('#container').css({'width': w, 'height':h});
	$('#lucul').css({'width': w});
	
	/* DEBUG */
	if(maxW <= w){
		$('#container').css({'border-left':'0px solid #efefef','border-right':'0px solid #efefef'});
		
		
	}
	
		
}

function resizeAll() {
	$(window).resize(function() {
 		setContainerSize();
		
		});
}
		
	/* */
};

function placeBlocNote() {
	var w = $(window).width();
	var maxW = 1600;
	var sizeScroll = 0;
	var margin = Math.ceil((w-maxW)/2) + sizeScroll;
	var h = $(window).height();
	var hC = $("#contentHolder").height();

	if(hC > h){
			$('#bloc-note').css({'right': sizeScroll});
	}
	if(maxW <= w){
			
		$('#bloc-note').css({'right': margin});
	}
}


$(document).ready(init);

