function init_page() {
	var pagewidth = 600;
	var contentwidth = 600;
	var addpos = (pagewidth - contentwidth) / 2;
}

// move element left
function move_left(id) {
	var lft = -10;
	theobjs[id].objMoveRelative(lft,0);
}

// move element right
function move_right(id) {
	var lft = theobjs[id].objGetLeft();
	lft += 10;
	theobjs[id].objSetLeft(lft);

}

// move element up
function move_up(id) {
	var top = theobjs[id].objGetTop();
	top+= -10;
	theobjs[id].objSetTop(top);
}

// move element down
function move_down(id) {
	var top = theobjs[id].objGetTop();
	top += 10;
	var lft = theobjs[id].objGetLeft();
	theobjs[id].objMoveAbsolute(lft,top);
}
          
// hide element  
	function hide(id) {
	theobjs[id].objHide();
}

// show element
	function show(id) {
	theobjs[id].objShow();
}

function get_visibility(id) {
	alert(theobjs[id].objGetVisibility());
}
                 
function timeouthide(id, time) {
	hidethis = "hide('" + id + "');";
	timeoutID = setTimeout(hidethis, time);
}
                
var timeoutID = 0;
                
function openwin(winStats) {
	mediaWin = window.open("","utlol_pop",winStats);
	mediaWin.focus();
}

function openwin1(winStats)
        {
                window.open("", "utlol_pop", winStats);
                return false;
        }

function mainUrl(newUrl) {
	window.open(newUrl,"utlol_main");
	self.close();
}

// mousingover
function mausOver(imgName)
{
imgOver = eval(imgName + "Over.src");
document[imgName].src = imgOver;
}

function mausOut(imgName)
{
img = eval(imgName + ".src");
document[imgName].src = img;
}

about_homeOver = new Image();
find_homeOver = new Image();
services_homeOver = new Image();
dls_homeOver = new Image();
fab_homeOver = new Image();
na_homeOver = new Image();
libnews_homeOver = new Image();
current_homeOver = new Image();
exhibits_homeOver = new Image();

about_home = new Image();
find_home = new Image();
services_home = new Image();
dls_home = new Image();
fab_home = new Image();
na_home = new Image();
libnews_home = new Image();
current_home = new Image();
exhibits_home = new Image();

about_home.src = "../graphics/about.gif";
find_home.src = "../graphics/finding.gif";
services_home.src = "../graphics/services.gif";
dls_home.src = "../graphics/dls.gif";
fab_home.src = "../graphics/fundabook.gif";
na_home.src = "../graphics/news.gif";
current_home.src = "../graphics/current.gif";
exhibits_home.src = "../graphics/exhibits.gif";

about_homeOver.src = "../graphics/about2.gif";
find_homeOver.src = "../graphics/finding2.gif";
services_homeOver.src = "../graphics/services2.gif";
dls_homeOver.src = "../graphics/dls2.gif";
fab_homeOver.src = "../graphics/fundabook2.gif";
na_homeOver.src = "../graphics/news2.gif";
current_homeOver.src = "../graphics/current2.gif";
exhibits_homeOver.src = "../graphics/exhibits2.gif";
