	
	function $(e)		{ return document.getElementById(e); }
	
	function $N(n,t)	{ 
		if (arguments.length == 1) return document.getElementsByTagName(n);
		else return n.getElementsByTagName(t); 
	}
		
	function $$(t)	{ return document.createElement(t);  }
	
	function $$T(t)	{ return document.createTextNode(t); }
		
	function $A(n, a)	{ return n.getAttribute(a);}
		
	function emptyNode(n) {
		if(typeof n == 'string') n =$(n);
		while(n.hasChildNodes()) {n.removeChild(n.firstChild)}
	}

	function getQueryParams(que) {		
		var qA = que.split('&');
		var q = {};
		
		for(var i=0; i<qA.length; i++) {
			var tmp = qA[i].split('=');
			q[tmp[0]] = tmp[1]
		}
		return q;
	}
	
	function scrollPosition() {
		var _x = window.pageXOffset || (document.documentElement.scrollLeft + document.body.scrollLeft);
		var _y = window.pageYOffset || (document.documentElement.scrollTop + document.body.scrollTop);
		return {x:_x, y:_y};
	}
	
	function windowSize() {
		var _w = (typeof(window.innerWidth)=='number') ?  window.innerWidth : document.body.clientWidth;
		var _h = (typeof(window.innerHeight)=='number') ?  window.innerHeight : document.body.clientHeight;
		return {w: _w, h: _h};
	}
	
	/*
						
		var scrollHeight = (document.body.scrollHeight || document.documentElement.scrollHeight) - windowHeight;
		var totalHeight  = window.scrollMaxY || scrollHeight;
				
		Reste : '+(totalHeight - scrollTop);
	
	*/