$(document).ready(function()
{
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane p.menu_head").click(function()
    {
		$(this).css({backgroundColor:"#cccccc", fontWeight : "bold"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$(this).siblings("p").css({backgroundColor:"#ffffff", color : "#000000", "font-weight" : "normal"});
	});
	
	$("#firstpane p.menu_head_prod").click(function()
    {
		$(this).css({backgroundColor:"#f7ce4e", fontWeight : "bold"}).next("div.menu_body_prod").slideToggle(300).siblings("div.menu_body_prod").slideUp("slow");
       	$(this).siblings("p").css({backgroundColor:"#ffffff"});
	});
	
	$("#firstpane p.menu_head_prod1").click(function()
    {
		$(this).next("div.menu_body_prod1").slideToggle(300).siblings("div.menu_body_prod1").slideUp("slow");
	});
});

selMenuProd = function(id){
	var cod = "#firstpane p.menu_head_prod:eq("+id+")";
	$(document).ready(function()
	{
		$(cod).next("div.menu_body_prod").slideToggle(300).siblings("div.menu_body_prod");
	});
}

selSubMenuProd = function(id){
	var cod = "#firstpane p.menu_head_prod1:eq("+id+")";
	$(document).ready(function()
	{
		$(cod).next("div.menu_body_prod1").slideToggle(300).siblings("div.menu_body_prod1");
	});
}

selMenuPremio = function(id){
	var cod = "#firstpane p.menu_head:eq("+id+")";

	$(document).ready(function()
	{
		$(cod).next("div.menu_body").slideToggle(300).siblings("div.menu_body");
		$(cod).css({backgroundColor:"#cccccc", "font-weight" : "bold"}).next("div.menu_body a.img").css({"font-weight" : "bold"});
	});
}

limpaForm = function(form){

	//alert($(form)[1].name);
	$('#'+form).each(function(){
	        this.reset();
	});
	return false;

}
