/* Checks if there is an anchor on URL. If found scrolls page to anchor after delay  */

function timedScroll() {
	var z = document.URL;
	var x = z.lastIndexOf("#");	
	var anchorUrl = z.slice(x+1);	
	anchor = document.getElementById(anchorUrl);
	var offset = $(anchor).offset();
	if (offset!=null){
		window.scroll(0, offset.top); 
	}
}

$(document).ready(function(){	
	if (window.location.href.match("#")) {
		var t=setTimeout("timedScroll()",1);
	}	
});

