function showTrailer(url)
{
	var videoScreen = document.getElementById("video-screen");
	var videoFrame = document.getElementById("video-frame");
	var videoScreenCloseBtn = document.getElementById("video-screen-close-btn");
	var videoVaultContent = document.getElementById("video-vault-content");
	
	var videoFrameWidth = videoFrame.width;
	var videoFrameheight = videoFrame.height;
	
	var windowWidth = f_clientWidth();
	var windowHeight = f_clientHeight();
	
	var scrollLeft = f_scrollLeft();
	var scrollTop = f_scrollTop();
	
	var x = ((windowWidth-videoFrameWidth)/2)+scrollLeft;
	var y = ((windowHeight-videoFrameheight)/2)+scrollTop;
	
	videoFrame.style.top = y + "px";
	videoFrame.style.left = x + "px";
	
	videoScreen.style.width = document.body.offsetWidth + "px";
	videoScreen.style.height = document.body.offsetHeight + 40 + "px";
	
	videoScreenCloseBtn.style.marginTop = (y - 24 - 15) + "px";
	
	videoVaultContent.style.top = y + 1 + "px";
	videoVaultContent.style.left = (x - parseInt(videoVaultContent.style.width) - 19) + "px";
	
	if ( parseInt(videoVaultContent.style.left) < 0 )
	{
		videoVaultContent.style.left = "0px";
	}
	
	
	videoFrame.src = url;
	
	videoScreen.style.display = "block";
	videoVaultContent.style.display = "block";
	videoFrame.style.display = "block";
}

function stopTrailer()
{
	var videoScreen = document.getElementById("video-screen");
	var videoFrame = document.getElementById("video-frame");
	var videoVaultContent = document.getElementById("video-vault-content");
	
	videoFrame.src = "";
	
	videoScreen.style.display = "none";
	videoFrame.style.display = "none";	
	videoVaultContent.style.display = "none";
}

function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}