var x1 ; var x2 ; var x3 ; var x4 = 0 ; var x5 = 0 ; var x6 = 0 ; var x7 = new Array(); var x8 = new Array("contextual popup ads","recommended resource");
function f0(x9) {  var x9 = (x9) ? x9 : ((window.event) ? event : null);  x1 = x9.clientY ;  x2 = x9.clientX ;  return;  } function f1() {  if (window.innerWidth)  return window.innerWidth;  if (document.body.clientWidth)  return document.body.clientWidth;  return (null);  } function findLivePageHeight() {  var x10 = 0, x11 = 0;  if( typeof( window.innerWidth ) == 'number' ) {   x10 = window.innerWidth;  x11 = window.innerHeight;  }  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {   x10 = document.documentElement.clientWidth;  x11 = document.documentElement.clientHeight;  }  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {   x10 = document.body.clientWidth;  x11 = document.body.clientHeight;  }  return x11 ;  } function f3(x12) {  var obj = document.getElementById(x12);  var h = obj.offsetHeight ;  x13 = 0;  if (obj.offsetParent) {  x13 = obj.offsetTop ;  while (obj = obj.offsetParent) {  x13 += obj.offsetTop ;  }  }  return (x13 + h) ;  } function f4(x12) {  var obj = document.getElementById(x12);  var h = obj.offsetHeight ;  return (h) ;  } function f5(x12) {  var obj = document.getElementById(x12);  x13 = 0;  if (obj.offsetParent) {  x13 = obj.offsetTop ;  while (obj = obj.offsetParent) {  x13 += obj.offsetTop ;  }  }  return (x13 ) ;  } function writeName(x9,x14) {  x6=1;  if ( !x4 ) {   f0(x9);   var x15 = f1();  var x16 = findLivePageHeight() ;   var x12 = (x9.target) ? x9.target.id : ((x9.srcElement) ? x9.srcElement.id : null);  var object = document.getElementById(x12);  if (x12) {  x17 = f3(x12);  x18 = f5(x12) ;  }   var x19 = 100 * x2 / x15 ;  var x20 = 100 * x1 / x16 ;   if ( x19 < 34 ) {  x23 = x2 - Math.min(18, x2) ;  if ( x20 < 50 ) {  x3 = "dialog-top-left.gif" ;  x22 = "dialog-bottom.gif" ;  }  else {  x3 = "dialog-top.gif" ;  x22 = "dialog-bottom-left.gif" ;  }  }  else if ( x19 < 67 ) {  x23 = x2 - Math.floor(295/2) ;  if ( x20 < 50 ) {  x3 = "dialog-top-center.gif" ;  x22 = "dialog-bottom.gif" ;  }  else {  x3 = "dialog-top.gif" ;  x22 = "dialog-bottom-center.gif" ;  }  }  else {  x23 = x2 - 295 + Math.min(15, x15-x2) ;  if ( x20 < 50 ) {  x3 = "dialog-top-right.gif" ;  x22 = "dialog-bottom.gif" ;  }  else {  x3 = "dialog-top.gif" ;  x22 = "dialog-bottom-right.gif" ;  }  }  
x7[0] = '<a href="http://www.enhanceyoursite.biz/" target="_blank" class=wgsada><div id="background"><img src="' + x3 + '" class=wgsadimage><div id=wgstextblock><div class=wgsadheading>Add Contextual Popup Ads<br />To Your Pages</div><hr><div class=wgsaddescription>Select target phrases that the preprocess will highlight in a style you select with a CSS file. When a visitor puts the mouse cursor on the phrase a popup ad appears.<p>You control the content, appearance, and the link associated with the ad. You can advertise any product you wish.</div></div><img src="' + x22 + '" class=wgsadimage></div></a>'
x7[1] = '<a href="http://www.enhanceyoursite.biz/" target="_blank" class=wgsada><div id="background"><img src="' + x3 + '" class=wgsadimage><div id=wgstextblock><div class=wgsadheading>Help Visitors Find Additional Information</div><hr><div class=wgsaddescription>By using a contextual popup ad you can provide further information to your site&#39s visitors. The popup may be a more detail explaination of a concept or it may be an ad for a product related to the topic of the target phrase. It&#39s all up to you.</div></div><img src="' + x22 + '" class=wgsadimage></div></a>'
   x25 = -1 ;  for ( thisIndex = 0; thisIndex < x8.length; thisIndex++ ) {  if ( x14.toLowerCase() == x8[thisIndex].toLowerCase() ) { x25 = thisIndex ;}  }  if ( x25 > -1 ) {  object = document.getElementById('ad');  object.innerHTML = x7[x25];  var h = f4('ad') ;  if ( x20 < 50 ) {  x24 = x17 + 5;  }  else {  x24 = x18 - h - 5 ;  }  object.style.left = x23 + 'px';  object.style.top = x24 + 'px';  object.style.visibility = 'visible';  x4=1;  }  }  } function delayLook() {  x6=0;  setTimeout('f8()',2000);  }  function f8() {  if (!x5 && !x6 ) {  var object = document.getElementById('ad');  object.style.visibility = 'hidden';  x4=0;  }  } function inAd(x12) {  x5=1;  } function outAd() {  delayLook();  x5=0;  }
// Copyright (c) 2007 Robert Sherman