$(document).ready(function(){
			$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square',slideshow:2000});
			
				$('a#portf').click(function(){
					$('html,body').animate({scrollTop: $('#scrollDown').offset().top}, 1000);

				});
				$('a#kontakt').click(function(){
					$('html,body').animate({scrollTop: $('#foot').offset().top}, 1000);

				});
				$('a#up').click(function(){
					$('html,body').animate({scrollTop: $('#top').offset().top}, 1000);

				});
});


var active_color = '#000';

var inactive_color = '#cccccc';


$(document).ready(function() {

  $("input.default-value, textarea.default-value").css("color", inactive_color);

  var default_values = new Array();

  $("input.default-value, textarea.default-value").focus(function() {
	
      this.style.color = active_color;
	  
    if (!default_values[this.id]) {

      default_values[this.id] = this.value;

    }

    if (this.value == default_values[this.id]) {

      this.value = '';

      this.style.color = active_color;

    }

    $(this).blur(function() {
      if (this.value == '') {

        this.style.color = '#cccccc';

        this.value = default_values[this.id];

      }

        this.style.color = '#cccccc';
    });

  });

});