function displayvideo(x, y) {
	var location = x;
	var title = y;
	iwidth = 425;
	closebutton = iwidth - 15;
	iheight = 344;
	newiheight = iheight + 20;
	
	var browser = navigator.appName;
	if (browser=="Microsoft Internet Explorer") {
		windowWidth = document.documentElement.clientWidth
		windowHeight = document.documentElement.clientHeight
	}else{
		windowWidth = window.innerWidth;
		windowHeight = window.innerHeight;
	}
	if (windowWidth <= (iwidth + 20)) {
		var newleft = 0;
	}else{
		var newleft = (windowWidth - (iwidth + 20)) / 2;
	}	
	if (windowHeight <= (iwidth + 20)) {
		var newtop = 0;
	}else{
		var newtop = (windowHeight - (iheight + 20)) / 2;
	}
	
	document.getElementById('light').style.display= 'block';
	document.getElementById('fade').style.display= 'block';
	document.getElementById('fade').style.height= windowHeight;
	document.getElementById('fade').style.width= windowWidth;
	document.getElementById('light').style.width= iwidth + 'px';
	document.getElementById('light').style.left= newleft + 'px';
	document.getElementById('light').style.top= newtop + 'px';
	document.getElementById('light').style.height= newiheight + 'px';
	document.getElementById('fullimage').style.display= 'block';
	document.getElementById('details').style.display= 'block';
	document.getElementById('info').style.display= 'block';
	document.getElementById('close').style.margin= '0px 0px 0px ' + closebutton + 'px';
	document.getElementById('fullimage').innerHTML= '<object width="425" height="344"><param name="movie" value="' + location + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + location + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>';
	document.getElementById('details').innerHTML= '<p>' + title + '</p>';
	document.getElementById('info').innerHTML= '<p>' + iwidth + ' X ' + iheight;
}
function remove() {
	document.getElementById('light').style.display='none';
	document.getElementById('fade').style.display='none';
}