/*
 * jQuery Nomodaco
 */
var nomodaco = {
	init : function () {
		nomodaco.tooltip();
	},
	tooltip : function() {
		$('#tooltip_box').hide();
		$('.tooltip').live('mouseover',function(e){
			var that = $(this);
			var imghtml = that.html();
			var show = that.attr('title');
			var desc = that.attr('rel');
			
			that.addClass('imghover');
			$('.prodTitle').html('<h3>'+show+'</h3>');
			$('.prodText').html('<p>'+desc+'</p>');
			
			/*
			$('#tooltip_box').append().html(alt).show().css({
				position: "fixed",
				top: e.clientY+10,
				left: e.clientX+10
			});
			*/
		});
		
		$('.tooltip').live('mouseout',function(){
			var that = $(this);
			that.removeClass('imghover');
			//$('#tooltip_box').append().html('').hide();
			
			$('.prodTitle').html('');
			$('.prodText').html('');
		});
	}
}
$(document).ready(function() {
	nomodaco.init();
});
