var ord=Math.random()*10000000000000000;function getAdDisp(B,D,C,A){var E=getAd(D);document.write(E)}function showAd(A,C,B){}function getAd(A){A=A.replace("ordvalue",ord);var B='<script language="JavaScript" src="'+A+'?" type="text/javascript"><\/script>';return B}function getAdFrame(C,D,A){var B='<iframe id="'+C+'" name="'+C+'" width="'+D+'" height="'+A+'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';return B}function addToFavorites(){if(window.sidebar!=null){window.sidebar.addPanel(document.title,document.location.href,"")}else{if(window.external!=null){window.external.AddFavorite(document.location.href,document.title)}else{window.alert("Your browser is not supported yet, please bookmark this page manually.")}}}function searchAutocomplete(A){$("#search-field").autocomplete(masterSiteUrl+"ajaxService?callback=?&cmd=findMediaTitles&siteid="+siteid,{width:A,selectFirst:false,matchContains:true,matchSubset:false,cacheLength:1,minChars:3,dataType:"json",parse:function(B){return $.map(B,function(C){return{data:C,value:C.t,result:C.t}})},formatItem:function(B){return B.t}}).result(function(C,B){document.searchForm.submit()});$("form[name=searchForm]").bind("submit",function(){if(this.query.value.length<2||this.query.value.length>64){if(this.query.value.length==0){alert("Please enter a search keyword")}else{if(this.query.value.length<2){alert("Please enter at least 2 letters into the search field")}else{alert("Please enter shorter keyword")}}this.query.focus();return false}})};