/* 
	zooma -object
	programmed by Richard A 2005
 */
var zooma = new Object();
zooma.menuMouseOver = function(index) {
	var mnuimg = document.getElementById('mnuimg'+index);
	mnuimg.className = 'active';
}
zooma.menuMouseOut = function(index) {
	if(document.getElementById('mnulink'+index).className=='active') return;
	var mnuimg = document.getElementById('mnuimg'+index);
	mnuimg.className = 'inactive';
}

zooma.swapActive = function(id,active) {
	var imgtemp = document.getElementById(id);
	imgtemp.className = (active)?'active':'inactive';
}

zooma.listMouseOver = function(listid, itemid) {
	var listimg = document.getElementById('list'+listid+'img'+itemid);
	listimg.className = 'active';
}
zooma.listMouseOut = function(listid, itemid) {
	if(document.getElementById('list'+listid+'link'+itemid).className=='active') return;
	var listimg = document.getElementById('list'+listid+'img'+itemid);
	listimg.className = 'inactive';
}
zooma.openMediaWindow = function(strUrl, strTarget, w, h, strScroll) {
	strTarget = (strTarget==null || (strTarget==''))?'MediaWindow':strTarget;
	w = (w==null || (w==''))?'800':w;
	h = (h==null || (h==''))?'550':h;
	strScroll = (strScroll==null || (strScroll==''))?'true':strScroll;
	var prop = 'width='+w+' ,height='+h+',status=false,scrollbars='+strScroll+',resizable=yes,top=7,left=7';
	window.open(strUrl, strTarget, prop);
}
