window.adGen = function(i){
  if(!this.init){ this.init = 1; this.adIdx = 0; }
  return "ad" + (i?this.adIdx:++this.adIdx)
} 



window.header = function(){
  var html = ''

  var p = 'template/template1.css'; if(location.host) p = '/template/template1.css'
  html+='<link rel="stylesheet" href="'+p+'"'

  +'><table width="100%" cellpadding="3" cellspacing="0" class="mainheading" style="table-layout:fixed;">'
  +'  <tr>'
  +'    <td class="mainheading"></td>'
  +'    <td width="450" nowrap align="right">'
  +'      <!-- Search Google -->'
  +'      <form method="get" name="ivnFormG" action="http://www.google.com/custom" target="google_window" style="display:inline;"'
  +'        onsubmit="'
  +'          //dont permit a search that the user didnt physically enter... '
  +'          //the animated suggestor is only to compete for user attention on a page with other ads, NOT an actual search'
  +'          //PLEASE NOTIFY ME OF ANY PROBLEMS: email = thomas2003*esqsoft^om (antibot: *=@, ^=.c)'
  +'          if(!this.q.init || !this.q.value.length){ this.q.focus(); return false }'
  +'        "'
  +'      >'
  +'      <table cellpadding=0 cellspacing=0>'
  +'      <tr valign="bottom"><td nowrap="nowrap" align="left" height="32">'
  +'      <a href="http://www.google.com/">'
  +'      <img '+(location.host?'s':'_')+'rc="http://www.google.com/logos/Logo_25wht.gif" border="0" width="75" height="32" alt="Google" align="middle"></img></a>'
  +'      <input type="text" name="q" size="25" maxlength="255" value="" accesskey="g" style="width:200px;"'
  +'        onfocus="'
  +'          if(!this.init){ this.init=1; if(window.ivnRotate1) window.ivnRotate1.kill(); this.value=\'\'}'
  +'          this.className=\'gfocus\''
  +'        "'
  +'        onblur="this.className=\'\'"'
  +'      ></input>'
  +'      <input type="submit" name="sa" value="Search"></input>'
  +'      <input type="hidden" name="client" value="pub-1157892973816149"></input>'
  +'      <input type="hidden" name="forid" value="1"></input>'
  +'      <input type="hidden" name="channel" value="5785624272"></input>'
  +'      <input type="hidden" name="ie" value="ISO-8859-1"></input>'
  +'      <input type="hidden" name="oe" value="ISO-8859-1"></input>'
  +'      <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>'
  +'      <input type="hidden" name="hl" value="en"></input>'
  +'      </td></tr></table>'
  +'      </form>'
  +'      <!-- Search Google -->'
  +'    </td>'
  +'<td width="180"><div style="margin-left:10px;position:relative;top:-3px;">'
//  +'<iframe id="a57b8e9e" name="a57b8e9e" src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adframe.php?n=a57b8e9e&amp;clientid=9" framespacing="0" frameborder="no" scrolling="no" width="110" height="32"><a href="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adclick.php?n=a57b8e9e" target="_blank"><img src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adview.php?clientid=9&amp;n=a57b8e9e" border="0" alt=""></a></iframe>'
  +'</div></td>'
  +'  </tr>'
  +'</table'

  html+=''
  +'><table width="768" cellpadding="0" cellspacing="0"><tr><td'
  +'><table width="100%" cellspacing="0" cellpadding="0" style="border-top:1px black solid;border-right:1px black solid;">'
  +'<tr><td colspan="2" style="padding:0px;margin:0px;background-color: #666666;"><img src="/fs_img/spacer.gif" width="768" height="4"></td></tr>'
  +'</table><table width="100%" cellspacing="5" cellpadding="10" class="main">'
  +'  <tr valign="top">'
  +'    <td style="padding:10px;">'
  +'<iframe id="ad50696b" name="ad50696b" src="http://hostagnostic.com/openads/adframe.php?n=ad50696b&amp;clientid=6" framespacing="0" frameborder="no" scrolling="no" width="728" height="90" allowtransparency="true"><a href="http://hostagnostic.com/openads/adclick.php?n=ad50696b" target="_blank"><img src="http://hostagnostic.com/openads/adview.php?clientid=6&amp;n=ad50696b" border="0" alt=""></a></iframe>'
  return html
}


window.middle = function(){
  var html =''
  +'  <table cellpadding="5" cellspacing="5" align="right">'
  +'    <tr valign="top">'
  +'      <td>'
//  +'<iframe align="left" style="margin:10px;margin-left:0px;" id="ae297df6" name="ae297df6" src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adframe.php?n=ae297df6&amp;what=zone:4&amp;refresh=120" framespacing="0" frameborder="no" scrolling="no" width="300" height="250"><a href="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adclick.php?n=ae297df6" target="_blank"><img src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adview.php?what=zone:4&amp;n=ae297df6" border="0" alt=""></a></iframe>'
  +'<div style="margin:10px;margin-left:0;"><iframe id="a51d3125" name="a51d3125" src="http://hostagnostic.com/openads/adframe.php?n=a51d3125&amp;clientid=8" framespacing="0" frameborder="no" scrolling="no" width="300" height="250" allowtransparency="true"><a href="http://hostagnostic.com/openads/adclick.php?n=a51d3125" target="_blank"><img src="http://hostagnostic.com/openads/adview.php?clientid=8&amp;n=a51d3125" border="0" alt=""></a></iframe></div>'
  +'      </td>'
  +'    </tr>'
  +'  </table>'
  return html
}


window.footer = function(isml,other_menu){
  var x='w'+'ebm'+'in'
  var y='.com'
  var html = ''

  +'    </td>'
  +'    <td width="120" align="center">'
  +'<div style="margin:10px;margin-top:0;padding-top:0px;"><iframe id="a01e9d17" name="a01e9d17" src="http://hostagnostic.com/openads/adframe.php?n=a01e9d17&amp;clientid=3&amp;target=_blank" framespacing="0" frameborder="no" scrolling="no" width="120" height="240" allowtransparency="true"><a href="http://hostagnostic.com/openads/adclick.php?n=a01e9d17" target="_blank"><img src="http://hostagnostic.com/openads/adview.php?clientid=3&amp;n=a01e9d17" border="0" alt=""></a></iframe></div>'
  +'<div style="margin:10px;padding-top:30px;"><iframe id="aa424d13" name="aa424d13" src="http://hostagnostic.com/openads/adframe.php?n=aa424d13&amp;clientid=5&amp;target=_blank" framespacing="0" frameborder="no" scrolling="no" width="120" height="600" allowtransparency="true"><a href="http://hostagnostic.com/openads/adclick.php?n=aa424d13" target="_blank"><img src="http://hostagnostic.com/openads/adview.php?clientid=5&amp;n=aa424d13" border="0" alt=""></a></iframe></div>'
  +'      <div align="center">'
  +'      <p>You can <a href="mailto:r'+x+'@gmail'+y+'?subject='+location.href+'" '
  +'      ><b>contact the author</b></a> here.'
  +'      <p><font style="color:#ccccdd;">['+isml+']</font>'
  +'      </div>'

  +'      <img src="/fs_img/spacer.gif" width="120" height="1">'
  +'    </td>'
  +'  </tr>'
  +'</table>'
  +'</td></tr></table>'

  if(!location.host) html+='<sc'+'ript src="file://c:/data_lt/websites/esqsoft.com/examples/search_lib.js"></sc'+'ript>'
  else html+='<sc'+'ript src="http://esqsoft.com/examples/search_lib.js"></sc'+'ript>'

  html += ''
  +'<sc'+'ript>'
  +'window.drawAttention = function(){'
  +'  if(window.ivnRotate) window.ivnRotate1 = new window.ivnRotate("ivnRotate1",0,document.ivnFormG.q)'
  +'};'
//  +'setTimeout("window.drawAttention()",1000)'
  +'</sc'+'ript>'

  return html
}

