﻿var currheight;

function noflash_resized(){
    var winWidth = 0, winHeight = 0;
    if(typeof(window.innerWidth)=='number'){
        //Non-IE
        winWidth = window.innerWidth;
        winHeight = window.innerHeight;
    
    }else if(document.documentElement&&(document.documentElement.clientWidth || document.documentElement.clientHeight)){
        //IE 6+ in 'standards compliant mode'
        winWidth = document.documentElement.clientWidth;
        winHeight = document.documentElement.clientHeight;
    
    }else if(document.body && (document.body.clientWidth || document.body.clientHeight)){
        //IE 4 compatible
        winWidth = document.body.clientWidth;
        winHeight = document.body.clientHeight;
    }
    
    //if(currheight != winHeight)
    //{
    try{
        document.getElementById("noflash").style.height = winHeight + "px"; 
    }catch(ex){
    }
        
    //}
    //currheight = winHeight;
}

//add resize event listener to the window
window.onresize = noflash_resized;
