function getObj(o) {
    if (isIE || isOpera) eval("obj = document.all." + o);
    else if (isNS4) eval("obj = document." + o);
    else if (isNS6) obj = document.getElementById(o);
	else obj = false;
    return obj;
}

function getProperties(o) {
    result = "";
    eval("obj = " + o);
    for (var i in obj) {
	if (i == "innerHTML" || i == "innerText" || i == "outerHTML" || i== "outerText") continue;
	result += o +"." + i + " = " + obj[i] + "\t";
    }
    return(result);
}

function getImage(o) { return (isIE || isNS6 || isOpera) ? getObj(o) : getObj("images." + o); }
function getLayer(o) { return (isIE || isNS6 || isOpera) ? getObj(o) : getObj("layers." + o); }

function tdChange(key, val) { if (isIE || isNS6) getObj(key).style.display = val; }
function tdShow(key) { tdChange(key, ""); }
function tdHide(key) { tdChange(key, "none"); }

function switchKalk(s) {
    KalkStatus = s;
    if (s == 0) {
        setTimeout("offKalk()", 500);
        return;
    }
    obj = getLayer("kalkLayer");
    if (obj && obj.style) {
	if (isIE || isNS6) obj.style.top = 104; else obj.top = 104;
    }
}
    
function offKalk() {
    if (KalkStatus != 0) return;
    obj = getLayer("kalkLayer");
    if (obj && obj.style) 
	if (isIE || isNS6) obj.style.top = -400; else obj.top = -400;
}

function switchMell(s) {
    MellStatus = s;
    if (s == 0) {
        setTimeout("offMell()", 500);
        return;
    }
    obj = getLayer("mellLayer");
    if (obj && obj.style)
	if (isIE || isNS6) obj.style.top = 84; else obj.top = 84;
}
    
function offMell() {
    if (MellStatus != 0) return;
    obj = getLayer("mellLayer");
    if (obj && obj.style) 
	if (isIE || isNS6) obj.style.top = -200; else obj.top = -200;
}

function tabChg(im, n) {
    obj = getImage(im);
    if (obj.src.indexOf("rv=") != -1) {
        obj.src = obj.src.substr(0,obj.src.indexOf("rv=")+3) + n;
    } else {
        obj.src = obj.src + "&rv=" + n;
    }
}
function buxChg(n) { tabChg("buximg", n);}
function eurChg(n) { tabChg("eurimg", n); }
function eurChg2(n) { tabChg("eurimg", n); getObj("volksbank").style.display=""; }
function eurChg3(n) { tabChg("eurimg", n); getObj("volksbank").style.display="none"; }
function usaChg(n) { tabChg("usaimg", n); }
function befChg(n) { tabChg("befimg", n); }
function devChg(n) { tabChg("devimg", n); }
function maxChg(n) { tabChg("maximg", n); }
function bmxChg(n) { tabChg("bmximg", n); }
function hozamChg(n) { tabChg("hzmimg", n); }
function kotvChg(iname,n) { tabChg(iname, n); }

function tabChgFull(im, f) {
    if (obj = getImage(im)) {
		obj.src = f;
    }
}




function tabInfoChg(im, n) {
   obj = getImage(im);
   if (obj.src.indexOf("tab=") != -1) {
       obj.src = obj.src.substr(0,obj.src.indexOf("tab=")+4) + n;
   } else {
       obj.src = obj.src + "&tab=" + n;
   }
}
function neeChg(n) { tabInfoChg("neeimg", n); }
function hozamInfoChg(n) { tabInfoChg("hozamimg", n); }

