$(document).ready(__init);

function __init() {
		$(document).unbind('ready', __init);
		
		slideHome(); //NOTE: verifier ques les images sont chargˇes !
		
		
        $('.box-objt a').lightBox();
        $('.imgSlideHome').lightBox();
        
}



function getWindowHeight()
{
	var windowHeight;
	if (self.innerHeight) {// all except Explorer
	windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
	windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
	windowHeight = document.body.clientHeight;
	}
	
	return windowHeight;
}


function getWindowWidth()
{
	var lessScroll = 15;
	var windowWidth;
	if (self.innerWidth) {// all except Explorer
	windowWidth = self.innerWidth - lessScroll;
	} else if (document.documentElement && document.documentElement.clientWidth) { // Explorer 6 Strict Mode
	windowWidth = document.documentElement.clientWidth - lessScroll;
	} else if (document.body) { // other Explorers
	windowWidth = document.body.clientWidth - lessScroll;
	}
	return windowWidth;
}


