
function include_js(filename) {
    var html_doc = document.getElementsByTagName('head').item(0);
    var js = document.createElement('script');
    js.setAttribute('language', 'JavaScript1.2');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', filename);
    html_doc.appendChild(js);
    return false;
}

function include_css(filename) {
    var html_doc = document.getElementsByTagName('head').item(0);
    var css = document.createElement('link');
    css.setAttribute('rel', 'stylesheet' );
    css.setAttribute('type', 'text/css');
    css.setAttribute('href', filename);
    css.setAttribute('media', 'screen');
    html_doc.appendChild(css);
    return false;
}


$(document).ready(function() {
/*	if($("a.thickbox").is("a")) {
		include_js("zusaetze/thickbox.js");
		include_css("zusaetze/thickbox.css");
	}
*/
	$("a.menue").mouseover(function() {
		$(this).addClass("aktuell").siblings().removeClass("aktuell");
		$("ul.submenue").removeClass("aktuell").filter("#"+$(this).attr("name")).addClass("aktuell");
	});

	$("ul.submenue li").hover(function() {
		//	$(this).attr("src",$(this).attr("src").replace(/menue/,"menuehover"));
		$(this).addClass("hover");
	},
	function() {
		//	$(this).attr("src",$(this).attr("src").replace(/menuehover/,"menue"));
		$(this).removeClass("hover");
	});


	$("img").ifixpng("graphiken/pixel.gif");

/*$.jqem.bind(function() {
	zoom_ratio=$.jqem.current()/$.jqem.previous();
	$("img").each( function(){
		img_ratio=$(this).width()/$(this).height();
		$(this).width($(this).width()*zoom_ratio);
		$(this).height($(this).width()/img_ratio);
	} );

});*/


});

