var $ = function(id){return document.getElementById(id)};
var showConent = $("showConent");
var a = $("a");
var b = $("b");
var show = $("show");
var d;
b.innerHTML = a.innerHTML;
function scrolls(){
d = "n";
if(b.offsetWidth - showConent.scrollLeft <=0){
 showConent.scrollLeft = showConent.scrollLeft - b.offsetWidth;
}
else{
 showConent.scrollLeft++;
}
}

t = setInterval("scrolls()",30)

function backScrolls(){
if(showConent.scrollLeft <=0){
 showConent.scrollLeft = showConent.scrollLeft + b.offsetWidth;
}
else{
 showConent.scrollLeft--;
}
}
function left(){
d = "n";
clearT();
t = setInterval("scrolls()",30);
}
function right(){
d = "m";
clearT();
t = setInterval("backScrolls()",30);
}
function clearT(){
clearInterval(t);
}
function runs(){
if(d == "n"){
  left();
}
else{
  right();
}
}
showConent.onmouseover = function (){
clearT();
}
showConent.onmouseout = function(){
runs();
}

