$().ready(function() {
	
	$('.corner').corner();
	
	// Email
	$('.input_email').each(function() {
	
		$(this)
		.val( $(this).attr('title') )			
		.focus(function(){					
			$(this).val( $(this).val() == $(this).attr('title') ? '' : $(this).val() );
		})
		.blur(function(){		
			$(this).val( $(this).val() == '' ? $(this).attr('title') : $(this).val() );			
		});
	});
	
	// Menu
	$("#menu li").each(function(){
		
		$(this).hover(
			function(){			
				$(this).addClass("hover");				
				/*$(this).children("ul").slideDown("fast");
				$(this).prev().children("ul").fadeOut("fast");
				$(this).siblings().children("ul").fadeOut("fast");*/
			},
			function(){				
				$(this).removeClass("hover");				
			}
		);
	});
	
	$.fn.media.defaults.flvPlayer 	= jq_media_path + 'jwplayer/player.swf';
	$.fn.media.defaults.mp3Player 	= jq_media_path + 'jwplayer/player.swf';
	$.fn.media.defaults.bgColor		= '#000000';
	$.fn.media.defaults.players.flash.types += ',mp4';
	$.fn.media.mp4 = $.fn.media.flv;
			
	$('.video').media({ 
		autoplay: true,	
		attrs:     { allowfullscreen:  'true' , id: 'video'},
		flashvars:{
			controlbar:'over',
			allowfullscreen: 'true',
			caption: false,
			type:'video'			
		}
	});
		
	
	/*
	$('.sifr').sifr({
		font: 'plugins/sifr/sketch_block.swf',
		version: 3,
		build: 'beta2'
	});
	*/
	
	/*
	$('.jcarousel').addClass('jcarousel-skin-ouat').jcarousel({
		// Configuration goes here
		
		wrap:"both"
	});
	*/
		
});
