// JavaScript Document
var j = jQuery.noConflict();

j(document).ready(function() {
	
	/* submenu erste ebene */
	if(j('.MenuBarHorizontal>li>ul')){
		j('.MenuBarHorizontal>li>ul').hide();
		}

	j('.MenuBarHorizontal>li').hover(
		function() {
			j(this).find('>ul')
				.stop()
				.height('auto')
				.css("width", "160px")
				.animate({height: 'toggle'},500);
			},
		function() {
			j(this).find('>ul').stop(true, true).hide();
			}
		)


	/* submenu zweite ebene */
	if(j('.MenuBarHorizontal>li>ul>li>ul')){
		j('.MenuBarHorizontal>li>ul>li>ul').hide();
		}

	j('.MenuBarHorizontal>li>ul>li').hover(
		function() {
			j(this).find('>ul')
				.stop()
				.height('auto')
				.css("width", "290px")
				.css("margin", "-32px 0px 0px 155px")
				.animate({width: 290, height: 'toggle'},500);
			},
		function() {
			j(this).find('>ul').stop(true, true).hide();
			}
		)

	// SLIDE container
	j('.content_right_slide_container').cycle({
		fx: 'fade',
		speed: 1000,
    	timeout: 5000,
		pause: 0,
		random: 1
		});
	});


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