x=false;
af=Math.floor;
ag=RegExp;
fisheyearrayimgnamelist=new z("null","home","shop","catalog","help","about","sitemap");
fisheyearray=new z(fisheyearrayimgnamelist.length); // holds the current color value for the text label
fisheyearrayimagelist=new z(fisheyearray.length-1);

ab=10;
t=0;
u=0;
n=0;
o=new v(); 
h=5;
c=0;
w=x;
var title;
var firstHoverOccurred=x;
m=385;
p=0;

function d(ac){
  c=ac;
  o=new v();
  setTimeout("gidle()",20);
}

function e(ac){
  c=0;
  w=x;
  o=new v();
  setTimeout("gidle()",20);
}

function ae(){
  for(var j=1;j<fisheyearray.length;j++){
    fisheyearray[j]=25
  }
  title=k.getElementById('imageTitle');
  for(i=0;i<fisheyearray.length;i++){
    fisheyearrayimagelist[i]=new Image();
    fisheyearrayimagelist[i].src="../images/"+fisheyearrayimgnamelist[i+1]+".png"
  }
  setTimeout("gidle()",20);
}

function gidle(){
  var l=0;
  for(var i=1;i<fisheyearray.length;i++){
    var imagename="tinyfisheye"+i;
    var imageElem=k.getElementById(imagename);
    if(c!=i){
      if(fisheyearray[i]>25){
        fisheyearray[i]-=h;
        if(fisheyearray[i]<=25){
          fisheyearray[i]=25;
          imageElem.src="../images/"+fisheyearrayimgnamelist[i]+"-sm.png";
        }
        imageElem.height=fisheyearray[i];
        imageElem.width=fisheyearray[i];
        if(c==0){
          var g=af(255-255*(fisheyearray[i]-25)/25);
          title.style.color="rgb("+g+","+g+","+g+")";
        }
        p=1;
      }
      l+=fisheyearray[i];
    }
  }
  if(c!=0&&fisheyearray[c]<46){
    imagename="tinyfisheye"+c;
    imageElem=k.getElementById(imagename);
    if(w==x){
      w=true;
      if(c<6){
        var y=360-(c-1)*46;
        title.innerHTML=k.getElementById(imagename).alt+'<img src="../images/cleardot.gif" width="'+y+'" height="1"/>';
      }
      else{
        var y=(c-7)*46+46;
        title.innerHTML='<img src="../images/cleardot.gif" width="'+y+'" height="1"/>'+k.getElementById(imagename).alt;
      }
    }
    fisheyearray[c]+=h;
    p=1;
    if(fisheyearray[c]>46){
      fisheyearray[c]=46;
    }
    l+=fisheyearray[c];
    if(l<m){
      fisheyearray[c]+=m-l;
      if(fisheyearray[c]>46){
        fisheyearray[c]=46;
      }
      l=m;
    }
    var g=af(255-255*(fisheyearray[c]-25)/25);
    title.style.color="rgb("+g+","+g+","+g+")";
    imageElem.height=fisheyearray[c];
    imageElem.width=fisheyearray[c];
    k.getElementById(imagename).src="../images/"+fisheyearrayimgnamelist[c]+".png";
  }
  m=l;
  var ad=new v();
  ab=ad.getTime()-o.getTime();
  o=ad;
  t+=ab;
  u++;
  n=t/u;
  h=5;
  if(u>4){
    if(n>30){
      h=10;
    }
    if(n>60){
      h=15;
    }
    if(n>90){
      h=20;
    }
  }
  if(p){
    setTimeout("gidle()",20);
    p=0;
  }
}

function qs(r){
  alert(r+" was clicked");
  return 1
}