function prepare_lightbox(){ $('.albumList .gallery a').lightBox({imageBtnNext:'images/jquery.lightbox/lightbox-btn-next.gif',imageBtnPrev:'images/jquery.lightbox/lightbox-btn-prev.gif',imageBtnClose:'images/jquery.lightbox/lightbox-btn-close.gif',imageBlank:'images/jquery.lightbox/lightbox-blank.gif'}); }

function isIE() {if(navigator.userAgent.match(/MSIE \d\.\d+/)) return true; return false;}
function zIndexWorkaround() {
    if(isIE()) {
        /*
        ** For each div with class menu (i.e.,
        ** the thing we want to be on top),
        */
        $(".menuVertical ul li ul li").parents().each(function() { var p = $(this); var pos = p.css("position");

            // If it's positioned,
            if(pos == "relative" || pos == "absolute" || pos == "fixed") {
                /*
                ** Add the "on-top" class name when the
                ** mouse is hovering over it, and remove
                ** it when the mouse leaves.
                */
                p.hover(function() { $(this).addClass("on-top"); }, function() { $(this).removeClass("on-top"); });
            }
        });
    }
}
$(document).ready( function() {prepare_lightbox();  zIndexWorkaround(); } );
//$(document).ready(zIndexWorkaround);
