function    bookmark() {
    if (navigator.appName == 'Microsoft Internet Explorer') {
        window.external.AddFavorite(document.location.href, document.title);
    }
    else {
        window.sidebar.addPanel(document.title, document.location.href, '');
    }
}

$(document).ready(function() {
	//défile
	$(".marquee").marquee("marquee");
	
    $('a.external').click(function() {
       window.open(this.href);
       return false;
    });

    var i = 0;
    $('#nav>li').each(function() {
        if ($(this).hasClass("active")) {
            $('#nav').css('background','url(/image/struct/nav/nav_' + i + '_on_bg.png) no-repeat left');
        }


/* 
        var a = $(this).children('a');
        var text = a.text();

        a.text('');

        if ($(this).hasClass("active")) {
            a.append(
                '<img src="/image/nav/on/' +
                i +
                '.png" alt="' +
                text +
                '" />'
            );
        }
        else {
            a.append(
                '<img src="/image/nav/' +
                i +
                '.png" alt="' +
                text +
                '" />'
            );
        }
*/
        i += 1;
    });
});
 
