
MMI = {
	//página inicial
	index:function(){
		$('.video-item a').live('mouseover', function () {
            var img = $(this).prev();
            img.stop();
            img.fadeTo('fast', 0.8);
        }).live('mouseout', function () {
            var img = $(this).prev();
            img.stop();
            img.fadeTo('fast', 0);
        });
		
	},
	//tabs para página de vídeos
	video:function(){
		$("#tabs").tabs();
		$('.video-item a').live('mouseover', function () {
            var img = $(this).prev();
            img.stop();
            img.fadeTo('fast', 0.8);
        }).live('mouseout', function () {
            var img = $(this).prev();
            img.stop();
            img.fadeTo('fast', 0);
        });
	},
	//testemunhos da página inicial
	contentSlide:function(){
		$('.textemunhos-box-center').cycle({ 
			fx:'scrollRight',
			delay: -2000,
			next:   '#next', 
			prev:   '#prev'  
		});
	},
	shopping:function(){
		$('input#sb_form_q').addClass('mask');
			$('input#sb_form_q').focus(function() {
				value=$(this).val();
				if(value == "Busca..."){
				$(this).attr("value","");
				$(this).removeClass('mask');
				}
			});
			$('input#sb_form_q').blur(function() {
				if($(this).val()=="") {
					$(this).val(value);
					$(this).addClass('mask');
				}
			});		
		
	},
	produto:function(){
		
		$(".ampliar-produto").colorbox({current:"Imagem {current} de {total}"});
		$('.produto-zoom').jqzoom({
                zoomWidth: 300,
                zoomHeight: 350,
				preloadText:'Zoom',
				title: false,
				lens:false
            });
		
		
	}
	
};




$(function(){
	$("ul.dropdown li").dropdown();$(".dir").addClass("ui-corner-tl ui-corner-tr");$('input[type="submit"], .botao-ui').addClass("ui-state-default ui-corner-all").hover(function(){$(this).addClass("ui-state-hover")},function(){$(this).removeClass("ui-state-hover")});
	if ( $.browser.msie && $.browser.version == 9 ) {
   	Cufon.set('engine', 'canvas');	}
	Cufon.replace('h1') ('h2') ('h3') ('h4') ('h5') ('h6') ('ul.navigation',{hover:true});
});


$.fn.dropdown=function(){$(this).hover(function(){$(this).addClass("hover");$("> .dir",this).addClass("open");$("ul:first",this).css("visibility","visible")},function(){$(this).removeClass("hover");$(".open",this).removeClass("open");$("ul:first",this).css("visibility","hidden")})};function PostaFacebook(a){window.open("http://facebook.com/share.php?u="+a,"FaceBook","resizable=yes,width=500,height=400, top=320, left=320");return false} function PostaTwitter(a){window.open("http://twitter.com/home?status=Not\u00edcia @mmibrasil: "+a);return false};

