/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/this.vtip = function () {
    this.xOffset = -10;
    this.yOffset = 20;
    $(".vtip").unbind().hover(function (a) {
        this.t = this.title;
        this.title = ''; 
		
		var tArray=this.t.split(";  "); 
		if(tArray.length < 3) {
			var tShow = this.t.replace(';','');
		}
		else {
			var tShow='';
			var tKiekis=0;
			for ( var i in tArray ){
				if(tArray[i]) { tKiekis++; tShow += "<b>"+tKiekis+" &raquo;</b>  "+tArray[i]+"<br/>"; }
			} 
		}
        this.top = (a.pageY + yOffset);
        this.left = (a.pageX + xOffset);
        $("body").append('<p id="vtip"><img id="vtipArrow" />' + tShow + "</p>");
        $("p#vtip #vtipArrow").attr("src", "http://www.vakarones.lt/img/vtip_arrow.png");
        $("p#vtip").css("top", this.top + "px").css("left", this.left + "px").fadeIn("slow");
        return false;
    },
    function () {
        this.title = this.t;
        $("p#vtip").fadeOut("slow").remove()
    }).mousemove(function (a) {
        this.top = (a.pageY + yOffset);
        this.left = (a.pageX + xOffset);
        $("p#vtip").css("top", this.top + "px").css("left", this.left + "px")
    })
};
jQuery(document).ready(function (a) {
    vtip()
});
