<!-- Paste this code into an external JavaScript file named: scrollDiv.js  -->
function loadXMLDoc(url,posx,posy){ 
var xmlhttp; 
if (window.XMLHttpRequest){ 
xmlhttp= new XMLHttpRequest();}

else {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }

//----------------End-------------------------
xmlhttp.onreadystatechange = display;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

  function display() {
   if (xmlhttp.readyState == 4){
   if (xmlhttp.status == 200 ) {
   var ScrollTop = document.body.scrollTop;
   if (ScrollTop == 0) { if (window.pageYOffset)
   ScrollTop = window.pageYOffset;
   else
   ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
   }
   if(posx>628){posx= 200;}
   popup.style.left = posx +203 +"px";
   popup.style.top= posy + ScrollTop +"px";
   document.getElementById('popup').innerHTML=xmlhttp.responseText;
   document.getElementById("popup").style.display = 'block'; 
 }}}}
function divblock(){document.getElementById("popup").style.display = 'none';} 

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mr J :: http://www.huntingground.net/
 */

 scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight)
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",8)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",8)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight)
  clearTimeout(timerLeft)
}

function loadXMLDoc(url,posx,posy){ 
var xmlhttp; 
if (window.XMLHttpRequest){ 
xmlhttp= new XMLHttpRequest();}

else {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }

//----------------End-------------------------
xmlhttp.onreadystatechange = display;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

  function display() {
   if (xmlhttp.readyState == 4){
   if (xmlhttp.status == 200 ) {
   var ScrollTop = document.body.scrollTop;
   if (ScrollTop == 0) { if (window.pageYOffset)
   ScrollTop = window.pageYOffset;
   else
   ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
   }
   if(posx>628){posx= 200;}
   popup.style.left = posx +203 +"px";
   popup.style.top= posy + ScrollTop +"px";
   document.getElementById('popup').innerHTML=xmlhttp.responseText;
   document.getElementById("popup").style.display = 'block'; 
 }
 } 
}
}
function divblock(){document.getElementById("popup").style.display = 'none';} 
