if (document.getElementById('flashMenu')) {
var s1 = new SWFObject("http://www.naranjasnavel.com/imagerotator.swf","rotator","200","300","7");
		s1.addParam("allowfullscreen","false");
		s1.addVariable("file","http://www.naranjasnavel.com/madrid.xml");
		s1.addVariable("width","200");
		s1.addVariable("height","300");
		s1.write("flashMenu");
}
if (document.getElementById('main')) {
var s0 = new SWFObject("http://www.naranjasnavel.com/images/header.swf","main","850","150","7");
        s0.addParam("allowfullscreen","false");
		s0.write("main");
}

var seleccionado = document.getElementById (menuSeleccionado);
if (seleccionado) {
    padre = seleccionado.parentNode;
    if (padre) padre.className = 'selected';
}

var lnk_volver = document.getElementById ('lnk_volver');
if  (lnk_volver) {
	lnk_volver.onclick = function () {
    	window.history.back(-1);
		return false;
	}
}
var mwong = document.getElementById ('mwong'); 
if (mwong) {
	mwong.onclick = function () {
		location.href="http://www.mister-wong.es/index.php?action=addurl&amp;bm_url="
		+encodeURIComponent(location.href)+"&amp;bm_description=&"+encodeURIComponent(document.title);
		return false;
	}
}
var delicious = document.getElementById ('delicious'); 
if (delicious) {
	delicious.onclick = function () {
		window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+
		'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550');
		return false;
	}
}
/* Se abrirá página con todos los enlaces
var lnkEnlaces = document.getElementById ('lnkEnlaces');
if (lnkEnlaces) {
     lnkEnlaces.onclick = function () {
        var dlgEnlaces = document.getElementById ('dlgEnlaces');
        if (dlgEnlaces) {
            dlgEnlaces.className ="dlg";
        }
		return false;
	}
}*/
var dlgCerrar = document.getElementById('dlgCerrar');
if (dlgCerrar) {
    dlgCerrar.onclick = function () {
        var dlgEnlaces = document.getElementById ('dlgEnlaces');
        if (dlgEnlaces) {
            dlgEnlaces.className ="dlg oculta";
        }
		return false;
	}
}
// Google Analytics

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
	var pageTracker = _gat._getTracker("UA-10925987-1");  //UA-6350135-1 Antiguo
	pageTracker._trackPageview();
} catch(err) {}
