var category = 0;var imgpath = '';function createAjaxRequest(){	var request;		try	{		request = new XMLHttpRequest();	} 	catch(trymicrosoft)	{		try		{			request = new ActiveXObject("Msxml2.XMLHTTP");		}		catch(othermicrosoft)		{			try			{				request = new ActiveXObject("Microsoft.XMLHTTP");			}			catch(failed) 			{				request = false;			}		 }	}		return request;}function randomImage(){	if(document.getElementById('random_image').src)	{		document.getElementById('random_image').src = ''; //If it takes a while for the request to get the new image, this will prevent the original image from appearing.				var request = createAjaxRequest();		var url = "http://www.rowan.edu/colleges/graduate/ajax/random_image.cfm?imgpath=" + imgpath;				request.open("GET", url, true);				request.onreadystatechange = function()		{			if(request.readyState == 4)			{				if(request.status == 200)				{					var content = request.responseText;										if(content)					{						document.getElementById('random_image').src = content;					}				}			}		};				request.send(null);	}}function insertQuote(){	var request = createAjaxRequest();	var url = "http://www.rowan.edu/colleges/graduate/ajax/random_quote.cfm?category=" + category;		request.open("GET", url, true);		request.onreadystatechange = function()	{		if(request.readyState == 4)		{			if(request.status == 200)			{				var content = request.responseText;								if(content && document.getElementById('ruawareContent'))				{					document.getElementById('ruawareContent').innerHTML = content + document.getElementById('ruawareContent').innerHTML;				}			}		}	};		request.send(null);}function initializeRUAware(cat){	category = cat;}function initializeRandomImage(path){	imgpath = path;}DOMReady(insertQuote);DOMReady(randomImage);