$(document).ready(function(){


	$(".hoveritem").hover(function(){				
		var tip = $(this).attr('id');		
		$(this).find('.tip:first').show();		
		$(this).find('a:first').addClass('active');		
		
		var data = 'eID=ajax_menus&action=showContent&tip=' + tip;			  		
	  $.ajax({
			url: "index.php",			
			type: "GET",
			data: data,
			success: function(resp){								
				
				
				$('#tip'+tip).html(resp);				
						
			}
		});
	},function () {
		$(this).find('a:first').removeClass('active');		
		$(this).find('.tip:first').hide();
	});
		
	$(".hoverlink").click(function(){	
		return false;
	});
		

	/*
	$(".hoverlink").tooltip({
		bodyHandler: function() {
			return $($(this).attr("href")).html();
		},
		showURL: false
	});
	*/
	/*
	$(".submenu-level2-item").simpletip({ 
		content: 'My Simpletip',
		position: 'relative',
		fixed:true
	});
	*/
	/*
	$('.submenu-level2-item').qtip({
	   content: 'Short hand notation'
	});
	*/
	/*
	$('.typelink').live('click',function(){			
					
		$('.typecontainer').animate({opacity: 0.2},100);
		var typeid = $(this).attr('rel');	  	  				
		var data = 'eID=promedis_ajax&action=switchType&typeid=' + typeid;			  
	  $.ajax({
			url: "index.php",			
			type: "GET",
			data: data,
			success: function(resp) {								
				$('.typecontainer').html(resp);
				$('.typecontainer').animate({opacity: 1.0},100);				
			}
		});
	});
	*/
});
