// browsercheck
function checkBrowser(){
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5)
return this
}
bw=new checkBrowser()

// function show
function show(div,nest){
obj=bw.dom?document.getElementById(div).style:
bw.ie4?document.all[div].style:
bw.ns4?nest?document[nest].document[div]:document[div]:0;
obj.visibility='visible'
}
// function hide
function hide(div,nest){
obj=bw.dom?document.getElementById(div).style:
bw.ie4?document.all[div].style:
bw.ns4?nest?document[nest].document[div]:document[div]:0;
obj.visibility='hidden'
}


var message="";
///////////////////////////////////
function clickIE() {
  if (document.all) {
     (message);return false;
  }
}

function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
  if (e.which==2||e.which==3) {
    (message);return false;
    }
  }
}

if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
  }
else{
  document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}

document.oncontextmenu=new Function("return false")

