function get_gallery_content(id,sport,event,year) {    

    var params = "id="+id+"&sport="+sport+"&event="+event+"&year="+year;
	
	xmlhttp = getXMLRequester();
	xmlhttp.open("POST", "typo3conf/ext/pix_gallery/pi1/get_gallery_content.php ",true);
	xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlhttp.send(params);
	
	xmlhttp.onreadystatechange = handle_http_state_gallery;		
}

function get_video_content(id,sport,event,year) {    

    var params = "id="+id+"&sport="+sport+"&event="+event+"&year="+year;
			
	xmlhttp = getXMLRequester();
	xmlhttp.open("POST", "typo3conf/ext/pix_gallery/pi3/get_video_content.php ",true);
	xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlhttp.send(params);
	xmlhttp.onreadystatechange = handle_http_state_gallery;		
}

function get_video_specials_content(id) {    

    var params = "id="+id;
			
	xmlhttp = getXMLRequester();
	xmlhttp.open("POST", "typo3conf/ext/pix_gallery/pi4/get_video_content.php ",true);
	xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlhttp.send(params);
	xmlhttp.onreadystatechange = handle_http_state_gallery;		
}

function handle_http_state_gallery() {
  if (xmlhttp.readyState == 4) {
    if (xmlhttp.status == 200) { 
		if(xmlhttp.responseText){
		  if(document.getElementById("img_layer")) document.getElementById("img_layer").innerHTML=xmlhttp.responseText;
		}
    }
	else{
		alert('Error! Status: '+xmlhttp.status);
	}
 }
}
