/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {    
    this.xOffset = 0; // x distance from mouse
    this.yOffset = 32; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
//            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
			var o=$(this).offset();
            this.top = (o.top + yOffset);
			this.left = (o.left + xOffset);
			this.top1 = this.top+10;
            
            $('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                        
            $('p#vtip #vtipArrow').attr("src", '/konfigurator/i/vtip_arrow.png');
            $('p#vtip')
			.css("top", this.top+"px")
			.css("left", this.left+"px")
//			.css("opacity", 0)
//			.animate( {opacity: 1}, 500);
//			.animate( { top:this.top} , 500 );
//						opacity: 1} , 500 );
			.fadeIn("slow");
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("slow").remove();
        }
    );/*.mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );*/
    
};

