function cargando(){}

function cerrar(dire){	
	window.opener.parent.document.location.href=dire;
	window.close();
}

function cerrarpopup(dire) {
    window.opener.parent.document.location.href = dire;
    window.close();
}


function redireccionar(dire) {
    window.opener.parent.document.location.href = dire;
    window.close();
}


function beforeprint()
{
	document.getElementById('imgprint').style.display = 'none';	
}

function beforeprint1()
{
	document.getElementById('imgprint').style.display = 'none';	
	document.getElementById('HyperLink1').style.display = 'none';
	document.getElementById('imgclose').style.display = 'none';
	document.getElementById('promo').style.display = 'none';
	if (document.getElementById('btcal')!=null)
		document.getElementById('btcal').style.display = 'none';
}


function AddFavorite() 
{ 
  if(window.external) 
     external.AddFavorite(location.href, document.title)
  else 
    alert("Sorry, your browser doesn't support this feature.");
}

function fotomenu(){
	if (document.getElementById('foto_menuizq')!= null)
  	{
  	document.getElementById('foto_menuizq').src= 'Images/'+ document.getElementById('name_img').innerHTML;}
}

function replace(idimg,imgnew){
	document.getElementById(idimg).src = imgnew;
}

function mostrar(a){
if (document.getElementById(a).style.display =='') {
    document.getElementById(a).style.display = 'none';
   }
   else {
    document.getElementById(a).style.display='';
    }
}

/*menuleft*/
function seeblock (a,b){
if(document.getElementById(a)!=null & document.getElementById(b) != null){
	if (document.getElementById(a).style.display =='') {
	    document.getElementById(a).style.display = 'none';
	    document.getElementById(b).className = '';
	   }
	   else {
	    document.getElementById(a).style.display='';
	   document.getElementById(b).className ='activo' ;
	    }
	}
}


function ActiveCareer (a,b,c){
if(document.getElementById(a)!=null & document.getElementById(b)!=null ){
if (document.getElementById(a).style.display =='') {
    document.getElementById(a).style.display = 'none';
	  document.getElementById(b).className = 'boxname';
		document.getElementById(c).src = '/Images/flechaClose.gif';
   }
   else {
    document.getElementById(a).style.display='';
		document.getElementById(b).className = 'boxnameactive';
		document.getElementById(c).src = '/Images/flechaOpen.gif';
    }
}
}

function ActiveCourse (a,b,c){
 if(document.getElementById(a)!=null & document.getElementById(b)!=null){
	  if (document.getElementById(a).style.display =='block') {
    	 document.getElementById(a).style.display = 'none';
			 document.getElementById(b).className = 'boxnamecourse';
	document.getElementById(c).src = '/Images/flechaClose.gif';
   }
   else {
    document.getElementById(a).style.display='block';
		document.getElementById(b).className = 'boxnamecourseactive';
	document.getElementById(c).src = '/Images/flechaOpen.gif';
    }
 }		
}



function move_banner(Qid)
{
    var banner_foot = document.getElementById(Qid+'_foot');
    var banner = document.getElementById(Qid);
    if(banner_foot && banner)
	    banner.appendChild(banner_foot);    
	    
}

function atras(){ 
history.go(-1) 
}



function menuizq_click(e, obj)
{
	if (!obj) obj = this;
	if (!e) e = window.event;
	
	var ul = obj.nextSibling;
	
	if (ul && ul.tagName.toUpperCase()=="UL"){
		if (menuizq_iscollapsed(ul)){
			menuizq_doexpand(ul);
		}else{
			menuizq_docollapse(ul);
		}
	}
	return false;
}

function menuizq_iscollapsed (obj){
	return (/collapsed/gi.test (obj.className));
}
function menuizq_docollapse (obj){
	obj.className = obj.className += " collapsed";
	obj.previousSibling.className = obj.previousSibling.className.replace(/selected/gi, "");
}
function menuizq_doexpand (obj){
	obj.className = obj.className.replace(/collapsed/gi, "");
	obj.previousSibling.className = obj.previousSibling.className += " selected";
}

















