/* animated scroll ********************************************************************************************************/
var animateScrollTo = function animateScrollTo(y,duration) {
  var reg = /[0-9]+/g;
  y += '';
  if (y.match(reg) && y.match(reg).length > 0)
	  jQuery('html, body').animate({scrollTop:y}, duration);
  else
	  jQuery('html, body').animate({scrollTop:jQuery('#'+y).offset().top}, duration);
}
