$(function(){

	$(".btn").hover(function(){
		$(this).stop().fadeTo(0, 0.7);
	},function(){
		$(this).stop().fadeTo(0, 1.0);
	});
	
	
	$('a[href*=#]').click(function() {
		//if (location.pathname.replace(/^€\//,'') == this.pathname.replace(/^€\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 0;
				var scldurat = 600;
				var targetOffset = target.offset().top - sclpos;
				$('html,body').animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		//}
	});
	
	$(".selecter a").stop().unbind().fadeTo(0, 0.7);
	
});

$(window).load(function (){
});

function popup( url, w, h, windowName, r, st, s, l, m, t) {
  try {
    win.close();
  } catch(e) {    
  }
  win = window.open(url, windowName, 'height=' +h+ ', width=' +w+ ', resizable=' +r+ ', status= ' +st+ ', scrollbars=' +s+ ', location=' +l+ ', menubar=' +m+  ', toolbar= ' +t);
  win.focus();    
}
