
$(document).ready(function() {

	
	ddsmoothmenu.init({
		 mainmenuid: "smoothmenu2", //menu DIV id
		 orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
		 classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
		 //customtheme: ["#1c5a80", "#18374a"],
		 contentsource: "markup", //"markup" or ["container_id", "path_to_menu_file"]
		 transition: {overtime:100, outtime:100}, //duration of slide in/ out animation, in milliseconds
		//shadow: {enable:true, offsetx:5, offsety:5}, //enable shadow?
		//showhidedelay: {showdelay: 50, hidedelay: 100} //set delay in milliseconds before sub menus appear and disappear, respectively
		});
			
			
			
			ddsmoothmenu.init({
				 mainmenuid: "marken", //menu DIV id
				 orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
				 classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
				 //customtheme: ["#1c5a80", "#18374a"],
				 contentsource: "markup", //"markup" or ["container_id", "path_to_menu_file"]
				 transition: {overtime:100, outtime:100}, //duration of slide in/ out animation, in milliseconds
				//shadow: {enable:true, offsetx:5, offsety:5}, //enable shadow?
				//showhidedelay: {showdelay: 50, hidedelay: 100} //set delay in milliseconds before sub menus appear and disappear, respectively
				});

 
    /*
        EXAMPLE TWO
    */
   /* $mainNav2.append("<li id='magic-line-two'></li>");
    
    var $magicLineTwo = $("#magic-line-two");
    
    $magicLineTwo
        .width($(".current_page_item_two").width())
        .height($mainNav2.height())
        .css("left", $(".current_page_item_two a").position().left)
        .data("origLeft", $(".current_page_item_two a").position().left)
        .data("origWidth", $magicLineTwo.width())
        .data("origColor", $(".current_page_item_two a").attr("rel"))
        .data("origText", $(".current_page_item_two a").attr("alt"));
                
    $("#example-two li").find("a").hover(function() {
        $el = $(this);
        leftPos = $el.position().left;
        newWidth = $el.parent().width();
        $magicLineTwo.stop().animate({
            left: leftPos,
            width: newWidth,
            backgroundColor: $el.attr("rel")
        })
		changeInfo($el.attr("alt"));
    }, function() {
        $magicLineTwo.stop().animate({
            left: $magicLineTwo.data("origLeft"),
            width: $magicLineTwo.data("origWidth"),
            backgroundColor: $magicLineTwo.data("origColor")
        }).changeInfo($magicLineTwo.data("origText")); 
        
    });*/
	

	$('#searchfield').bubbletip($('#tip1_focusblur'), {
				deltaDirection: 'right',
				bindShow: 'focus',
				bindHide: 'blur'
			});
	
	if ( $("#hsearchfield").length > 0 ) {
		
	
	$('#hsearchfield').bubbletip($('#tip2_focusblur'), {
		deltaDirection: 'left',
		bindShow: 'focus',
		bindHide: 'blur'
	});

	
		
	
	}
	
	

	
	if ( $("#anmeldebox2").length > 0 ) {
		$('#hname').bubbletip($('#tip_hlogin'), {
			deltaDirection: 'left',
			bindShow: 'focus',
			bindHide: 'blur'
		});
	
	
		$('#hpass').bubbletip($('#tip_hloginpw'), {
			deltaDirection: 'left',
			bindShow: 'focus',
			bindHide: 'blur'
		});
	}
	

	$("#prodnav").tabs();
	
	
	   $('ul#topmenu').lavaLamp();
		
	
	
	
});

	
	
	


  