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 = ''

  html+='<link rel="stylesheet" type="text/css" href="template/template1.css">'
  +'<a name="start"></a>'

  +'<table width="100%" cellpadding="10" cellspacing="0" class="mainheading" style="position:fixed;height:20px;top:0px;">'
  +'  <tr>'
  +'    <td width="100%" nowrap>'

  /* start domain search */
  +'<div id="domain_search" style="width:420px;padding:5px 10px 5px 10px;background:#3c3;"> '
  +'<form style="margin:0px" method="post" action="https://www.securepaynet.net/gdshop/registrar/search.asp?se=%2B&prog%5Fid=hosting411&from=rhp" id="form1" name="form1"> '
  +'<table width="100%" cellspacing="0" cellpadding="0"><tr><td style="color:#fff;">'
  +'<input type="hidden" name="checkAvail" value="1"> '
  +'<input type="hidden" name="JScriptOn" value="yes"> '
  +'<input type="hidden" name="submit1" value="Submit"> '
  +'<u>w</u>ww<b style="font-size:125%;color:#fff;">.</b>'
  +'<input type="text" name="domainToCheck" maxlength="63" accesskey="w">'
  +'<b style="font-size:125%;color:#fff;">.</b><select name="TLD"> '
  +'<option value=".com">com'
  +'<option value=".info">info'
  +'<option value=".mobi">mobi'
  +'<option value=".net">net'
  +'<option value=".org">org'
  +'<option value=".tv">tv'
  +'<option value=".us">us'
  +'<option value=".biz">biz'
  +'<option value=".ws">ws'
  +'<option value=".me">me'
  +'<option value=".asia">asia'
  +'<option value=".am">am'
  +'<option value=".at">at'
  +'<option value=".be">be'
  +'<option value=".cc">cc'
  +'<option value=".cn">cn'
  +'<option value=".com.cn">com.cn'
  +'<option value=".org.cn">org.cn'
  +'<option value=".net.cn">net.cn'
  +'<option value=".de">de'
  +'<option value=".eu">eu'
  +'<option value=".fm">fm'
  +'<option value=".gs">gs'
  +'<option value=".jobs">jobs'
  +'<option value=".jp">jp'
  +'<option value=".ms">ms'
  +'<option value=".nu">nu'
  +'<option value=".co.nz">co.nz'
  +'<option value=".net.nz">net.nz'
  +'<option value=".org.nz">org.nz'
  +'<option value=".tc">tc'
  +'<option value=".tw">tw'
  +'<option value=".com.tw">com.tw'
  +'<option value=".org.tw">org.tw'
  +'<option value=".idv.tw">idv.tw'
  +'<option value=".co.uk">co.uk'
  +'<option value=".me.uk">me.uk'
  +'<option value=".org.uk">org.uk'
  +'<option value=".vg">vg'
  +'</select> '
  +'<input type="button" value="Check" id="submit1" name="spoof" onclick="this.form.submit()"> '
  +'</td><td align="right">'
  +'<b style="font-weight:bold;font-size:115%;color:#fff;">$$ SALE $$</b>'
  +'</td></tr></table>'
  +'</form>'
  +'</div>'
  /* end domain search */

  +'    </td><td width="380" nowrap>'

  +'      <!-- 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">'
  +'      <a href="http://www.google.com/">'
  +'      <img src="http://www.google.com/logos/Logo_25blk.gif" border="0" 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>'
  +'  </tr>'
  +'</table>'

  html += ''
  +'<table width="100%" cellspacing="0" cellpadding="0" style="height:100%;">'
  +'  <tr valign="top">'
  +'    <td class="mleft" align="center" style="padding-top:50px;">'

  +'      <!-- start: left column -->'
  +'      <div style="margin:10px;padding-top:30px;"><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="ac39e60b" name="ac39e60b" src="http://hostagnostic.com/openads/adframe.php?n=ac39e60b&amp;clientid=4&amp;target=_blank" framespacing="0" frameborder="no" scrolling="no" width="120" height="60" allowtransparency="true"><a href="http://hostagnostic.com/openads/adclick.php?n=ac39e60b" target="_blank"><img src="http://hostagnostic.com/openads/adview.php?clientid=4&amp;n=ac39e60b" 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>'

  +'      <p><a href="http://'+(location.host||'linkscentral.8k.com')+'"><img src="http://esqsoft.com/ads/promote_website_88x31.gif" alt="promote your website free" width="88" height="33" border="0"></a>'

  if(location.host) html += ''
  +'      <!-- Start of StatCounter Code -->'
  +'      <sc'+'ript type="text/javascript" language="javascript">'
  +'      var sc_project=415686; '
  +'      var sc_partition=2; '
  +'      </sc'+'ript>'
  +'      <sc'+'ript type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></sc'+'ript>'
  +'      <!-- End of StatCounter Code -->'

  html += ''
  +'      <!-- end: left column -->'

  +'    </td>'
  +'    <td width="100%" class="mtable" style="padding-top:50px;">'

  +'      <!-- start: main column -->'
  +'      <img src="/fs_img/spacer.gif" width="850" height="1">'

  return html
}


window.footer = function(isml){
  //populate logo
  obj = document.getElementById('logo')
  str = location.host.match(/(LinksCentral|Test|Site-Haus)/i) || 'Website Examples'; if(str.length && location.host) str=str[0]
  if(obj) obj.innerHTML = '<table><tr><td nowrap style="font-family:verdana;font-size:13pt;font-weight:bold;padding:0px;padding-left:30px;padding-right:30px;"><b>'+str.toUpperCase()+'</b></td><tr></table>'

  var html = ''
  +'    <!-- end: main column -->'
  +'    </td>'
  +'  </tr>'
  +'</table>'

  +'<!-- start: heading template -->'
  +'<div id="ivn_heading_template" style="display:none">'
  +'<table class="heading" width="100%" cellspacing="0" cellpadding="0">'
  +'  <tr>'
  +'    <td width="1"><a href=""><img src="new/gray_if1/arrow_green_right.gif" '
  +'    border="0" style="position:relative; top:-9px; margin-bottom:-20px; z-index: 99; filter: alpha(opacity=80);"'
  +'    ></a></td>'
  +'    <td width="100%" nowrap="1">__HEADING__</td>'
  +'    <td class="stat" nowrap="1">__LOADING__</td>'
  +'    </td>'
  +'  </tr>'
  +'</table>'
  +'</div>'
  +'<!-- end: heading template -->'
  +'<sc'+'ript src="new/gray_if1/ivans_headings.js"></sc'+'ript>'

  return html
}

window.makeBnnr = function(s) {
  /* trying to get around validation issue with attributes supported in older browsers but not a part of the dtd... not sure if this is good or bad karma--but visitors needs mean more than stuffy standards :-( */
  var html = ''
  switch(s){
  case '728X90':
    html = "<iframe id='a574d399' name='a574d399' src='http://hostagnostic.com/openads/adframe.php?n=a574d399&amp;clientid=6&amp;target=_blank' framespacing='0' frameborder='no' scrolling='no' width='728' height='90' allowtransparency='true'><a href='http://hostagnostic.com/openads/adclick.php?n=a574d399' target='_blank'><img src='http://hostagnostic.com/openads/adview.php?clientid=6&amp;n=a574d399' border='0' alt=''></a></iframe>"
    break;
  case '300X250':
    html = "<iframe id='a36c6698' name='a36c6698' src='http://hostagnostic.com/openads/adframe.php?n=a36c6698&amp;clientid=8&amp;target=_blank' framespacing='0' frameborder='no' scrolling='no' width='300' height='250' allowtransparency='true'><a href='http://hostagnostic.com/openads/adclick.php?n=a36c6698' target='_blank'><img src='http://hostagnostic.com/openads/adview.php?clientid=8&amp;n=a36c6698' border='0' alt=''></a></iframe>"
    break;
  case '468X60':
    html = ''
    +'<!-- adsense -->'
    +'<sc'+'ript type="text/javascript">'
    +'google_ad_client = "pub-1157892973816149";'
    +'google_ad_width = 468;'
    +'google_ad_height = 60;'
    +'google_ad_format = "468x60_as_rimg";'
    +'google_cpa_choice = "CAAQq8WdzgEaCCQIMpsWzihvKNvD93M";'
    +'</sc'+'ript>'
    +'<sc'+'ript type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'
    +'</sc'+'ript>'
    break;
  }
  return html;
}
