var ixfs=new Hash();
function init(B){var A={clock:null,count:1};
A.imgs=[];
A.imgsLen=A.imgs.length;
A.cache=[];
for(var C=0;
C<A.imgsLen;
C++){A.cache[C]=new Image;
A.cache[C].src=A.imgs[C]
}A.crossfade=function(){A.count-=(1/A.resolution);
if(A.count<(1/A.resolution)){clearInterval(A.clock);
A.clock=null;
A.count=1;
A.obj.src=A.src
}switch(A.type){case"ie":A.obj.filters.alpha.opacity=A.count*100;
A.newimg.filters.alpha.opacity=(1-A.count)*100;
break;
case"khtml":A.obj.style.KhtmlOpacity=A.count;
A.newimg.style.KhtmlOpacity=(1-A.count);
break;
case"moz":A.obj.style.MozOpacity=(A.count==1?0.9999999:A.count);
A.newimg.style.MozOpacity=(1-A.count);
break;
default:A.obj.style.opacity=(A.count==1?0.9999999:A.count);
A.newimg.style.opacity=(1-A.count)
}A.newimg.style.visibility="visible";
A.newimg.style.left=A.getRealPosition(A.obj,"x")+"px";
A.newimg.style.top=A.getRealPosition(A.obj,"y")+"px";
if(A.count==1){A.newimg.parentNode.removeChild(A.newimg)
}};
A.getRealPosition=function(){this.pos=(arguments[1]=="x")?arguments[0].offsetLeft:arguments[0].offsetTop;
this.tmp=arguments[0].offsetParent;
while(this.tmp!=null){this.pos+=(arguments[1]=="x")?this.tmp.offsetLeft:this.tmp.offsetTop;
this.tmp=this.tmp.offsetParent
}return this.pos
};
ixfs[B]=A
}function crossfade(){var B=arguments[3];
if(ixfs[B]==null){init(B)
}var A=ixfs[B];
if(A.clock==null){A.obj=arguments[0];
A.src=arguments[1];
if(typeof A.obj.style.opacity!="undefined"){A.type="w3c"
}else{if(typeof A.obj.style.MozOpacity!="undefined"){A.type="moz"
}else{if(typeof A.obj.style.KhtmlOpacity!="undefined"){A.type="khtml"
}else{if(typeof A.obj.filters=="object"){A.type=(A.obj.filters.length>0&&typeof A.obj.filters.alpha=="object"&&typeof A.obj.filters.alpha.opacity=="number")?"ie":"none"
}else{A.type="none"
}}}}if(typeof arguments[4]!="undefined"&&arguments[4]!=""){A.obj.alt=arguments[4]
}if(A.type!="none"){A.newimg=document.getElementsByTagName("body")[0].appendChild((typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml","img"):document.createElement("img"));
A.newimg.className="idupe";
A.newimg.id=B;
A.newimg.src=A.src;
A.newimg.style.left=A.getRealPosition(A.obj,"x")+"px";
A.newimg.style.top=A.getRealPosition(A.obj,"y")+"px";
A.length=parseInt(arguments[2],10)*1000;
A.resolution=parseInt(arguments[2],10)*20;
A.clock=setInterval("ixfs['"+B+"'].crossfade('"+B+"')",ixfs[B].length/ixfs[B].resolution)
}else{A.obj.src=A.src
}}};
