function ebook(n){var t=!1;switch($('label[for="'+n+'"]').html()){case"PDF":t=!0;break;case"ePub":t=!0;break;case"Kindle":t=!0}return t}function showBookPopup(n){var r=eFormatPopUpContent[n.id],u='<div class="info_box1_wide"><b>'+r[0]+"<\/b><br/>"+r[1]+"<\/div>",t,i;for($(u).appendTo("body"),t=n.offsetLeft,i=n.offsetTop+n.offsetHeight+3;n=n.offsetParent;)t+=n.offsetLeft,i+=n.offsetTop;$("div.info_box1_wide").css({position:"absolute",top:i+"px",left:t+"px"})}function hideEformatPopUp(){$(".info_box1_wide").remove()}function sendErrorEmail(){console.log("test");SPIEAjax.Request("general","AJAX","LogMsg","programmerEmail\tPublicationDataMismatch\t")}function sponsorpopup(n,t,i){var f,r,u,e;for($(n).css("font-weight","bold"),f='<div class="info_box1_wide"><b>'+t+"<\/b><br/>"+i+"<\/div>",$(f).appendTo("body"),r=n.offsetLeft,u=n.offsetTop+n.offsetHeight+3;n=n.offsetParent;)r+=n.offsetLeft,u+=n.offsetTop;e=$("#divSponsorshipList").scrollTop();$("div.info_box1_wide").css({position:"absolute",top:u-3-e+"px",left:r+"px"})}function hidesponsorpopup(n){$(n).css("font-weight","normal");hideEformatPopUp()}function showEformatPopUp(n){var r=cmPopUpContent[n.id],u='<div class="info_box1_wide"><b>'+r[0]+"<\/b><br/>"+r[1]+"<\/div>",t,i;for($(u).appendTo("body"),t=n.offsetLeft,i=n.offsetTop+n.offsetHeight+3;n=n.offsetParent;)t+=n.offsetLeft,i+=n.offsetTop;$("div.info_box1_wide").css({position:"absolute",top:i+"px",left:t+"px"})}function hideEformatPopUp(){$(".info_box1_wide").remove()}function sponsorpopup(n,t,i){var f,r,u,e;for($(n).css("font-weight","bold"),f='<div class="info_box1_wide"><b>'+t+"<\/b><br/>"+i+"<\/div>",$(f).appendTo("body"),r=n.offsetLeft,u=n.offsetTop+n.offsetHeight+3;n=n.offsetParent;)r+=n.offsetLeft,u+=n.offsetTop;e=$("#divSponsorshipList").scrollTop();$("div.info_box1_wide").css({position:"absolute",top:u-3-e+"px",left:r+"px"})}function hidesponsorpopup(n){$(n).css("font-weight","normal");hideEformatPopUp()}function showEformatPopUp(n){var r=cmPopUpContent[n.id],u='<div class="info_box1_wide"><b>'+r[0]+"<\/b><br/>"+r[1]+"<\/div>",t,i;for($(u).appendTo("body"),t=n.offsetLeft,i=n.offsetTop+n.offsetHeight+3;n=n.offsetParent;)t+=n.offsetLeft,i+=n.offsetTop;$("div.info_box1_wide").css({position:"absolute",top:i+"px",left:t+"px"})}function hideEformatPopUp(){$(".info_box1_wide").remove()}function Subscribe(){try{}catch(n){}}function LeftNav(){$("#sideLeft>nav>ul>li>a").first().removeClass("hover")}function updateFail(){console.log("added??")}var boldSelectedBook,eFormatPopUpContent,cmPopUpContent;$(document).ready(function(){$(":radio:first").prop("checked",!0);$("#pubs-termsOfUseContainer").css("display","none");$("#eFormatTOU").hide();ebook($(":radio:checked").attr("id"))?($("#eFormatTOU").html('SPIE eBooks are DRM-free for your convenience. By purchasing this eBook, you agree to the <a class="authoranchor" href="/x1126.xml">Terms of Use<\/a>, which allows you to install this eBook on any device you own, but not post it publicly or transmit it to others. SPIE eBooks are for personal use only. For institutional subscriptions to the eBook collection, email <a class="authoranchor" href="mailto:SPIEDLSales@spie.org?subject=SPIE eBooks">SPIEDLSales@spie.org.<\/a>'),$("#eFormatTOU").show()):$("#eFormatTOU").hide()});boldSelectedBook=function(n,t,i,r,u){$(":radio").each(function(){var f=$(this).parent("td").parent();this.checked?(f.addClass("selected"),ebook($(":radio:checked").attr("id"))?($("#pubs-termsOfUseContainer").css("display","block"),$("#eFormatTOU").html('SPIE eBooks are DRM-free for your convenience. By purchasing this eBook, you agree to the <a class="authoranchor" href="/x1126.xml">Terms of Use<\/a>, which allows you to install this eBook on any device you own, but not post it publicly or transmit it to others. SPIE eBooks are for personal use only. For institutional subscriptions to the eBook collection, email <a class="authoranchor" href="mailto:SPIEDLSales@spie.org?subject=SPIE eBooks">SPIEDLSales@spie.org.<\/a>'),$("#eFormatTOU").show()):($("#pubs-termsOfUseContainer").css("display","none"),$("#eFormatTOU").hide()),$(".ISBN").text("ISBN: "+n),i||t?($(".hero-cart").show(),i?($("#addToCart").attr("href",u),$("#addToCart").html("Advance Order"),$("#addToCart").attr("style","font-size: 12.5px; text-align:center;")):($("#addToCart").attr("href",u),$("#addToCart").html("Add to cart"),$("#addToCart").attr("style","text-align:center;"))):$(".hero-cart").hide(),r!="none"?($("#errata").attr("href",r),$(".errata").show()):$(".errata").hide()):f.removeClass("selected")})};eFormatPopUpContent={pu_epub:["ePub Format","The ePUB format is the most common of all formats and is a free, open ebook standand widely supported across all platforms. However, <b> it is not supported by Amazon Kindle.<\/b> Most eReaders like Apple's iBooks, Barnes & Noble's Nook, Adobe Digital Editions, Aldiko on Android, and others support .epub files. The ePub format is an open standard <br/> <br/>You will be provided a link to download the book in the format specified. The link will appear on the receipt page and also emailed to you. Refer to the manufacturer instructions for your specific device for download and install instructions."],pu_kindle:["Kindle Format","The MOBI format is used on Kindle. MOBI is short for Mobipocket, a proprietary eReader file format. It can be used on eReader devices such as Amazon Kindle, Irex iLiad, and others. <br/> <br/>You will be provided a link to download the book in the format specified. The link will appear on the receipt page and also emailed to you. Refer to the manufacturer instructions for your specific device for download and install instructions."],pu_pdf:["PDF","You will be provided a link to download the book in the format specified. The link will appear on the receipt page and also emailed to you. Refer to the manufacturer instructions for your specific device for download and install instructions."]};$(".eformatpopup").mouseover(function(n){showBookPopup(n.currentTarget)}).mouseout(function(){hideEformatPopUp()});cmPopUpContent={pu_invoice_papernumber:["Paper Number:","Please refer to your author proof to locate your paper number. It should begin with the journal acronym, followed by a 5 or 6-digit number, e.g., JBO-141013, OE-140226, JEI-14386, etc."],pu_invoice_pages:["Number of Pages:","Please refer to your author proof to determine final typeset page count. Do not include the proof coversheet or the author query page in your count."]};$(".pub-popup").mouseover(function(n){showEformatPopUp(n.currentTarget)}).mouseout(function(){hideEformatPopUp()});$(".pub-popup").mouseover(function(n){showEformatPopUp(n.currentTarget)}).mouseout(function(){hideEformatPopUp()});$(".pub-popup").mouseover(function(n){showEformatPopUp(n.currentTarget)}).mouseout(function(){hideEformatPopUp()});$(".pub-popup").mouseover(function(n){showEformatPopUp(n.currentTarget)}).mouseout(function(){hideEformatPopUp()});$(document).ready(function(){LeftNav()});$(document).ready(function(){var n="#pub-sectionExpand-header ";$(n+"#hide").css("font-weight","bold");$(n+"#show").addClass("authoranchor");$(n+".showhide").children().css("cursor","pointer");$(".showhide").click(function(n){($(this).parent().next().is(":visible")&&n.target.id==="hide"||!$(this).parent().next().is(":visible")&&n.target.id==="show")&&($(this).parent().next().stop(!0,!0).toggle("blind",{},1e3),$(this).children().css("font-weight",""),$(this).children("#"+n.target.id).css("font-weight","bold"),$(this).children().removeClass("authoranchor"),n.target.id=="hide"?$(this).children("#show").addClass("authoranchor"):$(this).children("#hide").addClass("authoranchor"))})});$(".msg_head").click(function(){$(this).next(".msg_body").stop(!0,!0).toggle("blind",{},1e3);$(this).find(".arrow-up, .arrow-down").stop(!0,!0).toggle();$(".msg_head").each(function(){$(this).removeClass("selectedBar")});$(this).addClass("selectedBar")});$(document).ready(function(){$(".showabstract").click(function(){$(this).text(function(){return $(this).parents().siblings(".theabstract").is(":visible")?"Show Abstract":"Hide Abstract"});$(this).parents().siblings(".theabstract").stop(!0,!0).toggle("blind",{},1e3)})});$(document).ready(function(){$("#show-affiliation").click(function(){$(this).text(function(){return $("#affiliation-content").is(":visible")?"Show Author Affiliations":"Hide Author Affiliations"});$("#affiliation-content").stop(!0,!0).toggle("blind",{},1e3)})});$(document).ready(function(){$(".showallabstract").click(function(){var n=$(".showallabstract").data("state");typeof n=="undefined"||n==="0"?($(".theabstract").css("display","none").stop(!0,!0).toggle("blind",function(){$(".showallabstract").data("state","1");$(".showabstract").text("Hide Abstract")},1500),$(this).children("#hide").css("font-weight",""),$(this).children("#show").css("font-weight","bold"),$(this).children("#show").css("text-decoration",""),$(this).children("#hide").css("text-decoration","underline")):($(".theabstract").css("display","block").stop(!0,!0).toggle("blind",function(){$(".showallabstract").data("state","0");$(".showabstract").text("Show Abstract")},1500),$(this).children("#show").css("font-weight",""),$(this).children("#hide").css("font-weight","bold"),$(this).children("#hide").css("text-decoration",""),$(this).children("#show").css("text-decoration","underline"))})})