headerMain = new Image(1024,150)
headerMain.src = "/site/spider/images/spidyhome.png"
headerMatrix = new Image(1024,150)
headerMatrix.src = "/site/spider/images/spidymx.png"
headerTreeview = new Image(1024,150)
headerTreeview.src = "/site/spider/images/spidytree.png"
headerViews = new Image(1024,150)
headerViews.src = "/site/spider/images/spidystandardviews.png"
headerImages = new Image(1024,150)
headerImages.src = "/site/spider/images/spidyimage.png"
headerAbout = new Image(1024,150)
headerAbout.src = "/site/spider/images/spidyabout.png"
headerGlossary = new Image(1024,150)
headerGlossary.src = "/site/spider/images/spidyontology.png"
headerRss = new Image(1024,150)
headerRss.src = "/site/spider/images/spidyrss.png"

function rollhome() {
document.headroll.src = headerMain.src; return true; 
}
function rollmx() {
document.headroll.src = headerMatrix.src; return true;
}
function rolltree() {
document.headroll.src = headerTreeview.src; return true;
}
function rollstandardviews() {
document.headroll.src = headerViews.src; return true; 
}
function rollimage() {
document.headroll.src = headerImages.src; return true;
}
function rollontology() {
document.headroll.src = headerGlossary.src; return true;
}
function rollabout() {
document.headroll.src = headerAbout.src; return true; 
}
function rollrss() {
document.headroll.src = headerRss.src; return true; 
}
function currentRoll() {
document.headroll.src = headerRss.src; return true; 
}

function ratingOn(id, number) {
	for (i=1; i<= number; i++) {
		theid = 'bulb' + id + '_' + i;
		document.getElementById(theid).src = '/site/spider/images/lightbulb-lit.png';
	}	
}

function ratingOff(id) {
	for (i=5; i>=1; i--) {
		theid = 'bulb' + id + '_' + i;
		document.getElementById(theid).src = '/site/spider/images/lightbulb-dim.png';
	}
}