﻿jQuery(function($) {

    // This one is important, many browsers don't reset scroll on refreshes
    // Reset all scrollable panes to (0,0)
    $('div.pane').scrollTo(0);
    // Reset the screen to (0,0)
    $.scrollTo(0);

    // Target examples bindings
    // THIS DEMO IS NOT INTENDED TO SHOW HOW TO CODE IT
    // JUST THE MULTIPLE OPTIONS. THIS CODE IS UGLY.

    $('#LienAvis').click(function() {
        $.scrollTo('#LesAvis', { duration: 1500 });
    });

    $('#RetourHaut').click(function() {
        $.scrollTo(0, { duration: 1500 });
    });


});

function favoris(url, title) {
    if (window.sidebar) // firefox
        window.sidebar.addPanel(title, url, "");
    else if (window.opera && window.print) { // opera
        var elem = document.createElement('a');
        elem.setAttribute('href', url);
        elem.setAttribute('title', title);
        elem.setAttribute('rel', 'sidebar');
        elem.click();
    }
    else if (document.all)// ie
        window.external.AddFavorite(url, title);
}


$(document).ready(function() {
    $('a').cluetip({ sticky: true, closePosition: 'title', positionBy: 'mouse', width: 420 });
}); 