var img_ct = 0;
var gInterval;
var alts = new Array;
window.onload = function(){
	
}
function cs(o){
	if(o.value=='search') 
		o.value='';
	else if(o.value == '')
		o.value='search';	
}
var ixw={'clock':null,'count':0};function crosswipe(){if(ixw.clock==null){ixw.obj=arguments[0];ixw.size={'w':ixw.obj.width,'h':ixw.obj.height};ixw.src=arguments[1];if(typeof arguments[4]!='undefined'&&arguments[4]!=''){ixw.obj.alt=arguments[4];}if(typeof document.createElementNS!='undefined'||typeof document.createElement!='undefined'){ixw.newimg=document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS!='undefined')?document.createElementNS('http://www.w3.org/1999/xhtml','img'):document.createElement('img'));ixw.newimg.className='idupe';ixw.newimg.src=ixw.src;ixw.newimg.style.left=ixw.getRealPosition(ixw.obj,'x')+'px';ixw.newimg.style.top=ixw.getRealPosition(ixw.obj,'y')+'px';ixw.newimg.style.clip='rect(0, 0, 0, 0)';ixw.newimg.style.visibility='visible';ixw.length=parseInt(arguments[2],10)*1000;ixw.resolution=parseInt(arguments[2],10)*20;ixw.dir=arguments[3];ixw.clock=setInterval('ixw.crosswipe()',ixw.length/ixw.resolution);}else{ixw.obj.src=ixw.src;}}};ixw.crosswipe=function(){ixw.count-=(1/ixw.resolution);if(ixw.count<(1/ixw.resolution)){clearInterval(ixw.clock);ixw.clock=null;ixw.count=1;ixw.obj.src=ixw.src;}ixw.newimg.style.clip='rect('+((/bt|bltr|brtl/.test(ixw.dir))?(ixw.size.h*ixw.count):(/che|cc/.test(ixw.dir))?((ixw.size.h*ixw.count)/2):(0))+'px, '+((/lr|tlbr|bltr/.test(ixw.dir))?(ixw.size.w-(ixw.size.w*ixw.count)):(/cve|cc/.test(ixw.dir))?(ixw.size.w-((ixw.size.w*ixw.count)/2)):(ixw.size.w))+'px, '+((/tb|tlbr|trbl/.test(ixw.dir))?(ixw.size.h-(ixw.size.h*ixw.count)):(/che|cc/.test(ixw.dir))?(ixw.size.h-((ixw.size.h*ixw.count)/2)):(ixw.size.h))+'px, '+((/lr|tlbr|bltr/.test(ixw.dir))?(0):(/tb|bt|che/.test(ixw.dir))?(0):(/cve|cc/.test(ixw.dir))?((ixw.size.w*ixw.count)/2):(ixw.size.w*ixw.count))+'px)';ixw.newimg.style.left=ixw.getRealPosition(ixw.obj,'x')+'px';ixw.newimg.style.top=ixw.getRealPosition(ixw.obj,'y')+'px';if(ixw.count==1){ixw.newimg.parentNode.removeChild(ixw.newimg);}};ixw.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;};
function $() {
  var elements = new Array();
  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
      element = document.getElementById(element);
    if (arguments.length == 1) 
      return element;
    elements.push(element);
  }
  return elements;
}

