var parentOpen="(";var parentClose=")";$('a[href*=#]').click(function(event){$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top},500);event.preventDefault();});setTimeout("wowColorBox()",2000);function wowColorBox(){$(".fAlbum .ws_cover a").colorbox({maxWidth:'100%',maxHeight:'100%'});}
$(document).ready(function(){$('label[for=user_login]').click(function(event){$(".liSesion a span").trigger("click");});$(".responsive li.equipo a span").on("click",function(){$(".slide#equipo").show();$('html, body').animate({scrollTop:$(".slide#equipo").offset().top},500);});});var forceCapaFija=false;$(document).ready(function(){var altura=$("nav li").height();$('.art-nav>div>ul').prepend('
');$('.logoCapaFija img').css("height",altura-12);$('.logoCapaFija img').css("width","auto");$('.logoCapaFija img').css("max-height","89%");});$(document).bind('scroll',onScroll);function onScroll(){if($(document).height()>$(window).height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$(window).scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".art-nav").removeClass('capaFija');}else{$(".art-nav").addClass('capaFija');}}}
function onScrollMobile(){if($(document).height()>$('body').height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$('body').scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".art-nav").removeClass('capaFija');}else{$(".art-nav").addClass('capaFija');}}}
function searchToggle(obj,evt){var container=$(obj).closest('.search-wrapper');if(!container.hasClass('active')){container.addClass('active');evt.preventDefault();}
else if(container.hasClass('active')&&$(obj).closest('.input-holder').length==0){container.removeClass('active');container.find('.search-input').val('');container.find('.result-container').fadeOut(100,function(){$(this).empty();});}}
function submitFn(obj,evt){value=$(obj).find('.search-input').val().trim();_html="Yup yup! Your search text sounds like this: ";if(!value.length){_html="Yup yup! Add some text friend :D";}
else{_html+=""+value+"";}
$(obj).find('.result-container').fadeIn(100);if($("#flat_s").val()!='')
location.href="buscar-"+$("#flat_s").val().replaceAll(" ","+");evt.preventDefault();}
$(document).ready(function(){$("#searchsubmit").click(function(){if($("#flat_s").val()!='')
location.href="buscar-"+$("#flat_s").val();});});function pulsaTecla(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==13){if($("#flat_s").val()!='')
location.href="buscar-"+$("#flat_s").val();}}
jQuery(document).ready(function(){var isOpen=false;jQuery("#miniCart").hover(function(){if(!isOpen)
jQuery("#miniCartDiv").not(":animated").slideDown('500').css('display','block');isOpen=true;},function(){jQuery("#miniCartDiv").slideUp('500');isOpen=false;});});var SITE_URL='https://www.factinet.com/';var IMGS_URL='https://www.factinet.com/includes/sliders/demo-2/data1';jQuery(document).ready(function(){jQuery("#searchsubmit").click(function(){if(jQuery("#s").val()!='')
location.href="blog-buscar-"+jQuery("#s").val().replaceAll(" ","+");;});});function pulsaTecla(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==13){if(jQuery("#s").val()!='')
location.href="blog-buscar-"+jQuery("#s").val().replaceAll(" ","+");;}}
$(document).ready(function(){$(".fullBlog").jPaginate({items:10});});jQuery(document).ready(function(){jQuery('.fullBlogWidget').jaliswall({item:'.divBlog'});});$(document).ready(function(){window.setInterval(kenBurns,500);function kenBurns(){$("#full-width-slider .rsSlide:hidden img").removeClass("fx");$("#full-width-slider .rsSlide:visible img").addClass("fx");}});$(function(){var $window=$(window);var scrollTime=1;var scrollDistance=370;$window.on("mousewheel DOMMouseScroll",function(event){var delta=event.originalEvent.wheelDelta/120||-event.originalEvent.detail/3;var scrollTop=$window.scrollTop();var finalScroll=scrollTop-parseInt(delta*scrollDistance);TweenMax.to($window,scrollTime,{scrollTo:{y:finalScroll,autoKill:true},ease:Power1.easeOut,autoKill:true,overwrite:5});});});window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','UA-3938643-34');jQuery("#div_descripcion div,#div_descripcion p,#div_descripcion span,#div_descripcion a").not(".button").css({'color':'','font-size':'','text-indent':'','background-color':'transparent'});jQuery("#div_descripcion img").css({'max-width':'700px'});jQuery(document).ready(function(){jQuery("img:not(.pixelCode)").error(function(){event.preventDefault();jQuery(this).attr("title",jQuery(this).attr("src"));jQuery(this).attr("src","/cacheimg?zc=2&w=400&h=400&src=images/no-picture.png");jQuery(this).css({"width":"100%","opacity":"0.2"});});jQuery(".vlightbox1:not(.noColorbox)").colorbox({rel:'vlightbox1',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});jQuery('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"], a[href$=".JPG"], a[href$=".JPEG"], a[href$=".GIF"], a[href$=".PNG"]').not(".noColorbox").colorbox({maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:6000});jQuery("a[href^='http']").not("[href*='"+location.host+"']").attr('target','_blank');if($(".readmore").length){$('').insertAfter($(".readmore"));$('.readmore').toggleClass("readmore__content__close");$('.readmore').css("height",$('.readmore').data("height"));jQuery(".readmore__toggle").click(function(){$(this).prev().toggleClass("readmore__content__close");if($(this).prev().hasClass("readmore__content__close")){$(this).text("Leer más...");$(this).prev().css("height",$('.readmore').data("height"));}else{$(this).text("Leer menos...");$(this).prev().css("height","initial");}});}});jQuery(document).ready(function(){jQuery('#shareme, .shareme').sharrre({share:{facebook:true,twitter:true,googlePlus:false,pinterest:false},buttons:{googlePlus:{url:'http://asociacionpsicologiaforense.es/blog-pagina-12',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://asociacionpsicologiaforense.es/blog-pagina-12',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://asociacionpsicologiaforense.es/blog-pagina-12',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://asociacionpsicologiaforense.es/blog-pagina-12',media:'https://www.factinet.com/uploads/grupos/fb78ba96c7bc604c3cb6e7b6e9346aad_logo_apf.png',description:'La finalidad de la Asociación de PsicologÃa Forense (APF) es ofrecer respuestas a las consultas formuladas por los usuarios, asà como información sobre eventos relacionados con los ámbitos de la psicologÃa forense jurÃdica, o con ofertas de cursos o formación de especial interés en esos ámbitos. Además ofrecemos un servicio de acceso privado a zonas de la web exclusivas para los socios registrados en nuestra Asociación.',layout:'horizontal'}},enableHover:false,enableCounter:false,enableTracking:true});$('a[href*="#"]:not([href="#"])').click(function(event){if(typeof($($.attr(this,'href')).offset())!='undefined'){event.preventDefault();$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top-($(".capaFija").is(":visible")*-100)-100},500);}});});