
	//Old, dead code ~ JM
/*		window.onload = function() {
            var container = $('div.sliderGallery');
            var ul = $('ul', container);

            var itemsWidth = ul.innerWidth() - container.outerWidth();

            $('.slider', container).slider({
                minValue: 0,
                maxValue: itemsWidth,
                handle: '.handle',
                stop: function(event, ui) {
                    ul.animate({ 'left': ui.value * -1 }, 500);
                },
                slide: function(event, ui) {
                    ul.css('left', ui.value * -1);
                }
            });
        };*/
		
		

// this array consists of the id attributes of the divs we wish to alternate between
	    var divs_to_fade = new Array('box-1', 'box-2', 'box-3','box-4','box-5','box-6', 'box-7');

	    // the starting index in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"
	    var startPos = Math.floor(Math.random() * divs_to_fade.length);
	    //var i = 0; // for starting at position one
	    var i = startPos;
	    //document.write("startPos " + startPos); //Debugging start position
	    

	    // the number of milliseconds between swaps.  Default is five seconds.
	    var wait = 7000;

	    // the function that performs the fade
	    function swapFade() {
	        Effect.Fade(divs_to_fade[i], { duration: 1, from: 1.0, to: 0.0 });
	        i++;
	        if (i == divs_to_fade.length) i = 0;
	        Effect.Appear(divs_to_fade[i], { duration: 1, from: 0.0, to: 1.0 });
	    }
	    
	    // the onload event handler that starts the fading.
	    function startPage() {
	        //check that we are on the home page
	        var thisPage = window.location.toString();
	        var topLevel = thisPage.substring((thisPage.length - 6), thisPage.length);
	        if (thisPage.lastIndexOf('.edu/index.aspx') > 0 || thisPage.lastIndexOf('.edu:81/index.aspx') > 0 || thisPage.lastIndexOf('.edu/') > 0 || topLevel.lastIndexOf('.edu') > 0 || thisPage.lastIndexOf('/virtual_tour/') > 0) {


	            // display the starting box
	            var startBox = document.getElementById('box-3');
	            startBox.removeAttribute('style');
	            
	            setInterval('swapFade()', wait);
	            //Debugging code, obviously. ~ JM
//	            var alrtStr = "Temp Montet Message:";
//	            alrtStr = alrtStr + "\nParam 1: " + thisPage.lastIndexOf('.edu/index.aspx');
//	            alrtStr = alrtStr + "\nParam 2: " + thisPage.lastIndexOf('.edu:81/index.aspx');
//	            alrtStr = alrtStr + "\nParam 3: " + thisPage.lastIndexOf('.edu/');
//	            alrtStr = alrtStr + "\nParam 4: " + topLevel.lastIndexOf('.edu');
//	            alert(alrtStr);
	        }else{
	            //Don't do anything. Just be happy startPage() didn't error out.
//	            alert("Temp Montet Message: This is not my beautiful homepage!");
	        }
	    }