/* ------------------------------------------------------- Dynamic generated menu , menuInit.js --//
	Description :	Initializing vars, describing generation and design of
			dynamic menu structure.
			
	
// ---------------------------------------------------------------------------------------------- */

// ------------------------------------------------------- Important due to Novo design ------ //
var
	// Frame window's name for menu & content
	window_menu = "menuframe",
	window_content = "content";

	// Stylesheet
	styleSheetPath = "css/style.css";		// Relative path to stylesheet

	// Images
	img_root = "images/",						// Relative path to root of images
	thumb_root = "thumbnails/",				// Relative path to thumbnail images

	thumb_level = 2;								// On which level does thumbnails show

	img_head = new Array(2);			// An array is born
	img_head.logo = "logo.gif"; // Main logo, the big one in top	
	img_head.normal = "white_arrow.gif",		// Top level, normal state
	img_head.over = "blue_arrow_over.gif",		// Top level, over state
	img_head.exp_normal = "white_arrow_down.gif",	// Top level, expanded, normal state
	img_head.exp_over = "blue_arrow_down_over.gif",	// Top level, expanded, overstate

	img_sub = new Array(2);				// An array is born
	img_sub.normal = "blue_arrow.gif",		// Sub level, normal state
	img_sub.over = "blue_arrow_over.gif",		// Sub level, over state
	img_sub.exp_normal = "blue_arrow_down.gif",	// Sublevel, expanded, normal state
	img_sub.exp_over = "blue_arrow_down_over.gif",	// Sublevel, expanded, over state

	img_link = new Array(2);			// An array is born
	img_link.normal = "dot_single_trans.gif",	// Sub level, normal state
	img_link.over = "dot_single_on.gif",		// Sub level, over state
	img_link.exp_normal = "dot_single_off.gif",	// Link, expanded, normal state
	img_link.exp_over = "dot_single_on.gif",	// Link, expanded, over state

	img_angle = "vinkel.gif",			// Angel image 
	img_line_vertical = "line_vertical.gif",	// Vertical line image 
	img_black = "black.gif",			// 1 px spacer, black
	img_trans = "spacer.gif",			// 1 px spacer, transparent
	img_gray = "gray.gif",			// 1 px spacer, gray #b3b3b3
	img_dotted = "section.gif",			// 190 px section spacer, dotted

	//  Main table
	table_main = new Array(),			// Array is born
	table_main.border = 0,				// Table border
	table_main.cellSpacing = 0,			// Cellspacing
	table_main.cellPadding = 0,			// Cellpadding
	table_main.hSpace = 0,				// Space to the left for the menu

	//  Menu table
	table_menu = new Array(),			// Array is born
	table_menu.border = 0,				// Table border
	table_menu.cellSpacing = 0,			// Cellspacing
	table_menu.cellPadding = 0,			// Cellpadding
	table_menu.itemHeight = 13,			// Height of one item / <td>

	// Spacers for start of item row
	item_space_horizontal =			10;

	// Body tag
	body_tag = new Array(),
	body_tag.marginWidth = 0,
	body_tag.marginHeight = 0,
	body_tag.leftMargin = 0,
	body_tag.topMargin = 0,

	// Space
	menu_verticalSpace_top = 1,			// Between menu topics - top level + levels equal to
	menu_verticalSpace_sub = 1,			// Between menu topics - sub levels

	submenu_space_logo =	 	"<tr><td><img src=" +img_root+img_trans+" width=14 height=1></td><td><img src=" +img_root+img_trans+" width=14 height=1></td>";
//	submenu_endline_logo =	

	// Number of item levels just beneath top level that equals top level
	LevelsEqualToTopLevel = 0,			// Number of levels, from toplevel, that has same properties as toplevel

	// This part defines the width/<td>'s of the menu.
	colsTemplate = [180,13],		// Definision of cols that guide the width of different cols through out the menu
	nCols = colsTemplate.length,			// Number of menu items. Top + sub levels
	menuWidth = 100;					// Becomes width of full menu in px
	
	/*for(i=0; i<nCols; i++){
	 menuWidth += colsTemplate[i];
	}*/

// ------------------------------------------------------- Less important ---------------------//
var	currentIsExpanded = false,			// IS not expanded
	rememberCurrentNumber = "0",			// Used for resizeing in NS
	rememberCurrentIsExpanded = currentIsExpanded,	// Used for resizeing in NS
	previousLevel = null,				// Previous level - from one loop to another
	hasSublevels = true,				// If item has sublevels
	theHref = "",
	string_HTML = "",
	hasSublevels = null,
	showNumbers = true; 				// display the ordering strings: yes=true | no=false
