myURL = document.location.href;
myExt = myURL.substring(myURL.indexOf("item") , myURL.length)
indexExt = myURL.substring(myURL.indexOf("index") , myURL.length) 

if(myURL == "http://www.sit.fi/~strandb/staffansby/"){
	document.write(first_page);
}
if(myURL == "http://www.sit.fi/~strandb/staffansby/index.html"){
	document.write(first_page);
}

for (i=0; i<n; i++){
	if(myExt == "item"+i+".html"){
	document.write(content_item[i]);
	}
}
