var com_remiya_simplest = {
    _init:function(){},
    size:function(){
	    var w=0,h=0;
        if( typeof( window.innerWidth ) == 'number' ) {/* Not - IE */w = window.innerWidth;h = window.innerHeight;}
		else {
		    if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	            /* IE 6+ 'standart */w = document.documentElement.clientWidth;h = document.documentElement.clientHeight;
		    } else {
			    /* IE 4 compatible */
			    if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {w = document.body.clientWidth;h = document.body.clientHeight;}
		    }
	    }
		return {width:w,height:h,w:w,h:h};
    },
    rnum:function(range){return Math.floor(Math.random() * range);},
    rchar:function(){var chars = "0123456789abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return chars.substr( com_remiya_simplest.rnum(62), 1 );},
    rid:function(size){var str = "";for(var i = 0; i < size; i++){str += com_remiya_simplest.rchar();}return str;},
	uid:function(){var date = new Date();var uid = date.getFullYear()+""+date.getMonth()+""+date.getDate()+""+date.getTime();return uid;}
};
com_remiya_simplest._init();

// START: Namespace
if(com===undefined){var com = {};}if(com.remiya===undefined){com.remiya = {};}if(com.remiya.simplest===undefined){com.remiya.simplest = com_remiya_simplest;}
// END: Namespace

// START: String++
if(typeof String.prototype.capitalize==='undefined' ) {
	String.prototype.capitalize = function(){return this.replace(/\w+/g, function(a){return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase();});};
}
if(typeof String.prototype.is_number==='undefined') {
    String.prototype.is_number = function(){return /^-?((\d+\.?\d?)|(\.\d+))$/.test(this);};
}
if(typeof String.prototype.trim==='undefined') {
    String.prototype.trim = function(){return this.replace(/^\s+|\s+$/g,"");};
}
// END: String++

// START: Array++
if(typeof Array.prototype.exists==='undefined' ) {
	Array.prototype.exists = function(e){for(var j=0;j<this.length;j++){if(this[j]==e){return true;}}return false;};
}
if(typeof Array.prototype.unique==='undefined' ) {
	Array.prototype.unique = function(){var temp = [];for(var i=0;i<this.length;i++){if(temp.exists(this[i])===false){temp[temp.length]=this[i];}}return temp;};
}
// END: Array++
