// JavaScript Document
var browser = new Browser();

function MakeOpaque (imgBtn) {
	if (browser.isIE) {
		imgBtn.filters.item("DXImageTransform.Microsoft.Alpha").enabled = 0;
	} else if (browser.isGecko) {
		imgBtn.style.MozOpacity = 100;
	}
}

function MakeTransparent (imgBtn) {
	if (browser.isIE) {
		imgBtn.filters.item("DXImageTransform.Microsoft.Alpha").enabled = 1;
	} else if (browser.isGecko) {
		imgBtn.style.MozOpacity = 0.5;
	}
}

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.isGecko    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;
  

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
	//alert("opera");
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
	//alert("ns");
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isGecko = true;
	//alert("gecko");
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
	//alert("ie");
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}