var frame=0;
var play=1;
var ant;
var pos;
function page_onload(){
$("headerSearchQ").focus();
animate();
document.body.onUnload=GUnload;
}
function change(_1,_2){
play=0;
new Effect.Fade(document.getElementById("animation"+_1));
new Effect.Appear(document.getElementById("animation"+_2),{delay:1});
}
function rotate(_3,_4){
new Effect.Fade(document.getElementById("animation"+_3));
new Effect.Appear(document.getElementById("animation"+_4),{delay:1});
}
function animate(){
if(play==1){
if(frame==1){
rotate(1,2);
}else{
if(frame==2){
rotate(2,3);
}else{
if(frame==3){
rotate(3,4);
}else{
if(frame==4){
rotate(4,5);
}else{
if(frame==5){
rotate(5,1);
}else{
if(++frame>5){
frame=1;
}
}
}
}
}
}
window.setTimeout("animate();",7000);
}
}

