function changeMarqueeContent( type )
{
	if( type == "news" || type == "jobs" )
	{
		Effect.DropOut("divMarqueeContent", {
					  							afterFinish: function ()
																	{
																		xmlhttp = new AjaxRequest("phpincludes/ajax/index/changeMarqueeContent.php");
																		xmlhttp.setUsePOST();
																		// xmlhttp.setEchoDebugInfo();
																		
																		xmlhttp.setQueryString( "type=" + encodeURIComponent(type) );
																		
																		xmlhttp.setPostRequest( function ()
																									{
																										
																										Effect.Appear("divMarqueeContent", {
																																			beforeStart: function()
																																							{
																																								switch( type )
																																								{
																																									case "news":
																																										document.getElementById("uLatestNews").style.color = "#CCCCCC";
																																										document.getElementById("uLatestJobs").style.color = "#999999";
																																										break;
																																									case "jobs":
																																										document.getElementById("uLatestNews").style.color = "#999999";
																																										document.getElementById("uLatestJobs").style.color = "#CCCCCC";
																																										break;
																																								}
																																							}
																																		}
																													);
																									}
																								);
																		
																		xmlhttp.sendRequest();
																	}
					  						}
					  );
	}
}
