function confirmAction(jumpURL,alertTitle)
{
	var alertVar = confirm(alertTitle);
	if (alertVar == true)
	{
		window.location.href = jumpURL;
	}
}

function showVideo(layerID,langID)
{
	document.getElementById('trailer').className = 'hidden';
	document.getElementById('scene').className = 'hidden';
	if (layerID == 'trailer')
	{
		document.images.trailer.src = '/images/trailer.png';
		document.images.scene.src = '/images/scene_'+langID+'_off.png';
	}
	if (layerID == 'scene')
	{
		document.images.trailer.src = '/images/trailer_off.png';
		document.images.scene.src = '/images/scene_'+langID+'_on.png';
	}
	
	document.getElementById(layerID).className = 'visible';
}


function getLayerHeight(block)
{
	if(block.offsetHeight != undefined)
		return block.offsetHeight;
	if(block.height != undefined)
		return block.height;
	if(block.pixelHeight != undefined)
		return block.pixelHeight;
	return null;
}

function browserSize()
{
	var myWidth = 0, myHeight = 0;
	if(typeof(window.innerWidth) == 'number') {
	    //Non-IE
		myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
		}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  	}
	return myHeight;
	}

