/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {    
    this.xOffset = -8; // x distance from mouse
    this.yOffset = 23; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
			
			//alert(this.getAttribute("nohref"));
			//alert(this.getAttribute("title"));
			//alert(this.getAttribute("alt"));
			
            //-this.temp = this.getAttribute("nohref");
			
			//wybrane_mini('podkarpackie',this);
			
			this.t = this.getAttribute("nohref");
			
				if (this.t=="undefined" || this.t=="false" || this.t==false) this.t = this.nohref;
            //this.temp = this.title;
			
			this.alt = '';
 			this.title = '';
				
				
				
			this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            
            $('body').append( '<div id="vtip" style="display:block;"><img id="vtipArrow" />' + this.t + '</div>' );
                        
            $('#vtip #vtipArrow').attr("src", 'images/vtip_arrow.png');
            $('#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow", function() {
					$('#vtipinner').fadeIn("slow");
				});
            
        },
        function() {
			//this.setAttribute("nohref","xx");
            //alert(this.getAttribute("nohref"));

			//this.alt = ;
			//this.setAttribute("nohref",this.temp);
			//this.title = this.t;
			$("#vtip").fadeOut("slow").remove();
			
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                        
            $("#vtip").css("top", this.top+"px").css("left", this.left+"px");
        	
		}
    );            
    
};

jQuery(document).ready(function($){vtip();}) 
