// JavaScript Document
String.prototype.trim = function() { 
	return this.replace(/^\s+|\s+$/g, ""); 
};
Array.prototype.in_array = function(s) {
	for(var i=0;i<this.length;i++)
		if(this[i] == s) return true;
	return false;
};
function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  	} 
  }
}