$(document).ready(function() {
	$('a[target!="_blank"]').each(function() {
		$(this).bind('click', scroll_to_pagetop);
	});
	$('form[target!="_blank"]').each(function() {
		$(this).bind('submit', scroll_to_pagetop);
	});
});

function scroll_to_pagetop() {
	try
	{
		window.parent.scroll(0,1);
	}catch(e)
	{}

}

