function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

startList = function() {
	if (document.all&&document.getElementById) {
		cssdropdownRoot = document.getElementById("navi");
		for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
			node = cssdropdownRoot.childNodes[x];
			if (node.nodeName=="li") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

if (window.attachEvent){
	window.attachEvent("onload", startList)}
else {
	window.onload=startList;
}


/* Bildunterschirften */
$(document).ready(function(){

		if($('img.pic_l').attr('rel')) {
			$('img.pic_r').wrap(function() {
				//if ($(this).attr('rel')) return '<span class="pic_r" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /><br />'+ $(this).attr('rel') +'</span>';
				//else return '<span class="pic_r" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /></span>';
				return '<span class="pic_r" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /><br />'+ $(this).attr('rel') +'</span>';
			}).remove();
		}
		
		if($('img.pic_l').attr('rel')) {
			$('img.pic_l').wrap(function() {
				//if ($(this).attr('rel')) return '<span class="pic_l" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /><br />'+ $(this).attr('rel') +'</span>';
				//else return '<span class="pic_l" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /></span>';
				return '<span class="pic_l" style="width:'+ $(this).width() +'px;font-weight:normal;"><img src="'+ $(this).attr('src') +'" border="0" alt="" /><br />'+ $(this).attr('rel') +'</span>';
			}).remove();
		}
});
