function showDep(id, cid) {
	el = $('mod_team');
	
	el.fade('out').get('tween').chain(function() {
		$('mod_team_preload').addClass('preload');
		//We can use one Request object many times.
		var dep = new Request.HTML({url:'/modules/mod_team_selector/mod_team_selector_ajax.php?depid=' + id + '&cid=' + cid + '&lang=' + lang, 
			onSuccess: function(html) {
				//Clear the text currently inside the results div.
				$('mod_team').set('text', '');
				//Inject the new DOM elements into the results div.
				$('mod_team').adopt(html);
				$('mod_team_preload').removeClass('preload');
				
			},
			//Our request will most likely succeed, but just in case, we'll add an
			//onFailure method which will let the user know what happened.
			onFailure: function() {
				$('mod_team').set('text', 'The request failed.');
			}
		});
	
	
		dep.send();
		el.set('tween', { duration: 400 }).tween('opacity', 0.3, 1);
	});


	
}

