} else {
$('.sidebar #main_title').after('
' + content + '
'); } $('.poll_mod .poll_form .poller .poller_results .result_pollerTitle:last').nextAll().remove(); $('.sidebar .expendable').remove(); if ($.browser.msie) { $('.sidebar .re_content .audio_section').parent().remove(); } $('.sidebar .re_content .sidebar_segment:last, .sidebar .sidebar_segment:last').addClass('flat').addClass('borderless'); function lightBoxer(sectionClass, imgClass){ $('.' + sectionClass + ' img.primary').click(function(){ var imgSrc = $(this).parent().children('.' + imgClass).attr('src'); var imgAlt = $(this).attr('alt'); var imgAbstract = $(this).parent().children('.prime_ab').text(); var imgCredit = $(this).parent().children('.prime_credit').text(); imgCredit = '' + imgCredit + ''; var overlay = '' + imgCredit + '
' + imgAbstract + '
x close'; var rootImgHeight = $('.' + sectionClass + ' img.primary').height(); var scrollDownAmount = $(window).scrollTop(); $('body').css('position', 'relative').append(overlay); $('#lightbox_overlay').css('visibility','visible').hide().fadeIn(300, function(){ var imgWidth = $('#lightbox_overlay .light_img img').width(); var imgHeight = $('#lightbox_overlay .light_img img').height(); var boxWidth = imgWidth + 40; if(imgHeight 950) { $('#lightbox_overlay .light_img img').css('width', '955px'); var modWidth = $('#lightbox_overlay .light_img img').width(); $('#lightbox_overlay .light_img').css({ top: scrollDownAmount + 50 + 'px', width: 955, marginLeft: ((955/2) * -1) - 20, visibility: 'visible' }).hide().fadeIn(500); $('#lightbox_overlay .light_img .desc').width(955); } else { $('#lightbox_overlay .light_img').css({ top: scrollDownAmount + 50 + 'px', width: imgWidth, marginLeft: ((imgWidth/2) * -1) - 20, visibility: 'visible' }).hide().fadeIn(500); $('#lightbox_overlay .light_img .desc').width(imgWidth); } }); $('#lightbox_overlay .light_img').click(function(){ $('#lightbox_overlay').fadeOut(300, function(){ $('#lightbox_overlay').remove(); }); }); }); } lightBoxer('photo_section', 'primary'); lightBoxer('alt_photo_section', 'big'); lightBoxer('mugshots', 'big'); }); //-->censoring the internet blackout blackout congress censored jerry yang stop sopa
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.