startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("me1");
		if(navRoot) for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

}
window.onload=startList;


sfHover = function() {
	var sfEls = document.getElementById("me1");
	if(sfEls) sfEls = sfEls.getElementsByTagName("LI");
	if(sfEls) for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


// &ouml;fnet eine Seite in einem neuen Fenster bzw. Tab:


function init() {
    
    var as = document.getElementsByTagName('a');
    for(i = 0; i < as.length; i++) {
        if(as[i].getAttribute('rel') && as[i].getAttribute('rel').indexOf('extern') != -1)
            as[i].target = '_blank';
    }
    
}


window.onload = init;



    // lightbox
$(document).ready(function() {     	
    if($('a[rel^="lightbox"]').length > 0) {
        $('a[rel^="lightbox"]').colorbox({ maxWidth: 1000 });
    }
    if($('a[rel^="inlineLightbox"]').length > 0) {
        $('a[rel^="inlineLightbox"]').each(function() {
            var $t = $(this);
            $t.colorbox({ inline:true, href: $t.attr('href') });
        }); 
    }
}); 	
