function changeVideo(type, id, title, desc, linkobj) {
	
	document.getElementById("videotitle").innerHTML=title;
	document.getElementById("videodesc").innerHTML=desc;
	
	if (type == "photobucket") {
		document.getElementById("video").innerHTML="<embed width=\"448\" height=\"361\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" src=\"http://i99.photobucket.com/player.swf?file=http://vid99.photobucket.com/albums/l291/purenitro/" + id + "\">";
	} else if (type == "google") {
		document.getElementById("video").innerHTML="<embed id=\"VideoPlayback\" src=\"http://video.google.com/googleplayer.swf?docid=" + id + "&hl=en&fs=true\" style=\"width:400px;height:326px\" allowFullScreen=\"true\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\"></embed>";
	} else if (type == "youtube") {
		document.getElementById("video").innerHTML="<object width=\"480\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" + id + "&hl=en_GB&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" + id + "&hl=en_GB&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"480\" height=\"385\"></embed></object>";
	}
	
	var vidList = document.getElementById("videolist").getElementsByTagName("a");
	for (i = 0; i < vidList.length; i++) {
			vidList[i].className = "";
	}
   linkobj.className = "videolinksel";
}
