 jQuery.noConflict();window.flags_prevact='link_a'
   function hide_init() {jQuery("#init").css('display', 'none');} 
   function show_init() {jQuery("#next").css('display', 'none');jQuery("#init").css('display', 'block');video();} 
   function show_next() {hide_init();jQuery("#next").css('display', 'block');}
   
  function tray_active() {jQuery('#'+window.flags_prevact).attr('class', 'tiptop');window.flags_prevact= window.activate;jQuery('#'+window.activate).attr('class', 'tiptop active');}
  
  function video() {var s1 = new SWFObject('/swf/player51ociera.swf?9','ply','396','235','9','#');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('wmode','opaque');
  s1.addParam('flashvars','image=/design/video.png&file=lucianim03.mp4&streamer=rtmp://flv.ociera.com:443/garabato/&controlbar=none&stretching=fill&quality=true&autostart=false&logo.name=logo&logo.timeout=10&logo.link=https://www.ociera.es/&logo.pos=tr&buffertime=3');
  s1.write('ociera');
	}
	
function xhr_content() {/*xhrweb({url:'/inc/visits.ds'});*/
	jQuery(function(){jQuery(".tipbottom").tipTip({maxWidth:"270px", fadeIn:300, defaultPosition:"bottom", delay:10, content:false});});
jQuery('.jquerytip').tooltip({ track: true,fade:100, delay: 0, showURL: false, extraClass: "right" }); 

jQuery('.ajaxtip_').each(function(index){
		this.titleurl=jQuery.trim(this.getAttribute('link'))
		var $target=jQuery(this);
		jQuery.get(this.titleurl, function(data){
			$target.attr('link', 'ok');
			$target.attr('jtitle', data);
			$target.attr('class', 'ajaxtip');
			jQuery('.ajaxtip').ajaxtip({ track: true, delay: 0, showURL: false, extraClass: "right" }); 
		});

	})
	

	

}	
function xhr_inicio() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_inicio").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_iniciate() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_iniciate").attr('class', 'bt5v1_36_state2 common tipbottom'); }
function xhr_centros() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_centros").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_i() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_inmersiones").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_lg() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_lg").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_centros_fr() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_centros_fr").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_i_fr() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_inmersiones_fr").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_lg_fr() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_lg_fr").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_centros_en() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_centros_en").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_i_en() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_inmersiones_en").attr('class', 'bt5v1_36_state2 common tipbottom');}
function xhr_lg_en() {jQuery(".bt5v1_36_state2").attr('class', 'bt5v1_36_state1 common jquerytip_');jQuery("#bt5v1_lg_en").attr('class', 'bt5v1_36_state2 common tipbottom');}

jQuery(document).ready(function() {
		jQuery('body').find('.hov').remove
    jQuery('body').find('.bt5v1_36_state1').append('<span class="hov" />').removeClass('high').each(function () {
                    var $spans = jQuery('> span.hov', this).css('opacity', 0);
                    jQuery(this).hover(function () {
                        // on hover
                        $spans.stop().fadeTo(150, 1);
                    }, function () {
                        // off hover
                        $spans.stop().fadeTo(500, 0);
                    });
                });
	
	
	jQuery('.jquerytip_').tooltip({ track: true,fade:100, delay: 0, showURL: false}); 

jQuery(function(){jQuery(".tipbottom").tipTip({maxWidth:"270px", fadeIn:300, defaultPosition:"bottom", delay:10, content:false});});

xhrweb({url:'/pages.ds?p=inicio',fn:'xhr_content(),xhr_inicio()', fillDiv:'xhr_content'});
	

jQuery(function(){
    jQuery(".tiptip").tipTip({maxWidth:"200px", fadeIn:10, defaultPosition:"right", delay:10, content:false});
});
jQuery(function(){
    jQuery(".tiptop").tipTip({maxWidth:"200px", fadeIn:130, defaultPosition:"bottom", delay:500, content:false});
});
jQuery(function(){
    jQuery(".tipleft").tipTip({maxWidth:"200px", fadeIn:130, defaultPosition:"left", delay:10, content:false});
});	

	
playerVersion = swfobject.getFlashPlayerVersion();
pv = playerVersion.major + "." + playerVersion.minor + "." + playerVersion.release;
window.one_flash_sup = new one.flash.inst().isSupp(); 
window.one_flash_inst = new one.flash.inst().checkInstallUpdate(1,10,1,53); 
setTimeout(function() {if (window.one_flash_inst == 11 || window.one_flash_inst == 01){
if (window.one_flash_inst == 11 ){jQuery('#bt5v1_alert').attr('class', 'bt5v1_36_state2 common tipbottom').attr("onClick", 'xhrweb({url:"/installfpactu.ds"});window.one_flash_doinst = new one.flash.inst().doInst(1);').attr("title", 'Flash Player necesita ser actualizado para una experiencia de video óptima:<br/><br/>Pulse aquí para obtener una actualización de Flash Player 10.1.53, tiene instalado la versión '+pv );}else if(window.one_flash_inst == 01){jQuery('#bt5v1_alert').attr('class', 'bt5v1_36_state2 common tipbottom').attr("onClick", 'xhrweb({url:"/installfp.ds"});window.one_flash_doinst = new one.flash.inst().doInst(1);').attr("title", 'No se ha detectado Flash Player:<br/><br/>Pulse aquí para instalar Flash Player 10.1.53');}

jQuery(function(){jQuery(".tipbottom").tipTip({maxWidth:"270px", fadeIn:300, defaultPosition:"bottom", delay:10, content:false});});
}},4000)



});//DomReady


hs.graphicsDir = '/js/slide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.8;
	hs.outlineType = 'rounded-white';
	hs.captionEval = 'this.thumb.alt';
	hs.marginBottom = 105 // make room for the thumbstrip and the controls
	hs.numberPosition = 'caption';

	/* Add the slideshow providing the controlbar and the thumbstrip
	hs.addSlideshow({
		slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			className: 'text-controls',
			position: 'bottom center',
			relativeTo: 'viewport',
			offsetY: -60

		},
		thumbstrip: {
			position: 'bottom center',
			mode: 'horizontal',
			relativeTo: 'viewport'
		}
	});*/


	
	
	
	function add_p() {var name = jQuery("#p_name").val();
	   xhrweb({url:'/module/tienda.ds?acc=addp&subcat='+window.flags_subcatselect,fn:'get_p()'});
	   }
	
	
	function add_subcat() {var subcat = jQuery("#subcat_ed").val();/*window.flags_catselect='';*/
	   xhrweb({url:'/module/tienda.ds?acc=addsubcat&subcat='+subcat+'&cat='+window.flags_catselect,fn:'get_cat()'});
	   }
	function del_subcat() {
	   xhrweb({url:'/module/tienda.ds?acc=delsubcat&subcat='+window.flags_subcatselect+'&cat='+window.flags_catselect,fn:'get_cat()'});
	   }

	function add_cat() {var cat = jQuery("#cat_ed").val();
	   xhrweb({url:'/module/tienda.ds?acc=addcat&cat='+cat,fn:'get_cat()'});
	   }
	function del_cat() {
	   xhrweb({url:'/module/tienda.ds?acc=delcat&cat='+window.flags_catselect,fn:'get_cat()'});
	   }
	
	function get_cat() {
	   xhrweb({url:'/module/tienda.ds?acc=getcats&cat='+window.flags_catselect+'&subcat='+window.flags_subcatselect, fillDiv:'navcats'});
	   }
