function addCompactLinks() {
    var elements = getElementsByClassName("compact");
    for (var i = 0; i < elements.length; i++) {
        var id = "_ci" + i;
        addClass(elements[i], "small");
        elements[i].id = id;
        var a = document.createElement("A");
        a.href = "";
        a.elementFunction = "showMore(\"" + id + "\")";
        a.onclick = executeElementFunction;
        a.className = "more";
        a.appendChild(document.createTextNode("Mer info"));
        elements[i].appendChild(a);
    }
}

function showMore(id) {
    var element = document.getElementById(id);
    if (element) {
        removeClass(element, "small");
    }
}

appendOnLoadFunction("addCompactLinks()", true);

function executeElementFunction() {
    if (this.elementFunction) {
        eval(this.elementFunction);
        return false;
    }
}
function openFlash() {
		var wh = screen.Height; 
		var ww = screen.Width; 
		leftPos = Math.round((ww-740-10));
		topPos = Math.round((wh-526-29)/2); 	
		window.open('/flash.php', 'flash', 'width=740, height=526,left='+leftPos);
	}
