if(typeof(jScale) == "undefined") jScale = {};
jScale.getWidth = function(){
	var w = 0;
	if(document.documentElement && document.documentElement.clientWidth){// Explorer 6 strict
		w = document.documentElement.clientWidth;
	}else if (document.body && document.body.clientWidth){// Explorer, Gecko
		w = document.body.clientWidth;
	}else{// Netscape 4
		w = window.innerWidth;
    	if(document.height > window.innerHeight) w -= 16;
    }
    return w;
};
jScale.getHeight = function(){
	var h = 0;
	if(document.documentElement && document.documentElement.clientHeight){// Explorer 6 strict
		h = document.documentElement.clientHeight;
	}else if (document.body && document.body.clientHeight){// Explorer, Gecko
		h = document.body.clientHeight;
	}else{// Netscape 4
		h = window.innerHeight;
    	if(document.width > window.innerWidth) h -= 16;
    }
    return h;
};
