function writeMenus() {
if (!isDOM && !isIE4 && !isNS4) return;
for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {
var str = '', itemX = 0, itemY = 0;
for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
var itemID = 'menu' + currMenu + 'item' + currItem;
var w = (isVert ? width : length);
var h = (isVert ? length : width);
if (isDOM || isIE4) {
str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; ';
if (backCol) str += 'background: ' + backCol + '; ';
str += '" ';
}
if (isNS4) {
str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
if (backCol) str += 'bgcolor="' + backCol + '" ';
}
if (borderClass) str += 'class="' + borderClass + '" ';
str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';
str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 7) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';
if (target > 0) {
menu[target][0].parentMenu = currMenu;
menu[target][0].parentItem = currItem;
if (popInd) str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';
}
str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');
if (isVert) itemY += length + spacing;
else itemX += length + spacing;
}
if (isDOM) {
var newDiv = document.createElement('div');
document.getElementsByTagName('body').item(0).appendChild(newDiv);
newDiv.innerHTML = str;
ref = newDiv.style;
ref.position = 'absolute';
ref.visibility = 'hidden';
}
if (isIE4) {
document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden">' + str + '</div>');
ref = getSty('menu' + currMenu + 'div');
}
if (isNS4) {
ref = new Layer(0);
ref.document.write(str);
ref.document.close();
}
for (currItem = 1; currItem < menu[currMenu].length; currItem++) {
itemName = 'menu' + currMenu + 'item' + currItem;
if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName);
if (isNS4) menu[currMenu][currItem].ref = ref.document[itemName];
   }
}
with(menu[0][0]) {
ref.left = x;
ref.top = y;
ref.visibility = 'visible';
   }
}
var menu = new Array();
var defOver = '#7eba03'; 
var defBack = '#000000'; 
var vert = true;  
var defLength = 20; 
var defHeight = 20;  
var defOffSetSubMenu = 140;
var defOffSetDropSubMenu = 4;
var rootWidth = 150;
var rootSpace = 0;
var navPath ='/MSc/';
menu[0] = new Array();
menu[0][0] = new Menu(vert, '&rarr;', 5, 40, rootWidth, defOver, defBack, 'itemBorder', 'itemText');
menu[0][1] = new Item ('  Home', [navPath]+'index.php', '_top', defHeight, rootSpace, 0);
menu[0][2] = new Item ('  Abstract', [navPath]+'abstract.php', '_top', defHeight, rootSpace, 0);
menu[0][3] = new Item ('  Site map', [navPath]+'sitemap.php', '_top', defHeight, rootSpace, 0);
menu[0][4] = new Item ('  Acknowledgements', [navPath]+'acknowledgements.php', '_top', defHeight, rootSpace, 0);
menu[0][5] = new Item (' 1 Introduction', [navPath]+'introduction.php', '_top', defHeight, rootSpace, 0);
menu[0][6] = new Item (' 2 Literature', [navPath]+'literature.php', '_top', defHeight, rootSpace, 1);
menu[0][7] = new Item (' 3 Development', [navPath]+'designAndDevelopment.php', '_top', defHeight, rootSpace, 2);
menu[0][8] = new Item (' 4 Evaluation', [navPath]+'evaluation.php', '_top', defHeight, rootSpace, 7);
menu[0][9] = new Item (' 5 Discussion', [navPath]+'discussion.php', '_top', defHeight, rootSpace, 13);
menu[0][10] = new Item (' 6 Conclusion', [navPath]+'conclusion.php', '_top', defHeight, rootSpace, 0);
menu[0][11] = new Item (' 7 Appendices', [navPath]+'pages/index.php', '_top', defHeight, rootSpace, 14);
menu[0][12] = new Item (' 8 References', [navPath]+'references.php', '_top', defHeight, rootSpace, 0);
menu[0][13] = new Item (' Miscellaneous', [navPath]+'miscellaneous.php', '_top', defHeight, rootSpace, 0);
menu[0][14] = new Item (' Back to top', '#', '_top', defHeight, rootSpace, 0);
menu[1] = new Array();
menu[1][0] = new Menu(true, ' ', defOffSetSubMenu, defOffSetDropSubMenu, 240, defOver, defBack, 'itemBorder', 'itemText');
menu[1][1] = new Item('2 Literature Review', [navPath]+'literature.php', '_top', defLength, 0, 0);
menu[1][2] = new Item('2.1 Overview of Flash', [navPath]+'literature.php#21', '_top', defLength, 0, 0);
menu[1][3] = new Item('2.2 Overview of SVG', [navPath]+'literature.php#22', '_top', defLength, 0, 0);
menu[1][4] = new Item('2.3 Bitmaps', [navPath]+'literature.php#23', '_top', defLength, 0, 0);
menu[1][5] = new Item('2.4 Vector Graphics', [navPath]+'literature.php#24', '_top', defLength, 0, 0);
menu[1][6] = new Item('2.5 Relative dominance of Flash', [navPath]+'literature.php#25', '_top', defLength, 0, 0);
menu[1][7] = new Item('2.6 Plugins', [navPath]+'literature.php#26', '_top', defLength, 0, 0);
menu[1][8] = new Item('2.7 Commercial aspects', [navPath]+'literature.php#27', '_top', defLength, 0, 0);
menu[1][9] = new Item('2.8 File formats', [navPath]+'literature.php#28', '_top', defLength, 0, 0);
menu[1][10] = new Item('2.9 Accessibility', [navPath]+'literature.php#29', '_top', defLength, 0, 0);
menu[1][11] = new Item('2.10 Scalability', [navPath]+'literature.php#210', '_top', defLength, 0, 0);
menu[1][12] = new Item('2.11 Workflow', [navPath]+'literature.php#211', '_top', defLength, 0, 0);
menu[1][13] = new Item('2.12 Evaluating SVG and Flash', [navPath]+'literature.php#212', '_top', defLength, 0, 0);
menu[1][14] = new Item('2.13 Potential SVG on the Internet', [navPath]+'literature.php#213', '_top', defLength, 0, 0);
menu[1][15] = new Item('2.14 Actual SVG on the Internet', [navPath]+'literature.php#214', '_top', defLength, 0, 0);
menu[1][16] = new Item('2.15 Conclusion', [navPath]+'literature.php#215', '_top', defLength, 0, 0);

menu[2] = new Array();
menu[2][0] = new Menu(true, '&rarr;', defOffSetSubMenu, defOffSetDropSubMenu, 250, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item(' 3 Design and Development', [navPath]+'designAndDevelopment.php', '_top', defLength, 0, 0);
menu[2][2] = new Item(' 3.1 Criteria', [navPath]+'designAndDevelopment.php#31', '_top', defLength, 0, 3);
menu[2][3] = new Item(' 3.2 Key Criteria', [navPath]+'designAndDevelopment.php#32', '_top', defLength, 0, 0);
menu[2][4] = new Item(' 3.3 Methodology', [navPath]+'designAndDevelopment.php#33', '_top', defLength, 0, 0);
menu[2][5] = new Item(' 3.4 Requirements capture', [navPath]+'designAndDevelopment.php#34', '_top', defLength, 0, 4);
menu[2][6] = new Item(' 3.5 The Flash application', [navPath]+'designAndDevelopment.php#35', '_top', defLength, 0, 5);
menu[2][7] = new Item(' 3.6 The SVG application', [navPath]+'designAndDevelopment.php#36', '_top', defLength, 0, 6);
menu[2][8] = new Item(' 3.7 Limitations of applications', [navPath]+'designAndDevelopment.php#37', '_top', defLength, 0, 6);
menu[2][9] = new Item(' 3.8 Application size', [navPath]+'designAndDevelopment.php#38', '_top', defLength, 0, 0);
menu[2][10] = new Item(' 3.9 Conclusion', [navPath]+'designAndDevelopment.php#38', '_top', defLength, 0, 0);

menu[3] = new Array();
menu[3][0] = new Menu(true, ' ', defOffSetSubMenu+100, defOffSetDropSubMenu, 200, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item(' 3.1.1 A good application', [navPath]+'designAndDevelopment.php#3_11', '_top', defLength, 0, 0);
menu[3][2] = new Item(' 3.1.2 A good website', [navPath]+'designAndDevelopment.php#3_12', '_top', defLength, 0, 0);

menu[4] = new Array();
menu[4][0] = new Menu(true, ' ', defOffSetSubMenu+100, defOffSetDropSubMenu, 250, defOver, defBack, 'itemBorder', 'itemText');
menu[4][1] = new Item(' 3.4.1 Limitations of applications', [navPath]+'designAndDevelopment.php#3_41', '_top', defLength, 0, 0);

menu[5] = new Array();
menu[5][0] = new Menu(true, ' ', defOffSetSubMenu+100, defOffSetDropSubMenu, 280, defOver, defBack, 'itemBorder', 'itemText');
menu[5][1] = new Item(' 3.5.1 Designing the Flash application', [navPath]+'designAndDevelopment.php#3_51', '_top', defLength, 0, 0);
menu[5][2] = new Item(' 3.5.2 Developing the Flash application', [navPath]+'designAndDevelopment.php#3_52', '_top', defLength, 0, 0);

menu[6] = new Array();
menu[6][0] = new Menu(true, ' ', defOffSetSubMenu+100, defOffSetDropSubMenu, 280, defOver, defBack, 'itemBorder', 'itemText');
menu[6][1] = new Item(' 3.6.1 Designing the SVG application', [navPath]+'designAndDevelopment.php#3_61', '_top', defLength, 0, 0);
menu[6][2] = new Item(' 3.6.2 Developing the SVG application', [navPath]+'designAndDevelopment.php#3_62', '_top', defLength, 0, 0);

menu[7] = new Array();
menu[7][0] = new Menu(true, '&rarr;', defOffSetSubMenu, defOffSetDropSubMenu, 360, defOver, defBack, 'itemBorder', 'itemText');
menu[7][1] = new Item(' 4 Evaluation', [navPath]+'evaluation.php', '_top', defLength, 0, 0);
menu[7][2] = new Item(' 4.1 Evaluation of applications', [navPath]+'evaluation.php#41', '_top', defLength, 0, 0);
menu[7][3] = new Item(' 4.2 IMPACT', [navPath]+'evaluation.php#42', '_top', defLength, 0, 0);
menu[7][4] = new Item(' 4.3 Evaluation methods', [navPath]+'evaluation.php#43', '_top', defLength, 0, 0);
menu[7][5] = new Item(' 4.4 Expert Evaluation', [navPath]+'evaluation.php#44', '_top', defLength, 0, 8);
menu[7][6] = new Item(' 4.5 User Evaluation', [navPath]+'evaluation.php#45', '_top', defLength, 0, 9);
menu[7][7] = new Item(' 4.6 Internet based evaluation', [navPath]+'evaluation.php#46', '_top', defLength, 0, 10);
menu[7][8] = new Item(' 4.7 Evaluation of SVG resources', [navPath]+'evaluation.php#47', '_top', defLength, 0, 0);
menu[7][9] = new Item(' 4.8 Evaluation of SVG development applications', [navPath]+'evaluation.php#48', '_top', defLength, 0, 11);
menu[7][10] = new Item(' 4.9 Evaluation of SVG plugins', [navPath]+'evaluation.php#49', '_top', defLength, 0, 12);

menu[8] = new Array();
menu[8][0] = new Menu(true, ' ', defOffSetSubMenu+210, defOffSetDropSubMenu, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[8][1] = new Item(' 4.4.1 Analysis', [navPath]+'evaluation.php#4_41', '_top', defLength, 0, 0);

menu[9] = new Array();
menu[9][0] = new Menu(true, ' ', defOffSetSubMenu+210, defOffSetDropSubMenu, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[9][1] = new Item(' 4.5.1 Analysis', [navPath]+'evaluation.php#4_51', '_top', defLength, 0, 0);

menu[10] = new Array();
menu[10][0] = new Menu(true, ' ', defOffSetSubMenu+210, defOffSetDropSubMenu, 160, defOver, defBack, 'itemBorder', 'itemText');
menu[10][1] = new Item(' 4.6.1 Site development', 'evaluation.php#4_61', '_top', defLength, 0, 0);
menu[10][2] = new Item(' 4.6.2 Analysis', [navPath]+'evaluation.php#4_62', '_top', defLength, 0, 0);
menu[10][3] = new Item(' 4.6.3 Conclusion', [navPath]+'evaluation.php#4_63', '_top', defLength, 0, 0);

menu[11] = new Array();
menu[11][0] = new Menu(true, ' ', defOffSetSubMenu+210, defOffSetDropSubMenu, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[11][1] = new Item(' 4.8.1 Analysis', [navPath]+'evaluation.php#4_81', '_top', defLength, 0, 0);

menu[12] = new Array();
menu[12][0] = new Menu(true, ' ', defOffSetSubMenu+210, defOffSetDropSubMenu, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[12][1] = new Item(' 4.9.1 Analysis', [navPath]+'evaluation.php#4_91', '_top', defLength, 0, 0);

menu[13] = new Array();
menu[13][0] = new Menu(true, '&rarr;', defOffSetSubMenu, defOffSetDropSubMenu, 160, defOver, defBack, 'itemBorder', 'itemText');
menu[13][1] = new Item(' 5 Discussion', [navPath]+'discussion.php', '_top', defLength, 0, 0);
menu[13][2] = new Item(' 5.1 Development', [navPath]+'discussion.php#51', '_top', defLength, 0, 0);
menu[13][3] = new Item(' 5.2 Access', [navPath]+'discussion.php#52', '_top', defLength, 0, 0);
menu[13][4] = new Item(' 5.3 User experience', [navPath]+'discussion.php#53', '_top', defLength, 0, 0);
menu[13][5] = new Item(' 5.4 Summary', [navPath]+'discussion.php#54', '_top', defLength, 0, 0);
menu[13][6] = new Item(' 5.5 Future work', [navPath]+'discussion.php#55', '_top', defLength, 0, 0);

menu[14] = new Array();
menu[14][0] = new Menu(true, '&rarr;', defOffSetSubMenu, defOffSetDropSubMenu, 110, defOver, defBack, 'itemBorder', 'itemText');
menu[14][1] = new Item(' 11 Appendices', [navPath]+'pages/index.php', '_top', defLength, 0, 0);
menu[14][2] = new Item(' Appendix 1', [navPath]+'pages/appendix1.php', '_top', defLength, 0, 0);
menu[14][3] = new Item(' Appendix 2', [navPath]+'pages/appendix2.php', '_top', defLength, 0, 0);
menu[14][4] = new Item(' Appendix 3', [navPath]+'pages/appendix3.php', '_top', defLength, 0, 0);
menu[14][5] = new Item(' Appendix 4', [navPath]+'pages/appendix4.php', '_top', defLength, 0, 0);
menu[14][6] = new Item(' Appendix 5', [navPath]+'pages/appendix5.php', '_top', defLength, 0, 0);
menu[14][7] = new Item(' Appendix 6a', [navPath]+'pages/appendix6a.php', '_top', defLength, 0, 0);
menu[14][8] = new Item(' Appendix 6b', [navPath]+'pages/appendix6b.php', '_top', defLength, 0, 0);
menu[14][9] = new Item(' Appendix 6c', [navPath]+'pages/appendix6c.php', '_top', defLength, 0, 0);
menu[14][10] = new Item(' Appendix 7', [navPath]+'pages/appendix7.php', '_top', defLength, 0, 0);
menu[14][11] = new Item(' Appendix 8', [navPath]+'pages/appendix8.php', '_top', defLength, 0, 0);
menu[14][12] = new Item(' Appendix 9', [navPath]+'pages/appendix9.php', '_top', defLength, 0, 0);
menu[14][13] = new Item(' Appendix 10', [navPath]+'pages/appendix10.php', '_top', defLength, 0, 0);
menu[14][14] = new Item(' Appendix 11',[navPath]+'pages/appendix11.php', '_top', defLength, 0, 0);
menu[14][15] = new Item(' Appendix 12', [navPath]+'pages/appendix12.php', '_top', defLength, 0, 0);
menu[14][16] = new Item(' Appendix 13', [navPath]+'pages/appendix13.php', '_top', defLength, 0, 0);
menu[14][17] = new Item(' Appendix 14', [navPath]+'pages/appendix14.php', '_top', defLength, 0, 0);
menu[14][18] = new Item(' Appendix 15', [navPath]+'pages/appendix15.php', '_top', defLength, 0, 0);
menu[14][19] = new Item(' Appendix 16', [navPath]+'pages/appendix16.php', '_top', defLength, 0, 0);

function startScroll() {
	window.onscroll = moveRoot;
}
function moveRoot()
{ //with(menu[0][0].ref) top = ((parseInt(top) < 50) ? 50 : 0);
 with(menu[0][0].ref) top = document.body.scrollTop+40;
 with(menu[0][0].ref) left = document.body.scrollLeft+5;
}

