is=new browserHandling()
function browserHandling(){
  this.IE=0
  this.NS=0
  this.element=(document.getElementById) ? 1 : 0
  this.NSapp=(navigator.appName=="Netscape") ? 1 : 0
  this.IEapp=(navigator.appName=="Microsoft Internet Explorer") ? 1 : 0
  var ual=navigator.userAgent.toLowerCase()
  this.OPERAapp=(ual.indexOf("opera") != -1)
  this.MAC=(ual.indexOf("mac") != -1)
  this.WIN=(ual.indexOf("windows") != -1)
  this.appver=navigator.appVersion
  if(this.IEapp)
  this.IE=(document.all) ? 1 : 0
  else if(this.NSapp && !this.element)
  this.NS=(document.layers) ? 1 : 0
  if(this.NSapp)
  this.version=parseFloat(this.appver)
  else if(this.OPERAapp) {
    this.version=parseFloat(ual.substr(ual.indexOf("opera") + 5, 4))
    if (!this.version)
    this.version=parseFloat(this.appver);
    this.IE=false;
    }
  else
  this.version=parseFloat(this.appver.substr(this.appver.indexOf("MSIE") + 5, 4))
  this.IE5=(this.WIN && this.IE && this.version=='5' && !document.compatMode)
  this.GECKO=(ual.indexOf("gecko") != -1)
  this.FIREFOX=(ual.indexOf("firebird") != -1||ual.indexOf("firefox") != -1||ual.indexOf("minefield") != -1)
  this.NS6=(ual.indexOf("netscape6/6") != -1)
  this.MEDIAPLAYER=(this.GECKO && ual.indexOf("(ax") != -1) || (this.IE && this.version >= 5 && !this.OPERAapp)
  if (!document.cookie) {
    setCookie("cookietest",1)
    this.cookies=document.cookie ? 1 : 0;
    delCookie("cookietest")
    } else
  this.cookies=1
  this.versionstr = "" + this.version
  if (this.versionstr.indexOf(".") != -1)
  this.versionsub = this.versionstr.substring(this.versionstr.indexOf(".")+1)
  var flash
  if (navigator.plugins && typeof(navigator.plugins["Shockwave Flash"]) == "object")
  flash = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(navigator.plugins["Shockwave Flash"].description.toLowerCase().lastIndexOf("flash ") + 6, navigator.plugins["Shockwave Flash"].description.length))
  else if (this.IE) {
    document.writeln('<scr' + 'ipt type="text/vbscript">');
    document.writeln('on error resume next');
    document.writeln('set f = CreateObject("ShockwaveFlash.ShockwaveFlash")');
    document.writeln('if IsObject(f) then');
    document.writeln('flashie = parseFloat(hex(f.FlashVersion())/10000)');
    document.writeln('end if');
    document.writeln('</scr' + 'ipt>');
    if (typeof(flashie)!="undefined")
    flash=flashie
    }
  if (typeof(flash)=="undefined")
  this.flash=false
  else
  this.flash=flash
}

function getEle(id){
    if(is.NS)
	return document.layers[id]
    else if(is.element)
	return document.getElementById(id)
    else if(is.IE)
	return document.all[id]
    else
	return -1
}

function getEleN(name){
    if(is.NS)
	return document.layers[name]
    else if(is.element)
	return document.getElementsByName(name)
    else if(is.IE)
	return document.all[name]
    else
	return -1
}
