
function getWindowDimensions(){
	
	var height, width;
	
	if (typeof window.innerWidth != 'undefined'){
		
		width = window.innerWidth;
		height = window.innerHeight;

	} else if ((typeof document.documentElement != 'undefined') && (typeof document.documentElement.clientWidth != 'undefined') && (document.documentElement.clientWidth != 0)){

		width = document.documentElement.clientWidth;
		height = document.documentElement.clientHeight;
	
	} else {
		
		width = document.getElementsByTagName('body')[0].clientWidth;
		height = document.getElementsByTagName('body')[0].clientHeight;
	}
	
	if (navigator.userAgent.match("Win") && !navigator.userAgent.match("Firefox")) {
		
		height -= 58;
	}
	
	return {width:width, height:height };
}

Element.create = function(tagName, properties){

	var element = Object.extend(document.createElement(tagName), properties);
	Element.extend(element);
	return element;
};

Element.ignore = function(element){
	
    element.onselectstart = function() {
        return false;
    };
	
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
    element.style.cursor = "default";
}
