function shareFacebook(d){d.preventDefault();var b=location.href,c=document.title,a="http://www.facebook.com/sharer.php?u="+encodeURIComponent(b)+"&t="+encodeURIComponent(c);window.open(a,"sharer","toolbar=0,status=0,width=626,height=436")}function printPage(a){a.preventDefault();window.print()}jQuery(document).ready(function(){var a="Søk i arkivet",b=jQuery("#s");if(b.val()==a){b.addClass("default")}b.focus(function(){if(this.value==a){this.value="";this.className=""}}).blur(function(){if(this.value==""){this.value=a;this.className="default"}});jQuery("#searchform").submit(function(){if(b.val()==a){b.val("")}});jQuery("ul.galleri a[rel^=prettyPhoto]").prettyPhoto();jQuery("div.published a.print").click(printPage);jQuery("div.published a.facebook").click(shareFacebook).attr("target","_blank")});