
	$(document).ready(function(){
	$('#m3').hover(		function(){		$('#m3',this).stop(true,true).slideDown('fast');	},		function(){ 	$('#m3',this).slideUp('fast');		}	);
 	$('#m3').css( {backgroundPosition: "0px -50px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -50px)"}, 250);	}	);			
	$('#m4').hover(		function(){		$('#m4',this).stop(true,true).slideDown('fast');	},		function(){ 	$('#m4',this).slideUp('fast');		}	);
 	$('#m4').css( {backgroundPosition: "0px -50px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -50px)"}, 250);	}	);
	/*$('#m5').hover(		function(){		$('#m5',this).stop(true,true).slideDown('fast');	},		function(){ 	$('#m5',this).slideUp('fast');		}	);
 	$('#m5').css( {backgroundPosition: "0px -50px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -50px)"}, 250);	}	);*/
	
	

 $('#m2').hover(		function(){		$('#m2',this).stop(true,true).slideDown('fast'); 	$('#m2').css( {height: '250px'});		$('#sm2',this).stop(true,true).slideDown('slow');	},		function(){ 	$('#m2',this).slideUp('fast');	$('#sm2').css( {display: 'none'});	$('#m2').css( {height: '46px'});$('#sm2',this).stop(true,true).slideUp('fast');		}	);
 	$('#m2').css( {backgroundPosition: "0px -500px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -500px)"}, 250);	}	); 

	$('#m5').hover(		function(){		$('#m5',this).stop(true,true).slideDown('fast'); 	$('#m5').css( {height: '150px'});		$('#smb',this).stop(true,true).slideDown('slow');	},		function(){ 	$('#m5',this).slideUp('fast');	$('#smb').css( {display: 'none'});	$('#m5').css( {height: '46px'});$('#smb',this).stop(true,true).slideUp('fast');		}	);
 	$('#m5').css( {backgroundPosition: "0px -500px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -500px)"}, 250);	}	);


var i;
for (i=1; i<12; i++){
$('#mv'+i).hover(		function(){		$('#mv'+i,this).stop(true,true).slideDown('fast');	},		function(){ 	$('#mv'+i,this).slideUp('fast');		}	);

 	$('#mv'+i).css( {backgroundPosition: "-200px 0px"} ).hover( function(){	
	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 250);	},	function(){
	$(this).stop().animate({backgroundPosition: "(-200px 0px)"}, 250);	}	);
	}	
	for (i=2; i<6; i++){
$('#sm'+i+'a').hover(		function(){		$('#sm'+i+'a',this).stop(true,true).slideDown('fast');	},		function(){ 	$('#sm'+i+'a',this).slideUp('fast');		}	);
 	$('#sm'+i+'a').css( {backgroundPosition: "0px -50px"} ).hover( function(){	$(this).stop().animate({backgroundPosition: "(0px 0px)"}, 150);	},	function(){	$(this).stop().animate({backgroundPosition: "(0px -50px)"}, 250);	}	);
	}
	
});



function mOn(elm){ 

document.getElementById(elm).style.backgroundImage = 'url(img/bck_menu_on2.jpg)';
document.getElementById(elm).style.backgroundRepeat = 'repeat-x';
document.getElementById(elm).style.height=200;
document.getElementById('s' + elm).style.display='block';

	}
function mOff(elm){ document.getElementById(elm).style.backgroundImage = '';
document.getElementById(elm).style.height='46px';
document.getElementById('s' + elm).style.display='none';
}

function mOver(elm){
document.getElementById(elm).style.backgroundImage = 'url(img/bck_m_on.jpg)';
document.getElementById(elm).style.backgroundRepeat = 'repeat-x';
}

function mOut(elm){
document.getElementById(elm).style.backgroundImage = '';
}

function msOver(elm){ 

document.getElementById(elm).style.backgroundImage = 'url(img/m_roll.jpg)';
document.getElementById(elm).style.backgroundRepeat = 'no-repeat';
	}
function msOut(elm){ document.getElementById(elm).style.backgroundImage = '';

}
/*
function mvOver(elm){ 

document.getElementById(elm).style.backgroundImage = 'url(img/bck_m_v_on.jpg)';
document.getElementById(elm).style.backgroundRepeat = 'no-repeat';
document.getElementById(elm).style.backgroundPosition = 'bottom center';
	}
function mvOut(elm){ 

document.getElementById(elm).style.backgroundImage = 'url(img/separador_v.jpg)';
document.getElementById(elm).style.backgroundRepeat = 'no-repeat';
document.getElementById(elm).style.backgroundPosition = 'bottom center';

}*/

function mostrarMenu(elm){

if(document.getElementById(elm).style.display=='block'){
document.getElementById(elm).style.display = 'none';
} else {
document.getElementById(elm).style.display = 'block';
}

}

function redim(hg){ 

var hgg = hg + "px";
document.getElementById('web').style.height = hgg; }
