
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=250;
_subOffsetTop=2;
_subOffsetLeft=-2;

function mm_removeItem(menuName, itemName)
{
  menuName = menuName.toLowerCase();
  for (var i=0; i<_mi.length; i++)
    if (_mi[i][1].replace(/\&nbsp\;/ig,' ') == itemName && _m[_mi[i][0]][1] == menuName) break;
  if (i == _mi.length) return;

  var idx = 0;
  newItemArr = new Array();
  for (var j=0; j<_m[_mi[i][0]][0].length; j++)
    if (_m[_mi[i][0]][0][j] != i)
      newItemArr[idx++] = _m[_mi[i][0]][0][j];
  _m[_mi[i][0]][0] = newItemArr;

  BDMenu(_mi[i][0]);
}

//horizontalMenuDelay="1";
forgetClickValue="true";

///////////////OTHER STYLE/////////////////////
with(menuStyle=new mm_style()){
bordercolor="#000088";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize=14;
fontstyle="normal";
headerbgcolor="#AFD1B5";
headercolor="#000099";
offbgcolor="transparent";
offcolor="#000000";
onbgcolor="#FEFAD2";
oncolor="#000000";
outfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=3)";
overfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=3)";
padding=3;
pagebgcolor="#e5ecf9";
pagecolor="#000066";
separatorcolor="#000088";
styleid=1;
headerborder=1;
imagepadding=3;
onborder="1px solid #000088";
separatoralign="right";
separatorpadding=1;
separatorwidth="85%";
valign="middle";
menubgcolor="#e5ecf9";
keepalive=1;
openonclick=1;
}

with(main=new menuname("Alphabetical")){
screenposition="center";
alwaysvisible=1;
margin=2; //MARGIN AROUND ENTIRE MENU
orientation="horizontal";
style=menuStyle;
top=220; //DISTANCE FROM TOP
divides=1;//mainMenuRows; //NUMBER OF ROWS
//itemwidth=80;
aI("showmenu=A;text=A;");
aI("showmenu=B;text=B;");
aI("showmenu=C;text=C;");
aI("showmenu=D;text=D;");
aI("showmenu=E;text=E;");
aI("showmenu=F;text=F;");
aI("showmenu=G;text=G;");
aI("showmenu=H;text=H;");
aI("showmenu=I;text=I;");
aI("showmenu=J;text=J;");
aI("showmenu=K;text=K;");
aI("showmenu=L;text=L;");
aI("showmenu=M;text=M;");
aI("showmenu=N;text=N;");
aI("showmenu=O;text=O;");
aI("showmenu=P;text=P;");
aI("showmenu=Q;text=Q;");
aI("showmenu=R;text=R;");
aI("showmenu=S;text=S;");
aI("showmenu=T;text=T;");
aI("showmenu=U;text=U;");
aI("showmenu=V;text=V;");
aI("showmenu=W;text=W;");
aI("showmenu=X;text=X;");
aI("showmenu=Y;text=Y;");
aI("showmenu=Z;text=Z;");
aI("showmenu=#;text=#;");
/*
aI("showmenu=Arts & Media;text=Arts & Media;");
aI("showmenu=Business;text=Business;");
aI("showmenu=Computer;text=Computer;");
aI("showmenu=Directory;text=Directory;");
aI("showmenu=Education;text=Education;");
aI("showmenu=General;text=General;");
aI("showmenu=Health;text=Health;");
aI("showmenu=Kids & Teens;text=Kids & Teens;");
aI("showmenu=News;text=News;");
aI("showmenu=Recreation;text=Recreation;");
aI("showmenu=Reference;text=Reference;");
aI("showmenu=Shopping;text=Shopping;");
aI("showmenu=Society;text=Society;");
aI("showmenu=Undefined=Undefined;");*/
}

var zz = 0;
var yyy = 0;

for(i=0;i<27;i++)
{

	with(arts=new menuname(alphabet[i])){
	screenposition="center";
	orientation="vertical";
	style=menuStyle;
	divides=4;
	margin=2;
	overflow="scroll";
		while((data[zz][0] == alphabet[i] || data[yyy][1] == null ) && zz < 4160)
		//for(zz=0; zz<100; zz++)
		{
			if (data[yyy][3] != 1 && data[yyy][1] != null)
			{
				aI("imageheight=" + subMenuIconSize + ";imagewidth=" + subMenuIconSize + ";image=icons/" + data[yyy][5] + ";text=" + data[yyy][2] + ";url=javascript:popit('" + yyy + "');");
			}
			yyy++;
			zz++;
		}		
	}
}

drawMenus();
moveProgressBar(1);