window.is.windows = navigator.platform.toLowerCase().indexOf("win") > -1;
window.is.fullscreenCapable = is.ie4up && is.windows;
window.is.wmaCapable = is.ie && is.windows;
window.is.imageResizeCapable = is.nav5up || is.ie4up || (is.opera && (! is.opera5or6)) || is.gecko || is.safari;

window.is.tested = is.nav4up || is.ie4up || is.opera || is.gecko || is.safari;
window.is.soundCapable = is.nav4up || is.ie5up || is.opera || is.gecko || is.safari;
window.is.fullscreenInterfaceCapable = is.ie4up && is.windows;

function QTCapable() {
  var hasQT = false;

  if (window.ActiveXObject)		// use eval here in case browser doesn't support try/catch
    eval('try {var xObj = new ActiveXObject("QuickTimeCheckObject.QuickTimeCheck.1");if (xObj && theObject.IsQuickTimeAvailable(0)) hasQT = true;xObj = null;} catch (e){}');

  if (navigator.plugins && ! hasQT)
    for (i=0; i < navigator.plugins.length; i++)
      if (navigator.plugins[i].name.indexOf("QuickTime") >= 0)
        hasQT = true;
  return(hasQT);
}
window.is.QTCapable = window.top.is.QTCapable == null ? QTCapable() : window.top.is.QTCapable;

function geckoWMPCapable() {	// with Netscape 7.1 this routine must be called in context of top frame, not in main for instance
  var hasGeckoWMP = false;

  if (window.GeckoActiveXObject)		// use eval here in case browser doesn't support try/catch
    eval('try {var xObj = new GeckoActiveXObject("MediaPlayer.MediaPlayer.1");if (xObj) hasGeckoWMP = true;xObj = null;} catch(e){}');
  return(hasGeckoWMP);
}
window.is.geckoWMPCapable = window.top.is.geckoWMPCapable == null ? geckoWMPCapable() : window.top.is.geckoWMPCapable;

