var http;
var browser = navigator.appName;
if ( browser == 'Microsoft Internet Explorer' )
	http = new ActiveXObject("Microsoft.XMLHTTP");
else
	http = new XMLHttpRequest();


function loadPage(pagina, album, maxrows, paginas){
	http.open('get', '/customer/albums.php?pagina='+pagina+'&album='+album+'&rijen='+maxrows+'&paginas='+paginas); 
	http.onreadystatechange = handleResponseAlbum; 
	http.send(null);	
}


function handleResponseAlbum()
{	
	if(http.readyState == 4 && http.status == 200)
	{ 
		if(http.responseText) { 
			document.getElementById('album').innerHTML = http.responseText; 			
			//Maak floatbox mogelijk na de ajaxrequest
			fb.anchors.length = 0;
			fb.tagAnchors(document);
			//Einde Floatbox fix
		}
		
	} else if(http.readyState == 4 && http.status == 404) { 
	  document.getElementById('album').innerHTML = "HTTP ERROR 404: <br /><br />Page not found"; 
	} 
} 


function showDiv(naam){
	if(document.getElementById(naam).style.display == 'none'){
		document.getElementById(naam).style.display='block';
	}else{
		document.getElementById(naam).style.display='none';
	}
}


