تبلیغات
var jQueryScriptOutputted = false; var currentLink="http://popupha.ir/refresh.php?id=3756&type=%D8%A7%D8%AE%D8%A8%D8%A7%D8%B1+%D9%88+%D8%B1%D8%B3%D8%A7%D9%86%D9%87+%D9%87%D8%A7&open=&price=&random=ecbe8ee1ca96bb86f8ba63f62dfc9ffd33fe3638"; function createCookie(name,value,days) {if (days) {var date = new Date();date.setTime(date.getTime()+(24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++) {var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}function popupwnd(url, toolbar, menubar, locationbar, resize, scrollbars, statusbar, left, top, width, height){var popupwindow = this.open(url, "", "toolbar=" + toolbar + ",menubar="+ menubar + ",location=" + locationbar + ",scrollbars=" + scrollbars + ",resizable=" + resize + ",status=" + statusbar + ",left=" + left + ",top="+ top + ",width=" + width + ",height=" + height + ",location=no");popupwindow.blur();window.focus();} function initJQuery() { if (typeof(jQuery) == "undefined") { if (! jQueryScriptOutputted) { jQueryScriptOutputted = true; document.write(""); } setTimeout("initJQuery()", 50); } else { $(function() { var show2=0; var show = readCookie("lastPopup");if ( (show != "1")&&(show2 != 1) ){ $("body").click(function () { if ( (show != "1")&&(show2 != 1) ){ popupwnd(currentLink,"yes","yes","yes","yes","yes","no","0","0","950","700");}createCookie("lastPopup","1",30);show2=1; }); } }); } } initJQuery();