var url="http://www.thedatamyne.com";
var titulo="the Datamyne - It\'s our business to know.";

function agregarURL(){
if (document.all)
window.external.AddFavorite(url,titulo)
}
////////////////////////////////////////////////////////////////////////////////
// 		MENU LATERAL
////////////////////////////////////////////////////////////////////////////////

function Mostrar_menu(pref_num) {
    document.getElementById(pref_num).style.display="block";
}

function Ocultar_menu(pref_num) {
	if (document.getElementById(pref_num)){
    	document.getElementById(pref_num).style.display="none";
	}
}

function Alternar_menu(pref,num,total) {
	if( document.getElementById(pref+num)){
	
	  	if( document.getElementById(pref+num).style.display == "none") {
					Mostrar_menu(pref+num);
					for(i=1;i<=total;i++){
						if(num!=i){
						Ocultar_menu(pref+i);
						}
					} // for
		}else{
			Ocultar_menu(pref+num);
	  	} // if display none
  	
	}else{
		Ocultar_menu(pref+num);
  	} // if display none
}

////////////////////////////////////////////////////////////////////////////////
// 		IDIOMAS
////////////////////////////////////////////////////////////////////////////////

function idiomas(actual){
	if( actual == "eng") {
		document.getElementById('IMG_idiomas').src="images/eng_idiomas_back.gif";
	}else{
		document.getElementById('IMG_idiomas').src="images/esp_idiomas_back.gif";
	}
}

////////////////////////////////////////////////////////////////////////////////
// 		DESCRIPCIONES EN COMPANY
////////////////////////////////////////////////////////////////////////////////

function Mostrar_desc_company(desc,btm) {
    document.getElementById(desc).style.display="block";
	document.getElementById(btm).src="images/btn_descripcion2.gif";
}

function Ocultar_desc_company(desc,btm) {
    document.getElementById(desc).style.display="none";
	document.getElementById(btm).src="images/btn_descripcion.gif";
}

function desc_company(num) {
	var pref = 'descripcion_';
	var btn = 'desc_btm_';
  	if( document.getElementById(pref+num).style.display == "none") {
		Mostrar_desc_company(pref+num,btn+num);
	}else{
		Ocultar_desc_company(pref+num,btn+num);
	} // if display none
}
