 /****
 Global vars
*******/
var IS_IE = document.all && window.print && !window.opera && /MSIE [5678]/.test(navigator.userAgent);
var HeightPropertyToUse = IS_IE ? "height" : "minHeight";
var IS_SAFARI = /safari/i.test(navigator.userAgent);

/*******
 fixCorners : fixer les coins afin de ne pas avoir de problmes pour IE et les autres navigateurs
*******/
/* -- Fix corners functions : Ces fonctions fixent les coins sous IE -- */
var CSSBottomCorners=[];
var badFixedBlock=[];
var currentBlockToFixCorner=null;
function cssRight(elm) {
	elm.style.right=(parseInt(elm.currentStyle.right)-(elm.parentNode.offsetWidth%2))+"px";
}
function cssBottom(elm, pushElement) {
	if (pushElement && !elm.CSSBottomAlreadyCSS) {
		CSSBottomCorners.push(elm);
		elm.CSSBottomAlreadyCSS=true;
	}
	elm.style.bottom=(parseInt(elm.currentStyle.bottom)-(elm.parentNode.offsetHeight%2))+"px";
}
function fixCorners(block) {
	if (IS_IE) {
		for (i=CSSBottomCorners.length-1; i>-1; --i) {
			CSSBottomCorners[i].style.bottom="";
		}
	} else {
		if (IS_SAFARI) fixCornersOnBlocks(block);
	}
}
function fixCornersOnBlocks(block) {
	currentBlockToFixCorner = block || document.body;
	currentBlockToFixCorner.className+=" hidecorners";
	setTimeout("fixCornersOnBlocksShowCorners()",5);
}
function fixCornersOnBlocksShowCorners() {
	if (currentBlockToFixCorner) currentBlockToFixCorner.className=currentBlockToFixCorner.className.replace(/\bhidecorners\b/g,"");
	currentBlockToFixCorner=null;
}
/* -- /fixcorners functions -- */