function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "Play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	
}

var popUpWin=0;

function popUpWindow(imgf, tit, width, height)
{
  var left = (screen.availWidth-width)/2;
  var top = (screen.availHeight-height)/2;
  
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }

outf="<html>"
 +"<head>"
 +"<title>"+tit+"</title>"
 +"<style>body{margin:0px}</style>"
 +"<script language=\"javascript\">function preload(imgfile){img=new Image(); img.src=imgfile;}</script>"
 +"</head>"
 +"<body leftmargin=0 topmargin=0 onload=\"preload(\\'"+imgf+"\\');\">"
 +"<img src=\""+imgf+"\" alt=\""+tit+"\"></body></html>";
 
iopen="popUpWin=open('', '', 'width='+width+',height='+height+',top='+top+',left='+left+'');"
 +"popUpWin.document.write('"+outf+"');"
 +"popUpWin.focus();";
 eval(iopen);
}

