document.write('<div id="GoldBarPopup" pos="mc" style="display:none;top:5000;left:0;width:350px;height:250px;background-color:;padding:4px;z-index:100;">			<table width="350" height="250" cellspacing="0" cellpadding="2" style="border:1pxpx solid #000000;">			<tr style="background-color:#0000FF">				<td height="10" >					<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#0000FF;color:#FFFFFF;font:Bold 19 Arial;">						<tr>							<th>Free Dream Interpretation Videos From Dr. Max</th>								<td style="padding-left:1ex;padding-right:1ex;" align="right">										<a href="javascript:GBPop_close()" style="color:#FFFFFF;font:Bold 19 Arial;text-decoration:none;">&#215;</a>								</td>						</tr>					</table>				</td>			</tr>			<tr style="background-color:#F5F5F5;font:Normal 17 Verdana;">				<td height="100%" style="background-color:#F5F5F5;color:#000000;font:Normal 17 Verdana;">					<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#F5F5F5;color:#000000;font:Normal 17 Verdana;"><tr><td valign=top>					<div style="background-color:#F5F5F5;color:#000000;width:350px;height:250px;overflow:hidden;padding:4px;font:Normal 17 Verdana;">===>For More Information, Free Dream Interpretation Lessons and  Free Videos on Dreams from Dr. Max, Please Let Us Know Where to Send Them!<myform><br>		<style>.style1{color:#000000;font:Normal 17 Verdana; }</style>		<font color=#ffffff>				<table align=center cellspacing=0 border=0 ><FORM action=http://www.goldbar.net/responders/signup.php method=post name=form target=_blank><tr><td class=style1>Email Address </td><td><input  class=input type=Text name=email size=14></td></tr>						<tr>						<td class=style1>First Name</td>						<td>							<input class=input type=Text name=firstName size=20> 						</td>						</tr><tr>			            <td class=style1>Mail Format</td>			            <td class=style1><input type=radio checked=checked name=mailFormat value=0/>HTML <input type=radio name=mailFormat value=1/>Text </td>			          </tr>						<tr>							<td colspan=2 align=center><input type=submit value=Subscribe></td></tr>							<input type=hidden name=id value=3003>						</form>						</table></myform></div></td></tr>					</table>				</td>			</tr>			</table>			</div>'); function iPop_close(pop_name) {
  if(!pop_name) pop_name = "GoldBarPopup";
  DHTMLAPI_hide(pop_name);
}
function GBPop_close() { DHTMLAPI_hide("GoldBarPopup"); }
function GBPop_init0() {
  if (!GBPop_CookieCheck()) return;
  DHTMLAPI_init();
  GoldBarPopup_Obj = DHTMLAPI_getRawObject("GoldBarPopup");
  GoldBarPopup_move();
  window.onscroll=GoldBarPopup_move;
  window.onresize=GoldBarPopup_move;
}
function GBPop_init1() {
  if (!GBPop_CookieCheck()) return;
  DHTMLAPI_init();
  GoldBarPopup_delta = 16;
  GoldBarPopup_Obj = DHTMLAPI_getRawObject("GoldBarPopup");
  var theObj = GoldBarPopup_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(GoldBarPopup_Obj, 0, 5000);
  var center = DHTMLAPI_positionWindow(GoldBarPopup_Obj, true);
  GoldBarPopup_x = center[0];
  GoldBarPopup_y = center[1];
  var w_scroll = DHTMLAPI_getScrollWindow();
  var start_y = parseInt((w_scroll[1]-GoldBarPopup_y-DHTMLAPI_getObjectHeight(GoldBarPopup_Obj)-100)/100)*100 + GoldBarPopup_y;
  DHTMLAPI_shiftTo(GoldBarPopup_Obj, GoldBarPopup_x, start_y);
  GoldBarPopup_dropstart=setInterval("GoldBarPopup_drop()",50);
}
function GoldBarPopup_move() {
  if (window.GoldBarPopup_timeout) clearTimeout(window.GoldBarPopup_timeout);
  if (!GoldBarPopup_Obj) return;
  var theObj = GoldBarPopup_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(GoldBarPopup_Obj);
  window.GoldBarPopup_timeout = setTimeout("GoldBarPopup_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;
    if (0 == document.body.scrollTop
    && document.documentElement
    && typeof(document.documentElement.scrollTop) != "undefined") {
      scrollX += document.documentElement.scrollLeft;
      scrollY += document.documentElement.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 GoldBarPopup_drop() {
  var y = DHTMLAPI_getObjectTop(GoldBarPopup_Obj);
  if ( GoldBarPopup_y > y ) DHTMLAPI_shiftTo(GoldBarPopup_Obj, GoldBarPopup_x, 50+y);
  else {
    clearInterval(GoldBarPopup_dropstart);
    GoldBarPopup_vibrostart = setInterval("GoldBarPopup_vibro()",40);
  }
}
function GoldBarPopup_vibro() {
  var y = DHTMLAPI_getObjectTop(GoldBarPopup_Obj);
  DHTMLAPI_shiftTo(GoldBarPopup_Obj, GoldBarPopup_x, y-GoldBarPopup_delta);
  if (GoldBarPopup_delta<0) GoldBarPopup_delta += 4;
  GoldBarPopup_delta *= -1;
  if (GoldBarPopup_delta==0) {
    clearInterval(GoldBarPopup_vibrostart);
    GoldBarPopup_move();
    window.onscroll=GoldBarPopup_move;
    window.onresize=GoldBarPopup_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("GBPop_init1()", 500);

function GBPop_CookieCheck() {return true;}
