///// Back to top functions
$(document).ready(function(){
	// fix for base href anchors
	$("a[ href ^= '#' ]").each(function() {
        var href = window.location + $(this).attr('href').replace('/#.*/i','');
        $(this).attr('href',href);
    });
	// Back to top click function
	$('#backText').click(function () {  
		$('body,html').animate({  
		scrollTop: 0 });
	});
	$('#backArrow').click(function () {  
		$('body,html').animate({  
		scrollTop: 0 });
	});
});
