function loadWeatherData(p, o) {
	jQuery.ajax({
		type: 'GET',
		async: true,
		cache: false,
		dataType: 'xml',
		url: '/weather/' + p + '.xml',
		success: function(d) {
			var json = jQuery.xmlToJSON(d);
			var res = json.channel[0].item[0].description[0].Text.match(/(<img[^>]+>)/);
			jQuery(o).html('<div id="ffm">' + res[0] + '<br />Frankfurt: ' + json.channel[0].item[0].condition[0].temp + '&#176;C</div>');
		}
	}); 
}

jQuery(document).ready(function() {
	loadWeatherData('GMXX0040','#weather');	
})
