/*require swoop.core*/
/*swoop.cil.start*/
_swcillasthld=null;
swobj.prototype.registerImages=function(){
	for(i=0;i<this.doc.images.length;i++){
		timg=this.doc.images[i];
		if((typeof(timg.name)==is_type._str)&&(timg.name.length>0)){
			try{timg.swoop={idx:null,ovr:null,out:null,hld:false};
				if((typeof(timg.id)==is_type._str)&&(timg.id.length>0)){
					this.cil[timg.id]=timg;}
				tmp=timg.src.split("/");tmp.splice((tmp.length-1),1,timg.name);
				timg.swoop.ovr=tmp.join("/");
				timg.swoop.idx=i;
				timg.swoop.out=timg.src;
				timg.onmouseover=function(){
					return _swcilovr(this);}
				timg.onmouseout=function(){
					return _swcilout(this);}
				timg.onclick=function(){
					return _swcilclk(this);}}
			catch(e){return true;}}}
	return true;}
swobj.prototype.setCILImage=function(id){
	if((typeof(swoop)==is_type._obj)&&(typeof(swoop.cil)==is_type._obj)&&(typeof(swoop.cil[id])==is_type._obj)){
		_swcilovr(swoop.cil[id]);
		_swcilclk(swoop.cil[id]);}}
function _swcilovr(obj){
	if(!obj.swoop.hld){
		obj.src=obj.swoop.ovr;}
	return true;}
function _swcilout(obj){
	if(!obj.swoop.hld){
		obj.src=obj.swoop.out;}
	return true;}
function _swcilclk(obj){
	if((_swcillasthld!=null)&&(_swcillasthld!=obj)){
		_swcillasthld.swoop.hld=false;
		_swcilout(_swcillasthld);}
	_swcillasthld=obj;
	obj.swoop.hld=true;}
/*swoop.cil.end*/