//plain rollovers
function INITimages() {
	if(!document.images) { return false }
	swop_on = new Array(arguments.length);
	swop_off = new Array(arguments.length);
	for (var i=0; i<arguments.length; i++) {
		swop_on[arguments[i]] = new Image();
		swop_off[arguments[i]] = new Image();
		swop_on[arguments[i]].src = IMAGEDIR+arguments[i]+'_on.'+ IMAGETYPE;
		swop_off[arguments[i]].src = IMAGEDIR+arguments[i]+'_off.'+IMAGETYPE;
	}
	return true
}
function rollover(imgName) {
	if (document.images) {
		document[imgName].src = swop_on[imgName].src;
	}
}
function rollout(imgName) {
	if (document.images) {
		document[imgName].src = swop_off[imgName].src;
	}
}




//open pop-up window
function OpenWindow(URL, width, height) {
	// set window size
	var agent=navigator.userAgent.toLowerCase();
	if(agent.indexOf("msie")!=-1) {
		width += 16;
		height += 32;
	} else {
		width += 10;
		height += 20;
	}
	var dimensions = 'width=' + width + ',height=' + height;
	var winProperties = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes';
	remote = window.open(URL,'imageWin', winProperties +','+ dimensions);

//	create opener reference if browser doesn't do it
	if (remote.opener == null) {
		remote.opener = self;
	}
//	bring remote to top if supported
	if(agent.indexOf("msie 3") == -1) {
		remote.focus();
	}
}


