/*------------------------------------------------
|             Clair et Net. © 2007                |
--------------------------------------------------*/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
var ulActive = null;
var intOp;
var intCl;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function show(tag){

	ulTarget = getNextElement(tag, 'ul');

	if(ulTarget != null && ulTarget != ulActive){
		if(ulActive != null){
			closeBlock(ulActive);
		}
		ulTarget.style.display = "block";
		ulActive = ulTarget;
		openBlock(ulTarget)
	}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function getNextElement(node, tagName) {

	if (typeof(tagName) == 'undefined') {
		if (node.nextSibling) {
			return node.nextSibling;
		} else {
			return null;
		}
	} else {
		while ((node = node.nextSibling) != null) {
			if (node.nodeName.toLowerCase() == tagName.toLowerCase())
				return node;
		}
		return null;
	}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function openBlock(cible){
	HtoGet = cible.scrollHeight;
	cible.style.height = "0";
	cible.style.visibility = "visible";
	intOp = setInterval(function(){intOpen(cible,HtoGet)},10);
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function intOpen(cible,htoGet){
	H = Number(cible.style.height.split("px")[0].split("pt")[0]);
	newH = H + 10;
	if(newH < htoGet){
		cible.style.height = newH + "px";
	}else{
		clearInterval(intOp);
		cible.style.height = htoGet + "px";
	}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function closeBlock(cible){
	intCl = setInterval(function(){intClose(cible)},10);
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function intClose(cible){
	H = Number(cible.style.height.split("px")[0]);

	newH = H - 6;
	if(newH > 0){
		cible.style.height = newH + "px";
	}else{
		clearInterval(intCl);
		cible.style.height = "0px";
		cible.style.display = "none";
	}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function openFullScreen(url, name) {
	window.open(url, name, 'fullscreen=yes, scrollbars=auto, toolbar=yes, location=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes');
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/