$(function() {

//
// Global snippets
//
$('.add-to-favorite').click(function() {
    if ($.browser.msie)
        window.external.addFavorite(window.location.href, document.title);
    else
        alert('To bookmark this page please type:\n Ctrl+D (PC) or Cmd+D (MAC).');
});

// Fixes icons in ie6
if ($.browser.msie && $.browser.version == 6 ) DD_roundies.addRule('.icon');

//
// .page-home
//
if ($('.page-home').length) {
    $('#featuring-panel .slider-wrapper')
        .scrollable({prev: '.slider-controls .prev', next: '.slider-controls .next'})
        .circular()
        .autoscroll({steps: 1, interval: 3000 })
    $('.slider-controls > a').click(function() { return false; })
}

});
