/* PORNSTAR */
pornstar = function() {

	return {


		name:'pornstar',


		tooltip: function(tip_, target_) {

			var tip = $('#'+tip_);
			var target = $('#'+target_);
			
			
			var o = target.offset();
			var lw = target.width();
			var lh = target.height();
			
			
			var old_html = ($('#'+tip_+'_html').html()) ? $('#'+tip_+'_html').html() : tip.html();
			var tip_html = '';
			tip_html += '<div class="tooltip_top"><span></span></div>';
			tip_html += ' <div class="tooltip_bottom">';
			tip_html += '<span id="'+tip_+'_html">';	  
			tip_html += old_html;
			tip_html += '</span>';
			tip_html += '</div>';
			tip_html += '<div class="tooltip_c"></div>';
			
			
			tip.html(tip_html);
			tip.css('padding-bottom', lh);
			
			
			$('#'+tip_+'_html').css('cursor', 'default');
			$('#'+tip_+'_html').css('cursor', 'default');


			var w = tip.width();
			var h = tip.height();


			tip.css('top', o.top - h);
			tip.css('left', o.left - (w / 2) + (lw / 2) - 70);
					
					
			tip.fadeIn();
			tip.draggable();
			

			$('#'+tip_+'_html').mouseover(function(e) {	
				tip.draggable("destroy");
			});
			
			
			$('#'+tip_+'_html').mouseleave(function(e) {
				tip.draggable();
			});
			
			
			tip.mouseleave(function(e) {						
				tip.fadeOut();
			});
	
		}
		

	}
	
}();


$(document).ready(function() {
	// do stuff when DOM is ready
});