function getViewportOffset(){
if(window.innerWidth){
return {
w:window.innerWidth,
t:window.innerHeight
}
}else if(document.compatMode == "BackCompat"){
return {
w:document.body.clientWidth,
t:document.body.clientHeight
}
}else{
return {
w:document.documentElement.clientWidth,
t:document.documentElement.clientHeight
}
}
}