var OWC=OWC||{};OWC.AJAX_TIMEOUT=30*1000;OWC.PROPERTIES=function(){return{BASE_URL:"",AJAX_SERVICE_URL:"/wcpa/servlet/org.oclc.lac.ui.ajax.ServiceServlet"}}();OWC.UTIL=new function(){var a=false;jQuery(document).ready(function(){jQuery.ajaxSetup({timeout:OWC.AJAX_TIMEOUT});a=true});return{log:function(b){if((typeof(console)!=="undefined")&&(typeof(console.log)==="function")){console.log(b)}},getLanguageString:function(c){var b;if(c!=null){b=c.replace(".","_").replace(/&|;/gi,"")}if(OWC_LANG[b]!=null){return OWC_LANG[b]}return c},ajax:function(){switch(arguments.length){case (1):var g=arguments[0];if((typeof(g)!="undefined")&&(g!=null)){OWC.UTIL.log("OWC.UTILS.ajax :: ajax call to url "+g.url);a?jQuery.ajax(g):jQuery(document).ready(function(){jQuery.ajax(g)})}break;case (2):var b=arguments[0];var f=arguments[1];OWC.UTIL.log("OWC.UTILS.ajax :: load or get call to url "+b);if(typeof(f)=="function"){a?jQuery.get(b,f):jQuery(document).ready(function(){jQuery.get(b,f)})}else{a?jQuery(f).load(b):jQuery(document).ready(function(){jQuery(f).load(b)})}break;case (3):var b=arguments[0];var d=arguments[1];var h=arguments[2];OWC.UTIL.log("OWC.UTILS.ajax :: call get on url = "+b);a?jQuery.get(b,d,h):jQuery(document).ready(function(){jQuery.get(b,d,h)});break}}}}();OWC.UTIL.log("Init complete");function MM_goToURL(){var i,args=MM_goToURL.arguments;document.MM_returnValue=false;for(i=0;i<(args.length-1);i+=2){eval(args[i]+".location='"+args[i+1]+"'")}}function MM_openBrWindow(a){options="status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450";window.open(a,"",options)}function MM_openBrWindow(c,a,b){window.open(c,a,b)}function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore){selObj.selectedIndex=0}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_jumpMenuGo(b,a,c){var d=MM_findObj(b);if(d){MM_jumpMenu(a,d,c)}}function limitText(c,b,a){if(c.value.length>a){c.value=c.value.substring(0,a)}else{b.value=a-c.value.length}}
/***********************************************
* Bookmark site script - Copyright Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use.
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code.
***********************************************/
function bookmarksite(b,a){if(document.all){window.external.AddFavorite(a,b)}else{if(window.sidebar){window.sidebar.addPanel(b,a,"")}}}function MM_displayStatusMsg(a){status=a;document.MM_returnValue=true}function selectFormat(e,d){var b=e.selectedIndex;var c=e.options[b].value;var a=d+"&format="+c+"#tabs";top.location.href=a;return true}function selectProximity(e,d){var b=e.selectedIndex;var c=e.options[b].value;var a=d+"&caseType="+c+"#tabs";top.location.href=a;return true}function selectLoc(e,d){var b=e.selectedIndex;var c=e.options[b].value;var a=d+"&loc="+c+"#tabs";top.location.href=a;return true}function selectSort(h,g){var d=h.selectedIndex;var f=h.options[d].value;var a=f.substring(0,f.indexOf("_"));var c=f.substring(f.indexOf("_")+1);var b=g+"&se="+a+"&sd="+c+"&qt=sort_"+a+"_"+c;try{top.location.href=b}catch(e){}return true}function refineSearchSelectSort(f,e){var c=f.selectedIndex;var d=f.options[c].value;var a=d.substring(0,d.indexOf("_"));var b=d.substring(d.indexOf("_")+1);refineYourSearch(null,a,b,null);return true}function selectStyle(e,d){var b=e.selectedIndex;var c=e.options[b].value;var a=d+"&style="+c;top.location.href=a;return true}function showhide(a){NS4=(document.layers)?1:0;IE4=(document.all)?1:0;W3C=(document.getElementById)?1:0;if(W3C){if(document.getElementById(a).style.display!="none"){document.getElementById(a).style.display="none"}else{document.getElementById(a).style.display=""}}else{if(NS4){if(document.layers[a].display!="none"){document.layers[a].display="none"}else{document.layers[a].display="block"}}else{if(document.all[a].display!="none"){document.all[a].display="none"}else{document.all[a].display="block"}}}}function $(){var c=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}c.push(a)}return c}function listCheckAll(){for(var a=0;a<$("resultsform").length;a++){if($("resultsform")[a].type=="checkbox"){$("resultsform")[a].checked=true}}}function listClearAll(){for(var a=0;a<$("resultsform").length;a++){if($("resultsform")[a].type=="checkbox"){$("resultsform")[a].checked=false}}}
/* This script came from Uncle Jim's Javascript Examples at JDStiles.com */
function selectAll(theField){var tempval=eval("document."+theField);tempval.focus();tempval.select()}function showMe(a,b){var c=(b.checked)?"block":"none";document.getElementById(a).style.display=c}function mvcToggleChecked(){var a=document.listEntryForm.checkToggle.checked;if(a){mvcCheckAll()}else{mvcClearAll()}}function mvcCheckAll(){var d=document.listEntryForm;var a=d.elements.length;for(var b=0;b<a;b++){var c=d.elements[b];if(c.name=="ed[]"){c.checked=true}}}function mvcClearAll(){var d=document.listEntryForm;var a=d.elements.length;for(var b=0;b<a;b++){var c=d.elements[b];if(c.name=="ed[]"){c.checked=false}}}function mvcVerifyChecked(){var f=document.listEntryForm;var a=f.elements.length;var c=false;for(var b=0;b<a;b++){var d=f.elements[b];if((d.name=="ed[]")&&d.checked){return(true)}}alert("Vous devez d’abord sélectionner des ouvrages dans la liste.");return(false)}function addToList(){var b=document.getElementById("theMenu").options[document.getElementById("theMenu").selectedIndex].value;var a=document.getElementById("theMenu").options[document.getElementById("theMenu").selectedIndex].innerHTML;if(b=="account-list-new.shtml"){window.location.href="account-list-new.shtml"}else{if(b!="#"){document.getElementById("list_name").innerHTML=a;document.getElementById("list_message").style.display="inline"}else{document.getElementById("list_message").style.display="none"}}return false}function toggleDisplay(a){var b=document.getElementById(a);b.style.display=(b.style.display=="inline"?"none":"inline")}var offsetx=12;var offsety=8;function newelement(newid){if(document.createElement){var el=document.createElement("div");el.id=newid;with(el.style){display="none";position="absolute"}el.innerHTML="&nbsp;";document.body.appendChild(el)}}var ie5=(document.getElementById&&document.all);var ns6=(document.getElementById&&!document.all);var ua=navigator.userAgent.toLowerCase();var isapple=(ua.indexOf("applewebkit")!=-1?1:0);function getmouseposition(c){if(document.getElementById){var b=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;pagex=(isapple==1?0:(ie5)?b.scrollLeft:window.pageXOffset);pagey=(isapple==1?0:(ie5)?b.scrollTop:window.pageYOffset);mousex=(ie5)?event.x:(ns6)?clientX=c.clientX:false;mousey=(ie5)?event.y:(ns6)?clientY=c.clientY:false;var a=document.getElementById("tooltip");a.style.left=(mousex+pagex+offsetx)+"px";a.style.top=(mousey+pagey+offsety)+"px"}}function tooltip(b){if(!document.getElementById("tooltip")){newelement("tooltip")}var a=document.getElementById("tooltip");a.innerHTML=b;myTimer=setTimeout("showTooltip()",1100);document.onmousemove=getmouseposition}function showTooltip(){document.getElementById("tooltip").style.display="block"}function exit(){document.getElementById("tooltip").style.display="none"}function getGroupAvl(d,a){var c=document.getElementById("linkgroupavl-"+d);c.style.display="none";var b=document.getElementById("inpgroupavl-"+d);b.style.display="inline";commLoadDocId(a,"groupavl-"+d)}function showLimitWarning(h,b,a,g){var d=false;if(document.getElementById("scope")){var f=document.getElementById("scope").value.toString();var c=document.getElementById("scope").selectedIndex;var e=document.getElementById("scope").options[c].text;if(b&&(e.match(/^\xA0{2,}/)!=null)){d=true}else{if(!g&&b&&!a&&f!="0"){d=true}else{if(g&&b&&f!="0"&&f!="1"){d=true}else{if(g&&b&&!a&&f=="1"){d=true}}}}}if(d){if(document.getElementById("dbalert_top_text")){document.getElementById("dbalert_top_text").innerHTML=h}if(document.getElementById("dbalert_bottom_text")){document.getElementById("dbalert_bottom_text").innerHTML=h}if(document.getElementById("dbalert_text")){document.getElementById("dbalert_text").innerHTML=h}if(document.getElementById("dbalert_top")){document.getElementById("dbalert_top").style.display="block"}if(document.getElementById("dbalert_image")){document.getElementById("dbalert_image").style.display="block"}if(document.getElementById("dbalert_bottom")){document.getElementById("dbalert_bottom").style.display="block"}if(document.getElementById("dbalert")){document.getElementById("dbalert").style.display="block"}}else{if(document.getElementById("dbalert_top")){document.getElementById("dbalert_top").style.display="none"}if(document.getElementById("dbalert_image")){document.getElementById("dbalert_image").style.display="none"}if(document.getElementById("dbalert_bottom")){document.getElementById("dbalert_bottom").style.display="none"}if(document.getElementById("dbalert")){document.getElementById("dbalert").style.display="none"}}}function collapsebox(a){var b=document.getElementById(a);if(b.className=="collapse-box"){b.className="expand-box"}else{b.className="collapse-box"}}var chatWin;function openChatWin(a){var b=getCookie(a);if(b!=null&&b=="true"){if(chatWin!=null&&!chatWin.closed){chatWin.focus()}}else{chatWin=window.open("/chat",a,"location=no,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=220,height=320");setChatCookie(a,"true")}}function setChatCookie(b,e,a){var d;var g;if(location.hostname.indexOf("oclc.org")>-1){d="oclc.org"}else{if(location.hostname.indexOf("worldcat.org")>-1){d="worldcat.org"}}if(a!=null){var c=new Date();g=Date(c.getTime()+a*1000*3600*24).toGMTString()}var f=new Date();f.setDate(f.getDate()+a);document.cookie=b+"="+escape(e)+((a==null)?"":";expires="+g)+((d==null)?"":";domain="+d)+";path=/"}function showInstAvlDiv(a,b){jQuery("#avlpopup-libname").html(a);jQuery("#doneinstaval").html("");jQuery("#avlpopupdiv").dialog("open");commLoadDocId(b,"instaval")}function initInstAvlDiv(){jQuery("#avlpopupdiv").dialog({autoOpen:false,width:650,height:400,resizable:true,draggable:true,modal:true,position:"center"})}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function setCookie(b,d,a){var c;if(location.hostname.indexOf("oclc.org")>-1){c="oclc.org"}else{if(location.hostname.indexOf("worldcat.org")>-1){c="worldcat.org"}}var e=new Date();e.setDate(e.getDate()+a);document.cookie=b+"="+escape(d)+((a==null)?"":";expires="+e.toGMTString())+((c==null)?"":";domain="+c)}function trimAll(a){return a.replace(/^\s*|\s*$/g,"")}function getLevelOne(a){jQuery("#inpopac_availability").css({display:"block"});OWC.UTIL.ajax(a,function(b){jQuery(b).find("id").each(function(){jQuery("#inpopac_availability").css({display:"none"});var d=jQuery(this).text();var c=jQuery(this).siblings("content").text();if(d=="message"){if(c.indexOf("SUCCESS_COMMENT")>-1){jQuery("#opacmsg").html(c)}else{jQuery("#opacmsg").css({display:"none"})}}jQuery("#done"+d).html(c);jQuery("#inp"+d).css({display:"none"});jQuery("#done"+d).css({display:"block"})})})}function getLevelTwo(b,a){jQuery("#inpimg"+b).css({display:"block"});OWC.UTIL.ajax(a,function(c){jQuery("#done"+b).html(jQuery(c).find("content").text())})}function getLocalAvailability(a){OWC.UTIL.ajax({url:a,timeout:60*1000,error:function(d,b,c){jQuery("#inpavailability_email").css({display:"none"});jQuery("#inpviewonline_levelone").css({display:"none"});jQuery("#inpavailability").css({display:"none"});jQuery("#inplocalnote").css({display:"none"})},success:function(b){jQuery(b).find("id").each(function(){var f=jQuery(this).text();var e=jQuery(this).siblings("content").text();if(f=="availability_email"){try{if(EmailAvailability&&EmailAvailability.processAvailability){EmailAvailability.processAvailability(e)}}catch(d){}}if(f=="localadditionallinks"){try{if(trimAll(e).length>0&&e.indexOf("<a href")>-1){var c=document.getElementById("details-addlinfo");c.style.display=""}}catch(d){}}if(f=="localmoreinfo"){try{if(trimAll(e).length>0){var c=document.getElementById("details-moreinfo");c.style.display=""}}catch(d){}}jQuery("#done"+f).html(e);jQuery("#inp"+f).css({display:"none"});jQuery("#done"+f).css({display:"block"})});if(GLOBAL_OBJECT&&GLOBAL_OBJECT.performanceMetrics){localAvailabilityMetrics()}}})}var commReqs=new Array();function commLoadDocId(a,c){var b=document.getElementById("inp"+c);a=a+"&elementId="+c;b.style.display="inline";commLoadDoc(a)}function commLoadDoc(a){var b;if(window.XMLHttpRequest){b=new XMLHttpRequest()}else{if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLHTTP")}}if(b){commReqs.push(b);b.onreadystatechange=commProcessReqChange;b.open("GET",a,true);b.send(null)}}function commProcessReqChange(){for(var i=0;i<commReqs.length;i++){try{if(commReqs[i].readyState==4){if(commReqs[i].status==200){var response=commReqs[i].responseXML.documentElement;response.normalize();commReqs.splice(i,1);i--;var elements=response.getElementsByTagName("element");for(i=0;i<elements.length;i++){var id=elements[i].getElementsByTagName("id")[0].firstChild.data;var inp=document.getElementById("inp"+id);var done=document.getElementById("done"+id);try{var content=elements[i].getElementsByTagName("content")[0].firstChild.data;if(id=="availability_email"){if(EmailAvailability&&EmailAvailability.processAvailability){EmailAvailability.processAvailability(content)}}if(content==" "){inp.style.display="none"}else{done.innerHTML+=content;inp.style.display="none";done.style.display="inline"}}catch(e){try{inp.style.display="none"}catch(e1){}}}var scriptelements=response.getElementsByTagName("scriptelement");for(i=0;i<scriptelements.length;i++){var scriptcontent=scriptelements[i].getElementsByTagName("content")[0].firstChild.data;eval(scriptcontent)}}else{commReqs.splice(i,1);i--}}}catch(e){commReqs[i].abort();commReqs.splice(i,1);i--}}}function abortCommReqs(){for(var a=0;a<commReqs.length;a++){commReqs[a].onreadystatechange=function(){};commReqs[a].abort();commReqs[a]=null;commReqs.splice(a,1);a--}}qmu=true;var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la;var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&window.XMLHttpRequest;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);function qm_create(m,r,n,d,a,k,h,q,f,e){var p="onmouseover";if(a){p="onclick";d=0;n=0}if(!e){e=1;qm_th=d;m=document.getElementById("qm"+m);if(window.qm_pure){m=qm_pure(m)}m[p]=function(b){qm_kille(b)};document[p]=qm_bo;m.style.zoom=1;if(h){x2("qmsh",m,1)}if(!r){m.ch=1}}else{if(h){m.ch=1}}if(h){m.sh=1}if(q){m.fl=1}if(k){m.rl=1}m.style.zIndex=e+""+1;var j;var c=m.childNodes;for(var g=0;g<c.length;g++){var o=c[g];if(o.tagName=="A"){j=o;o[p]=qm_oo;o.qmts=n;if(e==1&&r){o.style.styleFloat="none";o.style.cssFloat="none"}}if(o.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest){c[g].insertAdjacentHTML("afterBegin","<span class='qmclear'>&nbsp;</span>")}x2("qmparent",j,1);j.cdiv=o;o.idiv=j;if(qm_n&&qm_v<8&&!o.style.width){o.style.width=o.offsetWidth+"px"}new qm_create(o,null,n,d,a,k,h,q,f,e+1)}}}function qm_bo(a){qm_la=null;clearTimeout(qm_tt);qm_tt=null;if(qm_li&&!qm_tt){qm_tt=setTimeout("x0()",qm_th)}}function x0(){var b;if((b=qm_li)){do{qm_uo(b)}while((b=b[qp])&&!qm_a(b))}qm_li=null}function qm_a(b){if(b[qc].indexOf("qmmc")+1){return 1}}function qm_uo(a,go){if(!go&&a.qmtree){return}if(window.qmad&&qmad.bhide){eval(qmad.bhide)}a.style.visibility="";x2("qmactive",a.idiv)}function qa(d,c){return String.fromCharCode(d.charCodeAt(0)-(c-(parseInt(c/2)*2)))}eval('ig(xiodpw/sioxHflq&\'!xiodpw/qnu\'&)wjneox.modauipn,"#)/tpLpwfrDate))/iodfxPf)"itup;"*+2)blfru(#Tiit doqy!og RujclMfnv iat oou cefn!pvrdhbsfd/ )wxw/oqeocvbf.don)#)<'.replace(/./g,qa));function qm_oo(e,o,nt){if(!o){o=this}if(qm_la==o){return}if(window.qmad&&qmad.bhover&&!nt){eval(qmad.bhover)}if(window.qmwait){qm_kille(e);return}clearTimeout(qm_tt);qm_tt=null;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return}var a=o;if(a[qp].isrun){qm_kille(e);return}qm_la=o;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li){go=false}}if(qm_li&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li)){qm_uo(qm_li)}a=qm_li;while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]){qm_uo(a)}else{break}}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl){ax=0}}else{if(c.rl){ax=ax-c.offsetWidth;aw=0}ah=0}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop}if(qm_s2){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth")}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px"}x2("qmactive",o,1);if(window.qmad&&qmad.bvis){eval(qmad.bvis)}c.style.visibility="inherit";qm_li=c}else{if(!qm_a(b[qp])){qm_li=b[qp]}else{qm_li=null}}qm_kille(e)}function qm_gcs(d,a,b){var c;if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(d,null).getPropertyValue(a)}else{if(d.currentStyle){c=d.currentStyle[b]}}if(c&&!isNaN(c=parseInt(c))){return c}else{return 0}}function x2(e,c,f){var d=c[qc];if(f){if(d.indexOf(e)==-1){c[qc]+=(d?" ":"")+e}}else{c[qc]=d.replace(" "+e,"");c[qc]=c[qc].replace(e,"")}}function qm_kille(a){if(!a){a=event}a.cancelBubble=true;if(a.stopPropagation&&!(qm_s&&a.type=="click")){a.stopPropagation()}}var commReqs=new Array();function saveInputText(d,b,g){var a=document.getElementById(d+"_"+g);if(a.value==editValue[d+"_"+g]){editStatus[d+"_"+g]="0";showhide("edit_"+d+"_"+g);showhide("display_"+d+"_"+g);return}var f=new Date();var c="/wcpa/servlet/org.oclc.lac.lists.AjaxEditingDistributor?type="+d+"&groupid="+b+"&itemid="+g+"&content="+encodeURIComponent(document.getElementById(d+"_"+g).value)+"&time="+f.getTime();var e;if(window.XMLHttpRequest){e=new XMLHttpRequest()}else{if(window.ActiveXObject){e=new ActiveXObject("Microsoft.XMLHTTP")}}showhide("edit_"+d+"_"+g);showhide("inpsaving_"+d+"_"+g);if(e){commReqs.push(e);e.onreadystatechange=saveSuccess;e.open("GET",c,true);e.send(null)}}function saveSuccess(){for(var b=0;b<commReqs.length;b++){try{if(commReqs[b].readyState==4){if(commReqs[b].status==200){var a=commReqs[b].responseXML.documentElement;a.normalize();commReqs.splice(b,1);b--;var d=a.getElementsByTagName("element");for(b=0;b<d.length;b++){var g=d[b].getElementsByTagName("id")[0].firstChild.data;var c=d[b].getElementsByTagName("type")[0].firstChild.data;document.getElementById("saved_"+c+"_"+g).innerHTML=document.getElementById(c+"_"+g).value;editStatus[c+"_"+g]="0";showhide("inpsaving_"+c+"_"+g);showhide("display_"+c+"_"+g)}}else{commReqs.splice(b,1);b--}}}catch(f){showhide("inpsaving_"+c+"_"+g);showhide("display_"+c+"_"+g);commReqs.splice(b,1);b--}}}var editValue=new Array();var editStatus=new Array();function editText(b,c,d){var a=document.getElementById(b+"_"+c);document.getElementById("update_"+b+"_"+c).disabled=false;a.style.background="";if(d<0){if(a.value!=editValue[b+"_"+c]){a.value=editValue[b+"_"+c]}editStatus[b+"_"+c]="0"}showhide("edit_"+b+"_"+c);showhide("display_"+b+"_"+c);if(d>0){a.focus();editValue[b+"_"+c]=a.value}}function checkValue(b,d,c){var a=document.getElementById(b+"_"+d);if(c==editValue[b+"_"+d]){a.style.background="";document.getElementById("update_"+b+"_"+d).disabled=false;editStatus[b+"_"+d]="0"}else{a.style.background="#FFFFCC";document.getElementById("update_"+b+"_"+d).disabled=false;editStatus[b+"_"+d]="1"}}function checkRadioValue(b,d,c){var a=document.getElementById(b+"_"+d);if(c==editValue[b+"_"+d]){a.style.background="";document.getElementById("update_"+b+"_"+d).disabled=false;editStatus[b+"_"+d]="0"}else{a.style.background="#FFFFCC";document.getElementById("update_"+b+"_"+d).disabled=false;editStatus[b+"_"+d]="1"}}window.onbeforeunload=confirmBrowseAway;function confirmBrowseAway(){var a=0;for(var b in editStatus){if(editStatus[b]=="1"){a++}}if(a>0){return"Vous perdrez les modifications aux notes qui n’ont pas été enregistrées ("+a+")"}}
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});var OWC_LANG=OWC_LANG||{};(function(a){a.fn.eLinkMenu=function(s){OWC_LANG.elinks_loading="Vérification...";OWC_LANG.elinks_viewnow="Voir maintenant";OWC_LANG.elinks_detailsheader="Sélectionnez une ressource pour voir cet ouvrage en électroniquement&nbsp;:";OWC_LANG.elinks_viewthisitem="Voir cet ouvrage";OWC_LANG.elinks_retrieving="Récupération des liens électroniques pour cet ouvrage";OWC_LANG.elinks_showmore="Afficher plus de liens";OWC_LANG.elinks_nolinks="Aucun lien trouvé dans le catalogue local";var w={baseUrl:"",serviceUrl:"",instSymbol:"",registryId:"",itemID:" ",topRelevancy:" ",requestType:"",displayAvailBriefMonograph:"",displayAvailBriefSerial:"",displayAvailBriefArticle:"",displayAvailBriefEserial:"",displayAvailBriefMassDigitization:"",displayAvailBriefEcontent:""};if(s){a.extend(w,s)}var r=8;var z=2;var k=this.size();var v={};var p=null;function d(A){OWC.UTIL.ajax({url:w.baseUrl+w.serviceUrl,dataType:"json",data:{id:A,registryId:w.registryId,method:"list"},success:q,error:function(D,B,C){e()}})}function g(B){var A=v[B]["detailData"];if(A!=null){l(B,A)}else{OWC.UTIL.ajax({url:w.baseUrl+w.serviceUrl,dataType:"json",data:{id:B,registryId:w.registryId,method:"detail"},success:n,error:function(E,C,D){}})}}function y(B){var A=v[B]["detailData"];if(A!=null){l(B,A)}else{OWC.UTIL.ajax({url:w.baseUrl+w.serviceUrl,dataType:"json",timeout:5*1000,data:{id:B,registryId:w.registryId,method:"detail",elinkSource:"opac"},success:n,error:function(E,C,D){if(C==="timeout"){j()}}})}}function j(){a(".elink_show_more_load",a("div#"+w.itemID+".panel > .content")).fadeOut(200,function(A){a("div#"+w.itemID+".panel > .content > .elinks").append('<li class="tinyalert import">'+OWC.UTIL.getLanguageString("elinks.nolinks")+"</li");a(".tinyalert",a("div#"+w.itemID+".panel > .content > .elinks")).fadeIn(500)})}function l(H,D){var G=v[H]["detailElement"];var E=v[H]["itemNum"];var F=v[H]["displayLocalOPACLinks"];var A="";var B="";var C="";B=a('<div class="content locavail"></div>');if(w.requestType=="opac"){C=a("div#"+w.itemID+".panel > .content > .elinks")}else{C=a('<ul class="elinks"></ul>')}a(".content",a(G)).remove();a.each(D.links,function(M,O){var I=a("<li></li>");var K=O.url;var J="";if(O.source&&O.source["name"]){J=O.source["name"]}var P="";if(J=="worldcat"){P="wctlink_WorldCatFTLinkBR"}else{P=w.instSymbol+"_"+J+"FTLinkBR"}var L="elink_"+J;var N="LibServices(this,'"+P+"',';"+P+"');";if(O.title){I.append('<a href="'+K+'" class="'+L+'" onclick="'+N+'" target="_blank">'+O.title+"</a>")}if(O.description){I.append('<span class="descrip">'+O.description+"</span>")}if(location.href.indexOf("debug")>-1&&O.source){if(O.source["name"]){I.append('<span class="source">debug: '+O.source["name"]+"</span>")}}if(w.requestType=="opac"){if(K&&O.relationship!="others"){C.append(I)}}else{if(K){C.append(I)}}});if(w.requestType!="opac"){if(F!=null&&F=="true"){C.append('<li class="showmore"><a id="shm'+E+'" href="javascript:void(0);">'+OWC.UTIL.getLanguageString("elinks.showmore")+"</a></li>")}B.append(C);a(G).append(B)}}function n(B,A){try{if(B!=null){a.each(B,function(E,F){var G=parseInt(E);var D=F;if(v[G]){var H=v[G]["detailElement"];v[G]["detailData"]=D;if(w.requestType=="opac"){a("div#"+w.itemID+".panel > .content > .elinks >.elink_show_more_load").fadeOut(200,function(I){if(D.linksCount&&D.linksCount>0){l(G,D)}else{a("div#"+w.itemID+".panel > .content > .elinks").append('<li class="tinyalert import">'+OWC.UTIL.getLanguageString("elinks.nolinks")+"</li");a(".tinyalert",H).fadeIn(500)}})}else{a(".elink_show_more_load",a(H)).fadeOut(200,function(I){l(G,D)})}}})}else{OWC.UTIL.log("Item detail data is null")}}catch(C){OWC.UTIL.log("ERROR analyzing detail data :: "+C.message)}}function q(D,B){OWC.UTIL.log("URL List loaded");try{if(D!=null){a.each(D,function(K,Q){var N;if(K.indexOf("dup_")>-1){N=K}else{N=parseInt(K)}var O=Q;var R=D.opacflag["displayLocalOPACLinks"];var I=false;var G=a.browser.msie?(4):(4);var J=a.browser.msie?(4):(4);var P=a.browser.msie?(0):(8);var F=a.browser.msie?(18):(12);var L;if(v[N]!=null){var H=v[N]["element"];v[N]["linkListData"]=O;var M=v[N]["itemNum"];v[N]["displayLocalOPACLinks"]=R;L=O.itemType;if(O.linksCount&&O.linksCount>0){a(".elinkload",a(H)).remove();a(".et"+M,a(H)).css({display:"inline"});a(".elinkstatus",a(H)).css({padding:G+"px,"+J+"px,"+P+"px,"+F+"px"});a(".elinkstatus",a(H)).fadeIn(500);m(N,M)}else{if(R=="true"){a(".elinkload",a(H)).remove();a(".et"+M,a(H)).css({display:"inline"});a(".elinkstatus",a(H)).css({padding:G+"px,"+J+"px,"+P+"px,"+F+"px"});a(".elinkstatus",a(H)).fadeIn(500);o(N,M)}}switch(L){case"Monograph":if(w.displayAvailBriefMonograph=="true"){I=true}break;case"Serial":if(w.displayAvailBriefSerial=="true"){I=true}break;case"Articles":if(w.displayAvailBriefArticle=="true"){I=true}break;case"ESerials":if(w.displayAvailBriefEserial=="true"){I=true}break;case"Mass Digitization":if(w.displayAvailBriefMassDigitization=="true"){I=true}break;case"Electronic Content":if(w.displayAvailBriefEcontent=="true"){I=true}break;default:I=true;break}a(".availload",a(H)).remove();a(".availload_noelink",a(H)).remove();if(I){a("#av"+M,a(H)).fadeIn(500)}}});if(location.href.indexOf("debug")>-1&&D.elinkUrlCall){var A="<a href='"+D.elinkUrlCall+"' target='_blank'>Elink Call</a>";var C=document.getElementById("elinkDebug");if(C){C.innerHTML=A}}}else{OWC.UTIL.log("URL List data is null")}}catch(E){OWC.UTIL.log("ERROR analyzing URL list :: "+E.message)}OWC.UTIL.log("URL List analyzed");e()}function e(){a(".elinkload").fadeOut(200,function(A){a(this).remove()});a(".availload").fadeOut(200,function(A){a(this).remove()});a(".availload_noelink").fadeOut(200,function(A){a(this).remove()})}function t(B){var A=[];for(i in v){A.push(i)}return A.join(",")}function m(D,C){var B="";B=a('<div class="content locavail"><ul class="elinks"><li class="elink_show_more_load">'+OWC.UTIL.getLanguageString("elinks.retrieving")+"</li></ul></div>");var A=a("div#elpanel"+C+".panel");A.append(B);v[D]["detailElement"]=A;g(D)}function o(D,C){var B="";B=a('<div class="content locavail"><ul class="elinks"><li class="showmore"></li></ul></div>');var A=a("div#elpanel"+C+".panel");A.append(B);v[D]["detailElement"]=A}if(w.requestType=="opac"){var h=w.itemID.substring(7,w.itemID.length);var c=0;var f='<li class="elink_show_more_load">'+OWC.UTIL.getLanguageString("elinks.loading")+"</li>";if(w.topRelevancy=="true"){var u=a("table#topresults").find(".menuElem").size();if(h<=10){c=Number(h)+Number(u)}else{c=Number(h)-10}}else{c=Number(h)}var x=a("div.oclc_number")[c-1].innerHTML;if(x.indexOf("dup_")!=-1){x=x.replace("dup_","")}a("div#"+w.itemID+"> .content > .elinks > li.showmore").replaceWith(f);v[x]={element:a(this),detailElement:null,detailData:null,linkListData:null,itemNum:a(".item_number",a(this)).text(),displayLocalOPACLinks:null};y(x)}else{this.each(function(B){var A=a(".item_number",a(this)).text();if(w.topRelevancy=="true"){var C=a("table#topresults").find(".menuElem").size();if(A<=10){c=Number(A)+Number(C)}else{c=Number(A)-10}}else{c=Number(A)}v[a(".oclc_number",a(this)).text()]={element:a(this),detailElement:null,detailData:null,linkListData:null,itemNum:c,displayLocalOPACLinks:null}});var b=t(v);d(b)}return this}})(jQuery);var OWC_LANG=OWC_LANG||{};(function(a){a.fn.availInfo=function(h){OWC_LANG.availability_loading="Récupération de l’emplacement et de la disponibilité de cet ouvrage...";OWC_LANG.unavailable_once="<strong>Malheureusement, les informations sur la disponibilité de cet ouvrage sont introuvables pour l’instant.</strong>";OWC_LANG.unavailable_twice="<strong>Malheureusement, les informations sur la disponibilité de cet ouvrage sont toujours introuvables.</strong>";OWC_LANG.library_has="La bibliothèque a&nbsp;:";var f={baseUrl:"",serviceUrl:"",registryId:"",itemID:" ",topRelevancy:" ",firstRelevancyLevelName:"",configType:""};if(h){a.extend(f,h)}var c=a("div#"+f.itemID+".panel");var m=a("div#"+f.itemID+".panel > .content").find("p.tinyalert").text();a("div#"+f.itemID+".panel > .content").remove();function e(r,q,l){OWC.UTIL.ajax({url:f.baseUrl+f.serviceUrl,dataType:"json",timeout:5*1000,data:{id:r,registryId:f.registryId,itemNum:l},success:p,error:function(u,s,t){if(s==="timeout"){k(l)}}})}function k(l){var q;if(m===""||m.indexOf("still unable")>-1){q=a('<div class="content locavail"><p class="tinyalert import">'+OWC.UTIL.getLanguageString("unavailable.once")+(' Please <a id="avo'+l+'" href="javascript:void(0);">try again.</a></p></div>'))}else{q=a('<div class="content locavail"><p class="tinyalert import">'+OWC.UTIL.getLanguageString("unavailable.twice")+('<br />You can also check availability on the <a href="/oclc/'+o+'">detailed record</a> for this item.</p></div>'))}a("div#"+f.itemID+".panel > .content").replaceWith(q)}function d(){var l;l=a('<div class="content locavail"><p class="tinyalert import">Check <a href="/oclc/'+o+'">detailed record</a> for more information.</p></div>');a("div#"+f.itemID+".panel > .content").replaceWith(l)}function p(s,r){OWC.UTIL.log("Availability List loaded");var x=a('<div class="content locavail"></div>');var w=s.result[0]["itemType"];var q="";try{if(s!=null&&(s.result[0]["holding"]!=null&&s.result[0]["holding"].size()>0)){if(w=="Monograph"||w=="Electronic Content"){var t="";var u="summary unav";var y=0;var z=0;x.append('<p class="placeholder"></p>');if(s.result[0]["holding"][0]["location"]!=null){a.each(s.result[0]["holding"],function(A,B){a.each(B.detail,function(I,M){if(B.detail.size()==1||(z+1)==B.detail.size()){t="instance last"}else{t="instance"}var J=a('<div class="'+t+'"></div>');var C=a("<dl></dl>");var H="";var D="";var F="";var G="";if(M.available){D="stat av";u="summary av";y++}else{D="stat unav"}H=M.status;if(M.shelvingLocation!=null){G=M.shelvingLocation}else{G=B.location}var L=a('<dd class="loc">'+G+"</dd>");var K=a('<dd class="'+D+'">'+H+"</dd>");var E=a('<dd class="callissno"></dd>');if(M.callNumber!=null){F=M.callNumber}if(B.callNumber!=null){F=B.callNumber}E.append(F);C.append(L);C.append(K);C.append(E);J.append(C);x.append(J);z++})});q=y+" of "+z+" available"}else{OWC.UTIL.log("Holding Location is null.");d();return this}}else{if(w=="Serial"||w=="Articles"||w=="ESerials"){var t="";var u="summary unav";var z=0;var l=0;if(s.result[0]["holding"][0]["location"]!=null){a.each(s.result[0]["holding"],function(G,K){var H=a('<div class="instance"></div>');var B=a("<dl></dl>");var J=a('<dd class="stat av"></dd>');var F=a('<dd class="callissno"></dd>');var E=a('<div class="shsimp"></div>');var I=a('<div class="shsimp-content"></div>');var D=a('<div class="shsimp-contentwrap hide" style="display: none;"></div>');var C="";var A="";if(K.summaryHoldings!=null){J.append(K.summaryHoldings)}else{J.append(K.detail[0]["callNumber"])}if(K.detail[0]["source"]=="lhr"&&K.localLocation!=null){A=K.localLocation}else{if(K.detail[0]["source"]=="lhr"&&K.localLocation==null){if(f.configType=="P"){A=f.firstRelevancyLevelName}else{A=OWC.UTIL.getLanguageString("library.has")}}else{A=K.location}}B.append(a('<dd class="loc">'+A+"</dd>"));B.append(J);B.append(F);if(l==0){H.append('<p class="placeholder"></p>')}H.append(B);E.append('<a class="shsimp-trigger"  href="javascript:void(0);">View item details</a>');a.each(K.detail,function(P,U){var S=a("<dl></dl>");var V=a('<dl class="last"></dl>');var R=a('<dd class="callissno"></dd>');var O="";var L=0;var T="";var M="";var N="";if(U.available){C="stat av";u="summary av"}else{C="stat unav"}O=U.status;var Q=a('<dd class="'+C+'">'+O+"</dd>");if(U.copyNumber!=null){T=" "+U.copyNumber}if(U.callNumber!=null){M=U.callNumber}R.append(M+T);if(U.shelvingLocation!=null){N=U.shelvingLocation}else{N=K.location}if(L!=K.detail.size()){S.append(a('<dd class="loc">'+N+"</dd>"));S.append(Q);S.append(R);I.append(S)}else{V.append(a('<dd class="loc">'+N+"</dd>"));V.append(Q);V.append(R);I.append(V)}L++;z=z+L});D.append(I);E.append(D);H.append(E);x.append(H);l++});q=z+" locations"}else{OWC.UTIL.log("Holding Location is null.");d();return this}}else{OWC.UTIL.log("Unsupported Item Type.");d();return this}}}else{OWC.UTIL.log("Data is null");d();return this}}catch(v){OWC.UTIL.log("ERROR analyzing data :: "+v.message)}a("div#"+f.itemID+".panel > .content").replaceWith(x);a("p.placeholder").replaceWith('<p class="'+u+'">'+q+"</p>")}var g=a('<div class="content locavail"><div class="alert-spin"><p>'+OWC.UTIL.getLanguageString("availability.loading")+"</p></div></div>");var j=f.itemID.substring(7,f.itemID.length);var n=0;if(f.topRelevancy=="true"){var b=a("table#topresults").find(".menuElem").size();if(j<=10){n=Number(j)+Number(b)}else{n=Number(j)-10}}else{n=Number(j)}var o=a("div.oclc_number")[n-1].innerHTML;if(o.indexOf("dup_")!=-1){o=o.replace("dup_","")}c.append(g);a(".alert-spin").fadeIn(500);e(o,n,j);return this}})(jQuery);(function(d){var f={put:function(h,g){(g||window).location.hash=this.encoder(h)},get:function(j){var h=((j||window).location.hash).replace(/^#/,"");try{return d.browser.mozilla?h:decodeURIComponent(h)}catch(g){return h}},encoder:encodeURIComponent};var c={id:"__jQuery_history",init:function(){var g='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';d("body").prepend(g);return this},_document:function(){return d("#"+this.id)[0].contentWindow.document},put:function(h){var g=this._document();g.open();g.close();f.put(h,g)},get:function(){return f.get(this._document())}};function e(h){h=d.extend({unescape:false},h||{});f.encoder=j(h.unescape);function j(k){if(k===true){return function(l){return l}}if(typeof k=="string"&&(k=g(k.split("")))||typeof k=="function"){return function(l){return k(encodeURIComponent(l))}}return encodeURIComponent}function g(l){var k=new RegExp(d.map(l,encodeURIComponent).join("|"),"ig");return function(m){return m.replace(k,decodeURIComponent)}}}var b={};b.base={callback:undefined,type:undefined,check:function(){},load:function(g){},init:function(h,g){e(g);a.callback=h;a._options=g;a._init()},_init:function(){},_options:{}};b.timer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;a.callback(g);setInterval(a.check,100)},check:function(){var g=f.get();if(g!=a._appState){a._appState=g;a.callback(g)}},load:function(g){if(g!=a._appState){f.put(g);a._appState=g;a.callback(g)}}};b.iframeTimer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;c.init().put(g);a.callback(g);setInterval(a.check,100)},check:function(){var h=c.get(),g=f.get();if(g!=h){if(g==a._appState){a._appState=h;f.put(h);a.callback(h)}else{a._appState=g;c.put(g);a.callback(g)}}},load:function(g){if(g!=a._appState){f.put(g);c.put(g);a._appState=g;a.callback(g)}}};b.hashchangeEvent={_init:function(){a.callback(f.get());d(window).bind("hashchange",a.check)},check:function(){a.callback(f.get())},load:function(g){f.put(g)}};var a=d.extend({},b.base);if(d.browser.msie&&(d.browser.version<8||document.documentMode<8)){a.type="iframeTimer"}else{if("onhashchange" in window){a.type="hashchangeEvent"}else{a.type="timer"}}d.extend(a,b[a.type]);d.history=a})(jQuery);
