
		/* FUNCTIONS AND VARIABLES FOR ROTATING IMAGE IN SUBHEADER ********************************************************/
    
        var winW = 790
        var winH = 590;
        
    
        function getWindowSize() {
        
            if (parseInt(navigator.appVersion)>3) {
                if (navigator.appName=="Netscape") {
                    winW = window.innerWidth;
                    winH = window.innerHeight;
                } // if
                if (navigator.appName.indexOf("Microsoft")!=-1) {
                    winW = document.body.offsetWidth;
                    winH = document.body.offsetHeight;
                } // if
            } // if
            
            //document.getElementById('videoBox').style.left = winW/2 - 410 + 'px';
            
        } // function getWindowSize
        
        function hideVideo() {
            getWindowSize();
            document.getElementById('videoIframe').src = 'portfolioPiece.php';
            document.getElementById('videoBox').style.display = 'none';
        } // function showVideo
    
        function showVideo(videoPath, videoWidth, videoHeight, videoText) {
            document.getElementById('videoIframe').src = "portfolioPiece.php?videoPath=" + videoPath;
            document.getElementById('videoIframe').style.width = videoWidth + "px";
            document.getElementById('videoInfoBox').style.width = videoWidth + "px";
            document.getElementById('videoInfo').innerHTML = videoText;
            document.getElementById('videoInfo').style.width = (videoWidth - 71) + "px";
            document.getElementById('videoIframe').style.height = videoHeight + "px";
            document.getElementById('videoBox').style.display = 'block';
        } // function showVideo
    
        
		/* FUNCTIONS AND VARIABLES FOR HIGHLIGHTING THE MAIN LINK IN THE MAIN NAV BAR ********************************************************/
		
		function setSelectedMainLink(whichLink) {
			document.getElementById(whichLink + "Link").style.backgroundImage = "url(images/headerButtonBgHover.png)";
		} // function setSelectedMainLink

