/**
/*  window.js
/*  This object gives us cross browser access to useful window properties: height, width, hscroll, vscroll
/*
/*  Ben Ipsen  2005. No Copyright. No license. Just Love. 
/*  Use wisely and for the greater good.  
/*
/*  docs: http://benipsen.com/elementary/
**/


function _window(win){
      //without scrolling...
	  if( typeof( win.innerWidth ) == 'number' ) {
		//moz, opera
		this.width = win.innerWidth;
		this.height = win.innerHeight;
	  } else if( document.documentElement &&
		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//ie
		this.width = document.documentElement.clientWidth;
		this.height = document.documentElement.clientHeight;
	  }

	  //with scrolling..
	  if( typeof( win.pageYOffset ) == 'number' ) {
	    //netscape
	    this.vscroll = win.pageYOffset;
	    this.hscroll = win.pageXOffset;
	  } else if( document.documentElement ) {
	    //ie
	    this.vscroll = document.documentElement.scrollTop;
	    this.hscroll = document.documentElement.scrollLeft;
	  } else if( document.body ) {
		//dom
	    this.vscroll = document.body.scrollTop;
	    this.hscroll = document.body.scrollLeft;
	    
	  } else{
		this.vscroll = 'null';
	  }
}


