﻿ function slideSwitchTop() {
         var $active = $('#SlideTopBanner div.active');
        
         if ( $active.length == 0 ) $active = $('#SlideTopBanner div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#SlideTopBanner div:first');
        
         // uncomment below to pull the divs randomly
         // var $sibs = $active.siblings();
         // var rndNum = Math.floor(Math.random() * $sibs.length );
         // var $next = $( $sibs[ rndNum ] );        
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitchTop()", 15000 );
        }); 

﻿ function slideSwitchTop4R() {
         var $active = $('#SlideTopBanner4R div.active');
        
         if ( $active.length == 0 ) $active = $('#SlideTopBanner4R div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#SlideTopBanner4R div:first');
        
         // uncomment below to pull the divs randomly
         // var $sibs = $active.siblings();
         // var rndNum = Math.floor(Math.random() * $sibs.length );
         // var $next = $( $sibs[ rndNum ] );        
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitchTop4R()", 15000 );
        });         
        
 //Slide Banner350x150
        function slideSwitch350x150() {
         var $active = $('#Slide350x150 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide350x150 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide350x150 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch350x150()", 15000 );
        }); 
 //Slide banner 350x250 
        function slideSwitch350x250() {
         var $active = $('#Slide350x250 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide350x250 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide350x250 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch350x250()", 15000 );
        }); 
        
//Slide banner SlideTwo1 
        function slideSwitchTwo1() {
         var $active = $('#SlideTwo1 div.active');
        
         if ( $active.length == 0 ) $active = $('#SlideTwo1 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#SlideTwo1 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitchTwo1()", 15000 );
        }); 
//Slide banner SlideTwo2 
        function slideSwitchTwo2() {
         var $active = $('#SlideTwo2 div.active');
        
         if ( $active.length == 0 ) $active = $('#SlideTwo2 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#SlideTwo2 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitchTwo2()", 15000 );
        }); 
        
 //Slide banner 650x120
        function slideSwitch650x120() {
         var $active = $('#Slide650x120 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide650x120 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide650x120 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch650x120()", 15000 );
        }); 
  //Slide banner 650x120VL
        function slideSwitch650x120VL() {
         var $active = $('#Slide650x120VL div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide650x120VL div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide650x120VL div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch650x120VL()", 15000 );
        }); 
  //Slide banner 650x120UV
        function slideSwitch650x120UV() {
         var $active = $('#Slide650x120UV div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide650x120UV div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide650x120UV div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch650x120UV()", 15000 );
        }); 
//Slide banner 640x80
         function slideSwitch640x80() {
         var $active = $('#Slide640x80 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide640x80 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide640x80 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch640x80()", 15000 );
        }); 

//Slide banner 640x165
        function slideSwitch640x165() {
         var $active = $('#Slide640x165 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide640x165 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide640x165 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch640x165()", 15000 );
        });
//Slide banner 290x140
        function slideSwitch290x140 () {
         var $active = $('#Slide290x140 div.active');
        
         if ( $active.length == 0 ) $active = $('#Slide290x140 div:last');
        
         // use this to pull the divs in the order they appear in the markup
         var $next = $active.next().length ? $active.next()
         : $('#Slide290x140 div:first');       
         $active.addClass('last-active');        
         $next.css({opacity: 0.0})
         .addClass('active')
         .animate({opacity: 1.0}, 1000, function() {
         $active.removeClass('active last-active');
         });
        }
        
        $(function() {
         setInterval( "slideSwitch290x140()", 15000 );
        });

