﻿if (xmlhttp) {

 document.write('<a href="Move Left" onclick="left();return false;" id="lowerpaddock1" alt="Move the camera left"></a>')

}

function left() {

 updatelogtable("paddock","left");

  transmitting("lowerpaddock");
    
   document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return moveleft();' src ='http://www.greentreehorsefarm.com/move/movepaddockleft.php' width='115' height='25' SCROLLING='NO'></iframe>";
 
}


function moveleft() {

  var uniq = new Date();   

  uniq = uniq.getTime();

  transmitting("lowerpaddock"); 

 xmlhttp.open("GET", "move/paddockleft.php?" + uniq ,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the lower paddock camera to the left for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"lowerpaddock")  
      
   document.all.stall_number_print.innerHTML = ""; 

  }

 }

 xmlhttp.send(null)

}



if (xmlhttp) {

 document.write('<a href="Move Mid Left" onclick="midleft();return false;" id="lowerpaddock2"></a>')

}

function midleft() {

 updatelogtable("paddock","midleft");

  transmitting("lowerpaddock");
    
   document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movemidleft();' src ='http://www.greentreehorsefarm.com/move/movepaddockmidleft.php' width='115' height='25' SCROLLING='NO'></iframe>";
 
}


function movemidleft() {

  var uniq = new Date();   

  uniq = uniq.getTime(); 

    transmitting("lowerpaddock"); 

 xmlhttp.open("GET", "move/paddockmidleft.php?" + uniq ,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the lower paddock camera to the middle left for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"lowerpaddock")
   
   document.all.stall_number_print.innerHTML = ""; 
   
  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move Mid Right" onclick="midright();return false;" id="lowerpaddock3"></a>')

}

function midright() {

 updatelogtable("paddock","midright");

  transmitting("lowerpaddock");
    
   document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movemidright();' src ='http://www.greentreehorsefarm.com/move/movepaddockmidright.php' width='115' height='25' SCROLLING='NO'></iframe>";
 
}


function movemidright() {

  var uniq = new Date();   

  uniq = uniq.getTime();

    transmitting("lowerpaddock");  

 xmlhttp.open("GET", "move/paddockmidright.php?" + uniq ,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the lower paddock camera to the middle right for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"lowerpaddock")
   
   document.all.stall_number_print.innerHTML = ""; 
   
  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move Right" onclick="right();return false;" id="lowerpaddock4"></a>')

}

function right() {

 updatelogtable("paddock","right");

  transmitting("lowerpaddock");
    
   document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return moveright();' src ='http://www.greentreehorsefarm.com/move/movepaddockright.php' width='115' height='25' SCROLLING='NO'></iframe>";
 
}

function moveright() {

  var uniq = new Date();   

  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/paddockright.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the lower paddock camera to the right for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"lowerpaddock")
   
   document.all.stall_number_print.innerHTML = "";  

  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move 1" onclick="moveone();return false;" id="stall1"></a>')

}

function moveone() {

  updatelogtable("1_2","1");

  transmitting("stall_1_2");
    
   document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera1();' src ='http://www.greentreehorsefarm.com/move/movestall1.php' width='115' height='25' SCROLLING='NO'></iframe>";
 
 }
 
 function movethecamera1() {
 
  var uniq = new Date();   

  var countdownrefresh;
  
  uniq = uniq.getTime(); 
 
 xmlhttp.open("GET", "move/stall1.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {
   
   alert("I moved the stall camera to stall one for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm");
   // Check if loading is complete
     
    activate(xmlhttp.responseText,"stall_1_2");
    
document.all.stall_number_print.innerHTML = "";    
  }

 }

 xmlhttp.send(null);
 
}


if (xmlhttp) {

 document.write('<a href="Move 2" onclick="movetwo();return false;" id="stall2"></a>')

}

function movetwo() {

   updatelogtable("1_2","2");
  
   transmitting("stall_1_2"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera2();' src ='http://www.greentreehorsefarm.com/move/movestall2.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera2() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 
 
 xmlhttp.open("GET", "move/stall2.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall two for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_1_2")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move 3" onclick="movethree();return false;" id="stall3"></a>')

}

function movethree() {

 updatelogtable("3_6","3");

   transmitting("stall_2_6"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera3();' src ='http://www.greentreehorsefarm.com/move/movestall3.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera3() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/stall3.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall three for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_2_6")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}




if (xmlhttp) {

 document.write('<a href="Move 4" onclick="movefour();return false;" id="stall4"></a>')

}

function movefour() {

  updatelogtable("3_6","4");
  
    transmitting("stall_2_6"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera4();' src ='http://www.greentreehorsefarm.com/move/movestall4.php' width='115' height='25' SCROLLING='NO'></iframe>";

  }
 
 function movethecamera4() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

xmlhttp.open("GET", "move/stall4.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall four for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_2_6")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}



if (xmlhttp) {

 document.write('<a href="Move 5" onclick="movefive();return false;" id="stall5"></a>')

}

function movefive() {

 updatelogtable("3_6","5");

    transmitting("stall_2_6"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera5();' src ='http://www.greentreehorsefarm.com/move/movestall5.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera5() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/stall5.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall five for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_2_6")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}



if (xmlhttp) {

 document.write('<a href="Move 6" onclick="movesix();return false;" id="stall6"></a>')

}

function movesix() {

   updatelogtable("3_6","6");
  
    transmitting("stall_2_6"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera6();' src ='http://www.greentreehorsefarm.com/move/movestall6.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera6() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/stall6.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall six for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_2_6")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move 7" onclick="moveseven();return false;" id="stall7"></a>')

}

function moveseven() {

   updatelogtable("7_8","7");
  
    transmitting("stall_7_8"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera7();' src ='http://www.greentreehorsefarm.com/move/movestall7.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera7() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/stall7.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall seven for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_7_8")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}


if (xmlhttp) {

 document.write('<a href="Move 8" onclick="moveeight();return false;" id="stall8"></a>')

}

function moveeight() {

   updatelogtable("7_8","8");
  
    transmitting("stall_7_8"); 
    
    document.all.hrefimagemap.innerHTML = "<iframe id='cameraload' onload='return movethecamera8();' src ='http://www.greentreehorsefarm.com/move/movestall8.php' width='115' height='25' SCROLLING='NO'></iframe>";

 }
 
 function movethecamera8() {
 
  var uniq = new Date();   
  
  uniq = uniq.getTime(); 

 xmlhttp.open("GET", "move/stall8.php?" + uniq,true);

 xmlhttp.onreadystatechange=function() {

  if (xmlhttp.readyState==4) {

   alert(" I moved the stall camera to stall eight for you - it will change in about " + xmlhttp.responseText + " seconds. \n \n You won't be able to move the camera again for " + xmlhttp.responseText + " seconds, but in the mean time why don't you try clicking on the links to our sponsors on the right?  \n \n Thanks, Green Tree Horse Farm")

   activate(xmlhttp.responseText,"stall_7_8")
    
document.all.stall_number_print.innerHTML = "";  
  }

 }

 xmlhttp.send(null)

}
