function preLoad(){imagePath=imageFiles[0];for(var i=1;i<imageFiles.length;i++){imageFile=imageFiles[i];imageName='img'+i;eval(imageName+'=new Image();'+imageName+'.src="'+imagePath+imageFile+'"');}}
function preLoad2(imagePath,fileArray){for(var i=0;i<fileArray.length;i++){imageFile=fileArray[i];imageName='img'+i;eval(imageName+'=new Image();'+imageName+'.src="'+imagePath+imageFile+'"');}}
function getAvailableWidth(){if(isNS||isOP)return window.innerWidth;else return document.body.clientWidth;}
function getAvailableHeight(){if(isNS||isOP)return window.innerHeight;else return document.body.clientHeight;}
function getDocumentWidth(){if(isNS)return document.width;if(!isOP)return document.body.scrollWidth;else if(opversion<7)return window.innerWidth;else return document.body.clientWidth;}
function getDocumentHeight(){if(isNS)return document.height;if(!isOP)return document.body.scrollHeight;else if(opversion<7)return window.innerHeight;else return document.body.clientHeight;}
function getFlashMovieObject(id){if(isOP) return document[id]; else if(isIE) return eval('window.'+id);else return eval('window.document.'+id);}
function msgStatus(msg){status=msg;return true}
function array_Add(){arrayObj=arguments[0];for(var a=1;a<arguments.length;a++)arrayObj[arrayObj.length]=arguments[a];return arrayObj.length;}
function array_Remove(arrayObj,el){var L=arrayObj.length;var tmpArray=arrayObj;for(var i=0;i<L;i++){if(arrayObj[i]==el){tmpArray=arrayObj.slice(0,i).concat(arrayObj.slice(i+1,L));L--;arrayObj.length--;}}for(var i=0;i<L;i++)arrayObj[i]=tmpArray[i];return arrayObj.length;}
function rlPage(){if((isIE&&!isOP)||isNS6||isNS60||isNS7||isNS7UP)setTimeout('window.location.reload()',1000);else window.location.reload()};
function clearString(str){str = str.replace(/"/g, "&#146;");str = str.replace(/'/g, "&#146;");return str;}
function noFocus(obj){if(obj.blur)obj.blur();}
function getWindowWidth() {
	var myWidth = 0;
	if(typeof(window.innerWidth) == 'number'){
		myWidth = window.innerWidth;
	}else if(document.documentElement && document.documentElement.clientWidth){
		myWidth = document.documentElement.clientWidth;
	}else if(document.body && document.body.clientWidth){
		myWidth = document.body.clientWidth;
	}
	return myWidth;
}
function getWindowHeight() {
	var myHeight = 0;
	if(typeof(window.innerHeight) == 'number'){
		myHeight = window.innerHeight;
	}else if(document.documentElement && document.documentElement.clientHeight){
		myHeight = document.documentElement.clientHeight;
	}else if(document.body && document.body.clientHeight){
		myHeight = document.body.clientHeight;
	}
	return myHeight;
}
