document.write(""); var gallery_timer=0,mouse_inside=0,mspeed=15;function slideRight(){for(var e=document.getElementById("gallery_preview").childNodes,t=0,l=0;l0?((i-=20)<0&&(i=0),t.style.marginLeft=i+"px",e.style.marginLeft=r-20+"px",t.style.opacity=a,e.style.opacity=1-a,setTimeout((function(){moveRight(e,t,l)}),20)):(e.style.opacity=1,e.style.display="none")}function slideLeft(){for(var e=document.getElementById("gallery_preview").childNodes,t=0,l=e.length-1;l>=0;l--)if(null!=e[l].tagName&&null!=e[l].style&&"card_container"==e[l].className)if("block"==e[l].style.display){var i=e[l],r=1;t++}else{if(r){var a=e[l];r=0}if(!o)var o=l}if(null==a)a=e[o];t<2&&(i.style.marginLeft=0,a.style.marginLeft=-(i.offsetWidth+30)+"px",a.style.display="block",document.getElementById("gallery_preview").style.height=a.offsetHeight+"px",document.getElementById("gallery_preview").style.width=a.offsetWidth+"px",moveLeft(i,a,i.offsetWidth+30)),stopSlide()}function moveLeft(e,t,l){var i=parseInt(t.style.marginLeft),r=parseInt(e.style.marginLeft),a=1- -i/l;i<0?((i+=20)>0&&(i=0),t.style.marginLeft=i+"px",e.style.marginLeft=r+20+"px",t.style.opacity=a,e.style.opacity=1-a,setTimeout((function(){moveLeft(e,t,l)}),20)):(e.style.opacity=1,e.style.display="none")}function startSlide(){slideRight(),gallery_timer=setTimeout("startSlide()",200*mspeed)}function stopSlide(){clearTimeout(gallery_timer)}window.onload=function(){null!=document.getElementById("gallery_preview")&&startSlide()};var carousel=document.getElementById("carousel");carousel.onmouseout=function(e){var t=(e=e||window.event).target||e.srcElement,l=e.relatedTarget||e.fromElement;"g"==t.id[0]||"carousel"==l.id||"left_arrow"==l.id||"right_arrow"==l.id||"carousel"==t.id||"b"==t.id[0]&&""==l.id&&!isNaN(t.id[1])||stopSlide()},carousel.onmouseover=function(e){var t=(e=e||window.event).target||e.srcElement,l=e.relatedTarget||e.fromElement;"carousel"!=t.id&&"left_arrow"!=t.id&&"right_arrow"!=t.id&&"left_arrow"!=l.id&&"right_arrow"!=l.id&&stopSlide()}; mspeed=20;