var text = ""
var using_msie3 = (navigator.userAgent.indexOf('MSIE 3') != -1)
if ( parent.frames.length != 0 )
{
 text += '<A HREF="'
 text += self.location.href
 text += '" TARGET="_top"'
 text += '><IMG SRC="maximize.gif" BORDER=0 ALT="Maximise" ALIGN=right WIDTH=24 HEIGHT=24><'
 text += '/A>'
}
else        
{
 if ( using_msie3==true )
 {
  text += '<IMG SRC="no_restore.gif" BORDER=0 ALT="Sorry this feature doesn'
  text += "'"
  text += 't work on M$IE 3.x" ALIGN=right WIDTH=24 HEIGHT=24>'
 }
 else
 {
  text += '<A HREF="reframed.html" NAME="restore" TARGET="_top">'
  text += '<IMG SRC="restore.gif" BORDER=0 ALT="Restore" ALIGN=right WIDTH=24 HEIGHT=24><'
  text += '/A>'
 }
}
document.write(text)