b = document;
c = b.documentElement;
k = window;
n = false;
r = Object;
ba = true;
bh = Array;
bp = navigator;
bq = bp.userAgent;
br = top;
co = Date;
dt = Function;
dy = Math;
ea = parent;
ei = Image;
Class = {
    create: function(){
        return function(){
            this.initialize.apply(this, arguments);
        }
    }
};
r.extend = function(cx, source){
    for (cy in source) 
        cx[cy] = source[cy];
    return cx
};
dt.prototype.bind = function(ck){
    var cl = this;
    return function(){
        return cl.apply(ck, arguments);
    }
};
dt.prototype.bindAsEventListener = function(ck){
    var cl = this;
    return function(event){
        cl.call(ck, event || k.event);
    }
};
function $(){
    if (arguments.length == 1) 
        return get$(arguments[0]);
    var elements = [];
    $c(arguments).each(function(el){
        elements.push(get$(el));
    });
    return elements;
    function get$(el){
        if (typeof el == 'string') 
            el = b.getElementById(el);
        return el
    }
}

if (!k.Element) 
    var Element = new r();
r.extend(Element, {
    remove: function(d){
        d = $(d);
        d.parentNode.removeChild(d);
    },
    hasClassName: function(d, className){
        d = $(d);
        if (!d) 
            return;
        var cz = n;
        d.className.split(' ').each(function(bv){
            if (bv == className) 
                cz = ba
        });
        return cz
    },
    addClassName: function(d, className){
        d = $(d);
        Element.removeClassName(d, className);
        d.className += ' ' + className
    },
    removeClassName: function(d, className){
        d = $(d);
        if (!d) 
            return;
        var cm = '';
        d.className.split(' ').each(function(bv, i){
            if (bv != className) {
                if (i > 0) 
                    cm += ' ';
                cm += bv
            }
        });
        d.className = cm
    },
    ek: function(d){
        d = $(d);
        $c(d.childNodes).each(function(bn){
            if (bn.nodeType == 3 && !/\S/.test(bn.nodeValue)) 
                Element.remove(bn);
        });
    },
    em: function(d, da){
        d = $(d)[da];
        while (d.nodeType != 1) 
            d = d[da];
        return d
    }
});
du = {
    cumulativeOffset: function(d){
        var db = 0, dc = 0;
        do {
            db += d.offsetTop || 0;
            dc += d.offsetLeft || 0;
            d = d.offsetParent
        }
        while (d);
        return [dc, db]
    }
};
b.getElementsByClassName = function(className){
    var dv = b.getElementsByTagName('*') || b.all;
    var elements = [];
    $c(dv).each(function(dd){
        if (Element.hasClassName(dd, className)) 
            elements.push(dd);
    });
    return elements
};
bh.prototype.iterate = function(bo){
    for (var i = 0; i < this.length; i++) 
        bo(this[i], i);
};
if (!bh.prototype.each) 
    bh.prototype.each = bh.prototype.iterate;
function $c(array){
    var de = [];
    for (var i = 0; i < array.length; i++) 
        de.push(array[i]);
    return de
}

l = new r();
l.Base = function(){
};
l.Base.prototype = {
    setOptions: function(options){
        this.options = {
            duration: 500,
            onComplete: '',
            transition: l.sinoidal
        };
        r.extend(this.options, options ||
        {});
    },
    step: function(){
        var df = (new co).getTime();
        if (df >= this.options.duration + this.startTime) {
            this.now = this.to;
            clearInterval(this.timer);
            this.timer = null;
            if (this.options.onComplete) 
                setTimeout(this.options.onComplete.bind(this), 10);
        }
        else {
            var dw = (df - this.startTime) / (this.options.duration);
            this.now = this.options.transition(dw) * (this.to - this.from) + this.from
        }
        this.increase();
    },
    custom: function(from, to){
        if (this.timer != null) 
            return;
        this.from = from;
        this.to = to;
        this.startTime = (new co).getTime();
        this.timer = setInterval(this.step.bind(this), 13);
    },
    hide: function(){
        this.now = 0;
        this.increase();
    },
    clearTimer: function(){
        clearInterval(this.timer);
        this.timer = null
    }
};
l.Layout = Class.create();
l.Layout.prototype = r.extend(new l.Base(), {
    initialize: function(el, options){
        this.el = $(el);
        this.el.style.overflow = "hidden";
        this.iniWidth = this.el.offsetWidth;
        this.iniHeight = this.el.offsetHeight;
        this.setOptions(options);
    }
});
l.Height = Class.create();
r.extend(r.extend(l.Height.prototype, l.Layout.prototype), {
    increase: function(){
        if (this.now == 0) {
            this.el.style.height = "0px";
            Element.addClassName(this.el, "moofx");
            this.el.style.height = ""
        }
        else {
            this.el.style.height = this.now + "px"
        }
    },
    toggle: function(){
        if (!Element.hasClassName(this.el, "moofx")) 
            this.custom(this.el.offsetHeight, 0);
        else {
            this.el.style.height = "0px";
            Element.removeClassName(this.el, "moofx");
            this.custom(0, this.el.scrollHeight);
        }
    }
});
l.Opacity = Class.create();
l.Opacity.prototype = r.extend(new l.Base(), {
    initialize: function(el, options){
        this.el = $(el);
        this.now = 1;
        this.increase();
        this.setOptions(options);
    },
    increase: function(){
        if (this.now == 1 && (/Firefox/.test(bq))) 
            this.now = 0.9999;
        this.setOpacity(this.now);
    },
    setOpacity: function(opacity){
        this.el.style.opacity = opacity;
        if (opacity == 0) {
            Element.addClassName(this.el, "moofx");
            this.el.style.opacity = ""
        }
        else 
            if (Element.hasClassName(this.el, "moofx")) 
                Element.removeClassName(this.el, "moofx");
    },
    toggle: function(){
        if (this.now > 0 || !Element.hasClassName(this.el, "moofx")) 
            this.custom(1, 0);
        else 
            this.custom(0, 1);
    }
});
l.sinoidal = function(dx){
    return ((-dy.cos(dx * dy.PI) / 2) + 0.5);
};
r.extend(Element, {
    setSrc: function(d, src){
        d = $(d);
        d.src = src
    },
    setHref: function(d, href){
        d = $(d);
        d.href = href
    },
    setInnerHTML: function(d, content){
        d = $(d);
        d.innerHTML = content
    }
});
l.Scroll = Class.create();
l.Scroll.prototype = r.extend(new l.Base(), {
    initialize: function(options){
        this.setOptions(options);
    },
    scrollTo: function(el){
        var bw = du.cumulativeOffset($(el))[1];
        var dg = k.innerHeight || c.clientHeight;
        var dh = c.scrollHeight;
        var br = k.pageYOffset || b.body.scrollTop || c.scrollTop;
        if (bw + dg > dh) 
            this.custom(br, bw - dg + (dh - bw));
        else 
            this.custom(br, bw);
    },
    increase: function(){
        k.scrollTo(0, this.now);
    }
});
l.Combo = Class.create();
l.Combo.prototype = {
    setOptions: function(options){
        this.options = {
            opacity: ba,
            height: ba,
            width: n
        };
        r.extend(this.options, options ||
        {});
    },
    initialize: function(el, options){
        this.el = $(el);
        this.setOptions(options);
        if (this.options.opacity) {
            this.o = new l.Opacity(el, options);
            options.onComplete = null
        }
        if (this.options.height) {
            this.h = new l.Height(el, options);
            options.onComplete = null
        }
        if (this.options.width) 
            this.w = new l.Width(el, options);
    },
    toggle: function(){
        this.checkExec('toggle');
    },
    hide: function(){
        this.checkExec('hide');
    },
    clearTimer: function(){
        this.checkExec('clearTimer');
    },
    checkExec: function(bo){
        if (this.o) 
            this.o[bo]();
        if (this.h) 
            this.h[bo]();
        if (this.w) 
            this.w[bo]();
    }
};
ajax = Class.create();
ajax.prototype = {
    initialize: function(url, options){
        this.transport = this.getTransport();
        this.postBody = options.postBody || '';
        this.method = options.method || 'post';
        this.onComplete = options.onComplete || null;
        this.update = $(options.update) || null;
        this.onCoFuncparam = options.onCoFuncparam || null;
        this.request(url);
    },
    request: function(url){
        this.transport.open(this.method, url, ba);
        this.transport.onreadystatechange = this.onStateChange.bind(this);
        if (this.method == 'post') {
            this.transport.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
            if (this.transport.overrideMimeType) 
                this.transport.setRequestHeader('Connection', 'close');
        }
        this.transport.send(this.postBody);
    },
    onStateChange: function(){
        if (this.transport.readyState == 4 && this.transport.status == 200) {
            if (this.update) 
                setTimeout(function(){
                    this.update.innerHTML = this.transport.responseText
                }
.bind(this), 8);
            if (this.onComplete) 
                setTimeout(function(){
                    this.onComplete(this.transport, this.onCoFuncparam);
                }
.bind(this), 10);
            this.transport.onreadystatechange = function(){
            }
        }
    },
    getTransport: function(){
        if (k.ActiveXObject) 
            return new ActiveXObject('Microsoft.XMLHTTP');
        else 
            if (k.XMLHttpRequest) 
                return new XMLHttpRequest();
            else 
                return n
    }
};
function dz(ea, bn, eb){
    ea.insertBefore(bn, eb.nextSibling);
}

function getElementByClassID(searchClass, bx, id){
    var classElements = new bh();
    if (bx == null) 
        bx = '*';
    if (id == null) 
        var by = b.getElementsByTagName(bx);
    else 
        var by = b.getElementById(id).getElementsByTagName(bx);
    var ec = by.length;
    var ed = new RegExp("(^|\s)" + searchClass + "(\s|$)");
    for (i = 0, j = 0; i < ec; i++) {
        if (ed.test(by[i].className)) {
            classElements[j] = by[i];
            j++
        }
    }
    return classElements
}

var closeButton = '/cms/css/image/close.gif';
loadingImage = '/cms/css/image/loading.gif';
function getPageScroll(){
    var v;
    if (self.pageYOffset) {
        v = self.pageYOffset
    }
    else 
        if (c && c.scrollTop) {
            v = c.scrollTop
        }
        else 
            if (b.body) {
                v = b.body.scrollTop
            }
    arrayPageScroll = new bh('', v);
    return arrayPageScroll
}

function getPageSize(){
    var xScroll, v;
    if (k.innerHeight && k.scrollMaxY) {
        xScroll = b.body.scrollWidth;
        v = k.innerHeight + k.scrollMaxY
    }
    else 
        if (b.body.scrollHeight > b.body.offsetHeight) {
            xScroll = b.body.scrollWidth;
            v = b.body.scrollHeight
        }
        else {
            xScroll = b.body.offsetWidth;
            v = b.body.offsetHeight
        }
    var bi, bj;
    if (self.innerHeight) {
        bi = self.innerWidth;
        bj = self.innerHeight
    }
    else 
        if (c && c.clientHeight) {
            bi = c.clientWidth;
            bj = c.clientHeight
        }
        else 
            if (b.body) {
                bi = b.body.clientWidth;
                bj = b.body.clientHeight
            }
    if (v < bj) {
        di = bj
    }
    else {
        di = v
    }
    if (xScroll < bi) {
        dj = bi
    }
    else {
        dj = xScroll
    }
    arrayPageSize = new bh(dj, di, bi, bj);
    return arrayPageSize
}

function ee(ef){
    var now = new co();
    var eg = now.getTime() + ef;
    while (ba) {
        now = new co();
        if (now.getTime() > eg) 
            return
    }
}

function getKey(e){
    if (e == null) {
        dk = event.keyCode
    }
    else {
        dk = e.which
    }
    eh = String.fromCharCode(dk).toLowerCase();
    if (eh == 's') {
        hideLightbox();
    }
}

function listenKey(){
    b.onkeypress = getKey
}

function showLightbox(bz){
    var arrayPageSize = getPageSize();
    var arrayPageScroll = getPageScroll();
    var p = b.getElementsByTagName("body").item(0);
    var t = b.createElement("div");
    t.setAttribute('id', 'overlay');
    t.onclick = function(){
        hideLightbox();
        return n
    };
    t.style.position = 'absolute';
    t.style.top = '0';
    t.style.left = '0';
    t.style.zIndex = '90';
    t.style.width = '100%';
    t.style.height = (arrayPageSize[1] + 'px');
    if ($('ihateyou')) 
        t.style.top = arrayPageScroll[1] + 'px';
    p.insertBefore(t, p.firstChild);
    var bc = b.createElement("a");
    bc.setAttribute('name', 'lightboxfocus');
    bc.setAttribute('id', 'lightboxfocus');
    bc.setAttribute('href', '#');
    bc.setAttribute('title', 'Bild schliessen');
    bc.onclick = function(){
        hideLightbox();
        return n
    };
    q = b.createElement("div");
    q.setAttribute('id', 'lightbox');
    q.style.position = 'absolute';
    q.style.zIndex = '100';
    q.style.display = 'none';
    p.insertBefore(q, t.nextSibling);
    q.insertBefore(bc, q.firstChild);
    var bk = b.createElement("a");
    bk.setAttribute('href', '#');
    bk.setAttribute('title', 'Bild schliessen');
    bk.onclick = function(){
        hideLightbox();
        return n
    };
    q.appendChild(bk);
    var imgPreloadCloseButton = new ei();
    imgPreloadCloseButton.onload = function(){
        var bd = b.createElement("img");
        bd.src = closeButton;
        bd.setAttribute('id', 'closeButton');
        bd.setAttribute('alt', 'Bild schliessen');
        bd.setAttribute('title', 'Bild schliessen');
        bd.style.position = 'absolute';
        bd.style.zIndex = '200';
        bk.appendChild(bd);
        return n
    };
    imgPreloadCloseButton.src = closeButton;
    var ca = b.createElement("img");
    ca.setAttribute('id', 'lightboxImage');
    ca.setAttribute('alt', '');
    bk.appendChild(ca);
    var bs = b.createElement("div");
    bs.setAttribute('id', 'lightboxDetails');
    q.appendChild(bs);
    var bt = b.createElement("div");
    bt.setAttribute('id', 'lightboxCaption');
    bs.appendChild(bt);
    var cp = b.createElement("div");
    cp.setAttribute('id', 'keyboardMsg');
    cp.innerHTML = '<a href="#" onclick="hideLightbox(); return false;">Bild <strong>s</strong>chlie�en</a>';
    bs.appendChild(cp);
    imgPreload = new ei();
    imgPreload.onload = function(){
        ca.src = bz.href;
        var lightboxTop = arrayPageScroll[1] + ((arrayPageSize[3] - 35 - imgPreload.height) / 2);
        var lightboxLeft = ((arrayPageSize[0] - 20 - imgPreload.width) / 2);
        q.style.top = (lightboxTop < 0) ? "0px" : lightboxTop + "px";
        q.style.left = (lightboxLeft < 0) ? "0px" : lightboxLeft + "px";
        bs.style.width = imgPreload.width + 'px';
        if (bz.getAttribute('title')) {
            bt.style.display = 'block';
            bt.innerHTML = bz.getAttribute('title');
        }
        else {
            bt.style.display = 'none'
        }
        if (bp.appVersion.indexOf("MSIE") != -1) {
            ee(250);
        }
        selects = b.getElementsByTagName("select");
        for (i = 0; i != selects.length; i++) {
            selects[i].style.visibility = "hidden"
        }
        q.style.display = 'block';
        listenKey();
        bc.focus();
        return n
    };
    imgPreload.src = bz.href
}

function hideLightbox(){
    selects = b.getElementsByTagName("select");
    for (i = 0; i != selects.length; i++) {
        selects[i].style.visibility = "visible"
    }
    b.onkeypress = '';
    var anchors = $('haupt').getElementsByTagName("a");
    var lightboxImage = $('lightboxImage');
    for (var i = 0; i < anchors.length; i++) {
        var lightboxlink = anchors[i];
        if (lightboxlink.getAttribute("href") && (Element.hasClassName(lightboxlink, 'lightbox'))) {
            if ((lightboxImage.getAttribute("src").substring(lightboxImage.getAttribute("src").length - lightboxlink.getAttribute("href").length, lightboxImage.getAttribute("src").length) == lightboxlink.getAttribute("href"))) {
                lightboxlink.focus();
            }
        }
    }
    var p = b.getElementsByTagName("body").item(0);
    if ($('lightboxfocus') == p.firstChild) 
        p.removeChild(p.firstChild);
    if ($('overlay') == p.firstChild) 
        p.removeChild(p.firstChild);
    if ($('lightbox') == p.firstChild) 
        p.removeChild(p.firstChild);
}

var y, be, NavTimeID, ej;
y = "";
be = "";
dl = "";
var ajaconstart = "";
function showNavli(NavLiID){
    var NavLiID, NavLiObj, en;
    NavLiObj = $(NavLiID);
    if (y == "" || y == NavLiID) {
        Element.addClassName(NavLiObj, "over");
        $('nav').getElementsByTagName('ul')[0].setAttribute("id", "hoverfx");
        y = NavLiID;
        be = y;
        if (y == NavLiID && NavTimeID) {
            k.clearTimeout(NavTimeID);
        }
    }
    else {
        be = NavLiID
    }
}

function hideNavli(NavLiID){
    var NavLiID, NavLiObj;
    NavLiObj = $(NavLiID);
    if (y == NavLiID && be != NavLiID) {
        Element.removeClassName(NavLiObj, "over");
        $('nav').getElementsByTagName('ul')[0].setAttribute("id", "");
        y = ""
    }
    if (be != "") {
        y = "";
        showNavli(be);
    }
}

function NavTab(dm, cq){
    var dm, cq;
    if (dm == 'focus') {
        Element.addClassName(cq, 'navfocus');
    }
    else {
        Element.removeClassName(cq, 'navfocus');
    }
}

function addinfoNAV(){
    var allnav, alllis, dn, cr, eo, ajaconstart, sskipziel, focuslinks;
    allnav = $('nav');
    alllis = allnav.getElementsByTagName('li');
    for (i = 0; i < alllis.length; i++) {
        dn = alllis[i].getAttribute("id");
        cr = alllis[i].getElementsByTagName('ul')[0];
        if (cr) {
            alllis[i].onmouseover = function(){
                showNavli(this.getAttribute("id"));
            };
            alllis[i].onmouseout = function(){
                be = "";
                if (this.getAttribute("id") == y) {
                    if ($('ihateyou')) 
                        NavTimeID = k.setTimeout("hideNavli('" + this.getAttribute("id") + "')", 420);
                    else 
                        NavTimeID = k.setTimeout("hideNavli('" + this.getAttribute("id") + "')", 360);
                }
            };
            focuslinks = cr.getElementsByTagName('a');
            for (j = 0; j < focuslinks.length; j++) {
                focuslinks[j].setAttribute('rel', dn);
                focuslinks[j].onfocus = function(){
                    NavTab('focus', this.getAttribute('rel'));
                };
                focuslinks[j].onblur = function(){
                    NavTab('blur', this.getAttribute('rel'));
                }
            }
        }
    }
    Element.addClassName(allnav.getElementsByTagName('ul')[0], 'navfxenabled');
    ej = k.location.hash;
    ajaconstart = k.location.pathname + k.location.search;
    if (ajaconstart.indexOf('HJMAS') == -1) {
        if (ajaconstart.indexOf('?') == -1) 
            ajaconstart += "?HJMAS2";
        else 
            ajaconstart += "&HJMAS2"
    }
    ajaconstart = cb(ajaconstart);
    sskipziel = b.createElement("a");
    sskipziel.setAttribute("name", "skip" + ajaconstart);
    sskipziel.setAttribute("id", "skip" + ajaconstart);
    sskipziel.className = "skipziel";
    $('haupt').insertBefore(sskipziel, $('ajacon'));
    $('ajacon').setAttribute("id", "cont" + ajaconstart);
}

function cs(f){
    var f, ep;
    f = f.replace(/_S_/g, "/");
    f = f.replace(/_DH_/, ".html");
    f = f.replace(/_Q_/g, "?");
    f = f.replace(/_A_/g, "&");
    return f
}

function cb(href){
    var href, hreflaenge;
    href = href.replace(/http:\/\/nachhaltigkeitsinitiative.de/, "");
    href = href.replace(/http:\/\/www.nachhaltigkeitsinitiative.de/, "");
    href = href.replace(/\//g, "_S_");
    href = href.replace(/.html/, "_DH_");
    href = href.replace(/\?/, "_Q_");
    href = href.replace(/&/g, "_A_");
    href = href.replace(/&amp;/g, "_A_");
    return href
}

function dp(bb){
    var bb, m, bf, bu, bl, ScrollEffekt, skipele, cc, cd;
    ScrollEffekt = new l.Scroll({
        duration: 500
    });
    if (bb == null) {
        m = b.getElementsByTagName("a");
        bf = b.getElementsByClassName('listinga');
    }
    else {
        m = $(bb).getElementsByTagName("a");
        bf = getElementByClassID('listinga', 'div', bb);
    }
    bu = m.length;
    for (i = 0; i < bu; i++) {
        if ((m[i].href.indexOf('#') != -1 && m[i].href.indexOf('#skip') == -1) && ((m[i].pathname == location.pathname) || ('/' + m[i].pathname == location.pathname && m[i].search == location.search))) {
            m[i].onclick = function(){
                skipele = this.href.substr(this.href.indexOf('#') + 1);
                ScrollEffekt.scrollTo(skipele);
                $(skipele).focus();
                return n
            }
        }
        else 
            if (Element.hasClassName(m[i], 'lightbox')) {
                m[i].onclick = function(){
                    showLightbox(this);
                    return n
                }
            }
    }
    if (bf[0]) {
        var ct = bf[0].getElementsByTagName('a');
        for (i = 0; i < ct.length; i++) {
           
		    cc = bf[0].getElementsByTagName('h2')[i];
			if(cc && cc.setAttribute){
	            cc.setAttribute("className", ct[i].getAttribute('href'));
	            cc.onclick = function(){
	                gotoURL(this.getAttribute('class'));
	                return n
	            };
	            cc.style.cursor = "pointer";
			}
            if (bf[0].getElementsByTagName('img')[i]) {
                cd = bf[0].getElementsByTagName('img')[i];
                cd.setAttribute("class", ct[i].getAttribute('href'));
                cd.onclick = function(){
                    gotoURL(this.getAttribute('class'));
                    return n
                };
                cd.style.cursor = "pointer"
            }
        }
    }
}

function ajaxhijaneit(bb){
    var bb, m, bu, bl, ce, skipziel;
    if (bb == null) {
        m = b.getElementsByTagName("a");
    }
    else {
        m = $(bb).getElementsByTagName("a");
    }
    bu = m.length;
    for (i = 0; i < bu; i++) {
        bl = m[i].getAttribute("href");
        if (/\?HJMAS/.test(bl) || /\&HJMAS/.test(bl) || /\&amp;HJMAS/.test(bl)) {
            ce = "skip" + cb(bl);
            m[i].onclick = function(){
                gotoURL(this.href);
                return n
            };
            if (!$(ce)) {
                skipziel = b.createElement("a");
                skipziel.setAttribute("name", ce);
                skipziel.setAttribute("id", ce);
                skipziel.className = "skipziel";
                $('haupt').insertBefore(skipziel, $('footer'));
            }
        }
    }
}

function gotoURL(cu){
    var cu, dq;
    dq = "#skip" + cb(cu);
    if (k.XMLHttpRequest && !/Safari/.test(bq) && !$('ihateyou')) 
        k.location.href = "" + dq;
    else 
        k.location.href = cu;
    return n
}

function AdjustNavfor(f){
    var f, cf, cg, catNr, activeCat, bm, z, bg, dr, activecatlink;
    cf = b.getElementsByClassName('active');
    if (cf[0]) {
        for (i = 0; i < cf.length; i++) {
            Element.removeClassName(cf[i], 'active');
        }
    }
    cg = b.getElementsByClassName('activepath');
    if (cg[0]) {
        for (i = 0; i < cg.length; i++) {
            Element.removeClassName(cg[i], 'activepath');
        }
    }
    catNr = f.substring(f.indexOf("HJMAS") + 5);
    if (catNr != 2) {
        activeCat = $('cat' + catNr);
        Element.addClassName(activeCat, 'active');
        bm = activeCat.getElementsByTagName('a')[0].getAttribute('rel');
        if (bm != null) {
            Element.addClassName(bm, 'activepath');
        }
    }
    if (catNr == 2) {
        z = "Start";
        bg = "Initiative f�r Nachhaltige Entwicklung"
    }
    else {
        bg = $('cont' + f).getElementsByTagName("h1")[0].innerHTML;
        z = '<a href="/?HJMAS2" onclick="gotoURL(this.href);return false;">Start</a> &gt; ';
        if (bm != null) {
            dr = $(bm).getElementsByTagName('a')[0].getAttribute('href');
            z += '<a href="' + dr + '" onclick="gotoURL(this.href);return false;">' + $(bm).getElementsByTagName('a')[0].innerHTML + '</a> &gt; '
        }
        if (f.indexOf('_DH_') != -1) {
            activecatlink = activeCat.getElementsByTagName('a')[0].getAttribute('href');
            z += '<a href="' + activecatlink + '" onclick="gotoURL(this.href);return false;">' + activeCat.getElementsByTagName('a')[0].innerHTML + '</a> &gt; ' + bg
        }
        else {
            z += activeCat.getElementsByTagName('a')[0].innerHTML
        }
    }
    Element.setInnerHTML('breadcrumbfx', z);
    if (bg.indexOf('achhaltig') == -1) {
        bg += " : Initiative f�r Nachhaltige Entwicklung"
    }
    var titleobj = b.getElementsByTagName('title')[0];
    if (/Opera/.test(bq)) 
        Element.setInnerHTML(titleobj, bg);
}

function ContentAktualisieren(f){
    var f, ch, u, activecon, hideeffekt, showeffekt1, startercon, ScrollEffekt2, arrayPageScroll, cv;
    if (f == ajaconstart) {
        startercon = b.getElementsByClassName('starter')[0];
        startercon = startercon.getAttribute("id");
        u = '#skip' + startercon.substring(4);
        f = cs(u);
    }
    else {
        f = cs(f);
        u = cb(f);
    }
    u = u.substring(5);
    activecon = b.getElementsByClassName('activecon')[0];
    if (activecon.getAttribute('id') != 'cont' + u) {
        Element.removeClassName(activecon, 'activecon');
        if ($('cont' + u)) {
            hideeffekt = new l.Combo(activecon, {
                height: ba,
                opacity: ba,
                duration: 200
            });
            Element.addClassName($('cont' + u), 'activecon');
            Element.removeClassName($('cont' + u), 'moofx');
            AdjustNavfor(u);
            ScrollEffekt2 = new l.Scroll({
                duration: 99
            });
            b.getElementsByTagName('body')[0].setAttribute("id", '');
            ci();
        }
        else {
            ch = f.substring(5);
            ch = "/loadxml" + ch;
            new ajax(ch, {
                method: 'get',
                onComplete: ContentEinfuegen,
                onCoFuncparam: u
            });
            ScrollEffekt2 = new l.Scroll({
                duration: 600
            });
            hideeffekt = new l.Combo(activecon, {
                height: ba,
                opacity: ba,
                duration: 1200
            });
        }
        arrayPageScroll = getPageScroll();
        cv = $('breadcrumbfx').offsetTop;
        if (arrayPageScroll[1] > 170 && (cv > 100 && cv < 169)) 
            ScrollEffekt2.scrollTo('breadcrumbfx');
        hideeffekt.toggle();
    }
    else {
        b.getElementsByTagName('body')[0].setAttribute("id", '');
        ci();
    }
}

function ContentEinfuegen(Content, f){
    var Content, f, cw;
    cw = b.createElement("div");
    cw.setAttribute("id", 'cont' + f);
    dz($('haupt'), cw, $('skip' + f));
    Element.setInnerHTML($('cont' + f), Content.responseText);
    Element.addClassName($('cont' + f), 'activecon blank');
    AdjustNavfor(f);
    ajaxhijaneit('cont' + f);
    dp('cont' + f);
    b.getElementsByTagName('body')[0].setAttribute("id", '');
    ci();
}

function checkHJcall(){
    var aktCall, eq;
    aktCall = k.location.hash;
    if (dl != aktCall) {
        k.clearInterval(checkHJcallID);
        b.getElementsByTagName('body')[0].setAttribute("id", 'wait');
        ContentAktualisieren(aktCall);
        dl = aktCall
    }
}

function ci(){
    checkHJcallID = k.setInterval("checkHJcall()", 10);
}

function ds(){
    var akthash;
    akthash = k.location.hash;
    if (akthash.indexOf('#skip_') == 0) {
        k.location = "http://" + k.location.hostname + cs(akthash.substring(5));
    }
}

k.onload = function(){
    if (b.getElementById && b.createTextNode) {
        addinfoNAV();
        if (bp.appName.indexOf('Opera') != '-1') {
            wrapperele = getElementByClassID('wrapper', 'div');
            wrapperele[0].style.width = "93%";
            wrapperele[0].style.minWidth = "700px";
            wrapperele[0].style.maxWidth = "69em"
        }
        if (k.XMLHttpRequest && !/Safari/.test(bq) && !$('ihateyou')) {
            ajaxhijaneit();
            ci();
        }
        else 
            ds();
        dp();
    }
}
