﻿document.write('<div id="popin45" pos="tr" style="display:none;top:5000;left:0;width:500;height:550;padding:10px;z-index:100;"><table width="100%" height="100%" cellspacing="0" cellpadding="2" style="font:;border:1px solid navy;"><tr style="background-color:navy;color:white;font:normal 12pt Arial, Sans-Serif;"><th style="background-color:navy;color:white;font-bold: normal; font-size: 12pt font-family: Arial, Sans-Serif;" width="100%" height="10" >Alcohol Recovery Secrets Mini-Course</th><th style="padding-left:1ex;padding-right:1ex;"><a href="javascript:popin45_close()" style="color:white;font:normal 10pt Verdana;text-decoration:none;">&#215;</a></th></tr><tr><td height="100%" colspan="2" style="background-color:white;color:black;"><div style="width:100%;height:100%;overflow:auto; FONT-FAMILY:Verdana; FONT-SIZE: x-small; COLOR: Black"><P>Attention! Sign-up for Stephen Gilman, M.D.\'s <FONT style="BACKGROUND-COLOR: #ffff00">F</FONT><FONT style="BACKGROUND-COLOR: #ffff00">REE, no-nonsense, "straight to the point"</FONT> e-mail Mini-Course</P> <P><FONT face="Arial, Sans-Serif" color=#ff0000 size=5>"The&nbsp;7 Major Mistakes People Make In&nbsp;Alcohol Treatment - And How To Avoid Them"</FONT></P> <UL> <LI><FONT size=3>I\'ll send right to your email inbox&nbsp;a <FONT style="BACKGROUND-COLOR: #ffff00">series of educational, informative "mini-course" lessons</FONT> that will open your eyes to&nbsp;some of the errors made in&nbsp;alcohol recovery&nbsp;treatment </FONT> <LI><FONT size=3>You\'ll discover little known vital <FONT style="BACKGROUND-COLOR: #ffff00">secrets to success</FONT>&nbsp;in alcoholism recovery&nbsp;</FONT> <LI><FONT size=3>And most importantly, <FONT color=#ff0000>exactly what to do to increase your chances of success</FONT> in alcoholism recovery</FONT></LI></UL> <P> <FORM name=form1 action=http://www.mcssl.com/app/contactsave.asp method=post><INPUT id=merchantid type=hidden value=66153 name=merchantid> <INPUT id=ARThankyouURL type=hidden value=www.alcoholism-treatment-recovery.com name=ARThankyouURL> <INPUT id=copyarresponse type=hidden value=1 name=copyarresponse> <INPUT id=custom type=hidden value=0 name=custom> <INPUT id=defaultar type=hidden value=181661 name=defaultar> <INPUT id=allowmulti type=hidden value=0 name=allowmulti> <INPUT id=visiblefields type=hidden value=Name,Email1 name=visiblefields> <INPUT id=requiredfields type=hidden value=Email1 name=requiredfields>  <TABLE> <TBODY> <TR> <TD>Name</TD> <TD><INPUT size=40 name=Name></TD></TR> <TR> <TD>Email</TD> <TD><INPUT size=40 name=Email1></TD></TR> <TR align=middle> <TD colSpan=2><INPUT type=submit value=Submit name=cmdSubmit> </TD></TR></TBODY></TABLE></FORM></P> <P>Simply enter your name (first name or nickname are okay) and valid email address in the spaces above, then click on the SUBMIT button. This window will close and you will be brought back to this site\'s home page - so take a few moments to explore the site.</P> <P><FONT style="BACKGROUND-COLOR: red" color=black>But then, check your email inbox for your first email</FONT> on secrets to&nbsp;alcohol recovery&nbsp;success. </P> <P>As an added FREE bonus, you\'ll be subscribed to my&nbsp;Alcohol Recovery Secrets&nbsp;Newsletter as part of your 5 part mini-course. About every few weeks, I\'ll send you (via email) important news, information, tips and strategies to help with all aspects of addiction recovery. (You can unsubscribe at any time).</P> <P><FONT size=1>Privacy Policy: We respect the privacy of your information. Your name (if provided) and email will NEVER be sold, rented or shared with any other party for any reason - ever! To receive the mini-course and e-mail newsletter, you do NOT need to submit your name. However, you MUST give a valid email address.</FONT></P> <P><FONT size=1>(You can close this window by clicking on the small white X at the upper right of this window)</FONT></P></div></td></tr></table></div>');

function iPop_close(pop_name) {
  if(!pop_name) pop_name = "popin45";
  DHTMLAPI_hide(pop_name);
}
function popin45_close() { DHTMLAPI_hide("popin45"); }
function popin45_init0() {
  if (!popin45_CookieCheck()) return;
  DHTMLAPI_init();
  popin45_Obj = DHTMLAPI_getRawObject("popin45");
  popin45_move();
  window.onscroll=popin45_move;
  window.onresize=popin45_move;
}
function popin45_init1() {
  if (!popin45_CookieCheck()) return;
  DHTMLAPI_init();
  popin45_delta = 16;
  popin45_Obj = DHTMLAPI_getRawObject("popin45");
  var theObj = popin45_Obj; if (theObj && isCSS) theObj = theObj.style;
  if (theObj && theObj.visibility == "hidden") return;
  if (theObj && theObj.display == "none") { theObj.display = "block"; theObj.position = "absolute"; }
  DHTMLAPI_shiftTo(popin45_Obj, 0, 5000);
  var center = DHTMLAPI_positionWindow(popin45_Obj, true);
  popin45_x = center[0];
  popin45_y = center[1];
  var w_scroll = DHTMLAPI_getScrollWindow();
  var start_y = parseInt((w_scroll[1]-popin45_y-DHTMLAPI_getObjectHeight(popin45_Obj)-100)/100)*100 + popin45_y;
  DHTMLAPI_shiftTo(popin45_Obj, popin45_x, start_y);
  popin45_dropstart=setInterval("popin45_drop()",50);
}
function popin45_move() {
  if (window.popin45_timeout) clearTimeout(window.popin45_timeout);
  if (!popin45_Obj) return;
  var theObj = popin45_Obj; if (theObj && isCSS) theObj = theObj.style;
  if (theObj && theObj.visibility == "hidden") return;
  if (theObj && theObj.display == "none") { theObj.display = "block"; theObj.position = "absolute"; }
  DHTMLAPI_positionWindow(popin45_Obj);
  window.popin45_timeout = setTimeout("popin45_move()", 100);
}
function DHTMLAPI_positionWindow(elemID, positionOnly) {
  var obj = DHTMLAPI_getRawObject(elemID);
  var position = obj.getAttribute("pos");
  var scrollX = 0, scrollY = 0;
  if (document.body && typeof(document.body.scrollTop) != "undefined") {
    scrollX += document.body.scrollLeft;
    scrollY += document.body.scrollTop;
  } else if (typeof(window.pageXOffset) != "undefined") {
    scrollX += window.pageXOffset;
    scrollY += window.pageYOffset;
  }
  var x = Math.round((DHTMLAPI_getInsideWindowWidth( )/2) - (DHTMLAPI_getObjectWidth(obj)/2)) + scrollX;
  var y = Math.round((DHTMLAPI_getInsideWindowHeight( )/2) - (DHTMLAPI_getObjectHeight(obj)/2)) + scrollY;
  var shift_position = parseInt(0);
  if (isNaN(shift_position)) shift_position = 0;
  switch (position) {
    case "tc": y = scrollY+shift_position; break;
    case "tl": y = scrollY+shift_position; x = scrollX+shift_position; break;
    case "tr": y = scrollY+shift_position; x = Math.round(DHTMLAPI_getInsideWindowWidth( ) - DHTMLAPI_getObjectWidth(obj)) + scrollX-shift_position; break;
    case "ml": x = scrollX+shift_position; break;
    case "mr": x = Math.round(DHTMLAPI_getInsideWindowWidth( ) - DHTMLAPI_getObjectWidth(obj)) + scrollX-shift_position; break;
    case "bc": y = Math.round(DHTMLAPI_getInsideWindowHeight( ) - DHTMLAPI_getObjectHeight(obj)) + scrollY-shift_position; break;
    case "bl": y = Math.round(DHTMLAPI_getInsideWindowHeight( ) - DHTMLAPI_getObjectHeight(obj)) + scrollY-shift_position; x = scrollX+shift_position; break;
    case "br": y = Math.round(DHTMLAPI_getInsideWindowHeight( ) - DHTMLAPI_getObjectHeight(obj)) + scrollY-shift_position; x = Math.round(DHTMLAPI_getInsideWindowWidth( ) - DHTMLAPI_getObjectWidth(obj)) + scrollX-shift_position; break;
  }
  if (!positionOnly) DHTMLAPI_shiftTo(obj, x, y);
  return [x, y];
}
function popin45_drop() {
  var y = DHTMLAPI_getObjectTop(popin45_Obj);
  if ( popin45_y > y ) DHTMLAPI_shiftTo(popin45_Obj, popin45_x, 50+y);
  else {
    clearInterval(popin45_dropstart);
    popin45_vibrostart = setInterval("popin45_vibro()",40);
  }
}
function popin45_vibro() {
  var y = DHTMLAPI_getObjectTop(popin45_Obj);
  DHTMLAPI_shiftTo(popin45_Obj, popin45_x, y-popin45_delta);
  if (popin45_delta<0) popin45_delta += 4;
  popin45_delta *= -1;
  if (popin45_delta==0) {
    clearInterval(popin45_vibrostart);
    popin45_move();
    window.onscroll=popin45_move;
    window.onresize=popin45_move;
  }
}
function DHTMLAPI_hide(obj) {
  var theObj = DHTMLAPI_getObject(obj);
  if (theObj) theObj.visibility = "hidden";
}
function DHTMLAPI_getRawObject(obj) {
  var theObj;
  if (typeof obj == "string") {
    if (isW3C) theObj = document.getElementById(obj);
    else if (isIE4) theObj = document.all(obj);
    else if (isNN4) theObj = DHTMLAPI_seekLayer(document, obj);
  } else theObj = obj;
  return theObj;
}
function DHTMLAPI_shiftTo(obj, x, y) {
  var theObj = DHTMLAPI_getObject(obj);
  if (theObj) {
    if (isCSS) {
      var units = (typeof theObj.left == "string") ? "px" : 0;
      theObj.left = x + units;
      theObj.top = y + units;
    } else if (isNN4) theObj.moveTo(x,y);
  }
}
function DHTMLAPI_getScrollWindow() {
  var scrollX = 0, scrollY = 0;
  if (document.body && typeof(document.body.scrollTop) != "undefined") {
    scrollX += document.body.scrollLeft;
    scrollY += document.body.scrollTop;
  } else if (typeof(window.pageXOffset) != "undefined") {
    scrollX += window.pageXOffset;
    scrollY += window.pageYOffset;
  }
  return [scrollX, scrollY];
}
function DHTMLAPI_getObjectHeight(obj)  {
  var elem = DHTMLAPI_getRawObject(obj);
  var result = 0;
  if (elem.offsetHeight) result = elem.offsetHeight;
  else if (elem.clip && elem.clip.height) result = elem.clip.height;
  else if (elem.style && elem.style.pixelHeight) result = elem.style.pixelHeight;
  return parseInt(result);
}
function DHTMLAPI_getObjectTop(obj)  {
  var elem = DHTMLAPI_getRawObject(obj);
  var result = 0;
  if (document.defaultView) {
    var style = document.defaultView;
    var cssDecl = style.getComputedStyle(elem, "");
    result = cssDecl.getPropertyValue("top");
  }
  else if (elem.currentStyle) result = elem.currentStyle.top;
  else if (elem.style) result = elem.style.top;
  else if (isNN4) result = elem.top;
  return parseInt(result);
}
function DHTMLAPI_getObject(obj) {
  var theObj = DHTMLAPI_getRawObject(obj);
  if (theObj && isCSS) theObj = theObj.style;
  return theObj;
}
function DHTMLAPI_seekLayer(doc, name) {
  var theObj;
  for (var i = 0; i < doc.layers.length; i++) {
    if (doc.layers[i].name == name) {
      theObj = doc.layers[i];
      break;
    }
    if (doc.layers[i].document.layers.length > 0) theObj = DHTMLAPI_seekLayer(document.layers[i].document, name);
  }
  return theObj;
}
function DHTMLAPI_getInsideWindowWidth( ) {
  if (window.innerWidth) return window.innerWidth;
  else if (isIE6CSS) return document.body.parentElement.clientWidth;
  else if (document.body && document.body.clientWidth) return document.body.clientWidth;
  return 0;
}
function DHTMLAPI_getInsideWindowHeight( ) {
  if (window.innerHeight) return window.innerHeight;
  else if (isIE6CSS) return document.body.parentElement.clientHeight;
  else if (document.body && document.body.clientHeight) return document.body.clientHeight;
  return 0;
}
function DHTMLAPI_getObjectWidth(obj)  {
  var elem = DHTMLAPI_getRawObject(obj);
  var result = 0;
  if (elem.offsetWidth) result = elem.offsetWidth;
  else if (elem.clip && elem.clip.width) result = elem.clip.width;
  else if (elem.style && elem.style.pixelWidth) result = elem.style.pixelWidth;
  return parseInt(result);
}
function DHTMLAPI_init( ) {
  if (document.images) {
    isCSS = (document.body && document.body.style) ? true : false;
    isW3C = (isCSS && document.getElementById) ? true : false;
    isIE4 = (isCSS && document.all) ? true : false;
    isNN4 = (document.layers) ? true : false;
    isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
  }
}
setTimeout("popin45_init1()", 2000);

function popin45_CookieCheck() {if (document.cookie.indexOf("popin45=") != -1) return false;var d = new Date();document.cookie = "popin45="+d.toGMTString()+";";return true;}


