// Son of Suckerfish Dropdowns
sfHover = function() {
    if(document.getElementById("globalNav") != undefined){
    var sfEls = document.getElementById("globalNav").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
	        sfEls[i].onmouseover=function() {
		        this.className+=" sfhover";
	        }
	        sfEls[i].onmouseout=function() {
		        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
	        }
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover); //Event.observe(window, 'load', sfHover, false);

function rotateSlides() {
    InOut( $('#slide1') );
}

function InOut( e )
{
 e.delay()
     .fadeIn(1000)
     .delay(3000)
     .fadeOut(1000,
        function(){
         if(e.next().length > 0) // if there is a next element
           {InOut( e.next() );} // use it
         else
           {InOut( e.siblings(':first'));} // if not, then use go back to the first sibling
        }
     );
}


