function sobre(name){
	eval("trans=document.images['"+name+"_1'].src");
	eval("document.images['"+name+"_1'].src=document.images['"+name+"_2'].src");
	eval("document.images['"+name+"_2'].src=trans");
}

/* -------------------------------------- */
function goto_url_window(url)
{
 window.open(url);
 return true;
}

/* -------------------------------------- */
function goto_url(url)
{
 document.location.href=url;
 return true;
}

/* -------------------------------------- */
function goto_url_popup(url,opciones)
{
 if (!opciones) opciones = 'resizable=1,scrollbars=1,width=650,height=550';
 new_window = window.open(url,'share_popup',opciones);
 if (window.focus) new_window.focus();
}

/* --------
The code below opens a window with toolbar and status bar.
window.open ("http://www.javascript-coder.com", "mywindow","status=1,toolbar=1");

The table shows the features and the string tokens you can use:
- status 	The status bar at the bottom of the window.
- toolbar 	The standard browser toolbar, with buttons such as Back and Forward.
- location 	The Location entry field where you enter the URL.
- menubar 	The menu bar of the window
- directories 	The standard browser directory buttons, such as What’s New and What’s Cool
- resizable 	Allow/Disallow the user to resize the window.
- scrollbars 	Enable the scrollbars if the document is bigger than the window
- height 	Specifies the height of the window in pixels. (example: height=’350')
- width 	Specifies the width of the window in pixels.
-------- */

// -----------------------------------------------------------------------------
// --- OCULTA UNA CAPA
// -----------------------------------------------------------------------------
function ocultar_capa(nombre_capa)
{
 capa_seleccionada = document.getElementById(nombre_capa);
 capa_seleccionada.style.display="none";
}

// -----------------------------------------------------------------------------
// --- MUESTRA UNA CAPA
// -----------------------------------------------------------------------------
function mostrar_capa(nombre_capa)
{
 capa_seleccionada = document.getElementById(nombre_capa);
 capa_seleccionada.style.display="block";
}

function setCookie(c_name,value,ruta,dominio,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value = escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + "; path=" + ruta + "; domain=" + dominio;
document.cookie=c_name + "=" + c_value;
}
