<!--
var test	= /[*+#$^\"\']|\bdumpfile\b|\boutfile\b/;
var continuerAnimation	= false;

function affiche_block(id) {
        thisId	= '#'+id;
	$(thisId).css('display', 'block');
}
function affiche_inline(id) {
        thisId	= '#'+id;
	$(thisId).css('display', 'inline');
}
function cache(id) {
        thisId	= '#'+id;
	$(thisId).css('display', 'none');
}
function switch_affichage(id) {
        thisId	= '#'+id;
        if ($(thisId).css('display') == "none")
                $(thisId).show();
        else	$(thisId).hide();
}
function switch_affichage_menu(id) {
        if (document.getElementById(id).style.display == "none") {
                affiche_block(id);
		cache('fleche_droite_'+id);
		affiche_inline('fleche_bas_'+id);
        }
        else if (document.getElementById(id).style.display == "inline" || document.getElementById(id).style.display == "block") {
                cache(id);
		cache('fleche_bas_'+id);
		affiche_inline('fleche_droite_'+id);
        }
}
function openWindow(URL, width, height) {
 	window.open (URL, 'theURL', 'width='+width+', height='+height);
}
function switchImgDroite (vidId, num, random) {
	if (num	== 1)
		nextNum	= 2;
	else	nextNum	= 1;
	
	var thisId	= '#img_'+vidId+'_'+num;
	var nextId	= '#img_'+vidId+'_'+nextNum;
	
	if (random == 0)
		random	= Math.random()*5000 + 4000;
	
	if ($(thisId).css('display') == "none") {
		$(nextId).fadeOut("slow", function() {
			$(thisId).fadeIn("slow");
		});
	}
	else {
		$(thisId).fadeOut("slow", function() {
			$(nextId).fadeIn("slow");
		});
	}
	if (continuerAnimation) {
		window.setTimeout("switchImgDroite('"+vidId+"', "+nextNum+", "+random+")", random);
	}
	
	return true;
}
function displayOthersImgDroite (vidId, num) {
	return window.setTimeout("switchOthersImg("+vidId+", "+num+", 'show', 'img_')", 1500);
}
function hideOthersImgDroite (vidId, num) {
	return window.setTimeout("switchOthersImg("+vidId+", "+num+", 'hide', 'img_')", 1500);
}
function displayOthersImgBig (vidId, num) {
	return window.setTimeout("switchOthersImg("+vidId+", "+num+", 'show', 'bigimg_')", 1500);
}
function hideOthersImgBig (vidId, num) {
	return window.setTimeout("switchOthersImg("+vidId+", "+num+", 'hide', 'bigimg_')", 1500);
}
function switchOthersImg (vidId, num, type, prev_id) {
	if (num	== 1)
		nextNum	= 2;
	else	nextNum	= 1;
	
	var thisId	= '#'+prev_id+vidId+'_'+num;
	var nextId	= '#'+prev_id+vidId+'_'+nextNum;
	
	if (type == 'show') {
		/*if ($(thisId).css('display') == "none") {
			$(nextId).fadeOut("slow", function() {
				$(thisId).fadeIn("slow");
			});
		}*/
		if ($(nextId).css('display') == "none") {
			$(thisId).fadeOut("slow", function() {
				$(nextId).fadeIn("slow");
			});
		}
	}
	else {
		if ($(thisId).css('display') == "none") {
			$(nextId).fadeOut("slow", function() {
				$(thisId).fadeIn("slow");
			});
		}
		for (i=0;i<10000;i++)
			test=1;
		/*else {
			$(thisId).fadeOut("slow", function() {
				$(nextId).fadeIn("slow");
			});
		}*/
	}
	return true;
}
function switchBigImg (vidId, num, random) {
	if (num	== 1)
		nextNum	= 2;
	else	nextNum	= 1;
	
	var thisId	= '#bigimg_'+vidId+'_'+num;
	var nextId	= '#bigimg_'+vidId+'_'+nextNum;
	
	if (random == 0)
		random	= Math.random()*6000 + 8000;
	
	if ($(thisId).css('display') == "none") {
		$(nextId).fadeOut("slow", function() {
			$(thisId).fadeIn("slow");
		});
	}
	else {
		$(thisId).fadeOut("slow", function() {
			$(nextId).fadeIn("slow");
		});
	}
	if (continuerAnimation) {
		window.setTimeout("switchBigImg('"+vidId+"', "+nextNum+", "+random+")", random);
	}
	
	return true;
}
function stopAnimation() {
	continuerAnimation = false;
}

$(function(){
	$('#menu li').click(function(){
		document.location.href	= $(this).children("a").attr('href');
	});
	$('#menu li').hover(function(){
		if ($(this).attr('class') != "over2")
			$(this).attr('class', "over");
	}, function() {
		if ($(this).attr('class') != "over2")
			$(this).attr('class', "");
	});
});
//-->