function activatePlaceholders() {
	var detect = navigator.userAgent.toLowerCase();
	if (detect.indexOf("safari") > 0) return false;
	var inputs = document.getElementsByTagName("input");
	for (var i=0;i<inputs.length;i++) {
	  if (inputs[i].getAttribute("type") == "text") {
		  if (inputs[i].getAttribute("placeholder") && inputs[i].getAttribute("placeholder").length > 0 && inputs[i].value == "") {
			  inputs[i].value = inputs[i].getAttribute("placeholder");
			  inputs[i].onfocus = function() {
				  if (this.value == this.getAttribute("placeholder")) {
					  this.value = "";
				  }
				  return false;
			  }
			  inputs[i].onblur = function() {
				  if (this.value.length < 1) {
					  this.value = this.getAttribute("placeholder");
				  }
			  }
		  }
	  }
	}
}


$(document).ready(function() {
	jQuery.fn.autoscroll = function() {
	    $('html,body').animate({scrollTop: this.offset().top}, 500);
	}
	
	$(".dropdown").css('left', $(".navigation-links").width()+30);
	$("a.show-more").bind('click', function(e) {
		e.preventDefault();
		$('ul.items').slideToggle();
	});
	
	$(".dropdown").mouseleave(function(){
		//$('ul.items').slideUp();
    });
});
