jQuery.extend({divSearch:undefined,divSlideController:undefined,divLoading:undefined,templateSet:"ajax",templateSetDefault:undefined,blankQuery:"w=*",searchBoxLocation:jQuery("input#sli_search_1"),sliSearchingCur:true,ajaxRequest:undefined,searchQuery:"/search?",returnedData:undefined,finishedCallCustom:undefined,sliAnimateOutCustom:undefined,sliAnimateFinished:undefined,sliAnimateOut:function(){var performDefault=true;try{performDefault=!eval("sli_effectOut_"+jQuery.sliEffect)}catch(e){}if(performDefault){if(jQuery.finishedCallCustom!=undefined){jQuery.sliAnimateOutCustom()}else{if(jQuery.divSearch.css("display")=="block"){var height=jQuery.divSearch.outerHeight();jQuery.divSlideController.css("height",height);jQuery.sliSearchingCur=true;jQuery.divSearch.fadeOut("slow",function(){jQuery(jQuery.divLoading).css("display","block");jQuery.sliSearchingCur=false})}}}},finishedCall:function(){var performDefault=true;jQuery.sliSearchingCur=false;jQuery.divLoading.css("display","none");try{performDefault=!eval("sli_effectIn_"+jQuery.sliEffect)}catch(e){}if(performDefault){if(jQuery.finishedCallCustom!=undefined){jQuery.finishedCallCustom()}else{jQuery.divSearch.fadeIn("slow",function(){if(jQuery.sliAnimateFinished!=undefined){jQuery.sliAnimateFinished()}jQuery.divSlideController.animate({height:jQuery.divSearch.outerHeight()},1000)})}}jQuery.divSlideController.animate({height:jQuery.divSearch.outerHeight()},1000)},regularExpressionJump:new RegExp("<!--JUMPTOURL='([^']*)'-->"),InvalidResponseRe:new RegExp(/<html[^>]*>/i),iframeNeeded:(jQuery.browser.msie)&&((jQuery.browser.version<8&&(document.documentMode<8||document.documentMode==undefined))||document.documentMode<8),sliFacetSearch:function(a){facet_url=a;a=a.replace(/ /g,"+");document.location=a},ajaxEffectReg:new RegExp("&ajaxEffect=([^&]+)"),sliSearch:function(f){var a=jQuery.ajaxEffectReg.exec(f);if(a!=null){jQuery.sliEffect=(a[1]+"()")}else{jQuery.sliEffect=false}jQuery.sliAnimateOut();if((jQuery.browser.msie)&&(jQuery.browser.version<7)){var b=location.href;var d=b.indexOf("#");var g=d>=0?b.substr(d+1):null;if(g!=null&&g.match(/\?/)){location.hash=f}}f=f.replace(/\+/g,"%20");f=f.replace(/ /g,"%20");if(f==""){return}var c=new RegExp("(&|\\?)ts="+jQuery.templateSet+"($|&)");if(!f.match(c)){var e=jQuery.templateSetDefault;if(e==undefined){e=jQuery.templateSet}f+="&ts="+e}f=document.location.protocol+"//"+document.location.host+jQuery.searchQuery+f;if(jQuery.ajaxRequest){jQuery.ajaxRequest.abort()}jQuery.ajaxRequest=jQuery.get(f,jQuery.sliFinishedLoading)},sliFinishedLoading:function(c){jQuery.returnedData=c;var a=jQuery.regularExpressionJump.exec(c);if(a!=null&&jQuery.historyCurrentHash.indexOf("&sli_jump=1")===-1){if(jQuery.browser.msie){var d=new String(window.location);if(d.indexOf("&slijump=true")>0){history.go(-2);return}else{jQuery.sliSearch=function(e){};jQuery.historyCheck();window.location=window.location+"&slijump=true";window.location=a[1]}}else{location.replace(a[1])}}else{var b=jQuery.InvalidResponseRe.exec(c);if(b!=null){jQuery.returnedData="An error occurred while searching."}jQuery.sliLoadInData()}},sliLoadInData:function(){if(jQuery.sliSearchingCur){setTimeout("jQuery.sliLoadInData()",100);return}jQuery(jQuery.divSearch).empty();jQuery(jQuery.divSearch).html(jQuery.returnedData);jQuery.finishedCall()},historyCurrentHash:undefined,historyInit:function(){var e=jQuery.historyGetHash();if(e==undefined||e==""){location.hash=jQuery.blankQuery}else{var c=new RegExp("(&|^|\\?|#)w=([^&]*)");c=c.exec(e);if(c!=null){var d=c[2];if(d=="*"||d=="%2a"){d=""}d=d.replace(/\+/g," ");jQuery.searchBoxLocation.val(unescape(d))}}var f=jQuery.historyGetHash();jQuery.historyCurrentHash=f;if(jQuery.iframeNeeded){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#"}jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var a=jQuery("#jQuery_history")[0];var b=a.contentWindow.document;b.open();b.close();b.location.hash=f}if(f){jQuery.sliSearch(f)}setInterval(jQuery.historyCheck,100)},historyCheck:function(){if(jQuery.iframeNeeded){var a=jQuery("#jQuery_history")[0];var b=a.contentDocument||a.contentWindow.document;var c=jQuery.historyGetHash();if(c!=jQuery.historyCurrentHash){b.open();b.close();b.location.hash=c;jQuery.historyCurrentHash=c;jQuery.sliSearch(c)}else{if(b.location.hash.replace(/^#/,"")!=jQuery.historyCurrentHash){c=jQuery.historyGetHash(b.location);jQuery.historyCurrentHash=c;location.hash=c;jQuery.sliSearch(c)}}}else{var c=jQuery.historyGetHash();if(c!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=c;jQuery.sliSearch(c)}}},historyGetHash:function(c){var b,a;if(c){a=c.href}else{a=location.href}a=a.replace(/#\?+/g,"#");a=a.replace(/\?+/g,"&");b=a.indexOf("#");return b>=0?a.substr(b+1):null}});if(jQuery.iframeNeeded){var href=location.href;var i=href.indexOf("#");var hash=i>=0?href.substr(i+1):null;if(hash!=null&&hash.match(/\?/)){location.hash=jQuery.historyGetHash()}}function sli_loadContent(c,a,b){if(c==""){jQuery(a).css("display","none")}else{jQuery(a).css("display","")}jQuery(a).html(c);if(b){jQuery(a).find(b).unbind();jQuery(a).find(b).bind("click",function(){jQuery.scrollTo(0,800)})}}function sli_setTitle(a){document.title=a};
