var menuprefetcharray = new Array();

function addMenuText(base, url) {
	var title = base.toLowerCase();
	var titlerep = title.replace(' ', '');
	var base = sitebase + 'images/layout/menu-' + titlerep;
	var normal = base + '.jpg';
	var over = base + '-over.jpg';
	var down = base + '-down.jpg';
	
	imageprefetch(over);
	imageprefetch(down);
		
	var result = '<div class="' + titlerep + '" id="menu' + titlerep + '">' + 
	             '<a href="' + url + '">' + 
	             '<img class="noalpha" src="' + normal + '" alt="' + title + '" title="' + title + '" border="0" ' +
		             'onmouseover="this.src = \'' + over + '\';" ' +
		             'onmouseout="this.src = \'' + normal + '\';" ' +
		             'onmousedown="this.src = \'' + down + '\';" ' +
		             'onmouseup="this.src = \'' + over + '\';">' +	             
	             '</img>' +
	             '</a>' +
	             '</div>';
	
  return result;	
}

var txt = 
  addMenuText('artiesten', 				sitebase + 'artists/') + 
  addMenuText('contact', 					sitebase + 'contact/') + 
  addMenuText('home',			 				sitebase + '') +
  addMenuText('nieuws',			 			sitebase + 'news/') +
  addMenuText('over ons',					sitebase + 'about/') +
  addMenuText('portfolio',				sitebase + 'portfolio/') +
  addMenuText('projecten',				sitebase + 'projects/') +
  addMenuText('weblog',						sitebase + 'weblog/') +
  addMenuText('agenda',						sitebase + 'agenda/');
  
if (!siteisbiz) {
	txt = txt + addMenuText('artiesten ingang',	'http://business.proculture.nl/');
} else {
	txt = txt + addMenuText('hoofd ingang', 'http://www.proculture.nl/');
}
  
document.getElementById('menu').innerHTML   = txt;
