
function openProfil (url){
	winProfil = window.open(url,'winProfil','width=600,height=400,resize=no,scrollbars=no');
	winProfil.focus();
};

$(function() {
	$('.date-pick').datePicker({startDate:'01/01/1996'});
});


$(document).ready(function(){
	
	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	if(jQuery.support.boxModel ){
	$(".sidenav").hover(function() {
		$(this).find("div").stop()
		.animate({marginLeft:"130", opacity:1}, "fast")
		.css("display","block")
	}, function() {
		$(this).find("div").stop()
		.animate({marginLeft:"300",opacity: 0}, "fast")
	});
	} else{	
	$(".sidenav").hover(function() {
		$(this).find("div").stop()
		.animate({marginLeft:"0", opacity:1}, "fast")
		.css("display","block")	
	}, function() {
		$(this).find("div").stop()
		.animate({marginLeft:"300",opacity: 0}, "fast")	
	});			
	}

$.localScroll.hash({
		 // Could be a selector or a jQuery object too.
		queue:true,
		duration:500
	});
$.localScroll({
		 // could be a selector or a jQuery object too.
		queue:true,
		duration:500,
		hash:true,
		offset: {top:-100} 
	});
});



