// JavaScript Document
///////Do not edit pass this line///////////////////////

var iex=document.all;
var domx=document.getElementById;

if (slideimagesx.length > 2)
ix=2;
else
ix=0;

function move1x(whichlayer){
tlayer = eval(whichlayer);
if (tlayer.top > 0 && tlayer.top <= 5){
tlayer.top=0;
setTimeout("move1x(tlayer)",pausebetweenimagesx);
setTimeout("move2x(document.mainx.document.secondx)",pausebetweenimagesx);
return
}
if (tlayer.top >= tlayer.document.height*-1){
tlayer.top-=5;
setTimeout("move1x(tlayer)",50);
}
else{
tlayer.top=parseInt(scrollerheightx);
tlayer.document.write(slideimagesx[i]);
tlayer.document.close();
if (ix==slideimagesx.length-1)
ix=0;
else
ix++;
}
}

function move2x(whichlayer){
tlayer2=eval(whichlayer);
if (tlayer2.top > 0 && tlayer2.top <= 5){
tlayer2.top=0;
setTimeout("move2x(tlayer2)",pausebetweenimagesx);
setTimeout("move1x(document.mainx.document.firstx)",pausebetweenimagesx);
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5;
setTimeout("move2x(tlayer2)",50);
}
else{
tlayer2.top=parseInt(scrollerheightx);
tlayer2.document.write(slideimagesx[i]);
tlayer2.document.close();
if (ix==slideimagesx.length-1)
ix=0;
else
ix++;
}
}

function move3x(whichdiv){
tdiv=eval(whichdiv);
if (parseInt(tdiv.style.top) > 0 && parseInt(tdiv.style.top) <= 5){
tdiv.style.top=0+"px";
setTimeout("move3x(tdiv)",pausebetweenimagesx);
setTimeout("move4x(second2_obj)",pausebetweenimagesx);
return;
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top = parseInt(tdiv.style.top)-5+"px";
setTimeout("move3x(tdiv)",50);
}
else{
tdiv.style.top=scrollerheightx;
tdiv.innerHTML=slideimagesx[ix];
if (ix==slideimagesx.length-1)
ix=0;
else
ix++;
}
}

function move4x(whichdiv){
tdiv2=eval(whichdiv);
if (parseInt(tdiv2.style.top) > 0 && parseInt(tdiv2.style.top) <= 5){
tdiv2.style.top=0+"px";
setTimeout("move4x(tdiv2)",pausebetweenimagesx);
setTimeout("move3x(first2_obj)",pausebetweenimagesx);
return;
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px";
setTimeout("move4x(second2_obj)",50);
}
else{
tdiv2.style.top=scrollerheightx;
tdiv2.innerHTML=slideimagesx[ix];
if (ix==slideimagesx.length-1)
ix=0;
else
ix++;
}
}

function startscrollx(){
if (iex||domx){
first2_obj=iex? first2x : document.getElementById("first2x");
second2_obj=iex? second2x : document.getElementById("second2x");
move3x(first2_obj);
second2_obj.style.top=scrollerheightx;
second2_obj.style.visibility='visible';
}
else if (document.layers){
document.mainx.visibility='show';
move1x(document.mainx.document.firstx);
document.mainx.document.secondx.top=parseInt(scrollerheightx)+5;
document.mainx.document.secondx.visibility='show';
}
}

window.onload=startscrollx;

if (iex||domx){
document.writeln('<div id="main2x" style="position:relative;width:'+scrollerwidthx+';height:'+scrollerheightx+';overflow:hidden;">');
document.writeln('<div style="position:absolute;width:'+scrollerwidthx+';height:'+scrollerheightx+';clip:rect(0 '+scrollerwidthx+' '+scrollerheightx+' 0);left:0px;top:0px;">');
document.writeln('<div id="first2x" style="position:absolute;width:'+scrollerwidthx+';left:0px;top:1px;">');
document.write(slideimagesx[0])
document.writeln('</div>');
document.writeln('<div id="second2x" style="position:absolute;width:'+scrollerwidthx+';left:0px;top:0px;visibility:hidden;">');
document.write(slideimagesx[dyndetermine=(slideimagesx.length==1)? 0 : 1]);
document.writeln('</div>');
document.writeln('</div>');
document.writeln('</div>');
}
