',a+='
",a+='# '+randomindex.pages[e].tags+"
";var t=randomindex.pages[e].text,n="",o=t.split(" ");if(o.length<40)n=t;else for(var r=0;r<40;r++)n+=o[r]+" ";"."!=(n=$.trim(n)).charAt(n.length-1)&&(n+=" ..."),a+=''+n+"
",a+="",$("#randomExperiment_content").replaceWith(''+a+"
")}$(window).scroll(collapseNavbar),$(document).ready(collapseNavbar),$(document).ready(randomExp),$(function(){$("a.page-scroll").bind("click",function(a){var e=$(this);$("html, body").stop().animate({scrollTop:$(e.attr("href")).offset().top},1500,"easeInOutExpo"),a.preventDefault()})}),$(".navbar-collapse ul li a").click(function(){"dropdown-toggle active"!=$(this).attr("class")&&"dropdown-toggle"!=$(this).attr("class")&&$(".navbar-toggle:visible").click()})