$(document).ready(function() {

    var rotate = $('.Advs.Rotate a');
    if (rotate.size() > 1)
        rotate.ssnRotate();
    else
        rotate.show();

});


$(document).ready(function() {
    if ($('html').hasClass('ie6')) return;
    Cufon.replace('.HeadLight', { fontFamily: 'GillSansLight' });
    Cufon.replace('.HeadLightItalic', { fontFamily: 'GillSansLightItalic' });
    Cufon.replace('.Head', { fontFamily: 'GillSans' });
    Cufon.replace('ul.Menu.Top li a', { fontFamily: 'GillSans' });
});
/*
// normal page shadow container top fix
$(document).ready(function() {
$('.NormalPage .RightPane .Container.Shadow:first').css('margin-top', '-10px');
});

*/
$(document).ready(function() {
    $('.ie6 .Current_Picture_Main_Wrapper').each(function() {
        $('.NormalPage .ContentPane').css('overflow', 'visible');
    });
});


/* Section chooser */

$(document).ready(function() {
    var section = $('div.Sections');
    sectionHolder = section.find('ul');

    var closeSectionTimer;
    section.hover(function() {
        clearTimeout(closeSectionTimer);
        if (sectionHolder.is(':hidden'))
            sectionHolder.slideDown();
    }, function() {
        closeSectionTimer = setTimeout(function() {
            sectionHolder.slideUp();
        }, 300);
    });
});