﻿
     //-----slideupperRight
        var rotateupperRight_delay ="";
        currentupperRight = 0;
        function nextupperRight() {
        if (document.aspnetForm.slideupperRight[currentupperRight+1]) {
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[currentupperRight+1].value;
        document.aspnetForm.slideupperRight.selectedIndex = ++currentupperRight;
           }
        else firstupperRight();
        }
        function previousupperRight() {
        if (currentupperRight-1 >= 0) {
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[currentupperRight-1].value;
        document.aspnetForm.slideupperRight.selectedIndex = --currentupperRight;
           }
        else lastupperRight();
        }
        function firstupperRight() {
        currentupperRight = 0;
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[0].value;
        document.aspnetForm.slideupperRight.selectedIndex = 0;
        }
        function lastupperRight() {
        currentupperRight = document.aspnetForm.slideupperRight.length-1;
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[currentupperRight].value;
        document.aspnetForm.slideupperRight.selectedIndex = currentupperRight;
        }
        function apupperRight(text,delay) {
         rotateupperRight_delay=delay;
        document.aspnetForm.slideupperRightbutton.value = (text == "Stop") ? "Start" : "Stop";
        rotateupperRight();
        }
        function changeupperRight() {
        currentupperRight = document.aspnetForm.slideupperRight.selectedIndex;
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[currentupperRight].value;
        }
        
        
        
        
       

        
        
        
        
        
        
        
        
        function rotateupperRight() {
        if (document.aspnetForm.slideupperRightbutton.value == "Stop") {
        currentupperRight = (currentupperRight == document.aspnetForm.slideupperRight.length-1) ? 0 : currentupperRight+1;
        document.images.showupperRight.src = document.aspnetForm.slideupperRight[currentupperRight].value;
        if( document.getElementById("ctl00_Body_body2_topads_showupperHref"))
        {
        document.getElementById("ctl00_Body_body2_topads_showupperHref").href=document.aspnetForm.ctl00_Body_body2_topads_slideupperHref[currentupperRight].value;
        
        }
        else
        {
        document.getElementById("ctl00_Body_Bodyinfoarticle1_topads_showupperHref").href=document.aspnetForm.ctl00_Body_Bodyinfoarticle1_topads_slideupperHref[currentupperRight].value;
        }
        document.aspnetForm.slideupperRight.selectedIndex = currentupperRight;
        window.setTimeout("rotateupperRight()", rotateupperRight_delay);
           }
}


//-----------slidelowerleft


     //slidelowerleftURL.href ="hhhh";
        var rotatelowerleft_delay ="";
        currentlowerleft = 0;
       
        function nextlowerleft() {
        if (document.aspnetForm.slidelowerleft[currentlowerleft+1]) {
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[currentlowerleft+1].value;
        
        document.aspnetForm.slidelowerleft.selectedIndex = ++currentlowerleft;
           }
        else firstlowerleft();
        }
        function previouslowerleft() {
        if (currentlowerleft-1 >= 0) {
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[currentlowerleft-1].value;
      
        document.aspnetForm.slidelowerleft.selectedIndex = --currentlowerleft;
           }
        else lastlowerleft();
        }
        function firstlowerleft() {
        currentlowerleft = 0;
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[0].value;
       
        document.aspnetForm.slidelowerleft.selectedIndex = 0;
        }
        function lastlowerleft() {
        currentlowerleft = document.aspnetForm.slidelowerleft.length-1;
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[currentlowerleft].value;
       
        document.aspnetForm.slidelowerleft.selectedIndex = currentlowerleft;
        }
        function aplowerleft(text,delay) {
        rotatelowerleft_delay=delay;
        document.aspnetForm.slidelowerleftbutton.value = (text == "Stop") ? "Start" : "Stop";
        rotatelowerleft();
        }
        function changelowerleft() {
        
        currentlowerleft = document.aspnetForm.slidelowerleft.selectedIndex;
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[currentlowerleft].value;
        
       
        }
        function rotatelowerleft() 

{
        
        if (document.aspnetForm.slidelowerleftbutton.value == "Stop") {
        currentlowerleft = (currentlowerleft == document.aspnetForm.slidelowerleft.length-1) ? 0 : currentlowerleft+1;
        document.images.showlowerleft.src = document.aspnetForm.slidelowerleft[currentlowerleft].value;
        
        document.getElementById("ctl00_Left_Leftinfo11_info_ad_061_showHref").href=document.aspnetForm.ctl00$Left$Leftinfo11$info_ad_061$DropDownList1[currentlowerleft].value;
        
        document.aspnetForm.slidelowerleft.selectedIndex = currentlowerleft;
        window.setTimeout("rotatelowerleft()", rotatelowerleft_delay);
    }
}

//-------------------------------slideBelowBodyRight


 var rotateBelowBodyRight_delay ="";
        currentBelowBodyRight = 0;
        function nextBelowBodyRight() {
        if (document.aspnetForm.slideBelowBodyRight[currentBelowBodyRight+1]) {
        document.images.showBelowBodyRight.src = document.aspnetForm.slideBelowBodyRight[currentBelowBodyRight+1].value;
        document.aspnetForm.slideBelowBodyRight.selectedIndex = ++currentBelowBodyRight;
           }
        else firstBelowBodyRight();
        }
        function previousBelowBodyRight() {
        if (currentBelowBodyRight-1 >= 0) {
        document.images.showBelowBodyRight.src = document.aspnetForm.slideBelowBodyRight[currentBelowBodyRight-1].value;
        document.aspnetForm.slideBelowBodyRight.selectedIndex = --currentBelowBodyRight;
           }
        else lastBelowBodyRight();
        }
        function firstBelowBodyRight() {
        currentBelowBodyRight = 0;
        document.images.showBelowBodyRight.src = document.aspnetForm.slideBelowBodyRight[0].value;
        document.aspnetForm.slideBelowBodyRight.selectedIndex = 0;
        }
        function lastBelowBodyRight() {
        currentBelowBodyRight = document.aspnetForm.slideBelowBodyRight.length-1;
        document.images.showBelowBodyRight.src = document.aspnetForm.slideBelowBodyRight[currentBelowBodyRight].value;
        document.aspnetForm.slideBelowBodyRight.selectedIndex = currentBelowBodyRight;
        }
        function apBelowBodyRight(text,delay) {
       rotateBelowBodyRight_delay=delay;
        document.aspnetForm.slideBelowBodyRightbutton.value = (text == "Stop") ? "Start" : "Stop";
        rotateBelowBodyRight();
        }
        function changeBelowBodyRight() {
        currentBelowBodyRight = document.aspnetForm.slideBelowBodyRight.selectedIndex;
        document.images.showBelowBodyRight.src = document.aspnetForm.slideBelowBodyRight[currentBelowBodyRight].value;
        }
        function rotateBelowBodyRight() {
        if (document.aspnetForm.slideBelowBodyRightbutton.value == "Stop") {
        currentBelowBodyRight = (currentBelowBodyRight == document.getElementById("slideBelowBodyRight").length-1) ? 0 : currentBelowBodyRight+1;
        document.images.showBelowBodyRight.src = document.getElementById("slideBelowBodyRight")[currentBelowBodyRight].value;
        document.getElementById("ctl00_Body_body2_info_ad_041_showBelowBodyRightHref").href=document.aspnetForm.slideBelowBodyRightHref[currentBelowBodyRight].value;
        document.getElementById("slideBelowBodyRight").selectedIndex = currentBelowBodyRight;
        window.setTimeout("rotateBelowBodyRight()", rotateBelowBodyRight_delay);
           }
}
//------slide
   var rotate_delay ="";
        current = 0;
        function next() {
        if (document.aspnetForm.slide[current+1]) {
        document.images.show.src = document.aspnetForm.slide[current+1].value;
        document.aspnetForm.slide.selectedIndex = ++current;
           }
        else first();
        }
        function previous() {
        if (current-1 >= 0) {
        document.images.show.src = document.aspnetForm.slide[current-1].value;
        document.aspnetForm.slide.selectedIndex = --current;
           }
        else last();
        }
        function first() {
        current = 0;
        document.images.show.src = document.aspnetForm.slide[0].value;
        document.aspnetForm.slide.selectedIndex = 0;
        }
        function last() {
        current = document.aspnetForm.slide.length-1;
        document.images.show.src = document.aspnetForm.slide[current].value;
        document.aspnetForm.slide.selectedIndex = current;
        }
        function ap(text,delay) {
       rotate_delay=delay;
        document.aspnetForm.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
        rotate();
        }
        function change() {
        current = document.aspnetForm.slide.selectedIndex;
        document.images.show.src = document.aspnetForm.slide[current].value;
        }
        function rotate() {
        if (document.aspnetForm.slidebutton.value == "Stop") {
        current = (current == document.getElementById("slide").length-1) ? 0 : current+1;
        document.images.show.src = document.getElementById("slide")[current].value;
        document.getElementById("ctl00_Body_body2_info_ad_022_Show02Href").href=document.aspnetForm.slideHref[current].value;
        document.getElementById("slide").selectedIndex = current;
        window.setTimeout("rotate()", rotate_delay);
           }
          } 
           
           //----slideupper
              var rotateupper_delay ="";
        currentupper = 0;
        function nextupper() {
        if (document.aspnetForm.slideupper[currentupper+1]) {
        document.images.showupper.src = document.aspnetForm.slideupper[currentupper+1].value;
        document.aspnetForm.slideupper.selectedIndex = ++currentupper;
           }
        else firstupper();
        }
        function previousupper() {
        if (currentupper-1 >= 0) {
        document.images.showupper.src = document.aspnetForm.slideupper[currentupper-1].value;
        document.aspnetForm.slideupper.selectedIndex = --currentupper;
           }
        else lastupper();
        }
        function firstupper() {
        currentupper = 0;
        document.images.showupper.src = document.aspnetForm.slideupper[0].value;
        document.aspnetForm.slideupper.selectedIndex = 0;
        }
        function lastupper() {
        currentupper = document.aspnetForm.slideupper.length-1;
        document.images.showupper.src = document.aspnetForm.slideupper[currentupper].value;
        document.aspnetForm.slideupper.selectedIndex = currentupper;
        }
        function apupper(text,delay) {
       rotateupper_delay=delay;
        document.aspnetForm.slideupperbutton.value = (text == "Stop") ? "Start" : "Stop";
        rotateupper();
        }
        function changeupper() {
      
        currentupper = document.aspnetForm.slideupper.selectedIndex;
        document.images.showupper.src = document.aspnetForm.slideupper[currentupper].value;
        }
        function rotateupper() {
        
        if (document.aspnetForm.slideupperbutton.value == "Stop") {
        
        currentupper = (currentupper == document.getElementById("slideupper").length-1) ? 0 : currentupper+1;
        document.images.showupper.src = document.getElementById("slideupper")[currentupper].value;
        
        document.getElementById("ctl00_Body_body2_info_ad_021_showupperHref").href=document.aspnetForm.slideupperHref[currentupper].value;
        document.getElementById("slideupper").selectedIndex = currentupper;
        window.setTimeout("rotateupper()", rotateupper_delay);
           }
          } 
           
           //-----slideBodyRight
           
           
                   var rotateBodyRight_delay ="";
        currentBodyRight = 0;
        function nextBodyRight() {
        if (document.aspnetForm.slideBodyRight[currentBodyRight+1]) {
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[currentBodyRight+1].value;
        document.aspnetForm.slideBodyRight.selectedIndex = ++currentBodyRight;
           }
        else firstBodyRight();
        }
        function previousBodyRight() {
        if (currentBodyRight-1 >= 0) {
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[currentBodyRight-1].value;
        document.aspnetForm.slideBodyRight.selectedIndex = --currentBodyRight;
           }
        else lastBodyRight();
        }
        function firstBodyRight() {
        currentBodyRight = 0;
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[0].value;
        document.aspnetForm.slideBodyRight.selectedIndex = 0;
        }
        function lastBodyRight() {
        currentBodyRight = document.aspnetForm.slideBodyRight.length-1;
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[currentBodyRight].value;
        document.aspnetForm.slideBodyRight.selectedIndex = currentBodyRight;
        }
        function apBodyRight(text,delay) {
       
        rotateBodyRight_delay=delay;
        document.aspnetForm.slideBodyRightbutton.value = (text == "Stop") ? "Start" : "Stop";
        rotateBodyRight();
        }
        function changeBodyRight() {
        currentBodyRight = document.aspnetForm.slideBodyRight.selectedIndex;
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[currentBodyRight].value;
        }
        
        
        
            
        
        
        
        
        
        
        
        
        function rotateBodyRight() {
        if (document.aspnetForm.slideBodyRightbutton.value == "Stop") {
        currentBodyRight = (currentBodyRight == document.aspnetForm.slideBodyRight.length-1) ? 0 : currentBodyRight+1;
        document.images.showBodyRight.src = document.aspnetForm.slideBodyRight[currentBodyRight].value;
        //ctl00$Body$body2$info_ad_031$slideBodyRighthref
        if(document.getElementById("ctl00_Body_body2_info_ad_031_showHrefright"))
        {
        document.getElementById("ctl00_Body_body2_info_ad_031_showHrefright").href=document.aspnetForm.slideBodyRighthref[currentBodyRight].value;
        }
        else
        {
        document.getElementById("ctl00_Body_bodyinfocatecory1_rightads_showHrefright").href=document.aspnetForm.slideBodyRighthref[currentBodyRight].value;
        }
        document.aspnetForm.slideBodyRight.selectedIndex = currentBodyRight;
        window.setTimeout("rotateBodyRight()", rotateBodyRight_delay);
           }
}
