
//navigation
$(function() {
	
	$('#page-wrap #navbar li a').css('left', '-10px');
	
	$('#page-wrap #navbar li a').hover(function() {
		$(this).stop().animate({ "left" : '0'}, 150);   
	}, function() {
		$(this).stop().animate({ "left" : '-10'}, 300);       
	});
	
});

//about galleries - show/hide
$(function(){
	
	$("p#p-om")
		.hide();
		
	$("div#topbar h3")
		.append("- <a href='#' class='visa'>visa/d&ouml;lj</a>");
		
	$(".visa")
		.click(function(){
			$(this)
				.parent()
				.parent()
				.find("p#p-om")
				.slideToggle();
			return false;
		});
});
	
/**
* Original Written by Rob Schmitt, The Web Developer's Blog
* http://webdeveloper.beforeseven.com/
*/

$(function() {
  $("p small").css("display", "none");
  $("input.default-value, textarea.default-value").css("color", "#999");
  var default_values = new Array();
  $("input.default-value, textarea.default-value").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = "#fff";
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = "#999";
        this.value = default_values[this.id];
      }
    });
  });
});

// LIGHTBOX TARGETING

$(function() {
	$('.p-gallery-box a').lightBox();
});
