setTimeout( 'browser_fail()', 250 );
function browser_fail()
{
  var browserVer = navigator.appVersion.substring(0,1);
  if( parseInt(browserVer) < 5 && navigator.appName=="Netscape" )
  {
    var settings = 'width=300,height=350'
                 + ',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no';
    var pwin=window.open("","Obsolete_Browser",settings);
    var msg =
        '<head><style> b { color:brown; } em { font-weight:bold; } .txt { font-family:"Arial"; font-size:14px; } </style></head>'
      + '<body bgcolor="#909090"><center><br><table width=270 border=2 cellpadding=5 bgcolor=#ffffff><tr><td>'
      + '<font class=txt>'
      + '<em>Sorry!</em> '
      + 'This website is designed for modern browsers.  Viewing this site with<br><b>Netscape versions 4.x</b>'
      + ' or older, or<br><b>Internet Explorer versions 4.x</b> or older may have unpredictable results. '
      + '<p><em>Many new quality browsers are available <u>free of charge</u>. '
      + '</em> Please click on any of these links to get the latest version of these popular browsers:'
      + '<ul>'
      + '<li><a href="http://www.mozilla.org/products/firefox/" target="_blank">Firefox</a>'
      + '<li><a href="http://www.microsoft.com/windows/ie/default.asp" target="_blank">Internet Explorer</a>'
      + '<li><a href="http://channels.netscape.com/ns/browsers/default.jsp" target="_blank">Netscape</a>'
      + '<li><a href="http://www.opera.com/download/" target="_blank">Opera</a>'
      + '</ul></font>'
      + '</td></tr></table></center></body>'

    pwin.document.open();
    pwin.document.write(msg);
    pwin.document.close();
  }
}

function is_ie55() {
  if(!window.opera && document.all) {
    var ie_agent = navigator.userAgent;
    var ie_start = ie_agent.indexOf("MSIE");
    if( ie_start != -1 && (parseFloat(ie_agent.substring(ie_start+5)) >= 5.5) )
      return true;
  }
  return false;
}

function open_window(_framesrc,_xp,_yp,_wid,_hig,_obj) {
  var fsrc = document.getElementById(_framesrc);
  if( fsrc ) {
    if(!_wid) _wid=500; if(!_hig) _hig=500;
    if(!_xp) _xp=screen.width/2-_wid/2; if(!_yp) _yp=screen.height/4-_hig/2;
    var settings = 'left='+_xp+',top='+_yp+',width='+_wid+',height='+_hig
                  +',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no';
    var pwin=window.open( '', _framesrc, settings );
    if(pwin) {
      var _htm =
        '<'+'script type="text/javascript"> ' +
        'function validate_form(frm) { var fnew = document.createElement("input"); ' +
        'fnew.name="FORM_ID"; fnew.value="y1pih"; fnew.type="hidden"; ' +
        'frm.appendChild(fnew); return true; }'+'<'+'/script'+'>';
      _htm += fsrc.innerHTML;
      _htm = _htm.replace(/\<\!\-\-/g,"");
      _htm = _htm.replace(/\-\-\>/g,"");
      pwin.document.write( _htm ); pwin.document.close(); pwin.focus(); return pwin.document;
    }
  }
}

function open_s_window(_src,_ttl,_xp,_yp,_wid,_hig,_obj) {
  if(!_ttl) _ttl=''
  if(!_wid) _wid=500; if(!_hig) _hig=500;
  if(!_xp) _xp=screen.width/2-_wid/2; if(!_yp) _yp=screen.height/4-_hig/2;
  var settings = 'left='+_xp+',top='+_yp+',width='+_wid+',height='+_hig
                +',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no';
  var pwin=window.open( '', _ttl, settings );
  if(pwin) { pwin.document.write(_src); pwin.document.close(); pwin.focus(); return pwin.document; }
}

function open_popup(_framesrc,_xp,_yp,_wid,_hig,_obj) {
  var fsrc = document.getElementById(_framesrc);
  if( fsrc ) {
    if(!_wid) _wid=250; if(!_hig) _hig=300;
    var pwin=window.createPopup();
    if(pwin) {
      var _htm=fsrc.innerHTML; _htm = _htm.replace(/\<\!\-\-/g,""); _htm = _htm.replace(/\-\-\>/g,"");
      pwin.document.write( _htm ); pwin.document.close(); pwin.show(_xp,_yp,_wid,_hig,_obj);
    }
  }
}

function open_s_popup(_src,_xp,_yp,_wid,_hig,_obj) {
  if(!_wid) _wid=250; if(!_hig) _hig=300;
  var pwin=window.createPopup();
  if(pwin) { pwin.document.write(_src); pwin.document.close(); pwin.show(_xp,_yp,_wid,_hig,_obj); }
}

function validate_form(frm)
{
  var fnew = document.createElement("input");
  fnew.name='FORM_ID';
  fnew.value='y1pih';
  fnew.type='hidden';
  frm.appendChild( fnew );
  return true;
}


  var img_list_57=new Array();
  var img_names_57=new Array();
  var img_desc_57=new Array();

  var img_root_57 = ''
var img_total_57 = 24
img_list_57[0] = 'img_ins-i5bnu/gaue0pf.bmp'; img_names_57[0] = 'STAR'; img_desc_57[0]='';
img_list_57[1] = 'img_ins-i5bnu/gaue0vn4.bmp'; img_names_57[1] = 'Settled Insul'; img_desc_57[1]='';
img_list_57[2] = 'img_ins-i5bnu/gaue0vn.bmp'; img_names_57[2] = 'MonitorWallBW'; img_desc_57[2]='';
img_list_57[3] = 'img_ins-i5bnu/gaue0vn6.bmp'; img_names_57[3] = 'TVWall'; img_desc_57[3]='';
img_list_57[4] = 'img_ins-i5bnu/gaue0vn2.bmp'; img_names_57[4] = 'Partially Insulated'; img_desc_57[4]='';
img_list_57[5] = 'img_ins-i5bnu/gaue0c1.bmp'; img_names_57[5] = 'Air Infilt Column'; img_desc_57[5]='';
img_list_57[6] = 'img_ins-i5bnu/gaue0cl.bmp'; img_names_57[6] = 'Heat tape'; img_desc_57[6]='';
img_list_57[7] = 'img_ins-i5bnu/gaue2jz.bmp'; img_names_57[7] = 'LubeOilHeater'; img_desc_57[7]='';
img_list_57[8] = 'img_ins-i5bnu/gaue0b7.bmp'; img_names_57[8] = 'Condensate Valve Leak'; img_desc_57[8]='';
img_list_57[9] = 'img_ins-i5bnu/gaue0e9.bmp'; img_names_57[9] = 'IR000075'; img_desc_57[9]='';
img_list_57[10] = 'img_ins-i5bnu/gaue39k.bmp'; img_names_57[10] = 'IR000071'; img_desc_57[10]='';
img_list_57[11] = 'img_ins-i5bnu/gaue0ea1.bmp'; img_names_57[11] = 'Pump Bearing'; img_desc_57[11]='';
img_list_57[12] = 'img_ins-i5bnu/gaue0ea5.bmp'; img_names_57[12] = 'Pump Seal Water'; img_desc_57[12]='';
img_list_57[13] = 'img_ins-i5bnu/gaue2kh.bmp'; img_names_57[13] = 'cleaners'; img_desc_57[13]='';
img_list_57[14] = 'img_ins-i5bnu/gaue0ft.bmp'; img_names_57[14] = 'IR002459'; img_desc_57[14]='';
img_list_57[15] = 'img_ins-i5bnu/gaue0ft2.bmp'; img_names_57[15] = 'IR002467'; img_desc_57[15]='';
img_list_57[16] = 'img_ins-i5bnu/gaue0ft4.bmp'; img_names_57[16] = 'Spiral'; img_desc_57[16]='';
img_list_57[17] = 'img_ins-i5bnu/gaue2g9.bmp'; img_names_57[17] = 'Hot Line Clamp'; img_desc_57[17]='';
img_list_57[18] = 'img_ins-i5bnu/gaue2f7.bmp'; img_names_57[18] = 'CutOut 1'; img_desc_57[18]='';
img_list_57[19] = 'img_ins-i5bnu/gaue2g92.bmp'; img_names_57[19] = 'Jumper4'; img_desc_57[19]='';
img_list_57[20] = 'img_ins-i5bnu/gaue0ip.bmp'; img_names_57[20] = 'Steam new'; img_desc_57[20]='';
img_list_57[21] = 'img_ins-i5bnu/gaue2i7.bmp'; img_names_57[21] = 'From below patchy'; img_desc_57[21]='';
img_list_57[22] = 'img_ins-i5bnu/gaue2i72.bmp'; img_names_57[22] = 'From below sun on roof'; img_desc_57[22]='';
img_list_57[23] = 'img_ins-i5bnu/gaue2i74.bmp'; img_names_57[23] = 'North 2'; img_desc_57[23]='';


  function picpop_57( _num, _sld )
  {
    img_file = img_root_57 + img_list_57[_num]
    img_name = img_names_57[_num]
    img_desc = img_desc_57[_num]


    settings  = "width=300,height=300,"
    settings += "resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes";

    pwin=window.open( '', 'ImageGallery', settings );

    if( pwin )
    {
      pwin.document.clear();

      txt  = '<html><head><title>Image Gallery Picture Detail<\/title>'
      txt += '<meta http-equiv="imagetoolbar" content="no" />'
      txt += '<style>body { margin:0; overflow:auto; background:VAR(POPUP_BACKGROUND_COLOR); }  '
      txt += ' em{color:white;background:black;padding:1px;border:solid 1px white;}'
      txt += ' .popnum{ margin:8px; font:10px arial; color:VAR(POPUP_NUM_COLOR) }'
      txt += '<\/style><script>'
      txt += ' function setup() {'
      txt += " iWid=document.images[0].width + 100;"
txt += " iHig=document.images[0].height + 230;"
txt += " if( iWid>100 && iHig>150 ) { "
txt += "   window.resizeTo( iWid>screen.width?screen.width:iWid, iHig>screen.height?screen.height:iHig );"
txt += "   window.focus(); }"

      txt += ' } '

      if(_sld)
      {
        var _nxt = _num+1;

        if( _nxt >= img_total_57 )
          _nxt=0;

        txt += " setInterval(\"opener.picpop_57("+(_nxt)+",true)\",3000);"
      }

      txt += '<\/script>'
      txt += "</head><body scroll=yes onload='setup()' oncontextmenu='return false' >"
      txt += '<center>'
      txt += "<div style='margin:20px;'>"

      if(!_sld)
      {
        txt += " <button "
        if( _num>0 )
          txt += "onclick='opener.picpop_57("+(_num-1)+")'"
        else
          txt += "disabled"

        txt += "> &lt;&lt; Prev </button>"
        txt += "<button onclick='opener.picpop_57("+(_num)+",true)'>Slideshow</button>"
        txt += "<button "

        if( _num<img_total_57-1)
          txt += "onclick='opener.picpop_57("+(_num+1)+")'"
        else
          txt += "disabled"

        txt += "> Next &gt;&gt; </button>"
      }
      else
      {
        txt += "<button onclick='opener.picpop_57("+(_num)+")'>Stop Slideshow</button>"
      }

      txt += "<div class=popnum>"

      for( i=1; i<=img_total_57; i++ )
      {
        if(i==_num+1)
          txt += '<em>'+i+'</em> ';
        else
          txt += i+' ';
      }

      txt += "</div></div><img id=mainimg src='" + img_file + "'> <br>"
      txt += "<div class=desc style='padding:6px;width:100%;height:50px;overflow-y:auto'>" + img_desc + "</div>"

      txt += "</center>"
      txt += "</body></html>";

      pwin.document.writeln( txt );
      pwin.document.close();
    }
  }

