jQuery(document).ready(function(){jQuery('a.poplight[href^=#]').click(function(){var popID=jQuery(this).attr('rel');var popURL=jQuery(this).attr('href');var query=popURL.split('?');var dim=query[1].split('&');var popWidth=dim[0].split('=')[1];jQuery('#'+ popID).fadeIn().css({'width':Number(popWidth)}).prepend('<a href="#" class="close"><img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>');var popMargTop=(jQuery('#'+ popID).height()+ 80)/2;var popMargLeft=(jQuery('#'+ popID).width()+ 80)/2;jQuery('#'+ popID).css({'margin-top':-popMargTop,'margin-left':-popMargLeft});jQuery('body').append('<div id="fade"></div>');jQuery('#fade').css({'filter':'alpha(opacity=80)'}).fadeIn();return false;});jQuery('a.close, #fade').live('click',function(){jQuery('#fade , .popup_block').fadeOut(function(){jQuery('#fade, a.close').remove();});return false;});});
