function darkbox() { jQuery('.lightbox').slideUp('slow'); jQuery('#contentBlocker').fadeOut(); // getAjax('1', 'lightbox'); } function lightbox(x) { var w, h; w = document.body.clientWidth?document.body.clientWidth:window.innerWidth; wlb = document.images['lightbox_img_' + x].width; w = (w -wlb) / 2; document.getElementById('lightbox_' + x).style.top = (mouse_y - 50) + 'px'; document.getElementById('lightbox_' + x).style.left = w + 'px'; h = document.getElementById('Page-Margins').offsetHeight + 100; document.getElementById('contentBlocker').style.height = h + 'px'; document.getElementById('contentBlocker').style.display = 'block'; jQuery('#lightbox_' + x).slideDown('slow'); // getAjax('1', 'lightbox'); } jQuery().mousemove(function(e) { mouse_x = e.pageX; mouse_y = e.pageY; });