// suckerfish hover effect for ie6
sfHover = function() {
    // specify hovered element and div in which it sits 
    var sfEls = document.getElementById("page").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" hover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" hover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


/**********************************************************************************/
/******************* TOGGLE pour onglets / CHANGER pour police ********************/
/******************fonctions devant être déclenchés dès le début*******************/
/**********************************************************************************/
var $j = jQuery.noConflict();

$j(document).ready(function(){
	$j("div.expand").click(function (e) {
		if ((this.className).indexOf("tabUp") != -1) {
			$j(this).removeClass("tabUp");
			$j(this).addClass("tabDown");
		} else {
			$j(this).removeClass("tabDown");
			$j(this).addClass("tabUp");
		}
		
		var expandableBox = $j(this).next("div.expandableBox");
		expandableBox.slideToggle("slow");
		expandableBox.addClass("open");
		
	});
	
});




/**********************************************************************************/
/**************************** ROLLOVER pour les onglets ***************************/
/**********************************************************************************/
	
function overTab(ong)
{
	ong.style.backgroundColor="#FFFFFF"; 
}

function outTab(ong)
{
	ong.style.backgroundColor="#f7f7f7";
}



/**********************************************************************************/
/***************************** REFRESH POUR ACCORDÉON *****************************/
/**********************************************************************************/

function resetAll()
{
	$j("div.expand").removeClass("tabDown");
	$j("div.expand").addClass("tabUp");
	$j("div.expandableBox").slideDown("slow");
	if (window.name != 'print')
		sIFR.replaceElement(named({sSelector: "#boxFull h3", sFlashSrc: "flash/commun/gothambook.swf", sColor: "#333333", sWmode: "transparent"}));
}

/**********************************************************************************/
/********************** FONCTION POUT FERMER TOUS LES ACCORDÉON********************/
/**********************************************************************************/

function toutFermer()
{
	$j("div.expand").removeClass("tabUp");
	$j("div.expand").addClass("tabDown");
	$j("div.expandableBox").slideUp("slow");
	if (window.name != 'print')
		sIFR.replaceElement(named({sSelector: "#boxFull h3", sFlashSrc: "flash/commun/gothambook.swf", sColor: "#333333", sWmode: "transparent"}));
}




