function rollover () {
	if ( this . className != 'active' )
	this . src = this . src . replace ( '/off/' , '/on/' ) ;
}

function rollout () {
	if ( this . className != 'active' )
	this . src = this . src . replace ( '/on/' , '/off/' ) ;
}

function applyRollovers ( id ) {
	obj = document . getElementById ( id ) ;
	images = obj . getElementsByTagName ( 'img' ) ;
	for ( i = 0 ; i < images . length ; i ++ ) {
		images [ i ] . onmouseover = rollover ;
		images [ i ] . onmouseout = rollout ;
	}
}

function init () {
	applyRollovers ( 'top' ) ;
	applyRollovers ( 'header' ) ;
}

function showFullSize ( i ) {
	var item = document . getElementById ( 'item-full-' + i ) ;
	if ( item ) {
		item . style . display = 'block' ;
	}
}

function hideFullSize ( i ) {
	var item = document . getElementById ( 'item-full-' + i ) ;
	if ( item ) {
		item . style . display = 'none' ;
	}
}

window . onload = init ;