	var mainmanu=[
	// DUMMY - g¿r at ingen er highligtet - som pŒ forsiden
	"",
	// DUMMY SLOT
	[
		"The Player Conference",	// Label til 1. menupunkt
		"492648", 			// Farve (hex) til 1. menupunkt
		"index.html",	 		// Link til 1. menupunkt
		[
			// SUBMENUPUNKTER
			// 1. parameter er Linktekst - det andet er URL - husk "http://" ved ekterne links
			// Der mŒ ikke v¾re komma efter det sidste - sŒ virker det ikke :-)
			// ["label","url"],
			// ["label1","url1"],
			// ["label1","url1"]
		]
	],
	[
		"Important dates",
		"592648",
		"dates.html",
		[
			// ["label","url"]
		]
	],
	[
		"Review board",
		"692648",
		"pc.html",
		[
			// ["label","url"],
			// ["label1","url1"]
		]
	],
	[
		"Fees & Registration",
		"792648",
		"reg.html",
		[
			// ["label","url"],
			// ["label1","url1"]
		]
	],
	[
		"Travel & Lodging",
		"892648",
		"travel.html",
		[
			// ["label","url"],
			// ["label1","url1"]
		]
	],
	[
		"Social events",
		"992648",
		"social.html",
		[
			// ["label","url"],
			// ["label1","url1"]
		]
	],

	[
		"Contact the organising committee",
		"A92648",
		"contact.html",
		[
			// ["Past Events","/itu_old_events.html"]
			// ["label1","url1"]
		]
	],
	[
		"Preliminary programme",
		"B92648",
		"ppg.html",
		[
			// ["label","url"],
			// ["label1","url1"]
		]
	],
	[
		"Paper templates",
		"B92648",
		"tmp.html"
	],
	]; 
	
	// create a dummy array of 100 string names (for random images)
	var mosaic_total = 88;
	var mosaic = new Array(mosaic_total);
    var mosaic_generated = false;
	var p_filename = "images/gameshot_";
	var p_filetype = ".jpg";
	
	function Changeinto(id,color) {
	  // Script by Andreas Bille Brahe
		document.getElementById(id).style.backgroundColor = color;
		document.getElementById(id).style.color = "#ffffff";
	}

	function highlight(id) {
	  // Script by Andreas Bille Brahe
		document.getElementById(id).style.color = "#E2E0E5";
	}
	function highlightout(id) {
	  // Script by Andreas Bille Brahe
		document.getElementById(id).style.color = "#ffffff";
	}

	function Changeback(id,color) {
	  // Script by Andreas Bille Brahe
		document.getElementById(id).style.backgroundColor = color;
		document.getElementById(id).style.color = "#a19ba5";
	}

	function makerightbackground(x) {
	  // Script by Andreas Bille Brahe
		document.getElementById("colorleader").style.backgroundColor = mainmanu[x][1];
		document.getElementById("content").style.backgroundColor = mainmanu[x][1];
	}

	function makemenu(x,y) {
	  // Script by Andreas Bille Brahe
		if (y == 0) {
			document.write("<a id=\"menupunkt" + x + "\" class=\"menu\" style=\"border-left: 15px solid #" + mainmanu[x][1] + ";\" onmouseover=\"Changeinto('menupunkt" + x + "','#" + mainmanu[x][1] + "');\" onmouseout=\"Changeback('menupunkt" + x + "','#6d6373');\" href=\"" + mainmanu[x][2] + "\">" + mainmanu[x][0] + "</a>");
		} else {
			document.write("<a id=\"menupunkt" + x + "\" class=\"menu\" style=\"border-left: 15px solid #" + mainmanu[x][1] + ";background-color:#" + mainmanu[x][1] + ";color:#ffffff;\" onmouseover=\"highlight('menupunkt" + x + "')\" onmouseout=\"highlightout('menupunkt" + x + "')\" href=\"" + mainmanu[x][2] + "\">" + mainmanu[x][0] + "</a>");
			for (j=0; j<mainmanu[x][3].length; j++) {
	       		document.write("<a id=\"submenupunkt" + j + "\" class=\"sublink\" style=\"border-left: 15px solid #" + mainmanu[x][1] + ";background-color:#" + mainmanu[x][1] + ";color:#ffffff;\"  onmouseover=\"highlight('submenupunkt" + j + "')\" onmouseout=\"highlightout('submenupunkt" + j + "')\" href=\"" + mainmanu[x][3][j][1] + "\">- " + mainmanu[x][3][j][0] + "</a>");
	       	}
			if (mainmanu[x][3].length > 0 ) {
				document.write("<span class=\"sublink\" style=\"border-left: 15px solid #" + mainmanu[x][1] + ";background-color:#" + mainmanu[x][1] + ";\" >&nbsp;</span>");
			}
		}
	}

	function makeallmenus(x) {
	  // Script by Andreas Bille Brahe
		for (i=1; i<10; i++) {
			if (x == i) {
				makemenu(i,1);
			} else {
				makemenu(i,0);
			}
		}
	}

	function ciphers (ciphs, number) {
	  // Script by Rasmus Keldorff
	  var cipherstring = '';
	  if (number > 9999) {
	    number = (number % 10000);
	  }
	  var rest = number;
	  if (ciphs >= 4) {
	    var ciph_four = Math.floor(rest/1000);
	    rest = (number - (ciph_four*1000));
	    cipherstring += ciph_four;
	  }
	  if (ciphs >= 3) {
	    var ciph_three = Math.floor(rest/100);
	    rest = (rest - (ciph_three*100));
	    cipherstring += ciph_three;
	  }
	  if (ciphs >= 2) {
	    var ciph_two = Math.floor(rest/10);
	    rest = (rest - (ciph_two*10));
	    cipherstring += ciph_two;
	  }
	  if (ciphs >= 1) {
	    var ciph_one = rest;
	    cipherstring += ciph_one;
	  }
	  //var alertstring = 'Ciphers returns '+cipherstring;
	  //alert(alertstring);
	  return(cipherstring);
	}
	
	function random_image(file_name, images_total, cipherz, file_type) {
	  // Script by Rasmus Keldorff
	  var chosen_image = 0
	  chosen_image = Math.floor(images_total * Math.random());
	  
	  if (chosen_image <= 0) {
	    chosen_image = 1;
		} else {
		if (chosen_image > images_total) {
		  chosen_image = images_total;
		}
	  }
	  
	  var imagefile = file_name + ciphers(cipherz,chosen_image) + file_type;
	  //var alertstring = 'Random_Image returns '+imagefile;
	  //alert(alertstring);
	  return(imagefile);
	}
	
	function random_garea() {
	  // Script by Rasmus Keldorff
	  document.write("<img src='"+random_image('/images/G_area_',24,2,'.jpg')+"' width=160 height=108 border=0>");
	}
	
	function random_mosaic(give_number) {
	  // Script by Rasmus Keldorff
	  if (mosaic_generated != true) {
	    for (ms = 1; ms <= mosaic_total; ms++) {
	      mosaic[ms] = p_filename + ciphers(2,ms) + p_filetype;
	    }
	    mosaic_generated = true;
	  }
	  var unique_found = true;
	  do
	  {
	    var new_number = Math.floor((mosaic_total - give_number) * Math.random())+1;
	    var this_mosaic = mosaic[new_number];
		if (this_mosaic != "none") {
		  unique_found = true;
		} else {
		  unique_found = false;
		}
	  }
	  while (unique_found != true)
	  document.write("<img src='"+this_mosaic+"' width=64 height=64 border=0>");
	  mosaic[new_number] = "none";
	}

