// JavaScript Document
function LoadScripts(){
	var prod_id = document.getElementById("prod_id");
	var general = document.getElementById("general");	
	general.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=1";
	}
	var beelden= document.getElementById("beelden");
	beelden.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=2";
	}
	var playlist = document.getElementById("playlist");	
	playlist.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=4";
	}
	var press = document.getElementById("press");
	press.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=5";
	}
	var dossier = document.getElementById("dossier");
	dossier.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=6";
	}
	var tech = document.getElementById("tech");
	tech.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=7";
	}
	var mediakit= document.getElementById("mediakit");	
	mediakit.onclick = function(){
		document.location = "detail.php?prod_id=" + prod_id.value +"&show_first=8";
	}
}

window.onload = LoadScripts;

	function reload_video(p_video_id){
		if(p_video_id != 0){
			var url = "video.php?video_id=" + p_video_id;		
			new Ajax.Request(url,
			  {
				method:'get',
				onSuccess: function(transport){				
					var response = document.getElementById("update_content");
					response.innerHTML = transport.responseText;
				},
				onFailure: function(){ alert('Something went wrong...') }
			  });
		}
	}
