
//---------------------- 
function isValidEmail (email){
 return (/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*\.)+[a-z]{2,4}$/i).test(email);
}


//подписи картинок
	$(function(){ 
		$('img.captify').captify({});
	});
	
jQuery(document).ready(function() {
 
	
	$('.showform').click(function() {
		var id=$(this).attr('id');	 
		$('.showform').each(function(index){
			var ids=$(this).attr('id');
			if(ids!=id){
				$('#'+ids+'_form').hide();
				$('#'+id+'_form:parent').attr("class",''); 
				$(this).parent("li").attr("class",'');
			}
			 else {
				$('#'+id+'_form').show(500);
				$(this).parent("li").attr("class",'activ'); 
			 	
			}
			 
		});
	 }); 
});
	

  

$(function() {
        $('a.thickbox').lightBox();  
		$('a.doingsfoto').lightBox(); 
		$('a.newsfoto').lightBox(); 
		
    });
 

$(document).ready(function() {
	$("ul#long li").hover(function() {  //Hover over event on list item
	 $(this).css({ 'background' : '#1376c9'}); //Add background color + image on hovered list item
	 $(this).find("span").show(); //alert($(this).find("span")); //Show the subnav
	} , function() { //on hover out...
	 $(this).css({ 'background' : 'none'}); //Ditch the background
	 $(this).find("span").hide(); //Hide the subnav
	});

}); 


 
