function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();

function bigShadow(id,w,h,x,y,z) {
	$output = "<div id=\"" + id + "\" style=\"position:absolute;width:" + w + "px;height:" + h + "px;left:" + x + "px;top:" + y + "px;z-index:" + z + ";visibility:hidden\">";
	$output += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"" + w + "\" height=\"" + h + "\">";
	$output += "<tr><td style=\"background-image:url(images/big_1.png);width:18px;height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/big_2.png);width:" + (w - 36) + "px;height:8px;\"></td>";
	$output += "<td style=\"background-image:url(images/big_3.png);width:18px;height:18px;\"></td></tr>";
	$output += "<tr><td style=\"background-image:url(images/big_4.png);width:18px;height:" + (h - 36) + "px;\"></td>";
	$output += "<td style=\"background-image:url(images/big_5.png);width:" + (w - 36) + "px;height:" + (h - 36) + "px\"></td>";
	$output += "<td style=\"background-image:url(images/big_6.png);width:18px;height:" + (h - 36) + "px\"></td></tr>";
	$output += "<tr><td style=\"background-image:url(images/big_7.png);width:18px;height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/big_8.png);width:" + (w - 36) + ";height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/big_9.png);width:18px;height:18px;\"></td></tr></table></div>";
	return $output;
}

function bigShadowIE(id,w,h,x,y,z) {
	$output = "<div id=\"" + id + "\" style=\"position:absolute;width:" + w + "px;height:" + h + "px;left:" + x + "px;top:" + y + "px;z-index:" + z + ";visibility:hidden\">";
	$output += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"" + w + "\" height=\"" + h + "\">";
	$output += "<tr><td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_1.png',sizingMethod='scale');width:18px;height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_2.png',sizingMethod='scale');width:" + (w - 36) + "px;height:8px;\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_3.png',sizingMethod='scale');width:18px;height:18px;\"></td></tr>";
	$output += "<tr><td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_4.png',sizingMethod='scale');width:18px;height:" + (h - 36) + "px;\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_5.png',sizingMethod='scale');width:" + (w - 36) + "px;height:" + (h - 36) + "px\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_6.png',sizingMethod='scale');width:18px;height:" + (h - 36) + "px\"></td></tr>";
	$output += "<tr><td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_7.png',sizingMethod='scale');width:18px;height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_8.png',sizingMethod='scale');width:" + (w - 36) + ";height:18px;\"></td>";
	$output += "<td style=\"background-image:url(images/spacer.gif);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/big_9.png',sizingMethod='scale');width:18px;height:18px;\"></td></tr></table></div>";
	return $output;
}
