
    // Damian Gajda 1999. Based on Eric Krock code.
    // Permission granted to reuse and distribute.
    function browserVersion() {
    var agt = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.nav    = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
    this.gecko  = (agt.indexOf('gecko')!=-1);
    this.ge5up  = this.gecko  && (this.major >= 4);
    this.nav4up = this.nav && !(this.gecko) && (this.major >= 4);
    this.nav5up = this.nav && (this.major >= 5);
    this.navonly = (this.nav && (agt.indexOf(";nav") != -1));
    this.ie     = (agt.indexOf("msie") != -1);
    this.ie4up  = this.gecko  && (this.major >= 4);
    this.ie4up  = this.ie  && (this.major >= 4);
    this.opera = (agt.indexOf("opera") != -1);
    this.ver4up = (this.ie4up || this.nav4up );
    }
    var browserVersion = new browserVersion();
    var jslock = 0;    


browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
if ( browser) {
a_ba01 = new Image(); a_ba01.src = "gfx/bccLay__01.gif";
i_ba01 = new Image(); i_ba01.src = "gfx/bccLay_01.gif";
a_ba02 = new Image(); a_ba02.src = "gfx/bccLay__02.gif";
i_ba02 = new Image(); i_ba02.src = "gfx/bccLay_02.gif";
a_ba03 = new Image(); a_ba03.src = "gfx/bccLay__03.gif";
i_ba03 = new Image(); i_ba03.src = "gfx/bccLay_03.gif";
a_ba04 = new Image(); a_ba04.src = "gfx/bccLay__04.gif";
i_ba04 = new Image(); i_ba04.src = "gfx/bccLay_04.gif";
a_ba05 = new Image(); a_ba05.src = "gfx/bccLay__05.gif";
i_ba05 = new Image(); i_ba05.src = "gfx/bccLay_05.gif";
a_ba06 = new Image(); a_ba06.src = "gfx/bccLay__06.gif";
i_ba06 = new Image(); i_ba06.src = "gfx/bccLay_06.gif";
a_ba07 = new Image(); a_ba07.src = "gfx/bccLay__07.gif";
i_ba07 = new Image(); i_ba07.src = "gfx/bccLay_07.gif";

a_ca01 = new Image(); a_ca01.src = "gfx/bccLay__.gif";
i_ca01 = new Image(); i_ca01.src = "gfx/bccLay_.gif";
a_ca02 = new Image(); a_ca02.src = "gfx/bccLay__.gif";
i_ca02 = new Image(); i_ca02.src = "gfx/bccLay_.gif";
a_ca03 = new Image(); a_ca03.src = "gfx/bccLay__.gif";
i_ca03 = new Image(); i_ca03.src = "gfx/bccLay_.gif";
a_ca04 = new Image(); a_ca04.src = "gfx/bccLay__.gif";
i_ca04 = new Image(); i_ca04.src = "gfx/bccLay_.gif";
a_ca05 = new Image(); a_ca05.src = "gfx/bccLay__.gif";
i_ca05 = new Image(); i_ca05.src = "gfx/bccLay_.gif";
a_ca06 = new Image(); a_ca06.src = "gfx/bccLay__.gif";
i_ca06 = new Image(); i_ca06.src = "gfx/bccLay_.gif";
a_ca07 = new Image(); a_ca07.src = "gfx/bccLay__.gif";
i_ca07 = new Image(); i_ca07.src = "gfx/bccLay_.gif";

a_ca08 = new Image(); a_ca08.src = "gfx/bccLay_p1.gif";
i_ca08 = new Image(); i_ca08.src = "gfx/bccLay_p1.gif";
a_ca09 = new Image(); a_ca09.src = "gfx/bccLay_p2.gif";
i_ca09 = new Image(); i_ca09.src = "gfx/bccLay_p2.gif";

}
function Act(imgName, kreska1, kreska2) { if ( browser ) { 

document[kreska1].src = eval("i" + kreska1 + ".src");
document[kreska2].src = eval("i" + kreska2 + ".src");
document[imgName].src = eval("i" + imgName + ".src");              
}}

function Ina(imgName, kreska1, kreska2) { if ( browser ) { 

document[imgName].src = eval("a" + imgName + ".src");
document[kreska1].src = eval("a" + kreska1 + ".src");
document[kreska2].src = eval("a" + kreska2 + ".src");

}}

function statusbartext(message) { window.status=message; }
function okno2(url, width, height) {
var Win = window.open(url,"okno",'width=' + width+ ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}
	function okno3(url, width, height) {
		var Win = window.open(url,"okno",'width=' + width+ ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=10,top=10' );
	}

	function displayWindow(url, width, height) {
		var Win = window.open(url,"okno",'width=' + width+ ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=10,top=10' );
	}

