var CMS = Class.extend({	
});

// xClientHeight, Copyright 2001-2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
CMS.clientHeight = function() {
	  var v=0,d=document,w=window;
	  if(self.innerHeight)
	    {v=self.innerHeight;}
	  else if(d.compatMode == 'CSS1Compat' && !w.opera && d.documentElement && d.documentElement.clientHeight)
	    {v=d.documentElement.clientHeight;}
	  else if(d.body && d.body.clientHeight)
	    {v=d.body.clientHeight;}
	  else if(CMS.def(w.innerWidth,w.innerHeight,d.width)) {
	    v=w.innerHeight;
	    if(d.width>w.innerWidth) v-=16;
	  }
	  return v;
};

// xClientWidth, Copyright 2001-2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
CMS.clientWidth = function() {
  var v=0,d=document,w=window;
  if(self.innerWidth)
    {v=self.innerWidth;}
  else if(d.compatMode == 'CSS1Compat' && !w.opera && d.documentElement && d.documentElement.clientWidth)
    {v=d.documentElement.clientWidth;}
  else if(d.body && d.body.clientWidth)
    {v=d.body.clientWidth;}
  else if(CMS.def(w.innerWidth,w.innerHeight,d.height)) {
    v=w.innerWidth;
    if(d.height>w.innerHeight) v-=16;
  }
  return v;
};

// xDef, Copyright 2001-2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
CMS.def = function() {
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
  return true;
};