$(document).ready(function(){
	
   /*
 $.fn.wait = function(time, type) {
        time = time || 0;
        type = type || "fx";
        return this.queue(type, function() {
            var self = this;
            setTimeout(function() {
                $(self).dequeue();
            }, time);
        });
    };
*/
	
    
	
	/* Mazzini */
	$('#mazzini').hide();	
	if ($('body').width() > 1200){
		$('#mazzini').fadeIn();	
	}

	$(window).resize(function() {
		if ($('body').width() > 1200){
			$('#mazzini').fadeIn();	
		} else{
			$('#mazzini').fadeOut();	
		}
	});


	/* Menus front */
	$('#nice-menu-1 .menu-path-front').children('a').attr('href','#');
	$('#nice-menu-1 .menu-path-front').children('a').css('cursor','default');


	/* Edit coop tabs */
	$('.page-users-cooptest ul.tabs.primary').hide();

	/* VIDEO FULL SCREEN */
	//$('.emvideo embed').attr('allowfullscreen','true').hide().show();
	//$('.emvideo embed').css('z-index','0');
	
	if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
		$('.emvideo embed').attr('allowfullscreen', 'true')
		$('.emvideo embed').fadeOut(0).fadeIn(0);
		
		//$('.emvideo embed').attr('allowfullscreen','true').css('display','none').css('display','block');
		
		//alert("f:"+$('.emvideo embed').attr('allowfullscreen'));
		//$('.emvideo embed').attr('allowfullscreen','true');
		//alert("f:" + $('.emvideo embed').attr('allowfullscreen'));
	}
}); 
