var stopWordsList="[a, about, advent, after, all, also, an, and, any, applying, are, at, because, been, before, being, believe, between, beyond, but, by, can, cant, carrying, clases, class, could, do, does, doesnt, during, each, eg, et, eta, etal, follows, for, fore, found, from, gave, generally, give, given, gives, giving, good, gr, grade, grd, group, groups, had, has, have, hence, here, however, if, iii, in, inc, index, into, is, it, key, less, many, more, most, mostly, must, neither, never, not, nu, occurs, of, on, once, or, other, out, path, play, ran, ref, refer, repeat, running, said, same, see, select, several, should, shouldnt, similar, some, still, such, than, that, the, them, then, there, thereby, therefore, these, this, through, to, tp, type, use, used, uses, using, usually, utilize, utilized, utilizes, utilizing, various, was, were, when, whence, where, whereas, which, while, will, with, without]";var hideDelay=1000;var iTimeoutID;var cookiesExpireInSeconds=1209600;var isIE6=navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;var divToHide;var okToHideDiv=true;var IE6=false;function disableDropDowns(){elements=document.getElementsByTagName("select");if(elements){for(var a=0;a<elements.length;a++){elements[a].style.visibility="hidden"}}}function enableDropDowns(){elements=document.getElementsByTagName("select");if(elements){for(var a=0;a<elements.length;a++){elements[a].style.visibility="visible"}}}function getElementsByClassName(h,j,g){var b=new RegExp("(^|\\s)"+h+"(\\s|$)");var j=j||"*";var g=g||document;var a=(j=="*"&&g.all)?g.all:g.getElementsByTagName(j);var d=[];var f;var c=a.length;for(var e=0;e<c;e++){f=a[e];if(b.test(f.className)){d.push(f)}}return d}function stripHTML(a){var c="";var d=false;for(var b=0;b<a.length;b++){if(a.charAt(b)=="<"){d=true}if(a.charAt(b)==">"){d=false;b++}if(!d){c+=a.charAt(b)}}return c}function jumpToPage(e){var b="quotes_page"+e;var d=document.getElementById(b);if(d){for(var c=1;c<6;c++){var a="quotes_page"+c;var f=document.getElementById(a);if(f){f.style.display="none"}}d.style.display="block"}document.location="#top"}function showDiv(b){var a=document.getElementById(b);if(b){a.style.display="block"}}function hideDiv(b){var a=document.getElementById(b);if(b){a.style.display="none"}}function addToFavorites(){if(window.sidebar){var a=confirm("Click OK to add Knovel to your favorites");if(a){window.sidebar.addPanel(bookmarkSiteName,bookmarkSiteAddress,"")}}else{if(window.external){var a=confirm("Click OK to add Knovel to your favorites");if(a){window.external.AddFavorite(bookmarkSiteAddress,bookmarkSiteName)}}}}function openNew(b){var a="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";var c=window.open(b,"popup",a+",width=500,height=400");c.focus()}function openFullPopup(a){var j=480,d=340;if(document.body){j=document.body.clientWidth;d=document.body.clientHeight}var b=792,g=662;var c=(j-b)/2;var e=(d-g)/2;if(c<0){c=0}if(e<0){e=20}var k="menubar=no, resizable=no, directories=no, status=no, toolbar=no, width="+b+", height="+g+", top="+e+", left="+c;var f=window.open(a,"popupWindow",k);f.focus()}function openScrollableWindowPopup(a,b,m){var k=480,f=340;if(document.body){k=document.body.clientWidth;f=document.body.clientHeight}var c=b,j=m;var d=(k-c)/2;var e=(f-j)/2;if(d<0){d=0}if(e<0){e=20}var l="menubar=no, scrollbars=yes, resizable=yes, directories=no, status=no, toolbar=no, width="+c+", height="+j+", top="+e+", left="+d;var g=window.open(a,"popupWindow",l);g.focus()}function openWindowPopup(a,b,n,g){var l=480,f=340;if(document.body){l=document.body.clientWidth;f=document.body.clientHeight}var c=b,k=n;var d=(l-c)/2;var e=(f-k)/2;if(d<0){d=0}if(e<0){e=20}if(!g){g="popupWindow"}var m="menubar=no, resizable=no, directories=no, status=no, toolbar=no, width="+c+", height="+k+", top="+e+", left="+d;var j=window.open(a,g,m);j.focus()}function openResizableWindowPopup(a,b,m){var k=480,f=340;if(document.body){k=document.body.clientWidth;f=document.body.clientHeight}var c=b,j=m;var d=(k-c)/2;var e=(f-j)/2;if(d<0){d=0}if(e<0){e=20}var l="menubar=no, resizable=yes, directories=no, status=no, toolbar=no, width="+c+", height="+j+", top="+e+", left="+d;var g=window.open(a,"resizablePopupWindow",l);g.focus()}function openNewResizableWindowPopup(a,b,n,d){var l=480,g=340;if(document.body){l=document.body.clientWidth;g=document.body.clientHeight}var c=b,k=n;var e=(l-c)/2;var f=(g-k)/2;if(e<0){e=0}if(f<0){f=20}var m="menubar=no, resizable=yes, directories=no, status=no, toolbar=no, width="+c+", height="+k+", top="+f+", left="+e;var j=window.open(a,d,m);j.focus()}function setPopupTitle(){if(document.getElementById("popupTitle")){var a=document.getElementById("popupTitle").innerHTML;if(a.length>75){a=a.substring(0,75)+"..."}document.getElementById("popupTitleContent").innerHTML=a}}function redirectParentURL(a){window.opener.top.location.href=a;window.top.close()}function linkOn(a){a.style.color="#003C79"}function linkOff(a){a.style.color="#a3b9cf"}function openLoginPage(){openScrollableWindowPopup(loginURL,792,555)}function openLogoutPage(f){clearLoginCookies();if(f){var d=confirm("You are being logged out of Knovel.\n Click OK to log out of Athens or \nCancel to stay logged into Athens ");if(d){var b=window.top.location.href;var a=b.indexOf("/web");var e=b.substring(0,a);var g=e+"/web/portal/main?_EXT_KNOVEL_TEMP_LOGIN_ATH_LOGOUT";var c=logoutURL+"?referer="+g;window.top.location.href=c}else{var b=window.top.location.href;var a=b.indexOf("/web");var e=b.substring(0,a);var g=e+"/web/portal/main?_EXT_KNOVEL_TEMP_LOGIN_LOGOUT";var c=logoutURL+"?referer="+g;window.top.location.href=c}}else{var b=window.top.location.href;var a=b.indexOf("/web");var e=b.substring(0,a);var g=e+"/web/portal/main?_EXT_KNOVEL_TEMP_LOGIN_LOGOUT";var c=logoutURL+"?referer="+g;window.top.location.href=c}}function openOrderInfoPage(){openWindowPopup("/web/portal/ordering_info",792,365,"ordering_info_popup")}function openFreeTitlesPopup(){openScrollableWindowPopup("http://why.knovel.com/information/free-package.html",1024,768)}function openPeriodicTablePopup(){openResizableWindowPopup("/web/portal/periodic_table",792,662)}function openTutorialPopup(){openResizableWindowPopup("/html/flash/MyKnovelVideoPlayer.html",950,650)}function openSupportAccountServicesPage(){window.top.location.href=supportAccountServicesPage}function loginRedirect(){window.opener.location.href=loginRedirectURL}function openSubscribePage(){window.top.location.href=subscribePage}function subscribeRedirect(){openWindowPopup(subscribePage,792,415)}function freeTrialPageRedirect(){window.top.location.href=subscribePage}function redirectToPage(a){window.top.location.href=a}function paginationBoxOn(a){a.style.background="#E0DCDC"}function paginationBoxOff(a){a.style.background="white"}function findPos(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]}function showVideo(e){var b=getCookieValue("videoSeen");createCookie("videoSeen","true",cookiesExpireInSeconds);var c="/web/portal/tutorial_videos?Video="+e;var d=800;var a=640;if(e==4){d=720;a=580}openResizableWindowPopup(c,d,a)}function showMyKnovelVideo(){var b="/web/portal/myknovel_video";var c=855;var a=680;openResizableWindowPopup(b,c,a)}function openUnitConverterPopup(){openWindowPopup("/web/portal/knovel_tools?p_p_id=EXT_KNOVEL_TOOLS&p_p_action=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_KNOVEL_TOOLS_struts_action=/ext/knovel_tools/view&_EXT_KNOVEL_TOOLS_toolType=2",750,440,"unitconverter")}function getRadioValue(e,d){var c=document.getElementById(e);var b=c[d];for(var a=0;a<b.length;a++){if(b[a].checked){return b[a].value}}}function stripCellHTML(f){var b=new RegExp("<b>|<font>|<i>|<em>|<big>|<strong>|<small>|<sup>|<sub>|<bdo>|<u>","gi");var g,j=0,d=0,k=" ";if(b.test(f)){b=new RegExp("b|/b|font|/font|i|/i|em|/em|big|/big|strong|/strong|small|/small|sup|/sup|sub|/sub|bdo|/bdo|u|/u","i");while((g=f.indexOf("<",j))!=-1){d=f.indexOf(">",g)+1;var a=f.substring(g+1,d-1);if(a.indexOf(" ")!=-1){a=a.substring(0,a.indexOf(" "))}if(b.test(a)){j=d;continue}else{k+=f.substring(g,d)+" ";j=d}}var e=k.trim().split(" ");for(var c=0;c<e.length;c++){f=f.replace(e[c],"")}return f}else{var h=/<(?:.|\s)*?>/g;return f.replace(h,"")}}function stripHTML(a){var b=/<(?:.|\s)*?>/g;return a.replace(b,"")}function showHelpAndClose(){openFullPopup("/html/themes/knovel_mktg/pdf/Knovel_Help%20Guide.pdf");window.top.close()}function showDownloadTitles(){openWindowPopup("/web/portal/knovel_tools?p_p_id=EXT_KNOVEL_TOOLS&p_p_action=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_KNOVEL_TOOLS_struts_action=/ext/knovel_tools/view&_EXT_KNOVEL_TOOLS_toolType=3",750,330)}function setLoginCookie(a){createCookie("Username",a)}function setIURLoginCookie(a){createCookie("KnovelProfile",a)}function setParamLoginCookie(a){createCookie("KnovelParam",a)}function setDownloadCookie(a){createCookie("KnovelDownload",a)}function clearLoginCookies(){eraseCookie("Username");eraseCookie("KnovelProfile");eraseCookie("KnovelParam");eraseCookie("keepMeSignedIn")}function createCookie(c,d,f,e){if(f){var b=new Date();b.setTime(b.getTime()+(f*1000));var a="; expires="+b.toGMTString()}else{var a=""}if(e){document.cookie=c+"="+escape(d)+a+"; path=/"}else{document.cookie=c+"="+d+a+"; path=/"}}function getCookieValue(a){var f=document.cookie.split(";");var b="";var d="";var e="";var c=false;for(i=0;i<f.length;i++){b=f[i].split("=");d=b[0].replace(/^\s+|\s+$/g,"");if(d==a){c=true;if(b.length>1){e=unescape(b[1].replace(/^\s+|\s+$/g,""))}return e;break}b=null;d=""}if(!c){return null}}function eraseCookie(a){createCookie(a,"",-1)}function doNothing(){}function closeLoginPopup(){if(window.popupWindow!=null){window.popupWindow.close()}}function swapImage(b,a){b.src=a}function findPosX(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function toggleSubjectTopicContainer(c,e){var d="subjectTopicImage_"+c;var a="subjectTopicContainer_"+c;var h=document.getElementById(d);var g=document.getElementById(a);var f=h.src.lastIndexOf("/")+1;var b=h.src.substring(0,f);if(g.style.display=="block"){g.style.display="none";b+="plus_sign.gif";h.src=b}else{g.style.display="block";b+="minus_sign.gif";h.src=b}}function addKnovelToSearchBar(){var c=location.hostname.split(".").shift();var a="http://"+c+".knovel.com/opensearch.xml";if(window.external&&("AddSearchProvider" in window.external)){window.external.AddSearchProvider(a)}else{var b="Open Search is not currently supported by your browser.";alert(b)}}function checkVideoButton(){var a=getCookieValue("videoSeen");if(a==null){document.getElementById("flash-button").style.display="block"}}function checkAddKnovelLink(){var a=getCookieValue("knovelAddedToSearchBar");if(a==null){document.getElementById("addKnovelToSearchBarLink").style.display="block"}}function openAthensPopup(){var a="https://auth.athensams.net/?ath_dspid=KNOVEL&ath_returl=%22http://proto.knovel.com/%22";openScrollableWindowPopup(a,792,555)}function toggleMySubFilter(b){var a=document.getElementById("mySubSearchFilter");if(a){if(b=="on"){a.style.display="block"}else{a.style.display="none"}}}function setMySubSearchFilter(c){var d=window.top.location.href;if(c=="on"){document.getElementById("mySubFilterOn").className="filterActive";document.getElementById("mySubFilterOff").className="";var b="/html/includes/mySubFilter.jsp?filterOption=on";var a=new slimAjax(function(){});a.post(b,"")}else{document.getElementById("mySubFilterOn").className="";document.getElementById("mySubFilterOff").className="filterActive";var b="/html/includes/mySubFilter.jsp?filterOption=off";var a=new slimAjax(function(){});a.post(b,"")}if((d.indexOf("/browse")>0&&d.indexOf("/display?")==-1)||d.indexOf("main")>0){if(c=="on"){browseMySubscription(d)}else{browseAllContent(d)}}}function browseMySubscription(b){var a=(b.indexOf("/web/portal/main")>=0)?b:"/web/portal/browse/subject/-6/mysub/1";window.top.location.href=a}function browseAllContent(b){var a=(b.indexOf("/web/portal/main")>=0)?b:"/web/portal/browse";window.top.location.href=a}function submitBasicSearchForm(){var a=document.getElementById("topTextInput").value;document.getElementById("errorMsg1").innerHTML="";var e=validate(document.getElementById("topTextInput"));if(!e){return false}else{if(a.toLowerCase()=="search knovel..."){if(isWithin==1){isWithin=0}else{document.getElementById("errorMsg1").innerHTML="Please enter a valid search term."}document.getElementById("subTabSearchHelpText").style.display="none";document.getElementById("searchOptionsContainer").style.display="none";document.getElementById("errorMsg1").style.display="block";return false}else{var c=document.getElementById("SecondSelect1Ref");if(c){var b=getRadioValue("searchForm","searchOptionSecondSelect1");c.value=b}var d=document.getElementById("searchForm");d.submit();return false}}}function switchClass(b,a){b.className=a}function jumpToBookPage(d){var h=window.document.location.href;var g=h.indexOf("_Page=")+6;var b=h.substring(0,g);var e=h.substring(g,h.length);var c=e.indexOf("&");var a=e.substring(c,h.length);var f=b+d+a;window.top.location.href=f}function showSearchWithin(a,b){a.style.display="none";document.getElementById(b).style.display="block"}var isWithin=0;function performSearchWithinBook(h,g,f,e){if(document.getElementById("errorMsg1")){document.getElementById("errorMsg1").innerHTML="";document.getElementById("errorMsg1").style.display="none"}var j=document.getElementById(g);if(j){isWithin=1;var b=j.value;var d="EXT_KNOVEL_DISPLAY";var a="_EXT_KNOVEL_DISPLAY_";if(b!=""){b=b.replace("%","!!PERCENT!!");var c="/web/portal/basic_search/display?p_p_id="+d+"&p_p_action=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&"+a+"struts_action=%2Fext%2Fknovel_display%2Fview";c+="&"+a+"bookid="+h;c+="&"+a+"Page=1";c+="&"+a+"SearchTermA1="+b;c+="&"+a+"searchWithinBook=true";c+="&"+a+"searchType=basic";c+="&"+a+"sistring="+f;c+="&"+a+"ststring="+e;window.top.location.href=c}}}function setBookFilterType(c,e){var b="EXT_KNOVEL_DISPLAY";var a="_EXT_KNOVEL_DISPLAY_";var d="/web/portal/basic_search/display?p_p_id="+b+"&p_p_action=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&"+a+"struts_action=%2Fext%2Fknovel_display%2Fview";d+="&"+a+"bookid="+e;d+="&"+a+"Page=1";d+="&"+a+"type="+c;window.top.location.href=d}function toggleChildNodes(b){var a=document.getElementById("img_"+b);var c=document.getElementById("children_"+b);if(a.src.indexOf("plus_sign")>0){if(c.innerHTML!=""){a.src="/html/themes/knovel_mktg/images/custom/minus_sign.gif";c.style.display="block"}else{a.src="/html/themes/knovel_mktg/images/custom/minus_sign.gif";loadChildNode(b,15)}}else{a.src="/html/themes/knovel_mktg/images/custom/plus_sign.gif";c.style.display="none"}}function loadChildNode(g){var d=false;var c=false;var b=false;var h=false;var f=document.getElementById("bookid").value;var a="/web/portal/browse/display?p_p_id=EXT_KNOVEL_DISPLAY&p_p_action=0&p_p_state=exclusive&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_KNOVEL_DISPLAY_struts_action=%2Fext%2Fknovel_display%2Fload_nodes&BookID="+f+"&NodeID="+g+"&VerticalID=0";var e=new slimAjax(function(){var j="children_"+g;document.getElementById(j).innerHTML=e.responseText});e.post(a,"")}function OpenContent(f,e,b,c,a,d){if(typeof OpenPortalContent==="function"){OpenPortalContent(f,e,b,c||"small_structureWindow",a||"yes",d||"Small_Structure")}else{NewWindow(f,c,true,d)}}function OpenContentLab(c,b,a){OpenContent(mypage,b,a,"small_structureWindow","yes","Small_Structure")}function OpenContentLab(g,d,b,e,a,c){var f="Knovel Lab is an experimental area where users can try out new features and functionality before they go live. Reference content is not accessible within Knovel Lab.<br/><br/>If you wish to access your subscribed content, please <a href='http://www.knovel.com/web/portal/browse'><font style='font-size: 9pt'>return to Knovel.</font></a>";f+="<br/><br/><center><button style='width:60px' onclick='slimPopup.hide()'>OK</button></center>";showStandardModalMessage(f,260)}function showStandardPublisherDisclaimer(){var b=document.getElementById("disclaimerContent");if(b){var a=b.innerHTML;showStandardMessage(a,510,true)}}function showTitleDetails(){var b=document.getElementById("titleDetailsContent");if(b){var a=b.innerHTML;showStandardMessage(a,510,true)}}function showCitation(){var b=document.getElementById("citationContent");if(b){document.getElementById("citationExportOptions").style.display="none";document.getElementById("citationExportOptions2").style.display="none";var a=b.innerHTML;showStandardMessage(a,678,true)}}function isNotebookItemChecked(){var b=getElementsByClassName("notebook-item",null,null);if(b&&b.length>0){for(var a=0;a<b.length;a++){if(b[a].checked){return true}}}return false}function notebookToggleCheckAll(c){var b=getElementsByClassName("notebook-item",null,null);if(b&&b.length>0){for(var a=0;a<b.length;a++){b[a].checked=c.checked}}}function notebookAddFolder(){slimPopup.show({popupId:"addFolderPopup",popupWidth:300,stayOpen:true})}function showNotebookError(){var a="<div style='padding: 10px'><center>Please select an item";a+="<br/><br/><button style='width:60px' onclick='slimPopup.hide()'>OK</button></center></div>";showStandardMessage(a,200,true)}function notebookSendEmail(){if(!isNotebookItemChecked()){showNotebookError()}else{slimPopup.show({popupId:"emailPopup",popupWidth:310,stayOpen:true})}}function notebookDeleteAction(){if(!isNotebookItemChecked()){showNotebookError()}else{slimPopup.show({popupId:"deleteAction",popupWidth:340,stayOpen:true})}}function notebookDeleteAllAction(){if(!isNotebookItemChecked()){showNotebookError()}else{slimPopup.show({popupId:"deleteAllAction",popupWidth:340,stayOpen:true})}}function notebookDeleteThisAction(){slimPopup.show({popupId:"deleteThisAction",popupWidth:340,stayOpen:true})}function notebookCopyToFolderAction(){if(!isNotebookItemChecked()){showNotebookError()}else{slimPopup.show({popupId:"copyToFolder",popupWidth:360,stayOpen:true})}}function notebookMoveToFolderAction(){if(!isNotebookItemChecked()){showNotebookError()}else{slimPopup.show({popupId:"moveToFolder",popupWidth:360,stayOpen:true})}}function showSearchOptions(){if(document.getElementById("searchOptionsContainer").style.display==""||document.getElementById("searchOptionsContainer").style.display=="none"){document.getElementById("errorMsg1").innerHTML="";document.getElementById("errorMsg1").style.display="none";document.getElementById("subTabSearchHelpText").style.display="none";document.getElementById("searchOptionsContainer").style.display="block"}else{document.getElementById("searchOptionsContainer").style.display="none";document.getElementById("errorMsg1").innerHTML="";document.getElementById("errorMsg1").style.display="block";document.getElementById("subTabSearchHelpText").style.display="block"}}function toggleFullArticle(a){var d="articlesummary_"+a;var e="articlefull_"+a;var b=document.getElementById(d);var c=document.getElementById(e);if(b.style.display=="block"){b.style.display="none";c.style.display="block"}else{c.style.display="none";b.style.display="block"}}function returnToKnovel(){var a="<div style='padding:15px; border: 1px solid #C1C6C8'>";a+="<center>";a+="Would you like to participate in a brief survey?<br/>Any feedback you provide will be greatly appreciated.";a+="<br/><br/>";a+="<button style='width:40px' onclick='takeKnovelSurvey()'>Yes</button>";a+="&nbsp;&nbsp;";a+="<button style='width:40px' onclick='returnToKnovelSite()'>No</button>";a+="</center></div>";showStandardModalMessage(a,340)}function takeKnovelSurvey(){slimPopup.hide();window.top.location.href="http://prototype3survey.questionpro.com/"}function returnToKnovelSite(){slimPopup.hide();window.top.location.href="http://www.knovel.com/web/portal/browse"}function getCalendarDate(){var b=new Array(13);b[0]="January";b[1]="February";b[2]="March";b[3]="April";b[4]="May";b[5]="June";b[6]="July";b[7]="August";b[8]="September";b[9]="October";b[10]="November";b[11]="December";var c=new Date();var g=c.getMonth();var d=b[g];var a=c.getDate();var e=c.getYear();if(e<2000){e=e+1900}var f=d+" "+a+" "+e;return f}function setPopupContainerHeight(){var a=document.getElementById("popupContentContainer");var c=document.getElementById("pdf_viewer");if(a){a.style.height="auto";var b=alertSize();var d=(b-96);if(!document.all){b=b-10}a.style.height=d+"px";if(c){c.style.height=d+"px"}}}function alertSize(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientHeight}}}return a}function addBookToNotebook(d,c,e){var b="/html/notebook/addBookToNotebook.jsp?bookId="+d;var a=new slimAjax(function(){showAddToNotebookMessage(e)});a.post(b,"");if(c&&c.style){c.style.display="none"}else{document.getElementById("addBookToNotebook").style.display="none"}}function addSearchToNotebook(f,d,c,e){var b="/html/notebook/addSearchToNotebook.jsp?title="+f+"&url="+d;var a=new slimAjax(function(){showAddToNotebookMessage(e)});a.post(b,"");document.getElementById(c).style.display="none"}function addContentToNotebook(){var j="Knovel Content";var c=document.getElementById("popupTitle");if(c&&c.innerHTML!=""){j=c.innerHTML;j=escape(j)}var d=window.top.location.href;var h=escape(d);var k=d.indexOf("BookID=")+7;var f=d.substring(k,d.length);var e=f.indexOf("&");var l=f.substring(0,e);var a="/html/notebook/addContentToNotebook.jsp?title="+j+"&url="+h+"&bookId="+l;var g=document.getElementById("knovelNotebookName").innerHTML;if(g.charAt(0)=="\n"){g=g.substring(1)}var b=new slimAjax(function(){showAddToNotebookMessageAlert(g)});b.post(a,"");document.getElementById("addContentButton").style.display="none"}function addEngCaseToNotebook(d,f){var e="Knovel Content";var b=document.getElementById("bookTitle");if(b&&b.innerHTML!=""){e=b.innerHTML;e=escape(e)}var g="/web/portal/browse/display?_EXT_KNOVEL_DISPLAY_bookid="+d;var c="/html/notebook/addContentToNotebook.jsp?title="+e+"&url="+g+"&bookId="+d;var a=new slimAjax(function(){showAddToNotebookMessage(f)});a.post(c,"");document.getElementById("addBookToNotebook").style.display="none"}function notebookShow(f){var c=document.getElementById("mybookshelf_container");var g=document.getElementById("myrecentsearches_container");var e=document.getElementById("mysavedsearches_container");var a=document.getElementById("mybookshelf_image");var d=document.getElementById("myrecentsearches_image");var b=document.getElementById("mysavedsearches_image");if(f=="mybookshelf"){g.style.display="none";e.style.display="none";c.style.display="block";d.src="/html/themes/knovel_mktg/images/kenny/btn_myrecentsearches_off.gif";b.src="/html/themes/knovel_mktg/images/kenny/btn_mysavedsearches_off.gif";a.src="/html/themes/knovel_mktg/images/kenny/btn_mybookshelf_on.gif"}else{if(f=="myrecentsearches"){c.style.display="none";e.style.display="none";g.style.display="block";b.src="/html/themes/knovel_mktg/images/kenny/btn_mysavedsearches_off.gif";a.src="/html/themes/knovel_mktg/images/kenny/btn_mybookshelf_off.gif";d.src="/html/themes/knovel_mktg/images/kenny/btn_myrecentsearches_on.gif"}else{if(f=="mysavedsearches"){g.style.display="none";c.style.display="none";e.style.display="block";a.src="/html/themes/knovel_mktg/images/kenny/btn_mybookshelf_off.gif";d.src="/html/themes/knovel_mktg/images/kenny/btn_myrecentsearches_off.gif";b.src="/html/themes/knovel_mktg/images/kenny/btn_mysavedsearches_on.gif"}}}}function turnNotebookTabOn(c){if(c.src.indexOf("_on.gif")>-1){return}var b=c.src;endIndex=b.indexOf("_off.gif");var a=b.substring(0,endIndex);a+="_on.gif";c.src=a}function turnNotebookTabOff(d){var a=d.id;var g=a.indexOf("_");var f=a.substring(0,g)+"_container";var e=document.getElementById(f);if(e.style.display=="block"){return}var c=d.src;g=c.indexOf("_on.gif");var b=c.substring(0,g);b+="_off.gif";d.src=b}function showAddToNotebookMessage(b){var a="<center>Added to "+b+"</center>";showStandardMessage(a,120);setTimeout("slimPopup.hide()",2000)}function showAddToNotebookMessageAlert(b){var a="Added to "+b+"";alert(a)}function showStandardModalMessage(b,a){slim.get("#standardMessage").innerHTML=b;slim.get("#standardMessage").style.width=a+"px";slimPopup.show({popupId:"standardMessage",popupWidth:a,stayOpen:true,modal:true})}function showStandardMessage(c,b,a){slim.get("#standardMessage").innerHTML=c;slim.get("#standardMessage").style.width=b+"px";slimPopup.show({popupId:"standardMessage",popupWidth:b,stayOpen:a})}function showStandardMessageAndFade(b,a){slim.get("#standardMessage").innerHTML=b;slim.get("#standardMessage").style.width=a+"px";slimPopup.show({popupId:"standardMessage",popupWidth:a});setTimeout("slimPopup.hide()",2000)}function showExtMessage(a){if(Ext){Ext.MessageBox.show({msg:a,buttons:Ext.MessageBox.OK})}else{showStandardMessage(a,300)}}function openLiveChat(){window.open("http://server.iad.liveperson.net/hc/7013782/?cmd=file&file=visitorWantsToChat&site=7013782&byhref=1&imageUrl=http://images.liveperson.com/lp/7013782","chat7013782","width=475,height=400,resizable=yes")}function openContextualHelp(b){var a="/web/portal/help/article/"+b;openResizableWindowPopup(a,792,662,"contextual_help_window")}function checkContextualHelp(){}function printTitleDetails(){var b="location=no,directories=yes,";b+="scrollbars=yes,width=550, height=400, left=100, top=25";var a=document.getElementById("titleDetailsInnerContainer").innerHTML;var c=window.open("","",b);c.document.open();c.document.write("<html><head><title>Title Details</title>");c.document.write('</head><body onLoad="self.print()">');c.document.write(a);c.document.write("</body></html>");c.document.close();c.focus()}function saveTitleDetails(){var a=document.getElementById("currentBookID").value;window.top.location.href="/servlets/BookDetails?BookID="+a}function citationContinue(){document.getElementById("citationExportOptions").style.display="none";document.getElementById("citationExportOptions2").style.display="none";var c=document.getElementById("citationPages");if(c){if(c.value==""){alert("Please enter a page or pages")}else{var a=document.getElementById("citationPages").value;var f=document.getElementById("citationTextBefore").value;var e=document.getElementById("results");var b=new Array();var d=null;b=f.split("..");d=b[0]+". (pp: "+a+"). "+b[1];if(e!=null){e.value=d}document.getElementById("citationStart").style.display="none";document.getElementById("citationEnd").style.display="block";document.getElementById("citationToolbarStart").style.display="none";document.getElementById("citationToolbarEnd").style.display="block";document.getElementById("citationTextBefore").disabled=false;document.getElementById("citationTextBefore").value=d}}}function saveCitation(){var b=document.getElementById("bookID").value;var c=document.getElementById("citationTextBefore").value;var a=document.getElementById("citationPages").value;window.top.location.href="/servlets/CitationExport?BookID="+b+"&citation="+c+"&pages="+a+""}function printCitation(){var b="location=no,directories=yes,";b+="scrollbars=yes,width=450, height=400, left=100, top=25";var a=document.getElementById("citationTextBefore").value;var c=window.open("","",b);c.document.open();c.document.write("<html><head><title>Citation</title>");c.document.write('</head><body onLoad="self.print()">');c.document.write(a);c.document.write("</body></html>");c.document.close();c.focus()}function showDisclaimerEmbed(){showStandardPublisherDisclaimer()}function showDisclaimerFromResults(a){showStandardPublisherDisclaimer()}function showDynamicMessage(a,b){var c=new slimAjax(function(){var d=c.responseText;d+="<br/><br/><center><button style='width:120px' onclick='slimPopup.hide()'>Try It Now</button></center>";showStandardMessage(d,b)});c.post(a,"")}function toggleCitationExportOptions(){var a;if(document.getElementById("citationToolbarStart").style.display=="none"){a=document.getElementById("citationExportOptions2")}else{a=document.getElementById("citationExportOptions")}if(a.style.display=="block"){a.style.display="none";removeEvent(document.body,"click",toggleCitationExportOptions)}else{a.style.display="block";addEvent(document.body,"click",toggleCitationExportOptions)}}function citationExportToRIS(c){var a="/servlets/DirectExport?bookID="+c;var b=document.getElementById("citationPages");if(b){if(b.value!=""){a+="&pages="+b.value}}document.getElementById("citationExportOptions").style.display="none";window.top.location.href=a}function citationExportToRefWorks(){var a=document.getElementById("citationPages"),b=document.getElementById("refworks_data"),c=b.value;if(a&&a.value!=""){var e=b.value;var d=e.indexOf("\n",e.indexOf("\nPB  -")+1);b.value=e.substring(0,d)+"\nSP  - "+a.value+e.substring(d)}document.getElementById("citationExportOptions").style.display="none";var f=document.getElementById("refworksExport");f.submit();b.value=c}function NewWindow(j,f,a,c){var e,g,b,d;if(screen.width==640){b=600;d=346;e=(screen.width-b)/2;g=1}else{if(screen.width==800){if(c=="Text"){b=725;d=460;e=20;g=2}else{if(c=="Export"){b=750;d=460;e=20;g=2}else{if((c=="Row")||(c=="Row_Number")){b=600;d=400;e=170;g=60}else{if((c=="Small_Structure")){b=500;d=400;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=720;d=460;e=(screen.width-b)/2;g=2}else{if(c=="Applets"){b=750;d=550;e=(screen.width-b)/2;g=2}else{b=700;d=442;e=55;g=24}}}}}}}}else{if(screen.width==1024){if(c=="Text"){b=860;d=630;e=(screen.width-b)/2;g=2}else{if(c=="Export"){b=1000;d=630;e=(screen.width-b)/2;g=2}else{if((c=="Row")||(c=="Row_Number")){b=696;d=480;e=206;g=63}else{if((c=="Small_Structure")){b=500;d=425;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=980;d=630;e=(screen.width-b)/2;g=2}else{if(c=="Help"){b=809;d=580;e=71;g=31}else{if(c=="Applets"){b=1000;d=700;e=(screen.width-b)/2;g=2}else{b=819;d=580;e=51;g=31}}}}}}}}}else{if(screen.width==1152){if(c=="Text"){b=720;d=728;e=(screen.width-b)/2;g=2}if(c=="Export"){b=1100;d=728;e=(screen.width-b)/2;g=2}else{if((c=="Row")||(c=="Row_Number")){b=783;d=540;e=228;g=67}else{if((c=="Small_Structure")){b=500;d=425;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=985;d=728;e=(screen.width-b)/2;g=2}else{if(c=="Applets"){b=1000;d=700;e=(screen.width-b)/2;g=2}else{b=922;d=690;e=58;g=27}}}}}}}else{if(screen.width==1280){if(c=="Text"||c=="Export"){b=860;d=800;e=((screen.width-b)/2)-10;g=2}if(c=="Text"||c=="Export"){b=1200;d=800;e=((screen.width-b)/2)-10;g=2}else{if((c=="Row")||(c=="Row_Number")){b=888;d=820;e=210;g=73}else{if((c=="Small_Structure")){b=500;d=425;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=985;d=885;e=(screen.width-b)/2;g=2}else{if(c=="Applets"){b=1050;d=775;e=(screen.width-b)/2;g=2}else{b=1024;d=845;e=32;g=33}}}}}}}else{if(screen.width==1400&&screen.height==1050){if(c=="Text"){b=860;d=500;e=((screen.width-b)/2)-10;g=2}if(c=="Export"){b=1250;d=500;e=((screen.width-b)/2)-10;g=2}else{if((c=="Row")||(c=="Row_Number")){b=888;d=700;e=210;g=73}else{if((c=="Small_Structure")){b=500;d=425;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=985;d=700;e=(screen.width-b)/2;g=2}else{if(c=="Applets"){b=1050;d=700;e=(screen.width-b)/2;g=2}else{b=1024;d=700;e=32;g=33}}}}}}}else{if(c=="Text"){b=1200;d=1020;e=(screen.width-b)/2-30;g=10}if(c=="Export"){b=1280;d=1020;e=(screen.width-b)/2-30;g=10}else{if((c=="Row")||(c=="Row_Number")){b=1020;d=900;e=310;g=80}else{if((c=="Small_Structure")){b=500;d=425;e=170;g=60}else{if((c=="Small_html")){b=700;d=400;e=170;g=60}else{if(c=="Text_Bookmarks"){b=1200;d=1000;e=(screen.width-b)/2;g=30}else{if(c=="Applets"){b=1050;d=775;e=(screen.width-b)/2;g=2}else{b=1150;d=1000;e=80;g=33}}}}}}}}}}}}winprops="height="+d+",width="+b+",top="+g+",left="+e+",scrollbars="+a+",resizable,toolbar=no,location=no,menubar=no,status=no";win=window.open(j,f,winprops);if(parseInt(navigator.appVersion)>=4){win.window.focus()}}function keepSessionAlive(){$.ajax({type:"GET",url:"/web/portal/main",cache:false})}function societySessionKeepAlive(){setInterval(keepSessionAlive,60000)};
