$(document).ready(function(){
						   
	$(".lang_middle_ext").hide();
	
	
	$(".lang_right, .lang_middle").click(function(){
		
		if($(".lang_middle_ext").css('display') == 'none')
		{
			$("#lang_crt_flag").fadeTo('slow', 0.33);
		}
		else
		{
			$("#lang_crt_flag").fadeTo('slow', 1);	
		}						
		
		$(".lang_middle_ext").animate({width:'toggle'},300); 	
	});
	
	$(".expandable_items ul").not(".expandable_items ul li ul").hide();
	
	$("a.expandable").toggle(
		function(){
			//$(".expandable_items ul").not(".expandable_items ul li ul").hide();
			$(this).addClass('expandable_active');
			$(this).next('ul').show();								 
		},
		function(){
			$(this).next('ul').hide();	
			$(this).removeClass('expandable_active');
		}
	);
	
	$("#full_name, #email, #message").focus(function(){
		var v = $(this).val();
		if( 
		   v == "Nume si prenume" ||
		   v == "E-mail" ||
		   v == "Mesaj" ||
		   v == "Full Name" ||
		   v == "Message"
		  )
		{
			$(this).val("");
		}
	});
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function(){}
	});
	
});