this.megadrop = function(){

	/* CONFIG */
	/* END CONFIG */

	$(".megadrop").hover(function(e){

		if($(this).attr('class')=='megadrop'){
		var pos = $(this).offset();
		this.t = this.title;
		this.title = "";
		if(this.rel && this.rel!=""){
		$("#body_top").append("<div id='megadroptool'></div>");
		$.ajax({
			    		url: '/konfigurator/tooltip.php',
			    		type: 'POST',
			    		async: true,
			    		data:{
			    			frage:this.rel
			    			},
			    		dataType: 'html',
			    		error: function(){
			     		   alert('Fehler beim Laden ...');
			    		},
			    		success: function(data){
			    		 inhalttool=data;
			    		},
			    		complete: function(){
			    			$('#megadroptool').html(inhalttool);
			    		}//end complete function
		 			});//end ajax
		 $("#megadroptool")
			.css("top",pos.top + "px")
			.css("left",pos.left + "px")
			.css("padding","12px 24px")
			.css({'background':'#ffffff', 'color':'#999999','border':'1px solid #a4a4a4'})
			.fadeIn("fast");
		}
		else if(this.t && this.t!=""){

		$("#body_top").append("<div id='megadroptool'>"+ this.t +"</div>");

		$("#megadroptool")
			.css("top",pos.top + "px")
			.css("left",pos.left + "px")
			.fadeIn("fast");
		}
		else{
		//return false;
		}

	}//end if class == megadrop

    },

	function(){
		$("#megadroptool").mousedown(function(){
			$("#megadroptool").remove();
		});
    });

};

