  browser_name = navigator.appName; 
  browser_version = parseFloat(navigator.appVersion); 

  if (browser_name == "Netscape" && browser_version >= 3.0) {can = 'true';} 
  else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { can = 'true'; } 
       else { can = 'false'; } 

  function sndmail(box, alias) {
    s = "mailto:";
    if (browser_name == "Microsoft Internet Explorer") {
      a = "&#64";
      s += alias;
      s += "&lt;";
      s += box;
      s += a;
      s += "flashdig";
      s += ".";
      s += "com";
      s += "&gt;";
    } else {
      a = "@";
      s += alias;
      s += "<";
      s += box;
      s += a;
      s += "flashdig";
      s += ".";
      s += "com";
      s += ">";
    }
    self.location.href = s;
  }

  function over(img) { document.images[img].src = 'img/'+img+'mo.gif'; } 
  function out(img) { document.images[img].src = 'img/'+img+'.gif'; } 

  function overs(img,cimg) {
    document.images[img].src = 'img/b_'+img+'a.gif';
        document.images[cimg].src = 'img/b_'+cimg+'.gif';
  } 

  function outs(img,cimg)  {
    document.images[img].src = 'img/b_'+img+'.gif';
    document.images[cimg].src = 'img/b_'+cimg+'a.gif';
  } 

  function inProgress() {
    alert("Sorry, this feature is not available now.\nPlease try later.");
  }
  function orderbymail() {
    alert("We apologize, but the online purchase isn't available now.\nPlease email to us and we'll let you know what is the alternative way.");
    window.open("mailto:presenter@openworld.com?subject=Buy%20Openworld%20Presenter&body=Please%20provide%20me%20with%20the%20purchase%20information");
  }

  var rpwin = null;

  function openSample(atitle,ahtt,acnt,awidth,aheight,frwidth) {
    var sw = screen.availWidth;
    var sh = screen.availHeight;
    var l = (sw - awidth) / 2;
    var t = (sh - aheight) / 2;
    if (l < 0 ) l = 0;
    if (t < 0 ) t = 0;
    if ((rpwin == null)||
       (rpwin.closed)) {
      rpwin=open("","rpwindow","status=yes left="+l+" top="+t+" width="+awidth+" height="+aheight);
      rpwin.opener = self;
    } else
    if (rpwin.player.document.javademo.GetPlayState() > 0) {
      if (!confirm("Presentation is active, do you want to stop it?")) return;
      rpwin.player.document.javademo.doStop(); 
    }
    src = "/samples/smp.php?pt=" + atitle;
    self.document.fsample.action=src;
    self.document.fsample.w.value=awidth;
    self.document.fsample.h.value=aheight;
    self.document.fsample.framewidth.value=frwidth;
    self.document.fsample.httfile.value=ahtt;
    self.document.fsample.sym1.value="$";
    self.document.fsample.sym2.value=acnt;
    self.document.fsample.submit();
  }

  var wnd = null;

  function showtmpl(fname,fhint) {
    var width = 200;
    var height = 200;
    var sw = screen.availWidth;
    var sh = screen.availHeight;
    var l = (sw - width) / 2;
    var t = (sh - height) / 2;
    if (l < 0) l = 0;
    if (t < 0) t = 0;
    url="layout.php?f=img/"+fname;
    url+="&h="+fhint;
    wnd=open(url,"tmpl","left="+l+" top="+t+" width="+width+" height="+height);
  }

  var wndpopup = null;
  var isfirsttime = 1;

  function moreinfopopup(fdir,fname,width,height,sp) {
    url="moreinfopopup.php?d="+fdir+"&f="+fname+"&w="+width+"&h="+height+"&sp="+sp;
    var sw = screen.availWidth;
    var sh = screen.availHeight;
    var l = (sw - width) / 2;
    var t = (sh - height) / 2;
    if (isfirsttime > 0) {
      wndpopup=open(url,"info","left="+l+" top="+t+" width="+width+" height="+height+" alwaysRaised=yes");
      wndpopup.opener = self;
    } else {
      wndpopup.location.replace(url);
      wndpopup.focus();
    }
  }
  var wndpopup1 = null;

  function popup(furl,width,height) {
    var url = furl + "?width=" + width + "&height=" + height;
    var sw = screen.availWidth;
    var sh = screen.availHeight;
    var l = (sw - width) / 2;
    var t = (sh - height) / 2;
    wndpopup1=open(url,"popupwnd1","left="+l+" top="+t+" width="+width+" height="+height);
  }

  function openfdfrm() {
    var sep = ".";
    var url = "forum";
    url += sep;
    url += "flashdig";
    url += sep;
    url += "com";
    open("http://" + url,"","");
  }
