/*

*/
function clone(myObj){
	if(typeof(myObj) != 'object') return myObj;
	if(myObj == null) return myObj;

	var myNewObj = new Object();

	for(var i in myObj)
		myNewObj[i] = clone(myObj[i]);

	return myNewObj;
}
function timestamp(){return Date.parse(new Date());};
function isFunction(func){return func && func instanceof Function;};
function isArray(arr){return arr && arr instanceof Array;};
String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,"");};
String.prototype.ltrim = function() {return this.replace(/^\s+/,"");};
String.prototype.rtrim = function() {return this.replace(/\s+$/,"");};
function preloadImages(){ 
	var d=document;
	if(d.images){
		if(!d.MM_p) 
			d.MM_p=new Array(); 
		var i,j=d.MM_p.length,a=preloadImages.arguments; 
		for(i=0; i<a.length; i++) 
			if (a[i].indexOf("#")!=0){ 
				d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
	} 
}
