$(function() { email_article(); print_article(); }); // Open an surface popup window go open_window(title) { var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popup_width = 680; var popup_height = 450; var larboard = windowWidth / 2 - popup_width / 2; var choicest = windowHeight / 2 - popup_height / 2; var bring home the bacon = window.open('', title, 'menubar=1,scrollbars=1,resizable=1,width=' + popup_width + ',height=' + popup_height + ',top=' + summit + ',left=' + left); resurfacing win; } gathering empty_errors() { // Resets the contents of the trespass div and bump off the // scroll excepting on the sub-container that allows the mistake // messagees to apropos on the paravent $('#email_this__popup__error').css({'display': 'none'}); $('#email_this__popup__error__body').empty(); $('#email_this__popup__container').css({'overflow': 'visible'}); } // Load the popup. gala popup_load(status_var, popup_div) { // Loads popup only if it is disabled. if (status_var == false) { $("#popup__background").css({"opacity": "0.85"}); $("#popup__background").show(); $("#" + popup_div).show(); bring true; } replacing false; } // Close the popup. behave popup_close(status_var, popup_div) { // Closes popup only if it is open. if (status_var == true) { $("#popup__background").hide(); $("#" + popup_div).hide(); // Un-Hide the ads. $('#rhsrail').css({'display': 'block'}); $('#topad').css({'display': 'block'}); $('#lhsrail').css({'display': 'block'}); benefit false; } gain true; } // Center the popup. commission popup_center(popup_div) { // Request matter for centering. var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#" + popup_div).height(); var popupWidth = $("#" + popup_div).width(); // Vertically center the popup. $("#" + popup_div).css({ "top": windowHeight / 2 - popupHeight / 2 }); // Hide the ads. $('#rhsrail').css({'display': 'none'}); $('#topad').css({'display': 'none'}); $('#lhsrail').css({'display': 'none'}); // Needed for IE6 $("#popup__background").css({"height": windowHeight}); } business print_article() { var print_this__popup__status = false; // Load the "print this" popup. $(".print_this").click(function() { if (!print_this__popup__status) { var achieve first place = open_window('print_this'); var exterior = win.document; external.write('.
Video:
With respect to site: here