// Duplicated from popupFormDrew.js
// For name sake
function resizeDiv(){
	attachEventListener(window, "resize", getscreenHeight, false);
};
function getscreenHeight(){
    
    if(typeof( window.innerWidth ) == 'number') {
        scrHeight = window.innerHeight;
        scrWidth = window.innerWidth;
    }else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        scrHeight = document.documentElement.clientHeight;
        scrWidth = document.documentElement.clientWidth;
    }else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        scrHeight = document.body.clientHeight;
        scrWidth = document.body.clientWidth;
    }
    var flashDiv=document.getElementById("flashHolder");
    var pageHolder=document.getElementById("pageHolder");
    resultWidth=scrWidth;
    resultHeight=scrHeight;
    if(scrHeight<600){
        resultHeight=600;
    }
    if(scrWidth<960){
        resultWidth=960;
    }
    flashDiv.style.height=resultHeight+"px";
    flashDiv.style.width=resultWidth+"px";
    pageHolder.style.height=resultHeight+"px";
    
   
}

addLoadListener(resizeDiv);

function showForm(){
    var formContainer=document.getElementById("formContainer");
    formContainer.className='formFlashContainer';
    formContainer.style.display='';
}
function hideForm(){
    var formContainer=document.getElementById("formContainer");
    formContainer.className='formContainer';
    formContainer.style.display='none';
}