$(document).ready(function() {
	//Active la lightbox
	$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'facebook', opacity: 0.2, default_width:650, default_height:500});

	//Lance le code d'initialisation de la page
	try {
		JS_Page_Load();
	}catch(err) { }
});

function CheckFrame(Redirection)
{
	if (parent.location.href == self.location.href) { window.location.href = Redirection; }	
}

function Objet_Absolute_X(objItem)
{
	var objParent = null
	var intX = 0
	var intY = 0
	do
	{
		intX += objItem.offsetLeft;
		objParent = objItem.offsetParent.tagName;
		objItem = objItem.offsetParent;
	}
	while((objParent != 'BODY') && (objParent != 'HTML'))
	
	return intX;
}

function Objet_Absolute_Y(objItem)
{
	var objParent = null
	var intX = 0
	var intY = 0
	do
	{
		intY += objItem.offsetTop;
		objParent = objItem.offsetParent.tagName;
		objItem = objItem.offsetParent;
	}
	while((objParent != 'BODY') && (objParent != 'HTML'))
	
	return intY;
}

