﻿videosStreng =""
videosAntal = 0

videosSide = new Array(0)
videosTitel = new Array(0)
videosInfo = new Array(0)

//VIDEOS MENU
// In order to add a page in this menu, you should do the following:
// 1. Copy one of the existing pages and give it a new name.
// 2. Copy the top line in the 3 lists below and add these top lines to the top of each list.

// 3. In the newly added line in this list, you should write the filename of the new page, but without ".html"

//videosSide[videosSide.length] ="someo"
//videosSide[videosSide.length] ="baseb"

// 4. In the newly added line in this list, you should write the title of the new page that people will read in the menu.

//videosTitel[videosTitel.length] = "Someone to watch over me"
//videosTitel[videosTitel.length] = "Baseball"

// 5. In the newly added line in this list, you should write the bubble text of the new page.
//  If you want a menu point to NOT have a bubble text, there should just be a line with "" in the place where you would otherwise write the bubble text.

//videosInfo[videosInfo.length] = ""
//videosInfo[videosInfo.length] = ""

// Note: there must always be an equal number of lines in each list.
// OBS! For at skrive ?,? og ? skal du istedet inds?tte f?lgende koder:
// ? = &aelig;
// ? = &oslash;
// ? = &aring;


videosAntal = videosSide.length

function writeVideosmenu(siden)
{
for(i=0;i<videosAntal;i++){
	if(siden=="index"){
		videosStreng += "| <a href='videos/"
		videosStreng += videosSide[i]
		videosStreng += ".html'"
		if(!(videosInfo[i]=="")){
			videosStreng += "title='"
			videosStreng += videosInfo[i]
			videosStreng += "'"}	
		videosStreng += ">"			
		videosStreng += videosTitel[i]
		videosStreng += " </a>"
	}else{
		if (videosSide[i]==siden){
			videosStreng += "| "
			videosStreng += videosTitel[i]
			videosStreng += " "
			}else{
				videosStreng += "| <a href='"
				videosStreng += videosSide[i]
				videosStreng += ".html'"
				if(!(videosInfo[i]=="")){
					videosStreng += "title='"
					videosStreng += videosInfo[i]
					videosStreng += "'"}	
				videosStreng += ">"	
				videosStreng += videosTitel[i]
				videosStreng += " </a>"
				}
	}	}
videosStreng +=" |"
document.write(videosStreng)
}