var currentIdx = null;
var mnList     = new Array();

function img(unsel, over, sel){
	this.unsel = unsel;
	this.over = over;
	this.sel = sel;
}
function mouseOver(idx){	
	image = document["mn" + idx];
	if (image==null) return;
	if (idx!=currentIdx) image.src = "images/" + mnList[idx].over;
}
function mouseOut(idx){	
	if (idx!=currentIdx) document["mn" + idx].src = "images/" + mnList[idx].unsel;
}
function selectMenuItem(idx){
	if (idx==-1 || idx==0){
		currentIdx = null
	}
	else{
		currentIdx = idx;
		image = document["mn" + idx];
		if (image==null) return;
		gif = mnList[idx].sel;
		if (typeof(gif)=='undefined') gif = mnList[idx].over;
		image.src = "images/" + gif;
	}
}
function hideLayer(lName){
document.getElementById(lName).style.display = 'none';
}
function toggleLayer(lName){
	theDiv = document.getElementById(lName);
	if (theDiv.style.display.toUpperCase() != 'BLOCK')
		theDiv.style.display = 'block';
	else
		theDiv.style.display = 'none';
}
function insertFlashFile(file, width, height, oName, flVars){
	var nameAttr = null;
	if (oName==null || oName=="") {
		nameAttr = "";}
	else{
		nameAttr = "name=\"" + oName + "\" id=\"" + oName + "\"";
	}
	htm ='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH=' + width + ' HEIGHT=' + height + ' ' + nameAttr + '>';
	htm+='<PARAM NAME=movie VALUE="' + file + '">';
	htm+='<PARAM NAME=menu VALUE=false>';
	htm+='<PARAM NAME=quality VALUE=high>';
	htm+='<param name="wmode" value="transparent">';
	if (flVars!=null) htm+='<PARAM NAME=FlashVars VALUE=' + flVars + '>';
	htm+='<EMBED ' + nameAttr + ' src="' + file + '" swliveconnect="true" quality=high MENU=false WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>';
	htm+='</OBJECT>';
	document.write(htm);
}
