var n = 0;

function openclose(id) {

    var old = document.getElementById('block' + id).style.display;
    for (i = 1; i <= n; i++) {
        if (document.getElementById('block' + i).style.display != 'none') {
        	document.getElementById('block' + i).style.display = 'none';
        }
    }        
    if (old == 'none' || old == '') {
        document.getElementById('block' + id).style.display = 'block';
    }
    elca();
}    

function elca() {
    // Because of IE bug
    document.getElementById('elca').style.bottom = '19px';
    document.getElementById('elca').style.bottom = '20px';
}

function opencloseover(id) {
    document.getElementById('block' + id).style.border = '1px solid #f00';
}

function opencloseout(id) {
    document.getElementById('block' + id).style.border = '1px solid #d0d0d0';
}

var fond1 = new Image;
fond1.src = 'img/fondalbum2.gif';
var fond2 = new Image;
fond2.src = 'img/fondalbum3.gif';

var nimg = 0;

function albumover(id) {
    document.getElementById('imgalbum' + id).src = fond2.src;
}

function albumout(id) {
    for (i = 1; i <= nimg; i++) {
	    document.getElementById('imgalbum' + i).src = fond1.src;
    }
}

function goto(id, url) {
    var val = document.getElementById(id).options[document.getElementById(id).selectedIndex].value;    
    window.document.location.href = url + val;
}

function mailto() {
    location.href = 'mai' + 'l' +
                    'to: con' + 'tact' +
                    '@bo' +
                    'lo.c' + 'h';
}

