// JavaScript Document
function findDimensions () {
                var x,y;
                
                if (self.innerHeight) {
                                x = self.innerWidth;
                                y = self.innerHeight;
                } else if (document.documentElement && document.documentElement.clientHeight) {
                                // Explorer 6 Strict Mode
                                x = document.documentElement.clientWidth;
                                y = document.documentElement.clientHeight;
                } else if (document.body) { 
                                // other Explorers
                                x = document.body.clientWidth;
                                y = document.body.clientHeight;
                }
                
                var iwidth=2000;
                var iheight=1333;
                var modX = x/iwidth;
                var modY = y/iheight;
                
                if (modX>modY) {
                                iwidth=(iwidth*modX);
                                iheight=(iheight*modX);
                } else {
                                iwidth=(iwidth*modY);
                                iheight=(iheight*modY);
                }
                
                document.getElementById ("bgImage").setAttribute("width",iwidth);
                document.getElementById ("bgImage").setAttribute("height",iheight);
                //document.getElementById ("BG").setAttribute("height",document.body.scrollHeight);
}
