/*
function ahref(params) {

	var url=site_url + params[0]['url'];
	$('body').append('<form method="post" id="form_menu" action="' + url + '"></form>');
	for(var x=1;x<=params.length;x++) for(var i in params[x]) $('#form_menu').append('<input type="hidden" name="' + i + '" value="' + params[x][i] + '" />');
	$('#form_menu').submit();
	$('#form_menu').remove();
	return false;
}
*/
function mainmenu(){
$(" .nav ul ").css({display: "none"}); // Opera Fix
$(" .nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});

}


/*
 * Display a simple toolkit on mouse over using the title attribute.
 *
 * target_items: the jquery selector of the items to capture on mouseover.
 * name: the css class name to use for the tooltip.
 *
 */
function simple_tooltip(target_items, name){
 $(target_items).each(function(i){
		$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");
		var my_tooltip = $("#"+name+i);

		$(this).removeAttr("title").mouseover(function(){
				my_tooltip.css({opacity:0.8, display:"none"}).fadeIn();
		}).mousemove(function(kmouse){
				my_tooltip.css({left:kmouse.pageX, top:kmouse.pageY+15});
		}).mouseout(function(){
				my_tooltip.fadeOut();
		});
	});
}


