mama nastepujacy problem nie wiem jak wykryc ie 5.5 oraz ie6 do nizszych wersji uzylem ponizszego skryptu

[code]unction check() {
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.client=(this.ie5 || this.ie4 || this.ns4 || this.ns6)
return this[/code] potrzebne mi to jest by zrobic menu na warstwach w wyzej wymienionych przegladarkach wszystko ladnie dziala ponizszy skrypt pokazuje i ukrywa dana warstwe na stronie przy uzyciu onMouseOver i onMouseOut:

[code]function pokazWarstwe() {
if (client.ns4) document.layers["Home"].visibility = "show"
else if (client.ie4) document.all["Home"].style.visibility = "visible"
else if (client.ie5||client.ns6) document.getElementById('Home').style.visibility = "visible";
}
function ukryjWarstwe() {
if (client.ns4) document.layers["Home"].visibility = "hide"
else if (client.ie4) document.all["Home"].style.visibility = "hidden"
else if (client.ie5||client.ns6) document.getElementById('Home').style.visibility = "hidden";
}[/code]

a zatem moje pytanie jak zrobic to dla explorera 6 i 5.5 tak zeby wykrylo i normalnie dzialal skrypt ukrywajacy i howajacy warstwe z gory dziekuje