Kitchen Estimator - Home Decorators Online Cabinetry

").addClass("mask") .width(windowWidth) .height(windowHeight) .appendTo("body"); div_obj.css("position", "absolute"); var popupLeft = Math.ceil((windowWidth - popupWidth) / 2); div_obj.css("left", popupLeft + "px"); div_obj.css("top", ($(document).scrollTop() + 100) + "px"); div_obj.show(); } function closeYouTube() { $("#mask").remove(); $("#YouTubePopUp").hide(); var state = 'hide'; var div = document.getElementById("YouTubePopUp"); var iframe = div.getElementsByTagName("iframe")[0].contentWindow; div.style.display = state == 'hide' ? 'none' : ''; func = state == 'hide' ? 'pauseVideo' : 'playVideo'; iframe.postMessage('{"event":"command","func":"' + func + '","args":""}', '*'); } function showNewsletterPopUp() { var div_objNewsletter = $("#NewsLetterPopUpDiv"); var windowWidth = document.body.clientWidth; var windowHeight = document.body.clientHeight; var popupHeight = div_objNewsletter.height(); var popupWidth = div_objNewsletter.width(); $("").addClass("mask") .width(windowWidth) .height(windowHeight) .appendTo("body"); div_objNewsletter.css("position", "absolute"); div_objNewsletter.css("left", "400px"); div_objNewsletter.css("top", ($(document).scrollTop() + 400) + "px"); div_objNewsletter.show(); } function closeNewsletterPopUp() { $("#mask").remove(); $("#NewsLetterPopUpDiv").hide(); }

Previous
Next Post »