/****JQUERY MAP ROLLOVER****/
/**Author: Greg Crossfield**/
/**Date: Sept. 22, 2011**/


/*!
 * jQuery Codabubble Plugin
 * http://github.com/elidupuis
 * Copyright 2010, Eli Dupuis
 * Version: 0.4
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://creativecommons.org/licenses/GPL/2.0/) licenses.
 * Requires: jQuery v1.4.2 or later
 * Based heavily on Remy Sharp's snippet at http://jqueryfordesigners.com/coda-popup-bubbles/
*/
(function(a){var e={init:function(c){return this.each(function(){var e=a(this),b=a.extend({},a.fn.codabubble.defaults,c);if(!e.data("codabubble")){var f=null,h=!1,i=!1,l=a(b.triggerClass,this),g=a(b.popupClass,this).css("opacity",0),k,j={},d;k=typeof b.offset==="function"?b.offset.call(this,g,e)+"px":b.offset+"px";switch(b.direction){case "left":d="left";break;case "right":d="right";break;case "down":d="bottom";break;default:d="top"}j[d]=k;j.display="block";a([l.get(0),g.get(0)]).bind({"mouseover.codabubble":function(){f&&clearTimeout(f);if(!h&&!i){h=!0;var a={opacity:1};a[d]="-="+b.distance+"px";g.css(j).animate(a,b.time,"swing",function(){h=!1;i=!0})}},"mouseout.codabubble":function(){f&&clearTimeout(f);f=setTimeout(function(){f=null;var a={opacity:0};a[d]="-="+b.distance+"px";g.animate(a,b.time,"swing",function(){i=!1;g.hide()})},b.hideDelay)}});a(this).data("codabubble",{target:e,opts:b})}})},destroy:function(){window.console&&window.console.log("destroy called.")}};a.fn.codabubble=function(c){if(e[c])return e[c].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof c==="object"||!c)return e.init.apply(this,arguments);else a.error("Method "+c+" does not exist on jQuery.codabubble")};a.fn.codabubble.defaults={distance:10,offset:0,time:250,hideDelay:500,direction:"up",triggerClass:".trigger",popupClass:".popup"};a.fn.codabubble.ver=function(){return"jquery.codabubble ver. 0.4"}})(jQuery);

$(function(){

$('#mapPoint li').codabubble({
        hideDelay: 250,
        popupClass: '.hidePoint'
      });

});


