var dt=new Date();
var rand=dt.getTime();
var pp=""+rand;
var pp=pp.charAt(pp.length-4);
var ctr=eval(pp);
var dest1=new Array();
dest1[0]="pmtcalc/pmtcalc.html";
dest1[1]="distance/airmiles.html";
dest1[2]="distance/groundmiles.html";
dest1[3]="engine/engine.html";
dest1[4]="contact.html";
var prog=new Array();
prog[0]="Monthly Payments Calculator";
prog[1]="World Air Mile Distances";
prog[2]="USA Ground Mile Distances";
prog[3]="Engineering Conversions";
var txt=new Array()
txt[0]='Really useful for your clients who deal in monthly payments of one kind or another - Real Estate, Automobiles, Large Appliances, etc......';
txt[1]='If you have a client who is in the travel industry, cruises, etc., this little script is a nice addition to their pages...';
txt[2]='Any of your clients in the hotel, motel, travel industries will'
+' appreciate this helpful display on their pages...';
txt[3]='If you have a technically oriented website, this series of conve'
+'rsion programs may be of use...';
txt[6]='';

function dump1(flg){
msg=window.open(dest1[flg]+"?a","","height=400,width=600,location=1,status=1,scrollbars=1,toolbar=1,resizable=1");
 }
function dim(){
 disp3(6); 
 }
function disp2(flg){
 if (document.getElementById){
  document.getElementById("display1").innerHTML='<IMG SRC=i/gear.gif'
  +' WIDTH=56 HEIGHT=50><BR><FONT COLOR=#0707FF>'+txt[flg]+'</FONT>';
  }
  if (document.layers){
   document.e.document.f.document.write('<P STYLE="font-family:arial,'
   +'helvetica,sans-serif;font-size'
   +':12px;color:#0707FF;font-style:plain"><IMG SRC=i/gear.gif'
   +' WIDTH=56 HEIGHT=50><BR>'+txt[flg]+'</P>');
   document.e.document.f.document.close();
  }
 }
function disp3(flg){
 if (document.getElementById){
  document.getElementById("display1").innerHTML='<FONT COLOR=#0707FF>'
  +txt[flg]+'</FONT>';
  }
 else{
  if (document.layers){
   document.e.document.f.document.write('<FONT COLOR=#9C9C00>'+txt[flg]
   +'</FONT>');
   document.e.document.f.document.close();
   }
  }
 }
function wrtIt(){
document.write('<TR><TD VALIGN=TOP><IMG SRC=../i/white.gif WIDTH=150'
+' HEIGHT=1><BR>');
for (var i=0;i<4;i++){
 if (i==5){
  document.write('</TD><TD VALIGN=TOP><IMG SRC=../i/white.gi'
  +'f WIDTH=150 HEIGHT=1><BR>');
  }
 document.write('<A HREF='+dest1[i]+' onMouseover=disp2('+i
 +') onMouseout=dim() TARGET=_BLANK>'
 +prog[i]+'</A><BR>');
 }
document.write('</TD><TD VALIGN=CENTER WIDTH=200><DIV ID=display1 ALIGN'
+'=LEFT VALIGN=MIDDLE><ILAYER ID=e WIDTH=200 HEIGHT=120><LAYER ID=f WID'
+'TH=200 HEIGHT=120></DIV></ILAYER></LAYER></TD></TR>');
}
function wrtMusic(){
 if (parent.left.musflg==1){
  document.write('<OBJECT CLASSID=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'
  +' WIDTH=160 HEIGHT=144 CODEBASE=http://www.apple.com/qtactivex/qtplugin.c'
  +'ab><PARAM NAME=SRC VALUE=../i/lm3.mid><PARAM NAME=AUTOPLAY VALUE=TRUE><P'
  +'ARAM NAME=CONTROLLER VALUE=FALSE><EMBED SRC=../i/lm3.mid AUTOPLAY=TRUE A'
  +'UTOSTART=TRUE CONTROLLER=FALSE LOOP=FALSE VOLUME=80 HIDDEN=TRUE PLUGINSP'
  +'AGE=http://www.apple.com/quicktime/download/></EMBED></OBJECT>');
  }
 }