function TimmerHD(){

}
    
function menu(){

    $('#datos ul li:has(ul)').hover(
        function(e) {
            $(this).find('ul').fadeIn();
        },
        function(e) {
            $(this).find('ul').fadeOut();
        }
    );
    
}

function selects(){
       $("#buscadorRRPP select").chosen({ allow_single_deselect:true });
/*
       $("#buscadorRRPP input").css('margin-top','-25px')
       $("#buscadorRRPP input:first").css('margin-top','-20px')

       $("#buscadorRRPP select").css('margin-top','30px')
       $("#buscadorRRPP select:first").css('margin-top','0px')
       $("#buscadorRRPP select").css('width','200px')
       $("#buscadorRRPP select").css('margin-left','10px')
*/
}

function include(Src) {
    var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
        if(is_chrome){
            var sc = document.createElement('link');
            sc.type = 'text/css';
            sc.href = Src;
            sc.rel = 'stylesheet';
            document.getElementsByTagName('head')[0].appendChild(sc);
            sc = null;
        }
}

function slider(){
    $("#slider").nivoSlider({
	//  effect:"sliceUpDown",  	
	//	effect:"boxRandom",
		slices:15,
		boxCols:8,
		boxRows:4,
		animSpeed:500,
		pauseTime:3000,
		startSlide:0,
		directionNav:false,
		directionNavHide:true,
		controlNav:true,
		controlNavThumbs:false,
		controlNavThumbsFromRel:true,
		keyboardNav:true,
		pauseOnHover:true,
		manualAdvance:false
    });
}
	
function moveCloseLink(){ 
	var cb=document.getElementById('sb-nav-close'); 
	var tb=document.getElementById('sb-wrapper'); 
	if(tb) tb.appendChild(cb); 
}

function onClickReg(content){
	
	var player = 'iframe';
	var title = '';

	Shadowbox.open({
		content:    content,
		player:     player,
		title:      title,
		height:     554,
		width:      482		
	});

}

function OpenReg() {
	Shadowbox.init({
		onOpen: moveCloseLink,
		overlayOpacity: 0.8
	});
}

function Scroll() {
     $(".scrollable").scrollable({ circular: true, size: 1 });
}

function initMenu() {
  $('#AccordionList ul').hide();
//$('#AccordionList ul:first').show();
  $('#AccordionList li h4').click(
    function(){
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))){
          $('#AccordionList ul:visible').slideDown('normal');
          checkElement.slideUp('normal');
        return false;
      }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))){
        $('#AccordionList ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
      }
    }
  );
}

function include() {

	var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
	var is_IE7    = navigator.userAgent.toLowerCase().indexOf('msie 7') > -1;

 	 if(is_chrome) {

			var sc   = document.createElement('link');
			sc.type  = 'text/css';
			sc.href  = 'css/chrome.css';
			sc.rel   = 'stylesheet';
			document.getElementsByTagName('head')[0].appendChild(sc);
			sc = null;
	}

	if (is_IE7) {
	//	$(".boton_masI").css('width','84px'); 
	}	

}


