// JavaScript Document

this.bluesignature = function(){	
	/* CONFIG */
		
		xOffset = 10;
		yOffset = 20;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	
	$("a.bluesys").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='bluesys'><img src='/templates/mf/img/design/bluesys.gif' alt='bluesystem logo anim' />"+ c +"</p>");								 
		$("#bluesys")
			.css("position", "absolute")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.css("border", "1px solid #fff")
			.fadeIn("slow");						
    },
	function(){
		this.title = this.t;	
		$("#bluesys").remove();
    });	
	$("a.bluesys").mousemove(function(e){
		$("#bluesys")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function(){
	bluesignature();
});  
