

 var dx=0;
 var stop=1;
 var inc_dx=0;
 var buts_show=new Array();

 function moveRight() {
   // hideButts();
    dx=-10;
    stop=0;
    inc_dx=-2;
 }

 function moveLeft() {
   // hideButts();
    dx=10;
    stop=0;
    inc_dx=2;
 }
function moveTop() {
//    hideButts();
    dx=10;
    stop=0;
    inc_dx=2;
 }
  function moveBottom() {
//    hideButts();
    dx=-10;
    stop=0;
    inc_dx=-2;
 }



 function chgDX() {
   if(!stop)
      dx=dx+inc_dx;
 }

 function moveStop() {
    dx=0;
    stop=1;
 }

 function move() {
 
   node=document.getElementById('photo_line');
   x = parseInt(node.style.marginTop);
   new_x=x+dx;
   //mmax = "-"+(document.getElementById('photo_line').clientHeight-289); //offsetWidth
   mmax = "-"+(document.getElementById('photo_line').offsetHeight-289);
   //mmax = -668;
   if(new_x<=11 && new_x>=mmax) {
           node.style.marginTop=new_x+"px";
   } else {
       stop=1;
   }
 }
  function move_gor() {
 
   node=document.getElementById('photo_line_gor');
   x = parseInt(node.style.marginLeft);
   new_x=x+dx;
   //mmax = "-"+(document.getElementById('photo_line').clientHeight-289); //offsetWidth
   mmax = "-"+(document.getElementById('photo_line_gor').offsetWidth-855);
   //mmax = -668;
   if(new_x<=2 && new_x>=mmax) {
           node.style.marginLeft=new_x+"px";
   } else {
       stop=1;
   }
 }
 
 function Disab(){
	document.getElementById('subm').disabled = false; 
	 }


