
//
//  Efecto de las fotos para verlas en los thumbnails
//  by Becker Cuéllar (c) 2001
//

cur_pic=1

MAX_PIC=13

PICS_2_SHIFT=4





function Set_it(value)

{

  if ( value==1 && cur_pic<MAX_PIC - PICS_2_SHIFT )

     cur_pic++;

  else if( value==-1 && cur_pic>1 )

       cur_pic--;



  if( cur_pic==1) 

    document.Flecha_izq.src="L_ROJO.gif";

  else if(cur_pic==MAX_PIC - PICS_2_SHIFT)               

    document.Flecha_der.src="R_ROJO.gif";

  else

  {

    document.Flecha_izq.src="L_VERDE.gif";

    document.Flecha_der.src="R_VERDE.gif";

  }

         

   
   this_pic = 0 + cur_pic;
   document.foto_1.src="BMW_"+ this_pic + "_0.gif";
   this_pic = 0 + cur_pic + 1;
   document.foto_2.src="BMW_"+ this_pic + "_0.gif";
   this_pic = 0 + cur_pic + 2;
   document.foto_3.src="BMW_"+ this_pic + "_0.gif";

   this_pic = 0 + cur_pic + 3;
   document.foto_4.src="BMW_"+ this_pic + "_0.gif";




   return( true );

}



function Poppy(esta_figura)

{


  if( esta_figura ==1)  // cicked on th forsy icon

  {

    window.open('/galeria_bmw/BMW_' + cur_pic +'.jpg' ,'new','scrollbar=1,toolbar=0,height=600,width=800');


  } 

  else if( esta_figura ==2)  // cicked on th forsy icon

  {

    this_picy = 0 + cur_pic + 1;

    window.open('/galeria_bmw/BMW_' + this_picy +'.jpg' ,'new','toolbar=0,height=600,width=800');



  } 

  else if( esta_figura ==3)  // cicked on th forsy icon

  {

    this_picy = 0 + cur_pic + 2;

    window.open('/galeria_bmw/BMW_' + this_picy +'.jpg' ,'new','toolbar=0,height=600,width=800');



  } 

  else if( esta_figura == 4)  // cicked on th forsy icon

  {

    this_picy = 0 + cur_pic + 3;

    window.open('/galeria_bmw/BMW_' + this_picy +'.jpg' ,'new','toolbar=0,height=600,width=800');



  } 

  return true;

}




