/*swoop.chimg.start*/
swoop.registerImages=function(){
	for(var j=0;j<document.images.length;j++){
		ti=document.images[j];
		if(ti.className=="sw_chimg"){
			try{ti.movr=new Image(ti.width,ti.height);
				ti.movr.src=ti.src.replace(/(\.[a-z]{2,5})$/i, ".ovr$1");
				ti.mout=new Image(ti.width,ti.height);
				ti.mout.src=ti.src;
				ti.mhld=false;
				ti.fovr=function(e){
					if(!this.mhld){this.src=this.movr.src;}}
				ti.fout=function(e){
					if(!this.mhld){this.src=this.mout.src};}
				ti.fclk=function(e){
					if(!this.mhld){
						for(k=0;k<document.images.length;k++){
							if(typeof(document.images[k].mhld)==is_type._bol){
								if(document.images[k].mhld){
									document.images[k].mhld=false;
									document.images[k].fout(e);}}}
						this.mhld=true;
						this.src=this.movr.src;}}
				ti.onmouseover=function(e){
					this.fovr(e);}
				ti.onmouseout=function(e){
					this.fout(e);}
				ti.onclick=function(e){
					this.fclk(e);}}
			catch(e){alert("lib \"chimg\" failed:"+e.description);}}}
	return true;}
try{swoop.setChimgActive=function(n){
		if(typeof(document.images[n])==is_type._obj){
			if(typeof(document.images[n].fclk)==is_type._fnc){
				document.images[n].fclk(null);}}}}
catch(e){alert("lib \"chimg\" failed:"+e.description);}
swoop.execOnLoad(function(){swoop.registerImages();});
/*swoop.chimg.end*/
