//  WindowSize Object
function WindowSize()
{
    //  Get the window size
    if( typeof( window.innerWidth ) == 'number' )
        {
        this.winWidth = window.innerWidth - 16;
        this.winHeight = window.innerHeight - 16;
        }
    else if( document.documentElement &&
             document.documentElement.clientWidth > 0  &&
             document.documentElement.clientHeight > 0)
        {
        this.winWidth = document.documentElement.clientWidth;
        this.winHeight = document.documentElement.clientHeight;
        }
    else if( document.body &&
             document.body.clientWidth > 0 &&
             document.body.clientHeight > 0 )
        {
        this.winWidth = document.body.clientWidth;
        this.winHeight = document.body.clientHeight;
        }
    else
        {
        this.winWidth = screen.width - 20;
        this.winHeight = screen.height = 100;
        }
}

