 $(document).ready(function() {
                
                $("#email").focus(function(){
                    if($("#email").val() == "Your e-mail"){
                        $("#email").val('');
                    }                
                });
                
                $("#email").blur(function(){
                    if($("#email").val() == ""){
                        $("#email").val("Your e-mail");
                    }                
                });
                
                $(".image_big div").mouseover(function(){
                        $(this).fadeTo('200', 0);                       
                   
                })
                
                $(".image_big div").mouseout(function(){
                        $(this).fadeTo('200', 1);                       
                   
                })
                
        });
        
function check_newsletter(){
    var email = $('#email').val();
    if(email == '' || validate_email(email)== 'false' ||  email == 'Your e-mail'){
        $("#error").html('Please provide email');
         return;   
    }
    $('#frm_news').submit();    
}


function validate_email(email) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   if(reg.test(email) == false) {
      return false;
   }
   return true
}


function doSubmit()
{
    var nume = $("#nume").val(); 
    var telefon = $("#telefon").val();
    var email = $("#email2").val();
    
     if ( nume == '' )
     {            
        alert('Please insert your Name');
        $("#nume").focus();
        return;                    
    }
    if ( email == '' || validate_email(email)== 'false' )
    {
         alert('Please insert a valid Email Address');
         $("#email2").focus();
         return;                    
    }
    document.getElementById('formularValid').value = 1;
    document.getElementById('contact').submit();
}

function show_div(div_to_show){
    $('#'+div_to_show).show('slow');
}
function hide_div(div_to_hide){
    $('#'+div_to_hide).hide('slow');
}

