﻿    from=0;
    count=0;  
    function next(){
    var t=document.getElementById("un");
     var p=document.getElementById("next1");
      var b=document.getElementById("pre1");
            t.style.left=t.style.left=(from-=25)
            count=count+25;
    if(count==475)
        {
        if (from==-1425)
        {
        p.style.visibility='hidden';
        b.style.visibility='visible';
        }
        if (from<=-300){
        b.style.visibility='visible';
        }
        count=0;
        return false;
        }
    else 
        {
        setTimeout ('next()',1)
        }
    }
    
    function back(){
    var t=document.getElementById("un");
     var p=document.getElementById("next1");
      var b=document.getElementById("pre1");
            t.style.left=t.style.left=(from+=25)
            count=count+25;
    if(count==475)
        {
        if (from==0)
        {
        p.style.visibility='visible';
        b.style.visibility='hidden';
        }
        if (from<=-475){
        p.style.visibility='visible';
        }
        count=0;
        return false;
        }
    else 
        {
        setTimeout ('back()',1)
        }
    }

function switchexclu2(b1,show,b2,notshow){
 document.getElementById(notshow).style.display='none';
 document.getElementById(show).style.display='block';
 if (b1=='enew'){
 document.getElementById(b1).src="images/images3/newred.jpg"; 
 document.getElementById(b2).src="images/images3/hotgray.jpg";
 }
 else{
 document.getElementById(b2).src="images/images3/newgray.jpg";  
 document.getElementById(b1).src="images/images3/hotred.jpg";
 }
}
function switchexclu(show,notshow,notshow1){
 document.getElementById(notshow).style.display='none';
  document.getElementById(notshow1).style.display='none';
 document.getElementById(show).style.display='block';
}