function getWindowWidth(win) { if (win == undefined) win = window; if (win.innerWidth) return win.innerWidth; else { if (win.document.documentElement && win.document.documentElement.clientWidth) return win.document.documentElement.clientWidth; return win.document.body.offsetWidth; } } function getWindowHeight(win) { if (win == undefined) win = window; if (win.innerHeight) return win.innerHeight; else { if (win.document.documentElement && win.document.documentElement.clientHeight) { return win.document.documentElement.clientHeight; } return win.document.body.offsetHeight; } } function ID(id) { return document.getElementById(id); } function CLASS(c) { var array = []; var tags = document.getElementsByTagName("*"); for(var z=0, len=tags.length; z