function getScreenSize() {

		var winW, winH
  

  if( typeof( window.innerWidth ) == 'number' ) {
  
    winW = window.innerWidth;
    winH = window.innerHeight;
  
  } else {
  
    if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
  
      winW = document.documentElement.clientWidth;
      winH = document.documentElement.clientHeight;
  
    } else {
  
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
  
        winW = document.body.clientWidth;
        winH = document.body.clientHeight;
  
      }

    }

  }
  
  return new Array(winW, winH);

}
