var cando = false;
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) cando = true;
else if( browserVer >=4 ) cando=true;
if( cando ) {
        imag = new Array();
        imag[0] = "http://cache.theabyss.ru/img/btn/btn-rus-off.gif";
        imag[1] = "http://cache.theabyss.ru/img/btn/btn-rus-on.gif";
        imag[2] = "http://cache.theabyss.ru/img/btn/btn-eng-off.gif";
        imag[3] = "http://cache.theabyss.ru/img/btn/btn-eng-on.gif";
        imag[4] = "http://cache.theabyss.ru/img/"+lang+"/btn-adv-off.gif";
        imag[5] = "http://cache.theabyss.ru/img/"+lang+"/btn-adv-on.gif";
        imag[6] = "http://cache.theabyss.ru/img/"+lang+"/btn-chat-off.gif";
        imag[7] = "http://cache.theabyss.ru/img/"+lang+"/btn-chat-on.gif";
        imag[8] = "http://cache.theabyss.ru/img/"+lang+"/btn-visit-off.gif";
        imag[9] = "http://cache.theabyss.ru/img/"+lang+"/btn-visit-on.gif";
		imag[10] = "http://cache.theabyss.ru/img/"+lang+"/btn-enter-off.jpg";
        imag[11] = "http://cache.theabyss.ru/img/"+lang+"/btn-enter-on.jpg";
        imag[12] = "http://cache.theabyss.ru/img/"+lang+"/btn-enterforum-off.jpg";
        imag[13] = "http://cache.theabyss.ru/img/"+lang+"/btn-enterforum-on.jpg";
 		imag[14] = "http://cache.theabyss.ru/img/mlogo.jpg";
        imag[15] = "http://cache.theabyss.ru/img/mlogo-on.jpg";
        imag[16] = "http://cache.theabyss.ru/img/"+lang+"/m-le.jpg";
        imag[17] = "http://cache.theabyss.ru/img/"+lang+"/m-le-on.jpg";
        imag[18] = "http://cache.theabyss.ru/img/"+lang+"/m-ul.jpg";
        imag[19] = "http://cache.theabyss.ru/img/"+lang+"/m-ul-on.jpg";
        im = new Array()
        for (var i = 0; i < imag.length; i++){
                if( imag[i] != "" ) {
                        im[i] = new Image();
                        im[i].src = imag[i];
                }
        }
}

function swtch(num,imgname){

        if( cando )
	        document.getElementById(imgname).src = im[num].src;

}