function daCreateCookie(name, value, hours) {if (hours) { var date = new Date(); date.setTime(date.getTime() + (hours * 60 * 60 * 1000)); var expires = '; expires=' + date.toGMTString(); }else { var expires = ''; } document.cookie = name + '=' + value + expires + '; path=/'; } function daReadCookie(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; } if (daReadCookie('popupm') == null){ document.write(''); document.write('
'); document.write('
'); document.write('
X
'); window.onload = document.onload = window.onscroll = document.onscroll = window.onresize = document.onresize = function() { var tmpdiv = document.getElementById("slide_up"); var tmpdiv2 = document.getElementById("slide_up2"); var close_popup=document.getElementById("close_popup"); if (tmpdiv && tmpdiv2) { var h = window.innerHeight ? window.innerHeight : (document.documentElement.clientHeight == 0 ? document.body.clientHeight : document.documentElement.clientHeight); var w = window.innerWidth ? window.innerWidth : (document.documentElement.clientWidth == 0 ? document.body.clientWidth : document.documentElement.clientWidth); var s = window.pageYOffset ? window.pageYOffset : (document.documentElement.scrollTop == 0 ? document.body.scrollTop : document.documentElement.scrollTop); var sw = document.documentElement.scrollWidth == 0 ? document.body.scrollWidth : document.documentElement.scrollWidth; tmpdiv2.style.top = s + (h - tmpdiv2.clientHeight) + "px"; close_popup.style.top = s + (h - 25) + "px"; var scroll = 0; if(navigator.userAgent.indexOf('MSIE') !=-1){ scroll = 21;} tmpdiv2.style.width = (sw - scroll) + "px"; tmpdiv.style.top = s + (h - tmpdiv.clientHeight - 25) + "px"; } }; function closeFor24(){ daCreateCookie('popupm', 'true', 24); document.getElementById('slide_up').style.display="none"; document.getElementById('slide_up2').style.display="none"; document.getElementById('close_popup').style.display="none"; } }