
	// functie om onderdeel contact te vullen
	function getContact(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Contact",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}

	// functie om onderdeel artiesten te vullen
	function getArtists(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Artists",true);
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}

	// functie om gegevens specifieke artiest op te halen + submenun
	function getArtist(target, id, title)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Artist&id="+id+"&title="+title,true);
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 167px";
		    }
		}
		xmlhttp.send(null);
	}

	// functie om detailgegevens specifieke artiest op te halen + submenu
	function getArtistDetail(target, id, id2, title, type)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=ArtistDetail&id="+id+"&id2="+id2+"&title="+title+"&type="+type,true);
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 167px";
		    }
		}
		xmlhttp.send(null);
	}	

	// functie om onderdeel concerten te vullen
	function getConcerts(target,title)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "http://www.stroom.ws/getContent.php?action=Concerts&title="+title,true);
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 100px";
		    }
		}
		xmlhttp.send(null);
	}
	// functie om gegevens specifieke periode op te halen + submenu
	function getConcertDetail(target, id, title)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=ConcertDetail&id="+id+"&title="+title,true);
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 100px";
		    }
		}
		xmlhttp.send(null);
	}
	// functie om onderdeel links te vullen
	function getLinks(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Links",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	// functie om onderdeel press te vullen
	function getPress(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Press",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	// functie om onderdeel press te vullen
	function getCompany(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Company",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	// functie om onderdeel music te vullen
	function getMusic(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Music",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	// functie om onderdeel music te vullen
	function getMusicDetail(target, id, title)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		xmlhttp.open("GET", "getContent.php?action=MusicDetail&id="+id+"&title="+title,true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	// functie om onderdeel events te vullen
	function getEvents(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Events",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	function getEventDetail(target, id)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=EventDetail&id="+id,true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	function getDisclaimer(target)
	{	
		// wis eerst oude inhoud
		document.getElementById(target).innerHTML = "<font color='#FFFFFF'>loading page...</font>";
		
		xmlhttp.open("GET", "getContent.php?action=Disclaimer",true);
		
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4) 
		    {            
			  tekst = xmlhttp.responseText;
			  document.getElementById(target).innerHTML = tekst;
			  document.getElementById(target).style.backgroundPosition = "10px 0px";
		    }
		}
		xmlhttp.send(null);
	}
	
	function getFlashMovieObject(movieName)
	{
	  if (window.document[movieName]) 
	  {
	      return window.document[movieName];
	  }
	  if (navigator.appName.indexOf("Microsoft Internet")==-1)
	  {
	    if (document.embeds && document.embeds[movieName])
	      return document.embeds[movieName]; 
	  }
	  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
	  {
	    return document.getElementById(movieName);
	  }
	}
	

	function closeAll(){
		document.getElementById('popup_subcontainer').style.visibility = 'hidden';
		document.getElementById('popup_body').style.minHeight = '0px';
		document.getElementById('popup_body').innerHTML = '';
		//document.getElementById('popup_submenu').style.visibility = 'hidden';
		//document.getElementById('popup_submenu').innerHTML = '';
		//showVideo(-1);
	}
	function closeIf(){
		if(document.getElementById('popup_title').innerHTML == 'Titel')
		{
			closeAll();
		}
	}
	
	function openMusic(){
		// geregeld in Flashmenu vanwege popupkillers.		
	}
	function openCompany(){
		//		
	}
	
	
	function openContact(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/contact.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getContact('popup_body');
		
	}
	function openArtists(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/artists.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		getArtists('popup_body');
	}
	function openArtist(id,title){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<a href='javascript:void(0);' onclick='openArtists()'><img id='titel_contact' src='components/images/artists.gif' alt='titel_contact' style='border-width: 0px;'/></a><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		getArtist('popup_body',id,title);
	}
	function openArtistDetail(id, id2, title, type){
		// first close other windows
		closeAll();
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<a href='javascript:void(0);' onclick='openArtists()'><img id='titel_contact' src='components/images/artists.gif' alt='titel_contact' style='border-width: 0px;'/></a><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		getArtistDetail('popup_body',id, id2, title, type);
	}
	function openConcerts(title){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/concerts.gif' alt='titel_concerts'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		getConcerts('popup_body',title);
	}
	function openConcertDetail(id, title){
		// first close other windows
		closeAll();
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/concerts.gif' alt='titel_concerts'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		getConcertDetail('popup_body',id, title);
	}
	function openLinks(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/links.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getLinks('popup_body');
		
	}
	function openPress(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/press.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getPress('popup_body');	
	}
	function openCompany(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/company.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getCompany('popup_body');	
	}
	function openMusic(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/music.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getMusic('popup_body');	
	}
	function openMusicDetail(title,id){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<a href='javascript:void(0);' onclick='openMusic()'><img id='titel_contact' src='components/images/music.gif' alt='titel_contact' style='border-width: 0px;'/></a><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getMusicDetail('popup_body', id, title);	
	}
	function openEvents(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/events.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getEvents('popup_body');	
	}
	function openEventDetail(id){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/events.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getEventDetail('popup_body',id);	
	}
	function openDisclaimer(){
		// first close other windows
		closeAll();
		
		// now open selected window (item)
		document.getElementById('popup_subcontainer').style.visibility = 'visible';
		document.getElementById('popup_body').style.minHeight = '540px';
		document.getElementById('popup_title').innerHTML = "<img id='titel_contact' src='components/images/disclaimer.gif' alt='titel_contact'/><a href='javascript:void(0);' onclick=\"closeAll();\"><img id='close_btn' src='components/images/close_btn.gif' alt='close button' /></a>";
		
		// 2 kolommen model: 1 tekst per kolom
		getDisclaimer('popup_body');	
	}	
	
	
	function ScrollBy(dir){
		var left = galerij.scrollLeft;
		if (dir =='left')
		   galerij.scrollLeft = left + 30;
			else
		   galerij.scrollLeft = left - 30; 
	   }
	function showLarge(url,param2){
		document.getElementById('image_large').innerHTML = "<img src='"+url+"' alt=''>";	
	}
	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages() {
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}
	
	var preloadFlag = false;
	function preloadImages() {
		if (document.images) {
			left_over = newImage("components/images/left_over.gif");
			right_over = newImage("components/images/right_over.gif");
			preloadFlag = true;
		}
	}

