/* 
 * 
/*--------------------------------------------------------------------------*/
var getClientSize = function(){
	var client = (function(){
		if(!!(window.attachEvent && !window.opera) && document.compatMode == 'CSS1Compat'){
			return document.documentElement;
		}
		else if(!!(window.attachEvent && !window.opera)){
			return document.body;
		}
		else{
			return document.documentElement;
		}
	})();
	return ({"width" : client.clientWidth, "height" : client.clientHeight});
}
var addListen = (function(){
	if(typeof addEventListener != 'undefined'){
		return function(elm, type, func){
			elm.addEventListener(type, func, false);
		}
	}
	else if(typeof attachEvent != 'undefined'){
		return function(elm, type, func){
			elm.attachEvent('on' + type, func, false);
		}
	}
	else{
		return new Function;
	}
})();
var getRandomArbitary = function(numMin, numMax){
	return Math.random() * (numMax - numMin) + numMin;
}
var getRandomInt = function(numMin, numMax){
	return Math.floor(Math.random() * (numMax - numMin + 1)) + numMin;
}
