function xmlCalendar(calId) { 
	$.ajax({
		   	type: "GET",
   			url: "calendars.xml",
			//dataType: ($.browser.msie) ? "text" : "xml",
			cache:false,
			success: function(data) {
				var xml;
				/*if (typeof data == "string") {
					xml = new ActiveXObject("Microsoft.XMLDOM");
					xml.async = false;
					xml.loadXML(data);
				} else {*/
					xml = data;
				//}

				myHTMLOutput = '';
				$("cal[id='"+calId+"'] place",xml).each(function() {
					myHTMLOutput += "<h3>"+$(this).attr("name") +"</h3>";
					
					$("details",this).each(function() {
						myHTMLOutput += "<h4>"+$(this).find("loc").text()+"</h4>";
						myHTMLOutput += "<p><em>"+$(this).find("time").text()+"</em></p>";
					});
					myHTMLOutput += "<hr />";
				});
				$("#content-scroll > span:first").html(myHTMLOutput);
				$.getScript("Scripts/tab_init.js");
			}/*,
			error: function(request, settings) {
				alert("ERROR: "+settings);	
			}*/
	});
}

function xmlhotjobs() { 
		$.ajax({
		   	type: "GET",
   			url: "hotjobs.xml",
			cache:false,
			success: function(xml) {
				myHTMLOutput = '';
				$("job",xml).each(function() {					
					myHTMLOutput += "<a href=\"" + $(this).find("url").text() + "\" target=\"_blank\">" + $(this).find("title").text() + " >></a>";
				});
				$("#hotjobs").html(myHTMLOutput);
				$('#hotjobs a').hover(function() { //mouse in
					$(this).animate({ paddingLeft: '20px' }, 400);
				}, function() { //mouse out
					$(this).animate({ paddingLeft: 0 }, 400);
				});
			}
		});
}