function overIcon(iconItem,color) {
	iconItem.style.backgroundColor=color;
	iconItem.style.cursor='pointer';
	iconItem.style.alt='pointer';
}

function outIcon(iconItem,color) {
	iconItem.style.backgroundColor=color;
}

function pressIcon(destino) {
	location.href = destino;
}

function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}

function zoom(iconItem) {
	openWin('zoom.asp?key='+iconItem,'zoom','toolbar=0,top='+((screen.height/2)-(200))+',left='+((screen.width/2)-(340))+',location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=680,height=400')
}

function privacidad() {
  	openWin('html/politicaprivacidad.htm','zoom','toolbar=0,top='+((screen.height/2)-(200))+',left='+((screen.width/2)-(340))+',location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=680,height=400')
}

function AgregarFavoritos(Titulo,URL) {
if (navigator.appName=="Netscape") {
	window.sidebar.addPanel(Titulo,URL,""); 
}

if (navigator.appName=="Microsoft Internet Explorer"){
	window.external.AddFavorite(URL,Titulo);
}

}

function xoopsGetElementById(id)
 {
  if (document.getElementById(id))
    return document.getElementById(id);
  else
    if (document.all[id])
      return document.all[id];
    else
      if (document.layers && document.layers[id])
        return (document.layers[id]);
      else
        return false;
 }
