menu = [];
click = false;

$j(document).ready(function() {

    // Initialisation du tableau de mémorisation de la navigation
    $j("li.bnp-menu").hover
    (
       function() {
           $j("li.bnp-menu").removeClass("active");
           $j(this).addClass("active");
           $j(this).css('background-color', '#b7356e')
       },
       function() {
           $j("li.bnp-menu").removeClass("active");
           $j(this).css('background-color', '#045c8c')
       }
    )

    $j("#menu0").hover
    (
       function() {
           $j(".bnp-rollover", this).css("display", "block");
           return false;
       },
        function() {
       $j(".bnp-rollover", this).css("display", "none");
            return false;
        }
      );
});

function ChangeGraph(graphType, underlyingId, underlyingName) {

    //on change le graphique
    if (underlyingId != "") {
        $j("#graph").children("img").attr("src", "GraphGeneratorHandler.ashx?mode=" + graphType + "&id=" + underlyingId + "&title=" + underlyingName + "&website_id=" + websiteId);
        $j("#graph").alt = underlyingName + " " + graphType.toString().replace('Large', '');
    }
}

/*function ChangeHistory(control, graphType, underlyingId, underlyingName)
{
    ChangeGraph(graphType, underlyingId, underlyingName)

    $j(".bnp-onglets.bnp-2 li").removeClass("active");
    $j(control).addClass("active");

    menu[1] = $j(control);
}*/
