document.write(""); var popupboxBox={ displayfiles: ['http://healingproducts.com/popuppicker/p100/popup.html'], displayfrequency: ["cookie", "7"], defineheader: '
Unlock Your Mind Close
', cookiesetting: ["stitialcookie", "path=/"], ajaxbustcache: false, disablescrollbars: true, autohidetimer: 0, ////No need to edit beyond here//////////////////////////////// ie7: window.XMLHttpRequest && document.all && !window.opera, ie7offline: this.ie7 && window.location.href.indexOf("http")==-1, launch:false, scrollbarwidth: 16, ajaxconnect:function(url, thediv){ var page_request = false var bustcacheparameter="" if (window.XMLHttpRequest && !this.ie7offline) page_request = new XMLHttpRequest() else if (window.ActiveXObject){ try { page_request = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} } } else return false page_request.onreadystatechange=function(){ popupboxBox.loadpage(page_request, thediv) } if (this.ajaxbustcache) bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime() page_request.open('GET', url+bustcacheparameter, true) page_request.send(null) }, loadpage:function(page_request, thediv){ if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){ document.getElementById("interContent").innerHTML=page_request.responseText } }, createcontainer:function(){ document.write('
'+this.defineheader+'
') this.interContainer=document.getElementById("interContainer") this.interVeil=document.getElementById("interVeil") this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body }, showcontainer:function(){ if (this.interContainer.style.display=="none") return var ie=document.all && !window.opera var dom=document.getElementById var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight var objwidth=this.interContainer.offsetWidth var objheight=this.interContainer.offsetHeight this.interVeil.style.width=docwidth+"px" this.interVeil.style.height=docheightcomplete+"px" this.interVeil.style.left=0 this.interVeil.style.top=0 this.interVeil.style.visibility="visible" this.interContainer.style.left=docwidth/2-objwidth/2+"px" var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+5+"px" this.interContainer.style.top=Math.floor(parseInt(topposition))+"px" this.interContainer.style.visibility="visible" if (this.autohidetimer && parseInt(this.autohidetimer)>0 && typeof this.timervar=="undefined") this.timervar=setTimeout("popupboxBox.closeit()", this.autohidetimer*1000) }, closeit:function(){ this.interVeil.style.display="none" this.interContainer.style.display="none" if (this.disablescrollbars && window.XMLHttpRequest) this.standardbody.style.overflow="auto" if (typeof this.timervar!="undefined") clearTimeout(this.timervar) }, getscrollbarwidth:function(){ var scrollbarwidth=window.innerWidth-(this.interVeil.offsetLeft+this.interVeil.offsetWidth) //http: this.scrollbarwidth=(typeof scrollbarwidth=="number")? scrollbarwidth : this.scrollbarwidth }, hidescrollbar:function(){ if (this.disablescrollbars){ if (window.XMLHttpRequest) this.standardbody.style.overflow="hidden" else window.scrollTo(0,0) } }, dotask:function(target, functionref, tasktype){ var tasktype=(window.addEventListener)? tasktype : "on"+tasktype if (target.addEventListener) target.addEventListener(tasktype, functionref, false) else if (target.attachEvent) target.attachEvent(tasktype, functionref) }, initialize:function(){ this.createcontainer() this.ajaxconnect(this.displayfiles[Math.floor(Math.random()*this.displayfiles.length)], this.interContainer) this.interContainer.style.display= "none"; this.dotask(window, function(){popupboxBox.hidescrollbar(); popupboxBox.getscrollbarwidth(); setTimeout("popupboxBox.showcontainer()", 100)}, "load") this.dotask(window, function(){popupboxBox.showcontainer()}, "resize") } } /////////////End of popupboxBox object declaration here ////////////////////////////// function getCookie(Name){ var re=new RegExp(Name+"=[^;]+", "i"); if (document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1] return null } function setCookie(name, value, days){ var expireDate = new Date() if (typeof days!="undefined"){ var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days)) document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; "+popupboxBox.cookiesetting[1] } else document.cookie = name+"="+value+"; "+popupboxBox.cookiesetting[1] } var stitialvars=new Object() stitialvars.freqtype=popupboxBox.displayfrequency[0] stitialvars.cookieduration=popupboxBox.displayfrequency[1] stitialvars.cookiename=popupboxBox.cookiesetting[0] if (stitialvars.freqtype=="chance"){ if (Math.floor(Math.random()*popupboxBox.displayfrequency[1])==0) popupboxBox.launch=true } else if (stitialvars.freqtype=="cookie" && stitialvars.cookieduration=="session"){ if (getCookie(stitialvars.cookiename+"_s")==null){ setCookie(stitialvars.cookiename+"_s", "loaded") popupboxBox.launch=true } } else if (stitialvars.freqtype=="cookie" && typeof parseInt(stitialvars.cookieduration)=="number"){ if (getCookie(stitialvars.cookiename)==null || parseInt(getCookie(stitialvars.cookiename))!=parseInt(stitialvars.cookieduration)){ setCookie(stitialvars.cookiename, stitialvars.cookieduration, stitialvars.cookieduration) popupboxBox.launch=true } } if (popupboxBox.launch){ popupboxBox.initialize() setTimeout('popupboxBox.interContainer.style.display= "block"; popupboxBox.showcontainer();',3*1000); }