//ceetip
/*
 * CeeTip 1.0 jQuery Plugin - Minimized
 * Requires jQuery 1.3.2
 * Code hosted on GitHub (http://github.com/catcubed/ceetip) Please visit there for version history information
 * By Colin Fahrion (http://www.catcubed.com)
 * based on vtip by vertigo project http://www.vertigo-project.com/projects/vtip 
  * Modified into a jQuery plugin and modified to work with CeeBox (http://github.com/catcubed/ceetip)
 * Copyright (c) 2009 Colin Fahrion
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

(function(b){b.fn.ceetip=function(a){a=b.extend({},b.fn.ceetip.defaultSettings,a);return this.each(function(){$this=b(this);$this.unbind("hover").hover(function(c){this.t=this.title;this.title="";var d=c.pageY+a.yOffset;c=c.pageX+a.xOffset;b("body").append('<p id="ceetip"><img id="ceetipArrow" />'+this.t+"</p>");b("p#ceetip #ceetipArrow").attr("src",a.arrow).css({position:"absolute",top:"-10px",left:"5px"});b("p#ceetip").css({top:d+"px",left:c+"px",display:"none",position:"absolute",padding:"10px",
fontSize:a.fontSize,color:a.color,backgroundColor:a.backgroundColor,border:a.border,"-moz-border-radius":a.borderRadius,"-webkit-border-radius":a.borderRadius,"border-radius":a.borderRadius,zIndex:9999}).fadeIn("slow")},function(){this.title=this.t;b("p#ceetip").fadeOut("slow").remove()}).mousemove(function(c){var d=c.pageY+a.yOffset;c=c.pageX+a.xOffset;b("p#ceetip").css({top:d+"px",left:c+"px"})})})};b.fn.ceetip.defaultSettings={xOffset:-12,yOffset:30,border:"1px solid #a6c9e2",borderRadius:"5px",
backgroundColor:"#fff",color:"#000",fontSize:"0.8em",arrow:"/images/ceetip_arrow.png"}})(jQuery);
