﻿document.write('<div id="popin17" pos="tl" style="display:none;top:5000;left:0;width:400;height:350;padding:10px;z-index:100;"><table width="100%" height="100%" cellspacing="0" cellpadding="2" style="font:;border:1px solid #8080FF;"><tr style="background-color:#8080FF;color:Black;font:normal 12pt Times New Roman, Serif;"><th style="background-color:#8080FF;color:Black;font-bold: normal; font-size: 12pt font-family: Times New Roman, Serif;" width="100%" height="10" >Take advantage of our FREE Newsletter</th><th style="padding-left:1ex;padding-right:1ex;"><a href="javascript:popin17_close()" style="color:Black;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> <FORM action=http://www.optimumawareness.com/cgi-bin/arp3/arp3-formcapture.pl method=post> <H2 class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in" align=center><FONT face="Times New Roman, Serif" size=4>Join the Red Wine Academy Newsletter</FONT></H2> <CENTER class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in"><FONT face="Times New Roman, Serif"></FONT></CENTER> <CENTER class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in"><FONT face="Times New Roman, Serif"></FONT></CENTER> <CENTER class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in"><FONT face="Times New Roman, Serif"></FONT></CENTER> <CENTER class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in"><STRONG><FONT face="Times New Roman, Serif"></FONT></STRONG>&nbsp;</CENTER> <CENTER class=MsoNormal style="MARGIN: 0in 0in 0pt 66pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo1; tab-stops: list .5in"><FONT face="Times New Roman, Serif"><STRONG>&nbsp;<FONT size=3>"All You Need To Know About Red Wine<BR>No More Intimidation From Winespeak"</FONT></STRONG><FONT size=3> </FONT></FONT></CENTER> <P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><FONT face="Times New Roman, Serif">&nbsp;</FONT></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><FONT face="Times New Roman, Serif"><SPAN style="COLOR: black; mso-bidi-font-family: Arial"><FONT size=3>The Red Wine Academy Newsletter starts today. Just enter your email address below and click the button. We will not to provide your email address to anyone and you can unsubscribe at any time.</FONT></SPAN>&nbsp;</FONT></P> <CENTER><STRONG><FONT size=3><FONT face="Times New Roman, Serif">E-mail address<BR></FONT><INPUT name=email></FONT></STRONG><FONT face="Times New Roman, Serif"> </FONT></CENTER> <P><INPUT type=hidden value=E name=subscription_type></P> <DIV align=center> <CENTER> <P><INPUT type=submit value="Yes I want to learn all about red wine »"></P></CENTER></DIV> <P><INPUT type=hidden value=14 name=id><FONT face="Times New Roman, Serif"> </FONT><INPUT type=hidden name=extra_ar></P> <P><FONT face="Times New Roman, Serif">&nbsp;</FONT></P> <P><FONT face="Times New Roman, Serif">&nbsp;</FONT></P> <P><FONT face="Times New Roman, Serif">&nbsp;</FONT></P></FORM> <P></P></div></td></tr></table></div>');

function iPop_close(pop_name) {
  if(!pop_name) pop_name = "popin17";
  DHTMLAPI_hide(pop_name);
}
function popin17_close() { DHTMLAPI_hide("popin17"); }
function popin17_init0() {
  if (!popin17_CookieCheck()) return;
  DHTMLAPI_init();
  popin17_Obj = DHTMLAPI_getRawObject("popin17");
  popin17_move();
  window.onscroll=popin17_move;
  window.onresize=popin17_move;
}
function popin17_init1() {
  if (!popin17_CookieCheck()) return;
  DHTMLAPI_init();
  popin17_delta = 16;
  popin17_Obj = DHTMLAPI_getRawObject("popin17");
  var theObj = popin17_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(popin17_Obj, 0, 5000);
  var center = DHTMLAPI_positionWindow(popin17_Obj, true);
  popin17_x = center[0];
  popin17_y = center[1];
  var w_scroll = DHTMLAPI_getScrollWindow();
  var start_y = parseInt((w_scroll[1]-popin17_y-DHTMLAPI_getObjectHeight(popin17_Obj)-100)/100)*100 + popin17_y;
  DHTMLAPI_shiftTo(popin17_Obj, popin17_x, start_y);
  popin17_dropstart=setInterval("popin17_drop()",50);
}
function popin17_move() {
  if (window.popin17_timeout) clearTimeout(window.popin17_timeout);
  if (!popin17_Obj) return;
  var theObj = popin17_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(popin17_Obj);
  window.popin17_timeout = setTimeout("popin17_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 popin17_drop() {
  var y = DHTMLAPI_getObjectTop(popin17_Obj);
  if ( popin17_y > y ) DHTMLAPI_shiftTo(popin17_Obj, popin17_x, 50+y);
  else {
    clearInterval(popin17_dropstart);
    popin17_vibrostart = setInterval("popin17_vibro()",40);
  }
}
function popin17_vibro() {
  var y = DHTMLAPI_getObjectTop(popin17_Obj);
  DHTMLAPI_shiftTo(popin17_Obj, popin17_x, y-popin17_delta);
  if (popin17_delta<0) popin17_delta += 4;
  popin17_delta *= -1;
  if (popin17_delta==0) {
    clearInterval(popin17_vibrostart);
    popin17_move();
    window.onscroll=popin17_move;
    window.onresize=popin17_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("popin17_init0()", 0);

function popin17_CookieCheck() {if (document.cookie.indexOf("popin17=") != -1) return false;var d = new Date();document.cookie = "popin17="+d.toGMTString()+";";return true;}

