function updateSpotlight(direction){	/* Scroll to the correct item in the right direction */
	
	$("#inthespotlight-inner").children().hide();
	cloneSpotlight = $("#inthespotlight-inner").clone();
	curloctemp = (curloc+direction)<0?(spotlightArray.length-1):((curloc+direction)>=spotlightArray.length?0:(curloc+direction));																										
	$("#inthespotlight-inner").children("a").children("img").hide();	
	cloneSpotlight.children("a")[0].href = spotlightArray[curloctemp].url;
	cloneSpotlight.children("div").children("a")[0].href=spotlightArray[curloctemp].url;
	cloneSpotlight.children("div").children("a").text(spotlightArray[curloctemp].title);
	cloneSpotlight.children("a").children("img")[0].src=spotlightArray[curloctemp].src;
	cloneSpotlight.children("a").children("img")[0].alt=spotlightArray[curloctemp].title;		
	$("#inthespotlight-inner").stop();
	$("#inthespotlight-inner").replaceWith(cloneSpotlight);
	$("#inthespotlight-inner").children().fadeIn('fast');	
	
	curloc = curloctemp;

	$("#navbuttons img").each(function(i){					// Update navigation...											
		$(this).attr("src",((i==curloctemp)?"/images/online-1.gif":"/images/offline-1.gif"));});		
	return;		
}
function selectSpotlight(location){
	location = (location-2);
	if(location<0)
		location = (spotlightArray.length-1);
	if(location >= spotlightArray.length)
		location = 0;		
	curloc = location;
	
	updateSpotlight(1);
}

$(document).ready(function () {
	$("#inthespotlight-bottom").show();
	$("#leftlink a").click(function(){updateSpotlight(-1);});		
	$("#rightlink a").click(function(){updateSpotlight(1);});});
	$("#search-text-input").focus(function(){
		if(this.value=='Search Colby'){
			this.value = '';
			$(this).css("color","#000");
		}});
	$("#search-text-input").blur(function(){
		if(this.value==''){
			this.value = 'Search Colby';
			$(this).css("color","#666");
		}});
	if($("#search-text-input").val()=='Search Colby')
		$("#search-text-input").css("color","#666");
	else
		$("#search-text-input").css("color","#000");