function tooltip(obj) {
   if(!obj.length) return ;

   jQuery("body").append('<div id="tooltip" />');
   var tooltip = jQuery("#tooltip");
   var title;
 
  obj.hover(function() {
       title = jQuery(this).attr("title") ?
               jQuery(this).attr("title"):
               "Kein Titel";
   
       jQuery(this).attr("title","");
       tooltip.html(title);
       tooltip.stop(true,true).delay(50).fadeIn("slow").dequeue();
      // tooltip.stop(true,true).delay(50).fadeIn("slow"):
   
      }, function() {
          jQuery(this).attr("title",title);   
          tooltip.stop(true,true).fadeOut("slow");  
         
      }).mousemove(function(e) {
         tooltip.animate({
           top:e.pageY + 10,
           left:e.pageX +10
           
         },1);  
    
  });
 
}


function FlyOutMenu(obj) {

    if (!obj.length) return;
    jQuery(obj).find("ul.level2").css({display:"none"});
    jQuery(obj).hover(function(){
        jQuery(this).find("ul").stop(true,true).slideDown(100);
        jQuery(this).find("a").first().addClass("active");
    },function(){
        jQuery(this).find("ul").stop(true,true).slideUp(100);
        jQuery(this).find("a").first().removeClass("active");
    });

}

function loadDefaultJS() {
	
    jQuery(document).ready(function(){

        tooltip(jQuery(".box303 > A"));
        FlyOutMenu(jQuery("UL.menu LI"));




      
    });

}



