function ResizeObj(w,h){
	var css, elm 
	if (this.constructor == DynLayer)
		eval("css=this.css")
	else {
		if (typeof(this.Obj) == 'object')
			eval("css=this.Obj.css")
		else return
	}
	if (is.ns4){
		css.clip.width = w
		css.clip.height = h	
		css.clip.top = 0
		css.clip.right = w
		css.clip.bottom = h
		css.clip.left = 0		
	}
	if (is.ie || is.ns5){
		css.width = w
		css.height = h
		css.clip = "rect(0px "+w+"px "+h+"px "+0+"px)"
	}
	this.w = w
	this.h = h
}

DynLayer.prototype.resize = ResizeObj

var winscrolls =true
function WindowWidth(){
	var scrollwidth = 
		winscrolls ? 20 : 4
	if (is.ie)
		return document.body.offsetWidth +	document.body.scrollLeft - scrollwidth
	if (is.ns)
		return window.pageXOffset + window.innerWidth
}

function WindowHeight(){
	if (is.ie)
		return document.body.offsetHeight + document.body.scrollTop -4
	if (is.ns)
		return window.pageYOffset + window.innerHeight
}
