﻿
function setActiveTab(tabID){var currTabElem=document.getElementById(tabID);document.getElementById('opc0').className='';document.getElementById('opc1').className='';document.getElementById('opc2').className='';document.getElementById('opc3').className='';currTabElem.className='sel';return;}
function theRotator(){jQuery('div#rotator ul li').css({opacity:0.0});jQuery('div#rotator ul li:first').css({opacity:1.0});setInterval('rotate()',10000);}
function rotate(){var current=(jQuery('div#rotator ul li.show')?jQuery('div#rotator ul li.show'):jQuery('div#rotator ul li:first'));var next=((current.next().length)?((current.next().hasClass('show'))?jQuery('div#rotator ul li:first'):current.next()):jQuery('div#rotator ul li:first'));next.css({opacity:0.0})
.addClass('show')
.animate({opacity:1.0},1000);current.animate({opacity:0.0},1000)
.removeClass('show');};
