$(document).ready(function()
{

	/* bbcode img thumb */
	
	$(".bbimg").each(function()
	{
		if($(this).width()>500)
		{
			$(this).width(500);
		}
	});
	
	
	/* bbcode img thumb */
	

	$(".mMenu").hover
	(
		function () 
		{
			//$(this).slideDown("fast");
			$(this).css("display", "inline");
			$("#" + this.id + "S").css("display", "inline");
		}
		, 
		function () 
		{
			//$(this).slideUp("fast");
			$(this).css("display", "none");
			$("#" + this.id + "S").css("display", "none");
		}
	);

	$("#navbar-content li").hover
	(
		function () 
		{
			//alert('in');
			$("#" + this.id + "_mMenu").css("top", $(this).offset().top+24);
			$("#" + this.id + "_mMenu").css("left", $(this).offset().left);
			
			$("#" + this.id + "_mMenuS").css("top", $(this).offset().top+24+4);
			$("#" + this.id + "_mMenuS").css("left", $(this).offset().left+4);
			
			$("#" + this.id + "_mMenu").css("display", "inline");
			$("#" + this.id + "_mMenuS").css("display", "inline");
			
			//$("#" + this.id + "_mMenu").slideDown("fast");
		}
		, 
		function () 
		{
			//alert('out');
			$("#" + this.id + "_mMenu").css("display", "none");
			$("#" + this.id + "_mMenuS").css("display", "none");
			//$("#" + this.id + "_mMenu").slideUp("fast");
		}
	);
	
	$(".mMenu li").hover
	(
		function () 
		{
			$(this).addClass("hover");
		}
		, 
		function() 
		{
			$(this).removeClass("hover");
		}
	);

	
	
}
);

