ptop=0;pleft=0;pwidth=380;pheight=445;wavetop=200;wavebot=pheight;opaz=100;nnmoz=0;uwidth=pwidth;uheight=wavebot-wavetop;steps=23;range=4;tim=25;autostart=1;slices=wavebot-wavetop;idnum=0;nnmoz=0;document.write("<div id='base' style=\"position:absolute; top:"+ptop+"px; left:"+pleft+"px; width:"+pwidth+"px; height:"+pheight+"px; clip:rect(0,"+pwidth+"px,"+pheight+"px,0); z-index:1;\"><IMG src='"+imagea+"' width='"+pwidth+"px' height='"+pheight+"px'></div>");document.write("<div id='reflect' style=\"position:absolute; top:"+ptop+"px; left:"+pleft+"px; width:"+pwidth+"px; height:"+pheight+"px; clip:rect(0,"+pwidth+"px,"+pheight+"px,0); z-index:3; overflow:hidden;\">");for(i=1;i<=steps;i+=1){document.write("<div id='slicenum"+i+"' style=\"position:absolute; top:0; left:0; z-index:3;\">");for(a=i;a<=slices;a+=steps){c2=wavetop+(a*1);c1=c2-1;document.write("<div style=\"position:absolute; top:0; left:0; width:"+pwidth+"px; height:"+pheight+"px; clip:rect("+c1+","+pwidth+"px,"+c2+",0); z-index:3; overflow:hidden;\"><IMG src='"+imagea+"' width='"+pwidth+"px' height='"+pheight+"px'></div>");}document.write("</div>");}document.write("</div>");wave=new Array();waveB=Math.PI*2/(steps-1);b=1;for(w=1;w<=steps;w++){wave[wave.length]=Math.sin(waveB*w)*range;}function firstmove(){if(b<=steps){document.getElementById('slicenum'+b).style.left=wave[b-1];b+=1;firstmove();}else{b=1;takeout=wave[0];wave=wave.slice(1,wave.length);wave[wave.length]=takeout;setTimeout('firstmove()',tim);}}function domoz(){for(m=1;m<=slices;m+=1){document.getElementById('picnum'+m).style.MozOpacity=opaz+'%';}}function start1(){domoz();firstmove();}function start2(){domoz();}function start3(){firstmove();}if(autostart&&nnmoz){onload=start1;}if(!autostart&&nnmoz){onload=start2;}if(autostart&&!nnmoz){onload=start3;}