

window.onerror = null;

var fade_speed = 200;

var suffix = "on1";
var f_objLink, f_imageName;

var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);

if (document.images) {
    var nulloff = new Image(218,122);
    var nullon1 = new Image(218,122);
    var nullon2 = new Image(218,122);
    nulloff.src = "http://static3.millennium.pl.eu.org/graphics/null_off.gif";
    nullon1.src = "http://static4.millennium.pl.eu.org/graphics/null_on1.gif";
    nullon2.src = "http://static1.millennium.pl.eu.org/graphics/null_on2.gif";
}

function point(objLink, imageName) {
    if (document.images)
	objLink.src = eval(imageName + "on").src;
}

function pointswap(objLink, imageName) {
    if (document.images)
	objLink.src = eval(imageName + suffix).src;
    if (suffix == "on1")
	suffix = "on2";
    else
	suffix = "on1";
}

function nopoint_f(objID, imageName) {
    if (ie4)
	objID.src = eval(imageName + 'off').src;
    else if (ns6) {
	var imageFullName = eval(imageName) + 'off';
	var imagePathName = eval(imageFullName).src;
	document.getElementById(objID).src = imagePathName;
    }
}

function nopoint(objLink, imageName) {
    if (document.images) {
        var param1 = objLink.id;
	var param2 = "'" + imageName + "'";
	if (ie4)
	    window.setTimeout("nopoint_f(" + param1 + "," + param2 + ")", fade_speed);
	else if (ns6)
	    window.setTimeout(nopoint_f, fade_speed, param1, param2);
    }
}

