/* Copyright (C) 2007 - 2011 YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

/*var dias = 1 //días a los que caduca la cookie 
if(document.cookie.indexOf('popup=false')<0){ 
    cad=new Date() 
    cad.setTime(cad.getTime() + (dias*24*60*60*1000)) 
    expira="; expires=" + cad.toGMTString() 
    document.cookie = "popup=false" + expira 
   

   shtml="<div id='msg' style='visibility: visible; position: fixed; left: 50%; top: 50%; width: 1000px; height: 700px;  margin-top: -300px; margin-left: -500px; z-index:10000; text-align: right;  background: url(http://www.espeleoteca.com/joomla/images/modulos/icsc/fondo-icsc.png) 0 0 repeat;'>" 
   shtml +="<img src='http://www.espeleoteca.com/joomla/images/modulos/icsc/popup-icsc.png' alt='International Cave-Survey Camp' />" 
   shtml +="<img src='http://www.espeleoteca.com/joomla/images/modulos/icsc/cerrar2.png' alt='Cerrar mensaje' width='30' onClick='hmsg(this)' value='Cerrar' class='form' style='position: absolute; right: 0; top: 0;' />"
   shtml +="</div>"

    
   document.write(shtml)     
} 
function hmsg(obj){ 
    if (document.getElementById('msg').style.display=="none") { 
        document.getElementById('msg').style.display="";
		document.getElementById('msgfondo').style.display=""; 
    } else { 
        document.getElementById('msg').style.display="none";
		document.getElementById('msgfondo').style.display="none"; 
    } 
}  
*/

/* Copyright (C) 2007 - 2011 YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */





jQuery(function($){

	/* Accordion menu */
	$('.menu-accordion').accordionMenu({ mode:'slide' });

	/* Dropdown menu */
	$('#menu').dropdownMenu({ mode: 'diagonal', dropdownSelector: 'div.dropdown' }).dropdownMenu("matchUlHeight");

	/* set hover color */
	var submenuEnter = '#31302F';
	var submenuLeave = '#41403F';
	var submenu2Enter = '#303030';
	var submenu2Leave = '#393837';

	/* Morph: main menu - level2 (bg) */
	var menuEnter = { 'background-color': submenuEnter };
	var menuLeave = { 'background-color': submenuLeave };

	$('#menu a.level2, #menu a.level3').morph(menuEnter, menuLeave,
		{ transition: 'swing', duration: 0 },
		{ transition: 'easeInSine', duration: 500 });

	/* Morph: mod-fading sub menu - level1 (bg) */
	var submenuEnter = { 'background-color': submenuEnter };
	var submenuLeave = { 'background-color': submenuLeave };

	$('div.mod-sidebar ul.menu a.level1, div.mod-sidebar ul.menu span.level1').morph(submenuEnter, submenuLeave,
		{ transition: 'swing', duration: 0 },
		{ transition: 'easeInSine', duration: 300 });

	/* Morph: mod-fading sub menu - level2 (bg) */
	var submenuEnter = { 'background-color': submenu2Enter };
	var submenuLeave = { 'background-color': submenu2Leave };

	$('div.mod-sidebar ul.menu a.level2').morph(submenuEnter, submenuLeave,
		{ transition: 'swing', duration: 0 },
		{ transition: 'easeInSine', duration: 300 });

	/* Smoothscroll */
	$('a[href="#page"]').smoothScroller({ duration: 500 });

	/* Match height of div tags */
	$('div.headerbox div.deepest').matchHeight(20);
	$('div.topbox div.deepest').matchHeight(20);
	$('div.bottombox div.deepest').matchHeight(20);
	$('div.maintopbox div.deepest').matchHeight(20);
	$('div.mainbottombox div.deepest').matchHeight(20);
	$('div.contenttopbox div.deepest').matchHeight(20);
	$('div.contentbottombox div.deepest').matchHeight(20);

});







