	function divContent(divID, contentFile){
		var updatingNotice = document.getElementById("divLoading");
		updatingNotice.innerHTML = "<font color='#999999'>Loading...</font>";
		
		var ajaxRequest;  // The variable that makes Ajax possible!
		
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				var ajaxDisplay = document.getElementById(divID);
				updatingNotice.innerHTML = "&nbsp;";
				ajaxDisplay.innerHTML = ajaxRequest.responseText;
			}
		}
		
//		var newValue = document.getElementById(inputID).value;
//		newValue = newValue.replace("#", "");
//		var queryString = "&row=" + row + "&user=" + user + "&newValue=" + newValue;
		ajaxRequest.open("GET", contentFile, true);
		ajaxRequest.send(null);
	}



// JQUERY IMAGE ROTATOR SCRIPT

var NewsTimer = new Array();
var CurrentItem = new Array();

function RotateNews(thisDiv, timeout)
{
	NewsTimer[thisDiv] = setInterval( "NextNewsItem('" + thisDiv + "')", timeout );
}

function PauseNews(thisDiv)
{
	clearInterval( NewsTimer[thisDiv] );
}

function NextNewsItem(thisDiv)
{
	if(CurrentItem[thisDiv] < jQuery(thisDiv + " .image_thumb ul li").size())
	{
		jQuery(thisDiv + " .image_thumb ul li.active").next().click();
		CurrentItem[thisDiv]++;
	}
	else
	{
		jQuery(thisDiv + " .image_thumb ul li:first").click();
		CurrentItem[thisDiv] = 1;
	}
}

function SetRotator(thisDiv, timeout) {
	NewsTimer[thisDiv] = 0;
	CurrentItem[thisDiv] = 1;
	
	jQuery(thisDiv + " .main_image .desc").show(); //Show Banner
	jQuery(thisDiv + " .main_image .block").animate({ opacity: 0.85 }, 1 ); //Set Opacity
	
	jQuery(thisDiv + " .image_thumb ul li").click(function(){
			//Set Variables
			var imgAlt = jQuery(this).find('img').attr("alt"); //Get Alt Tag of Image
			var imgTitle = jQuery(this).find('img').attr("src"); //Get Main Image URL
			var imgDesc = jQuery(this).find('.block').html();  //Get HTML of the "block" container
			var imgDescHeight = jQuery(thisDiv + " .main_image").find('.block').height(); //Find the height of the "block"

			if (jQuery(this).is(".active")) {  //If the list item is active/selected, then...
					return false; // Don't click through - Prevents repetitive animations on active/selected list-item
			} else { //If not active then...
					//Animate the Description
					jQuery(thisDiv + " .main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() { //Pull the block down (negative bottom margin of its own height)
							jQuery(thisDiv + " .main_image img").fadeOut(200, function() {
								jQuery(this).attr({ src: "scripts/resize.php?h=" + jQuery(thisDiv).height() + "&w=" + jQuery(thisDiv).width() + "&src=../" + imgTitle , alt: imgAlt}); //Switch the main image (URL + alt tag)
								jQuery(this).fadeIn(500, function() {
									jQuery(thisDiv + " .main_image .block").html(imgDesc).animate({ opacity: 0.85,  marginBottom: "0" }, 250 ); //swap the html of the block, then pull the block container back up and set opacity
								});
							});
					});
			}
			//Show active list-item
			jQuery(thisDiv + " .image_thumb ul li").removeClass('active'); //Remove class of 'active' on all list-items
			jQuery(this).addClass('active');  //Add class of 'active' on the selected list
			return false; 
	
	}) .hover(function(){ //Hover effects on list-item 
			jQuery(this).addClass('hover'); //Add class "hover" on hover 
			}, function() {
			jQuery(this).removeClass('hover'); //Remove class "hover" on hover out
	});
	jQuery(thisDiv + " a.collapse").click(function(){
			jQuery(thisDiv + " .main_banner .block").slideToggle(); //Toggle the description (slide up and down)
			jQuery(thisDiv + " a.collapse").toggleClass("show"); //Toggle the class name of "show" (the hide/show tab)
	});
	jQuery(thisDiv).hover(function() {
			PauseNews(thisDiv);
	}, function() {
			NextNewsItem(thisDiv);	// immediately go to the next item
			RotateNews(thisDiv, timeout);
	});
	jQuery(thisDiv + " .image_thumb ul li:first").click(); //Add the active class (highlights the very first list item by default)

	RotateNews(thisDiv, timeout);
}

jQuery(document).ready(function() {
	SetRotator("#ImageRotator", 7000);
	SetRotator("#AccoladesRotator", 4000);
});

