// popup(file,options,width,height) function
//
// To display a popup window containing an HTML file with the following options...
//
// "file" absolute or relative address of the HTML file to be displayed.
// "options" variable containing the window display options comma separated. If no options
//   are specified then all will be set to yes, with options specified all unspecified
//   options are set to no. Possible options are...
//     toolbar=yes/no - display browser toolbar (yes/no).
//     location=yes/no - display browser location entry field (yes/no).
//     directories=yes/no - display browser directory buttons (yes/no).
//     status=yes/no - display browser status bar (yes/no).
//     menubar=yes/no - display browser menu (yes/no).
//     scrollbars=yes/no - display browser scrollbars if required (yes/no).
//     resizable=yes/no - allow popup window to be resized (yes/no).
// "width" width of window variable can be set to either...
//     0 or left out - popup window will appear full screen size.
//     integer value - width of popup window in pixels.
// "height" height of window variable can be set to either...
//     0 or left out - popup window will appear full screen size.
//     integer value - height of popup window in pixels.
//
function launchPlayer(file,options,width,height) {
  if ((width != 0 || width !=null) && (height != 0 || height !=  null)) {
    options = options+",width="+width+",height="+height;
  }
  var textWindow=window.open(file,"TextWindow",options);
}
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
} 