

//porffolio box texts
	jQuery(document).ready(function(){
	
		jQuery("a[rel^='prettyPhoto']").prettyPhoto({overlay_gallery: false});

		
		
		jQuery('.portfolio_con').hover(function(){
			jQuery(".portfolio_text", this).stop().animate({left:'0px',opacity:0.8},{queue:false,duration:160});
		}, function() {
			jQuery(".portfolio_text", this).stop().animate({left:'-360px'},{queue:false,duration:160});
		});
		
		jQuery('.portfolio_con1').hover(function(){
			jQuery(".portfolio_text", this).stop().animate({left:'0px',opacity:0.8},{queue:false,duration:160});
		}, function() {
			jQuery(".portfolio_text", this).stop().animate({left:'-360px'},{queue:false,duration:160});
		});
		
		
	});

//photo gallery - photo desc.
	jQuery(document).ready(function(){
		jQuery('.photo_gallery_con').hover(function(){
			jQuery(".photo_gallery_text", this).stop().animate({left:'0px',opacity:0.8},{queue:false,duration:160});
		}, function() {
			jQuery(".photo_gallery_text", this).stop().animate({left:'-360px'},{queue:false,duration:160});
		});
		
		
	});


	//validate contact form
    jQuery(document).ready(function() {
		
      jQuery("#validate_form").validate({
        rules: {
          rt_name: "required",//name field validate
          rt_email: {// compound rule
          required: true,
          email: true
        },
        rt_message: {
          required: true
        }
        },
        messages: {
			rt_message: "Please enter a comment.",
			rt_name:"Please enter your name.",
			required: "This field is required.",
			remote: "Please fix this field.",
			rt_email: "Please enter a valid email address.",
			url: "Please enter a valid URL.",
			date: "Please enter a valid date.",
			dateISO: "Please enter a valid date (ISO).",
			dateDE: "Bitte geben Sie ein gültiges Datum ein.",
			number: "Please enter a valid number.",
			numberDE: "Bitte geben Sie eine Nummer ein.",
			digits: "Please enter only digits",
			creditcard: "Please enter a valid credit card number.",
			equalTo: "Please enter the same value again.",
			accept: "Please enter a value with a valid extension.",
			maxlength: jQuery.format("Please enter no more than {0} characters."),
			minlength: jQuery.format("Please enter at least {0} characters."),
			rangelength: jQuery.format("Please enter a value between {0} and {1} characters long."),
			range: jQuery.format("Please enter a value between {0} and {1}."),
			max: jQuery.format("Please enter a value less than or equal to {0}."),
			min: jQuery.format("Please enter a value greater than or equal to {0}.")
		 }
      });
    });



	//add text shadow
   jQuery(document).ready(function() {
	   jQuery(".sliding_text_text .left_side h1").css({'text-shadow' : '1px 1px #C2C7C7'});
    });
