﻿function getWindowWidth(){if(window.innerWidth){theWidth=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){theWidth=document.documentElement.clientWidth}else{if(document.body){theWidth=document.body.clientWidth}}}return theWidth}function getWindowHeight(){if(window.innerHeight){theHeight=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){theHeight=document.documentElement.clientHeight}else{if(document.body){theHeight=document.body.clientHeight}}}return theHeight}function getWindowLeft(){return(document.all)?window.screenLeft:window.screenX}function getWindowTop(){return(document.all)?window.screenTop:window.screenY};