ptop=84;
pleft=0;
imagea='media/banner_under.jpg'; 
pwidth=770;
pheight=60;
wavetop=0;
wavebot=60;
reverse=0;
opaz=100;
nnmoz=1;
underlay=0; 
uwidth=770;
uheight=wavebot-wavetop;
steps=45;
range=4;
tim=55; 
autostart=1;
slices=wavebot-wavetop;idnum=0;
if(reverse){
revfac=slices/wavetop;reflheight=pheight*revfac;reflmosttop=wavetop-slices;clipwidth=pwidth-range*2;
document.write("<div id='base' style=\"position:absolute; top:"+ptop+"px; left:"+pleft+"px; width:"+pwidth+"px; height:"+wavetop+"px; clip:rect(0,"+clipwidth+"px,"+wavetop+"px,"+range+"px); z-index:1;\"><IMG src='"+imagea+"' width='"+pwidth+"px' height='"+pheight+"px'></div>");
if(underlay){backgrtop=ptop+(wavetop*1);
document.write("<div id='thewater' style=\"position:absolute; top:"+backgrtop+"px; left:"+pleft+"px; width:"+uwidth+"px; height:"+uheight+"px; clip:rect(0,"+clipwidth+"px,"+slices+"px,"+range+"px); z-index:2;\"><IMG src='"+underlay+"' width='"+uwidth+"px' height='"+uheight+"px'></div>");
}
document.write("<div id='reflect' style=\"position:absolute; top:"+reflmosttop+"px; left:"+pleft+"px; width:"+pwidth+"px; height:"+pheight*2+"px; clip:rect(0,"+clipwidth+"px,"+pheight*2+"px,"+range+"px); 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; width:"+pwidth+"px; height:"+pheight*2+"px; z-index:3;\">");
	for (a=i; a<=slices; a+=steps) {reversetop=slices*2+(ptop*1)-a*2+(1*1);c2=a;c1=c2-1;idnum+=1;
document.write("<div id='picnum"+idnum+"' style=\"position:absolute; top:"+reversetop+"; left:0; width:"+pwidth+"px; height:"+c2+"px; clip:rect("+c1+","+pwidth+"px,"+c2+",0); z-index:3; filter:'Alpha(Opacity="+opaz+")'; overflow:hidden;\"><IMG src='"+imagea+"' width='"+pwidth+"px' height='"+reflheight+"px'></div>");}
document.write("</div>");}
document.write("</div>");}

if(!reverse){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;}
