﻿//Right Click
var message="Right click disabled. Members of the media may download high resolution headshots within the 'Multi-Media' section. ";
function click(e) {
    if (document.all){
        if (event.button==2||event.button==3){
            alert(message);
            return false;
        }
    }
    else{
        if (e.button==2||e.button==3) {
            //e.preventDefault();
            //e.stopPropagation();
            alert(message);
            return false;
        }
    }
    //if (e.which){
        //alert("oops Opera?")
   // }
}

// for IE
if (document.all) { 
  document.onmousedown=click;
}
// for FF
else { 
  document.onclick=click;
}



// Footer
function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		
function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('container-page').offsetHeight;
					var footerElement = document.getElementById('container-footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.position = 'absolute';
						footerElement.style.top = (windowHeight - footerHeight) + 'px';
					}
					else {
						footerElement.style.position = 'static';
					}
				}
			}
		}		
window.onload = function() {
    //setFooter();
}
		
window.onresize = function() {
    //setFooter();
}



// Open Resume
function OpenWindowResume() { 
	open ("/About/Resume.htm","Gata_da_Capa", "status=no,width=630, height=600, scrollbars=yes")
}