// JavaScript Document

// IE BackgroundImageCache Fix
(function(){ 
	/*Use Object Detection to detect IE6*/ 
	var m = document.uniqueID /*IE*/ && document.compatMode /*>=IE6*/ && !window.XMLHttpRequest /*<=IE6*/ && document.execCommand ; 
	try{ if(!!m) m("BackgroundImageCache", false, true) /* = IE6 only */ }
	catch(oh){};
})();

function desplegarMenu(id_desplegar){
	var ids_desplegables = ['#navBlockCourse','#navBlockAbout','#navBlockLocations','#navBlockAffiliate','#navBlockBJobs','#navBlockBResources','#navBlockContact'];
	var ids_ocultar = '';
	var ids_desplegar = '';
	for(i=0; i<ids_desplegables.length; i++){
		if(ids_desplegables[i] != id_desplegar){
			if( ids_ocultar!='' ) ids_ocultar += ', ';
			ids_ocultar += ids_desplegables[i];
		}else{
			if( ids_desplegar!='' ) ids_desplegar += ', ';
			ids_desplegar += ids_desplegables[i];	
		}
	}
	$(ids_ocultar).filter(':visible').slideUp('slow');
	$(ids_desplegar).slideDown('slow');
}
