var isVisible = "visible"
var isHidden  = "hidden"
var isNN4     = false
var isNN      = false
var isIE      = false
var isOpera   = false
var isMac     = false
var isWin     = false
var isUnix    = false
var isInit    = true

// return the length of a string
function strlen(str){
  var oStr
  
  oStr = new String(str)
  return oStr.length
}

// find the first occurrence of strToFind in strToSearch
function inStr(strToSearch,strToFind){
  var oStr
  var lPos
  
  oStr = new String(strToSearch)
  lPos = oStr.indexOf(strToFind)
  return lPos
}

// determine the browser version
function browserVersion() {  
  var sUserAgent
  var sAppName
  var sPlatform
  
  with (navigator) {
    sAppName   = appName
	sUserAgent = userAgent
	sVersion   = appVersion
	sPlatform = platform
  }
  isNN  = (sAppName=="Netscape")
  isNN4 = (isNN)&&(parseInt(sVersion)==4) 
  if (isNN4){
    isVisible = "show"
    isHidden  = "hide"
  }
  isOpera = (inStr(sUserAgent,"Opera") != -1)
  isIE    = (!isOpera)&&(inStr(sUserAgent,"MSIE") !=  -1)
  // platform
  isPC   = (inStr(sPlatform,'Win') != -1)
  isMac  = (inStr(sPlatform,'Mac') != -1)
  //if not PC or Mac, assume some Unix platform
  isUnix = (!isPC) && (!isMac) 
  
  return 
}

browserVersion()

function clickIE4(){
if (event.button==2){
alert(message)
return false
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message)
return false
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN)
document.onmousedown=clickNS4
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4
}


