 //---------------------------
// javascript my prototype
//---------------------------
if( ! !! Array.prototype.indexOf){
	Array.prototype.indexOf = function( str ){
		for(var i=0,len=this.length;i<len;i++){
			if( str == this[i] ){ return i;}
		}
		return -1;
	};
}
/*
if( ! !! Object.prototype.extend ){
	Object.prototype.extend = function( add ){
		var nullstr = "null";
		var understr = "undefined";
		for (var prop in add) {
			if( typeof(this[prop]) == ( nullstr && understr ) ){
				this[prop] = add[prop];
			}else{
				if( typeof(this.parent) == ( nullstr && understr ) ){ this.parent = {};}
				this.parent[prop] = add[prop];
			}
		}
	};
}
if( ! !! Object.prototype.copy ){
	Object.prototype.copy = function(){
		var obj = new Object();
		for (var prop in this) { obj[prop] = obj[prop];}
			return obj;
	};
}
if( ! !! document.getElementsByClassName){
	document.getElementsByClassName =function( className ){
		var func = function( pr , cN ,ar){
			var chi = pr.firstChild;
			while(!! chi ){
				if(!! chi.tagName){
					if( cN == chi.className ){ ar.push( chi );}
					if( chi.hasChildNodes() ){ ar = arguments.callee( chi , cN , ar );}
				}
				chi = chi.nextSibling;
			}
			return ar;
		};
		return func( this , className , new Array() );
	};
}
*/
