function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function showHideLayers() { //v9.0
    var i, p, v, obj, args = showHideLayers.arguments;
    for (i = 0; i < (args.length - 2); i += 3)
    with (document) if (getElementById && ((obj = getElementById(args[i])) != null)) {
        v = args[i + 2];
        if (obj.style) { obj = obj.style; v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v; }
        obj.visibility = v;
    } 
}

setTimeout(function () {
    $('.skype_pnh_container').html('');
    $('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
}, 1000);

$(document).ready(function () {
    $('#smenubar').stickyMenubar({
        floatingDiv: $('#optionbar'),
        floatingDivBackground: true,
        onLeaveTop: function () {
            $('.top_menu').fadeIn();
            $('#header').addClass('margin_bottom');
        },
        onScroll: function () {
            $('.top_menu').fadeOut();
            $('#header').removeClass('margin_bottom');
        }
    });
});

