// Template functions

// These are always called from the template
// If an individual page needs to use them the page should define
//   the function without the leading underscore (eg. page_loaded()).
function _page_loaded(){
	window.onscroll=resize_background;
	window.onresize=resize_background;
	resize_background();
	if (typeof(page_loaded)!="undefined"){
		page_loaded();
	}
}
function _got_focus(){
	if (typeof(got_focus)!="undefined"){
		got_focus();
	}
}

// template function to move the local time to the right side of the page
// this is called from the _page_loaded function above
function resize_background(){
	obj = new galGetObj('common-bkgd');
	obj.style.width=document.body.scrollWidth;
}

