if(self!=top) top.location.href=location.href;

window.mOver = function(obj){ if(!obj.osrc) obj.osrc=obj.src; obj.src = 'images/btn_top_over.gif' }
window.mOut = function(obj){ if(obj.osrc) obj.src=obj.osrc; }
window.mClick = function(obj){ try{ scrollTo(0,0); }catch(e){ location.href='#top'; }}

window.makeDiv = function(){
  var html = ''
	+'<table cellpadding="0" cellspacing="0" width="100%"><tr>'
  +'<td><table cellspacing="0" cellpadding="0" width="100%">'
  +'<tr><td style="height:1px;background-color:#666666;"><img src="p.gif"></td></tr></table></td>'
	+'<td width="10"><img src="images/btn_top.gif" '
  +' onmouseover="mOver(this);" onmouseout="mOut(this);" onclick="mClick(this);"'
  +'></td>'
	+'</tr></table>'
	document.write(html);
}


window.header = function(){
  var html = ''
  +'<table cellpadding="0" cellspacing="0" width="100%"><tr valign="top"><td width="100%">'
  document.write(html)
}


window.header1 = function(){
  var html = ''
  +'<table cellpadding="0" cellspacing="0" class="palette" width="90%">'
  +'  <tr valign="top">'
  +'    <td background="images/grey/top.gif" style="background-repeat:repeat-x;"'
  +'      ><img src="p.gif" width="750" height="90"></td>'
  +'    <td background="images/grey/top_right.gif" style="background-repeat:no-repeat;"'
  +'      ><img src="p.gif" width="92" height="90"></td>'
  +'  </tr>'
  +'  <tr valign="top">'
  +'    <td style="background-color: #000000;">'

  +'<table style="position:relative;z-index:101;margin-top:-50px;margin-bottom:-50px;margin-right:-50px;">'
  +'  <tr valign="top">'
  +'    <td style="padding:10px;">'
  document.write(html)
}


window.footer2 = function(bannr){
  var html = ''
  if(bannr){
  html += '</td><td width="120">'
  +'  <br><br><p><iframe id="aee1af3f" name="aee1af3f" src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adframe.php?n=aee1af3f&amp;clientid=8" framespacing="0" frameborder="no" scrolling="no" width="120" height="240" allowtransparency="true"><a href="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adclick.php?n=aee1af3f" target="_blank"><img src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adview.php?clientid=8&amp;n=aee1af3f" border="0" alt=""></a></iframe>'
  +'  <p><iframe id="a94891ba" name="a94891ba" src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adframe.php?n=a94891ba&amp;clientid=7" framespacing="0" frameborder="no" scrolling="no" width="120" height="60" allowtransparency="true"><a href="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adclick.php?n=a94891ba" target="_blank"><img src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adview.php?clientid=7&amp;n=a94891ba" border="0" alt=""></a></iframe>'
  +'  <p><iframe id="aa3a1746" name="aa3a1746" src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adframe.php?n=aa3a1746&amp;clientid=6" framespacing="0" frameborder="no" scrolling="no" width="120" height="600" allowtransparency="true"><a href="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adclick.php?n=aa3a1746" target="_blank"><img src="http://prepaid-internet.4-utah.com/cgi/phpadsnew/adview.php?clientid=6&amp;n=aa3a1746" border="0" alt=""></a></iframe>'
  +'</td>'
  }

  html += ''
  +'    </td></tr></table>'
  +'    </td>'
  +'    <td background="images/grey/right.gif" style="background-repeat:repeat-y;"'
  +'      ><img src="p.gif" width="90" height="1"></td>'
  +'  </tr>'
  +'  <tr>'
  +'    <td background="images/grey/bottom.gif" style="background-repeat:repeat-x;"'
  +'      ><img src="p.gif" width="10" height="90"></td>'
  +'    <td background="images/grey/bottom_right.gif" style="background-repeat:no-repeat;"'
  +'      ><img src="p.gif" width="92" height="90"></td>'
  +'  </tr>'
  +'</table>'
  document.write(html)
}


window.footer = function(){
  var html = ''
  +'</td><td width="120">'
  +'</td></tr></table><br><br>'

  +'<scr'+'ipt>'
  +'window.drawAttention = function(){'
  +'  if(window.ivnRotate) window.ivnRotate1 = new window.ivnRotate("ivnRotate1",0,document.ivnFormG.q)'
  +'};'
  +'setTimeout("window.drawAttention()",1000)'
  +'</scr'+'ipt>'

  document.write(html)
}


window.addGSearch = function(){
  var html = ''
  +'<table><tr valign="bottom"><td>'
  +'<div align="center" style="background-color: #f3f3f3; width:370px;height:44px;'
  +'  border-left: 1px #dddddd solid; border-top: 1px #dddddd solid;'
  +'  -moz-border-radius:20px 20px 20px 20px;'
  +'">'
  +'<form method="get" name="ivnFormG" action="http://www.google.com/custom" target="google_window" '
  +'  style="display:inline;margin:0px;" '
  +'  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 unknown visual factors, NOT an actual search'
  +'    //report any problems to the animator script author at thomas2003*esqsoft^om (antibot: *=@, ^=.c)'
  +'    if(!this.q.init || !this.q.value.length){ this.q.focus(); return false }'
  +'  "'
  +'> <table cellpadding=0 cellspacing=0 style="position:relative;top:5px;">'
  +'<tr valign="bottom"><td nowrap="nowrap">'
  +'<a href="http://www.google.com/">'
  +'<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" width="75" height="32" alt="Google" align="middle"></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 type="submit" name="sa" value="Search"> <input type="hidden" name="client" value="pub-1157892973816149"> <input type="hidden" name="forid" value="1"> <input type="hidden" name="channel" value="5785624272"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="hidden" name="oe" value="ISO-8859-1"> <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 type="hidden" name="hl" value="en">'
  +'</td></tr></table>'
  +'</form></div>'
  +'</td></tr></table>'
  document.write(html)
}



/* cruft to resurrect?


var mmover_ex=true;
function mmover_exf(wobj){
  if(!wobj) return;
  var mstr=document.getElementsByTagName('strong')[wobj].innerHTML;

  //pull the local anchor so I don't create duplicate copies preventing the jump from getting to the "now" second instance of the anchor.
  var mreg=/<A NAME=[^>]+>&nbsp;<\/A>/i
  var mstr2=mstr.replace(mreg,'');

  //pull the inline function call out so it doesn't rerun
  var mreg2=/<SCRIPT.*\/SCRIPT>/ig;
  mstr2=mstr2.replace(mreg2,'');

  var obj = document.getElementById('toc_description');
  obj.innerHTML = mstr2;
}



function build_toc(){
  var mobj=document.getElementsByTagName('h2').length;

  //build an array of heading values (for ordering)
  var iobj=new Array()
  for(var i=0; i<mobj; i++){
    icnt=document.getElementsByTagName('h2')[i].innerHTML
    iurl=document.getElementsByName('special_link')[i]

    iobj[i]=icnt+'___'+iurl+'___'+i
  }

  //DEBUG
  //var mstr=''
  //for(var i=0; i<iobj.length; i++){
  //  mstr+='\n'+iobj[i];
  //}alert(mstr); //unsorted array

  iobj=iobj.sort()

  //DEBUG
  //var mstr=''
  //for(var i=0; i<iobj.length; i++){
  //  mstr+='\n'+iobj[i];
  //}alert(mstr); //sorted array

  var mstr='<FORM>'
  for(var i=0; i<iobj.length; i++){
    itmp=iobj[i].split('___')
    mstr+='<INPUT TYPE=button VALUE="'+itmp[0]+'" CLASS=mbtn ONMOUSEOVER="mmover(this,\''+itmp[2]+'\')" ONCLICK="location.href=\''+itmp[1]+'\'" ONFOCUS="blur()"><BR>'
  }
  mstr+='</FORM>'
  obj = document.getElementById('toc_buttons')
  obj.innerHTML = mstr
}
build_toc()

*/
