(function(E){
		  var 
		  B={},K,M,O,
		  J=E.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),
		  A=false;arrowimage="";
		  E.tooltip={
			  blocked:false,defaults:{
				  delay:200,showURL:true,extraClass:"",arrowIMG:"",top:15,left:15,id:"tooltip"}
				  ,block:function(){
					  E.tooltip.blocked=!E.tooltip.blocked}};
					  E.fn.extend(
								  {tooltip:function(P){P=E.extend({},E.tooltip.defaults,P);H(P);
								  return this.each
								  (function(){
											E.data(this,"tooltip-settings",P);
											this.tooltipText=this.title;
											E(this).removeAttr("title");
											this.alt=""}).hover(L,F).click(F)},fixPNG:J?
								  function(){
									  return this.each(function(){var P=E(this).css("backgroundImage");
																					if(P.match(/^url\(["']?(.*\.png)["']?\)$/i)){P=RegExp.$1;E(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+P+"')"}).each(function(){var Q=E(this).css("position");
																																																																															   if(Q!="absolute"&&Q!="relative"){E(this).css("position","relative")}})}})}:function(){return this},unfixPNG:J?
									  function(){
										  return this.each(function(){E(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:
										  function(){
											  return this.each(function(){E(this)[E(this).html()?"show":"hide"]()})},url:
											  function(){
												  return this.attr("href")||this.attr("src")}});
					  function H(P){
						  if(B.parent){return }B.parent=E('<div id="'+P.id+'"><div class="tooltiparrow"></div><div class="tooltipbg"><h3></h3><div class="body"></div><div class="url"></div><div class="prueba"></div></div></div>').appendTo(document.body).hide();i
						  f(E.fn.bgiframe){B.parent.bgiframe()}B.box=E("div.tooltipbg",B.parent);
						  B.title=E("h3",B.parent);
						  B.body=E("div.body",B.parent)
						  ;B.url=E("div.url",B.parent);
						  B.arrow=E("div.tooltiparrow",B.parent);
						  B.prueba=E("div.prueba",B.parent);
						  B.btnArrow=false}function C(P){return E.data(P,"tooltip-settings")}
						  function G(P){
							  if(C(this).delay){O=setTimeout(N,C(this).delay)}else{N()}arrowimage=!!C(this).arrowIMG;A=!!C(this).track;E(document.body).bind("mousemove",D);D(P)}function L(){if(E.tooltip.blocked||this==K||(!this.tooltipText&&!C(this).bodyHandler)){return }K=this;M=this.tooltipText;M=M.replace(/\[i\]/gi,"<em>");M=M.replace(/\[\/i\]/gi,"</em>");M=M.replace(/\[b\]/gi,"<strong>");M=M.replace(/\[\/b\]/gi,"</strong>");M=M.replace(/\[u\]/gi,"<u>");M=M.replace(/\[\/u\]/gi,"</u>");M="<nobr>"+M+"</nobr>";if(C(this).bodyHandler){B.title.hide();var S=C(this).bodyHandler.call(this);if(S.nodeType||S.jquery){B.body.empty().append(S)}else{B.body.html(S)}B.body.show()}else{if(C(this).showBody){var R=M.split(C(this).showBody);B.title.html(R.shift()).show();B.body.empty();for(var Q=0,P;P=R[Q];Q++){if(Q>0){B.body.append("<br/>")}B.body.append(P)}B.body.hideWhenEmpty()}else{B.title.html(M).show();B.body.hide()}}if(C(this).arrowIMG){B.arrow.html('<img src="'+C(this).arrowIMG+'" border="0" />').show();B.arrow.css("position","relative");B.arrow.css("margin-bottom","-1px");B.arrowimg=E("div.tooltiparrow img",B.parent);B.arrowimg.css("margin-left",C(this).arrowIMGleft+"px")}else{B.arrow.hide()}if(C(this).showURL&&E(this).url()){B.url.html(E(this).url().replace("http://","")).show()}else{B.url.hide()}B.parent.addClass(C(this).extraClass);if(C(this).fixPNG){B.parent.fixPNG()}G.apply(this,arguments)}function N(){O=null;B.parent.show();D()}function D(R){if(E.tooltip.blocked){return }if(!A&&B.parent.is(":visible")){E(document.body).unbind("mousemove",D)}if(K==null){E(document.body).unbind("mousemove",D);return }B.parent.removeClass("viewport-right").removeClass("viewport-bottom");var T=B.parent[0].offsetLeft;var S=B.parent[0].offsetTop;if(R){T=R.pageX+C(K).left;S=R.pageY+C(K).top;B.parent.css({left:T+"px",top:S+"px"})}var P=I(),Q=B.parent[0];if(P.y+P.cy<Q.offsetTop+Q.offsetHeight){S-=Q.offsetHeight+5+C(K).top;B.parent.css({top:S+"px"}).addClass("viewport-bottom")}if(P.x+P.cx<Q.offsetLeft+Q.offsetWidth){T-=Q.offsetWidth+-15+C(K).left;B.parent.css({left:T+"px"}).addClass("viewport-right");if(C(K).arrowIMG){B.arrowimg=E("div.tooltiparrow img",B.parent);B.arrowimg.css("margin-left",B.parent.width()-C(K).arrowIMGleft+"px")}}else{if(C(K).arrowIMG){B.arrowimg=E("div.tooltiparrow img",B.parent);B.arrowimg.css("margin-left",C(K).arrowIMGleft+"px")}}}function I(){return{x:E(window).scrollLeft(),y:E(window).scrollTop(),cx:E(window).width(),cy:E(window).height()}}function F(P){if(E.tooltip.blocked){return }if(O){clearTimeout(O)}K=null;B.parent.hide().removeClass(C(this).extraClass);if(C(this).fixPNG){B.parent.unfixPNG()}}E.fn.Tooltip=E.fn.tooltip})(jQuery);
