function showTerms() {
	centerLayer();
	document.getElementById('download_container').style.display = 'block';
	document.getElementById('download_terms').style.display = 'block';
}

function hideTerms() {
	document.getElementById('download_container').style.display = 'none';
	document.getElementById('download_terms').style.display = 'none';	
}

function acceptTerms() {
	
	if(document.getElementById('video_terms').checked) {
		hideTerms();		
		return true;
	}
	else {
		alert("Please agree to the terms and conditions");
		return false;
	}
}


function centerLayer(){ 
    var h=0; 
    var w=0; 
    if(document.compatMode == "CSS1Compat"){ 
       w =document.body.parentNode.clientWidth; 
       h =document.body.parentNode.clientHeight; 
    }else{ 
        //IE Quirks Mode 
       w =document.body.clientWidth; 
       h =document.body.clientHeight; 
    } 
    if(w==0){ 
        //Netscape 
        w = window.innerWidth; 
        h = window.innerHeight; 
    } 

    document.getElementById('download_terms').style.left = ((w-700)/2)+"px"; 
} 
