
    foto_cooldown=false;
    foto_pos=0;
    foto_max=7;
    foto_leftgrey=true;
    foto_rightgrey=false;
    function foto_moveleft(){
       if(foto_pos>0){
       if (!foto_cooldown){
        foto_pos--;
        if(foto_pos==0) {
          document.getElementById('foto_leftid').src='images/foto_leftg.gif';
          foto_leftgrey=true;
        }
        if(foto_pos==(foto_max-1)){
           document.getElementById('foto_rightid').src='images/foto_right.gif';
           foto_rightgrey=false;
         }
        foto_cooldown=true;      
        new ypChaser("foto_scrollwow", 0, 1000, 0, 0, -618,true,true);
        setTimeout('foto_cooldown=false',1000);
      }
    }
    }
    function foto_overmousel(n){
      if (!foto_leftgrey){
        n==1 ? document.getElementById('foto_leftid').src='images/foto_lefth.gif': document.getElementById('foto_leftid').src='images/foto_left.gif' ;
      }
    }
    function foto_overmouser(n){
      if (!foto_rightgrey){
        n==1 ? document.getElementById('foto_rightid').src='images/foto_righth.gif': document.getElementById('foto_rightid').src='images/foto_right.gif' ;
      }
    }
    function foto_moveright(){
     if(foto_pos<foto_max){
      if (!foto_cooldown){
        foto_pos++;
        if(foto_pos==foto_max) {
          document.getElementById('foto_rightid').src='images/foto_rightg.gif';
          foto_rightgrey=true;
        }
        if(foto_pos==1) {
          document.getElementById('foto_leftid').src='images/foto_left.gif';
          foto_leftgrey=false;
        }
        foto_cooldown=true;      
        new ypChaser("foto_scrollwow", 0, 1000, 0, 0, 618,true,true);
        setTimeout('foto_cooldown=false',1000);
      }
    }
    }
    
    

