/*
	Application:	Dynamic Menus Lite Tabs
	Description:	This js builds the tabs for each main menu item
	Author:			Chris Tarabochia
	Date:			6/20/2001 11:06:27 AM
	Version:		1.0
	Last Change:	6/20/2001 11:06:27 AM
*/
for( j = 1; j < dMenu.length; j++ ) {
	var tabBuild = ""

	if( NN4 ) {
		tabBuild = tabBuild + "<layer id=\"bg"+j+"\" bgcolor=\""+tabBrColor+"\" left=\""+(dMenu[j][2]-borderLine)+"\" top=\""+(dMenu[j][3]-borderLine)+"\" width=\""+(dMenu[j][4]+borderLine*2)+"\" height=\""+(dMenu[j][5]+borderLine*2)+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\">&nbsp;</layer>\n"
		tabBuild = tabBuild + "<layer id=\"tab"+j+"\" bgcolor=\""+tabBgColor+"\" left=\""+dMenu[j][2]+"\" top=\""+dMenu[j][3]+"\" width=\""+dMenu[j][4]+"\" height=\""+dMenu[j][5]+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\"><a href=\"" + dMenu[j][1] + "\" id=\"tabLink"+j+"\" class=\"tabName\">"+dMenu[j][0]+"</a></layer>\n"
	} else if( NN6 ) {
		tabBuild = tabBuild + "<div id=\"bg"+j+"\" style=\"position:absolute;left:"+(dMenu[j][2]-borderLine)+"px;top:"+(dMenu[j][3]-borderLine)+"px;width:"+(dMenu[j][4]+borderLine*2)+"px;height:"+(dMenu[j][5]+borderLine*2+2)+"px;z-index:100;background-color:"+tabBrColor+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\"></div>\n"
		tabBuild = tabBuild + "<div id=\"tab"+j+"\" style=\"position:absolute;left:"+dMenu[j][2]+"px;top:"+dMenu[j][3]+"px;width:"+dMenu[j][4]+"px;height:"+dMenu[j][5]+"px;z-index:101;text-align:center;padding-top:2px;background-color:"+tabBgColor+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\"><a href=\"" + dMenu[j][1] + "\" id=\"tabLink"+j+"\" class=\"tabName\">"+dMenu[j][0]+"</a></div>\n"
	} else {
		tabBuild = tabBuild + "<div id=\"bg"+j+"\" style=\"position:absolute;left:"+(dMenu[j][2]-borderLine)+"px;top:"+(dMenu[j][3]-borderLine)+"px;width:"+(dMenu[j][4]+borderLine*2)+"px;height:"+(dMenu[j][5]+borderLine*2)+"px;z-index:100;background-color:"+tabBrColor+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\"></div>\n"
		tabBuild = tabBuild + "<div id=\"tab"+j+"\" style=\"position:absolute;left:"+dMenu[j][2]+"px;top:"+dMenu[j][3]+"px;width:"+dMenu[j][4]+"px;height:"+dMenu[j][5]+"px;z-index:101;text-align:center;padding-top:2px;background-color:"+tabBgColor+"\" onMouseOver=\"showTabs('"+j+"',1)\" onMouseOut=\"showTabs('"+j+"',0)\"><a href=\"" + dMenu[j][1] + "\" id=\"tabLink"+j+"\" class=\"tabName\">"+dMenu[j][0]+"</a></div>\n"
	}	
	document.write(tabBuild)
}

// build the color bar that extends the width of the page
	var navBarExtendBuild = "";
	var tableFiller = '';
	if( NN4 ) {
		navBarExtendBuild = navBarExtendBuild + "<layer id=\"bg"+j+"\" bgcolor=\""+tabBrColor+"\" left=\""+(dMenu[1][2]-borderLine-4)+"\" top=\""+(dMenu[1][3])+"\" width=\"100%\" height=\""+(dMenu[1][5]+borderLine*2)+"\">"+tableFiller+"</layer>\n"
	} else if( NN6 ) {
		navBarExtendBuild = navBarExtendBuild+ "<div id=\"bg"+j+"\" style=\"position:absolute;left:"+(dMenu[1][2]-borderLine-4)+"px;top:"+(dMenu[1][3])+"px;width:\"100%\";height:"+(dMenu[1][5]+borderLine*2+2)+"px;z-index:99;background-color:"+tabBrColor+"\">"+tableFiller+"</div>\n"
	} else {
		navBarExtendBuild = navBarExtendBuild+ "<div id=\"bg"+j+"\" style=\"position:absolute;left:"+(dMenu[1][2]-borderLine-4)+"px;top:"+(dMenu[1][3])+"px;width:\"100%\";height:"+(dMenu[1][5]+borderLine*2)+"px;z-index:99;background-color:"+tabBrColor+"\">"+tableFiller+"</div>\n"
	}	
	document.write(navBarExtendBuild)


