function parseResults(n,t,i){$("#flashads_iframe").trigger("adsLoaded",[n,t,i])}function parsePBResults(n,t,i){$("#flashadsPB_iframe").trigger("adsLoaded",[n,t,i])}function resizeViewer(n){var u,t,i,f,r;if(n||(n="flashContainer"),!quickview){if(u=document.getElementById("viewer-area"),u==null){setTimeout(resizeViewer,500);return}t=document.getElementById("doc-info"),i=document.documentElement.clientHeight,t&&(u.style.width=t.clientWidth+"px"),document.getElementById(n)?(f=document.getElementById(n),adHeight=document.getElementById("viewer-area").clientHeight-document.getElementById(n).clientHeight,i<744&&(i=744),f.style.height=i-200+"px",t&&(f.style.width=t.clientWidth+"px"),t&&(t.style.paddingTop=i-185+adHeight+"px")):(textHeight=document.getElementById("viewer-area").clientHeight,t&&(t.style.paddingTop=textHeight+"px")),r=jQuery(".nav-inner").width(),r=r*1,jQuery(".nnav_repeating").width(r-11)}}function openRegisterDownload(){regpopLoaded?$(document).trigger("RegisterDownload"):_dsq.push(["RegisterDownload"]),_kmdoc("Clicked Register Download")}function openRegisterPrint(){regpopLoaded?$(document).trigger("RegisterPrint"):_dsq.push(["RegisterPrint"]),_kmdoc("Clicked Register Print")}function openRegisterDownloadTest1(){regpopLoaded?$(document).trigger("RegisterDownload_Test1"):_dsq.push(["RegisterDownload_Test1"])}function openRegisterPrintTest1(){regpopLoaded?$(document).trigger("RegisterPrint_Test1"):_dsq.push(["RegisterPrint_Test1"])}function google_ad_request_done(n){var i="",r,t,u,e;if(typeof n!="undefined"&&n!=null&&n.length>0)if(n[0].type=="text")for(r=0,t=0;t<googleAdSpots.length;t++){var o=$(googleAdSpots[t].itemTemplate).html(),s=Handlebars.compile(o),h=$(googleAdSpots[t].template).html(),c=Handlebars.compile(h),f="";for(u=0;u<googleAdSpots[t].count&&r<n.length;u++,r++)n[r].document_id=googleAdSpots[t].documentId,n[r].google_ad_channel=google_ad_channel,f+=s(n[r]);e=c({items:f,feedback:google_info.feedback_url}),$(googleAdSpots[t].outputDiv).append(e)}else n[0].type=="image"?(i+='<div><a target="_blank" href="'+n[0].url+'" target="_top" title="go to '+n[0].visible_url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+n[0].visible_url+'\';return true"><img border="0" src="'+n[0].image_url+'"width="'+n[0].image_width+'"height="'+n[0].image_height+'"><\/a><\/div>',$(googleAdSpots[0].outputDiv).append(i)):n[0].type=="html"?(i+="<div>"+n[0].snippet+"<\/div>",$(googleAdSpots[0].outputDiv).append(i)):n[0].type=="flash"&&(i+='<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'"> <PARAM NAME="movie" VALUE="'+google_ad.image_url+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="AllowScriptAccess" VALUE="never"><EMBED src="'+google_ad.image_url+'" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'" TYPE="application/x-shockwave-flash" AllowScriptAccess="never"  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"><\/EMBED><\/OBJECT><\/div>',$(googleAdSpots[0].outputDiv).append(i))}function updateEmdedCode(){var n=embedCodeHTML();$(".embed-text").val(n)}function embedCodeHTML(){var n={},i=630,r=550,t;return documentInfo=typeof swfParams=="object"?swfParams:{},n.title=documentInfo.DocTitle||"Unknown Title",n.docType=documentInfo.DocumentType||"pdf",n.docId=documentInfo.DocId||123456,n.width=$(".width-position .measurement").val()||i,n.height=$(".height-position .measurement").val()||r,n.isWordPressFormat=$("#wordpress").is(":checked"),n.isDisplayInSlideMode=$("#slide-mode").is(":checked"),n.isIncludeRelatedDocs=$("#related-doc").is(":checked"),n.isIncludeOtherDocsByUser=$("#same-user-doc").is(":checked"),t="",n.docType==="video"?t+='<iframe width="'+n.width+'" height="'+n.height+'" src="http://www.youtube.com/embed/'+n.videoCode+'?hd=1&amp;wmode=transparent&amp;autoplay=0" frameborder="0" allowfullscreen="1"><\/iframe>':(n.isWordPressFormat?t+='[docstoc docId="271927" mId="-10" width="'+n.width+'" height="'+n.height+'" slideMode="'+String(n.isDisplayInSlideMode)+'" showRelatedDocs="'+String(n.isIncludeRelatedDocs)+'" showOtherDocs="'+String(n.isIncludeOtherDocsByUser)+'" allowdownload="true" url="http://www.docstoc.com/docs/271927/Free-Business-Templates---Income-Statement-Template"]Free Business Templates - Income Statement Template[/docstoc]':(t+="<font size='2'>",t+="<a href='http://www.docstoc.com/docs/"+n.docId+"/"+n.title+"'>"+n.title+"<\/a>",t+="<\/font><br/>",t+="<object id='_ds_"+n.docId+"'",t+="\tname='_ds_"+n.docId+"' width='"+n.width+"'",t+="\theight='"+n.height+"' type='application/x-shockwave-flash' data='http://viewer.docstoc.com/'>",t+="<param name='FlashVars'",t+="\tvalue='doc_id="+n.docId+"&mem_id="+n.mem_id,t+=n.isDisplayInSlideMode?"&doc_type=ppt":"&doc_type="+n.docType,t+="&fullscreen=1",t+="&allowdownload=1",t+=n.isIncludeRelatedDocs?"":"&showrelated=0",t+=n.isIncludeOtherDocsByUser?"":"&showotherdocs=0",t+="' />",t+="<param name='movie' value='http://viewer.docstoc.com/'/>",t+="<param name='allowScriptAccess' value='always' />",t+="<param name='allowFullScreen' value='true' />",t+="<\/object><br />",t+="<script type='text/javascript'>var docstoc_docid='"+n.docId+"'; var docstoc_title='"+n.title+"'; var docstoc_urltitle='"+n.title+"';<\/script>",t+="<script type='text/javascript' src='http://i.docstoccdn.com/js/check-flash.js'><\/script>"),$("#full-screen").val("http://www.docstoc.com/docs/document-preview.aspx?doc_id="+n.docId)),t}var swfobject=function(){function v(){var i,r,n;if(!c){try{i=t.getElementsByTagName("body")[0].appendChild(h("span")),i.parentNode.removeChild(i)}catch(u){return}for(c=!0,r=w.length,n=0;n<r;n++)w[n]()}}function yt(n){c?n():w[w.length]=n}function pt(n){if(typeof r.addEventListener!=i)r.addEventListener("load",n,!1);else if(typeof t.addEventListener!=i)t.addEventListener("load",n,!1);else if(typeof r.attachEvent!=i)ui(r,"onload",n);else if(typeof r.onload=="function"){var u=r.onload;r.onload=function(){u(),n()}}else r.onload=n}function gt(){lt?ni():it()}function ni(){var o=t.getElementsByTagName("body")[0],u=h(f),r,e;u.setAttribute("type",p),r=o.appendChild(u),r?(e=0,function(){if(typeof r.GetVariable!=i){var t=r.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}else if(e<10){e++,setTimeout(arguments.callee,10);return}o.removeChild(u),r=null,it()}()):it()}function it(){var y=s.length,r,t,h,c,v;if(y>0)for(r=0;r<y;r++){var f=s[r].id,e=s[r].callbackFn,o={success:!1,id:f};if(n.pv[0]>0){if(t=u(f),t)if(!g(s[r].swfVersion)||n.wk&&n.wk<312)if(s[r].expressInstall&&ut()){h={},h.data=s[r].expressInstall,h.width=t.getAttribute("width")||"0",h.height=t.getAttribute("height")||"0",t.getAttribute("class")&&(h.styleclass=t.getAttribute("class")),t.getAttribute("align")&&(h.align=t.getAttribute("align"));var p={},a=t.getElementsByTagName("param"),w=a.length;for(c=0;c<w;c++)a[c].getAttribute("name").toLowerCase()!="movie"&&(p[a[c].getAttribute("name")]=a[c].getAttribute("value"));ft(h,p,f,e)}else ti(t),e&&e(o);else l(f,!0),e&&(o.success=!0,o.ref=rt(f),e(o))}else l(f,!0),e&&(v=rt(f),v&&typeof v.SetVariable!=i&&(o.success=!0,o.ref=v),e(o))}}function rt(n){var r=null,t=u(n),e;return t&&t.nodeName=="OBJECT"&&(typeof t.SetVariable!=i?r=t:(e=t.getElementsByTagName(f)[0],e&&(r=e))),r}function ut(){return!d&&g("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function ft(f,e,o,s){var c,v,l,a;d=!0,nt=s||null,at={success:!1,id:o},c=u(o),c&&(c.nodeName=="OBJECT"?(y=et(c),k=null):(y=c,k=o),f.id=ht,(typeof f.width==i||!/%$/.test(f.width)&&parseInt(f.width,10)<310)&&(f.width="310"),(typeof f.height==i||!/%$/.test(f.height)&&parseInt(f.height,10)<137)&&(f.height="137"),t.title=t.title.slice(0,47)+" - Flash Player Installation",v=n.ie&&n.win?"ActiveX":"PlugIn",l="MMredirectURL="+r.location.toString().replace(/&/g,"%26")+"&MMplayerType="+v+"&MMdoctitle="+t.title,typeof e.flashvars!=i?e.flashvars+="&"+l:e.flashvars=l,n.ie&&n.win&&c.readyState!=4&&(a=h("div"),o+="SWFObjectNew",a.setAttribute("id",o),c.parentNode.insertBefore(a,c),c.style.display="none",function(){c.readyState==4?c.parentNode.removeChild(c):setTimeout(arguments.callee,10)}()),ot(f,e,o))}function ti(t){if(n.ie&&n.win&&t.readyState!=4){var i=h("div");t.parentNode.insertBefore(i,t),i.parentNode.replaceChild(et(t),i),t.style.display="none",function(){t.readyState==4?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(et(t),t)}function et(t){var u=h("div"),e,i,o,r;if(n.win&&n.ie)u.innerHTML=t.innerHTML;else if(e=t.getElementsByTagName(f)[0],e&&(i=e.childNodes,i))for(o=i.length,r=0;r<o;r++)i[r].nodeType==1&&i[r].nodeName=="PARAM"||i[r].nodeType==8||u.appendChild(i[r].cloneNode(!0));return u}function ot(t,r,e){var v,y=u(e),w,o,k,a,c,s,l;if(n.wk&&n.wk<312)return v;if(y)if(typeof t.id==i&&(t.id=e),n.ie&&n.win){w="";for(o in t)t[o]!=Object.prototype[o]&&(o.toLowerCase()=="data"?r.movie=t[o]:o.toLowerCase()=="styleclass"?w+=' class="'+t[o]+'"':o.toLowerCase()!="classid"&&(w+=" "+o+'="'+t[o]+'"'));k="";for(a in r)r[a]!=Object.prototype[a]&&(k+='<param name="'+a+'" value="'+r[a]+'" />');y.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+w+">"+k+"<\/object>",b[b.length]=t.id,v=u(t.id)}else{c=h(f),c.setAttribute("type",p);for(s in t)t[s]!=Object.prototype[s]&&(s.toLowerCase()=="styleclass"?c.setAttribute("class",t[s]):s.toLowerCase()!="classid"&&c.setAttribute(s,t[s]));for(l in r)r[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&ii(c,l,r[l]);y.parentNode.replaceChild(c,y),v=c}return v}function ii(n,t,i){var r=h("param");r.setAttribute("name",t),r.setAttribute("value",i),n.appendChild(r)}function wt(t){var i=u(t);i&&i.nodeName=="OBJECT"&&(n.ie&&n.win?(i.style.display="none",function(){i.readyState==4?ri(t):setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function ri(n){var t=u(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}}function u(n){var i=null;try{i=t.getElementById(n)}catch(r){}return i}function h(n){return t.createElement(n)}function ui(n,t,i){n.attachEvent(t,i),a[a.length]=[n,t,i]}function g(t){var r=n.pv,i=t.split(".");return i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)||0,i[2]=parseInt(i[2],10)||0,r[0]>i[0]||r[0]==i[0]&&r[1]>i[1]||r[0]==i[0]&&r[1]==i[1]&&r[2]>=i[2]?!0:!1}function bt(r,u,o,s){var a,c,l;n.ie&&n.mac||(a=t.getElementsByTagName("head")[0],a)&&(c=o&&typeof o=="string"?o:"screen",s&&(e=null,tt=null),e&&tt==c||(l=h("style"),l.setAttribute("type","text/css"),l.setAttribute("media",c),e=a.appendChild(l),n.ie&&n.win&&typeof t.styleSheets!=i&&t.styleSheets.length>0&&(e=t.styleSheets[t.styleSheets.length-1]),tt=c),n.ie&&n.win?e&&typeof e.addRule==f&&e.addRule(r,u):e&&typeof t.createTextNode!=i&&e.appendChild(t.createTextNode(r+" {"+u+"}")))}function l(n,t){if(vt){var i=t?"visible":"hidden";c&&u(n)?u(n).style.visibility=i:bt("#"+n,"visibility:"+i)}}function kt(n){var t=/[\\\"<>\.;]/,r=t.exec(n)!=null;return r&&typeof encodeURIComponent!=i?encodeURIComponent(n):n}var i="undefined",f="object",st="Shockwave Flash",dt="ShockwaveFlash.ShockwaveFlash",p="application/x-shockwave-flash",ht="SWFObjectExprInst",ct="onreadystatechange",r=window,t=document,o=navigator,lt=!1,w=[gt],s=[],b=[],a=[],y,k,nt,at,c=!1,d=!1,e,tt,vt=!0,n=function(){var l=typeof t.getElementById!=i&&typeof t.getElementsByTagName!=i&&typeof t.createElement!=i,e=o.userAgent.toLowerCase(),s=o.platform.toLowerCase(),a=s?/win/.test(s):/win/.test(e),v=s?/mac/.test(s):/mac/.test(e),y=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,h=!+"\v1",u=[0,0,0],n=null,c;if(typeof o.plugins!=i&&typeof o.plugins[st]==f)n=o.plugins[st].description,!n||typeof o.mimeTypes!=i&&o.mimeTypes[p]&&!o.mimeTypes[p].enabledPlugin||(lt=!0,h=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),u[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),u[2]=/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof r.ActiveXObject!=i)try{c=new ActiveXObject(dt),c&&(n=c.GetVariable("$version"),n&&(h=!0,n=n.split(" ")[1].split(","),u=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]))}catch(w){}return{w3:l,pv:u,wk:y,ie:h,win:a,mac:v}}(),fi=function(){n.w3&&((typeof t.readyState!=i&&t.readyState=="complete"||typeof t.readyState==i&&(t.getElementsByTagName("body")[0]||t.body))&&v(),c||(typeof t.addEventListener!=i&&t.addEventListener("DOMContentLoaded",v,!1),n.ie&&n.win&&(t.attachEvent(ct,function(){t.readyState=="complete"&&(t.detachEvent(ct,arguments.callee),v())}),r==top&&function(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}v()}}()),n.wk&&function(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(arguments.callee,0);return}v()}}(),pt(v)))}(),ei=function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var e=a.length,r,i,u,f,t=0;t<e;t++)a[t][0].detachEvent(a[t][1],a[t][2]);for(r=b.length,i=0;i<r;i++)wt(b[i]);for(u in n)n[u]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t,f.swfVersion=i,f.expressInstall=r,f.callbackFn=u,s[s.length]=f,l(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return rt(t)},embedSWF:function(t,r,u,e,o,s,h,c,a,v){var y={success:!1,id:r};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&e&&o?(l(r,!1),yt(function(){var n,b,p,k,w,d;if(u+="",e+="",n={},a&&typeof a===f)for(b in a)n[b]=a[b];if(n.data=t,n.width=u,n.height=e,p={},c&&typeof c===f)for(k in c)p[k]=c[k];if(h&&typeof h===f)for(w in h)typeof p.flashvars!=i?p.flashvars+="&"+w+"="+h[w]:p.flashvars=w+"="+h[w];if(g(o))d=ot(n,p,r),n.id==r&&l(r,!0),y.success=!0,y.ref=d;else{if(s&&ut()){n.data=s,ft(n,p,r,v);return}l(r,!0)}v&&v(y)})):v&&v(y)},switchOffAutoHideShow:function(){vt=!1},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:g,createSWF:function(t,i,r){return n.w3?ot(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&ut()&&ft(t,i,r,u)},removeSWF:function(t){n.w3&&wt(t)},createCSS:function(t,i,r,u){n.w3&&bt(t,i,r,u)},addDomLoadEvent:yt,addLoadEvent:pt,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),n==null)return kt(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return kt(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(d){var t=u(ht);t&&y&&(t.parentNode.replaceChild(y,t),k&&(l(k,!0),n.ie&&n.win&&(y.style.display="block")),nt&&nt(at)),d=!1}}}}(),quickview,fordebuggingbreak,code;(function(n){function t(t,i){function k(){var r;if(i.ShowViewer){var u={doc_id:i.DocId,didURL:"http://docs.docstoc.com/did",mem_id:i.MemId,rev:i.Rev,ad_type:i.AdType,allowScriptAccess:"always",buttonviewtype:"3",buttonObject:i.ButtonObject},f={width:i.width,height:i.height,wmode:"opaque",name:"flashContainer",id:"flashContainer",allowFullScreen:"true",bgcolor:"#ffffff",allowScriptAccess:"always",ad_type:i.AdType,iframeurl:i.IframeSrc,buttonviewtype:"3",buttonObject:i.ButtonObject},e={};n(b).html('<div id="flashContainer"> <\/div>'),swfobject.embedSWF("http://swf.docstoc.com/swf/DSPreloader.169.www.swf","flashContainer",i.width,i.height,"10.0.0","expressInstall.swf",u,f,e,function(t){t.success?(n("#flashContainerParent").mousewheel(function(n,t){n.stopPropagation(),n.preventDefault();var u="";t>0?document.getElementById("flashContainer").ScrollUp():t<0&&document.getElementById("flashContainer").ScrollDown()}),d(),setTimeout(resizeViewer,1e3)):(n("imageContainer").html('  <span style="font-weight: bold; font-size: 15px;">Document Sample<\/span><br /><img style="max-width: 100%; border: 0;" src="'+i.ImageUrl+'" alt="'+i.DocTitle+'" title="'+i.DocTitle+'"><span style="position: absolute; bottom: 5px; right: 5px; font-weight: bold; font-size: 15px;"><img border="0" alt="Powered By Docstoc" title="Powered By Docstoc" src="http://i.docstoccdn.com/i/powered_by_ds_logo10.png"><\/span><br>'),resizeViewer("imageContainer"))})}else r=n("#flashContainerParent").attr("data-uri"),n("#flashContainerParent").html('<img src="'+r+'" />');return w}function d(){n("body").mouseleave(function(){a||f!=0||(a=!0,f=setInterval(g,50))});try{i.PBAds&&i.AdType!=0&&setTimeout(tt,1e3)}catch(t){}}function e(){i.showFlashAds&&(l=e,h==!1?(h=!0,v()):i.AdType!="4"&&document.getElementById("flashContainer").SetAds&&document.getElementById("flashContainer").SetAds(u))}function g(){if(n("#flashContainer").length>0&&i.AdType!=null&&(n("#flashContainer")[0].SetAds||n("#flashContainer")[0].SetSponsoredAds)){clearInterval(f),f=0;var t=rt(n("#flashContainer")[0]);window.scrollTo(t[0],t[1]-24),i.AdType=="2"||i.AdType=="3"||i.AdType=="4"?o():e()}}function o(){i.showFlashAds&&(l=o,c==!1?(c=!0,v()):u!=null&&document.getElementById("flashContainer").SetSponsoredAds(u))}function v(){var n=6;y("flashads_iframe","pub-4483126213297898",i.AdChannel,6,"parseResults",0,null,nt)}function nt(n,t){for(var c=[],l=0,s,h=0;h<n.length;h++)s=n[h],s&&(c[l]={title:"'"+r(s.line1)+"'",line1:"'"+r(s.line2)+"'",line2:"'"+r(s.line3)+"'",url:"'"+r(p(s.url))+"'",displayurl:"'"+r(s.visible_url)+"'"},l++);u={term:i.AdKeyword,sponsored_text:"Ads by Google",feedback_url:t,items:c,related:[]},i.AdType==3||i.AdType==2?(e(),o()):e()}function tt(){for(var t=!1,r=0,n=0;n<i.PBAds.length;n++)i.PBAds[n].type==2&&(r=n,t=!0,y("flashadsPB_iframe","pub-4483126213297898","2418330041",4,"parsePBResults",3,r,it));t||s()}function s(){document.getElementById("flashContainer").SetPageBreakAds?document.getElementById("flashContainer").SetPageBreakAds(i.PBAds):setTimeout(s,1e3)}function it(n,t,u){for(var o=[],h=0,f,e=0;e<n.length;e++)f=n[e],f&&(o[h]={title:"'"+r(f.line1)+"'",line1:"'"+r(f.line2)+"'",line2:"'"+r(f.line3)+"'",url:"'"+r(p(f.url))+"'",displayurl:"'"+r(f.visible_url)+"'"},h++);i.PBAds[u].value={term:i.AdKeyword,sponsored_text:"Ads by Google",feedback_url:t,items:o,related:[]},setTimeout(s,1e3)}function y(t,u,f,e,o,s,h,c){i.AdType==1&&(e=3),n(document).ready(function(){var l,a;n("#"+t).length<=0&&(l=document.createElement("iframe"),l.setAttribute("id",t),l.setAttribute("src","javascript:false;"),l.setAttribute("frameborder","0"),l.setAttribute("style",""),l.style.position="absolute",l.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)",l.style.zIndex="100",l.style.width="1px",l.style.height="1px",l.style.top="0px",l.style.left="0px",document.body.appendChild(l),a=document.getElementById(t),n(a).bind("adsLoaded",function(n,t,i,r){c(t,i,r)}),l=a.contentWindow?a.contentWindow:a.contentDocument.document?a.contentDocument.document:a.contentDocument,l.document.open(),l.document.write('<script type="text/javascript">\r\n'),l.document.write("google_ad_client = '"+u+"';\r\n"),l.document.write("google_ad_output = 'js';\r\n"),l.document.write("google_max_num_ads = '"+e+"';\r\n"),l.document.write("google_ad_type = 'text_html';\r\n"),l.document.write("google_ad_channel ='"+f+"';\r\n"),l.document.write("google_skip ='"+s+"';\r\n"),l.document.write("google_feedback = 'on';\r\n"),l.document.write("googleAdStyle = 'h';\r\n"),l.document.write("google_kw_type = 'broad';\r\n"),l.document.write("google_kw = '"+r(i.AdKeyword)+"';\r\n"),l.document.write("function google_ad_request_done(ga) {top."+o+"(ga,google_info.feedback_url,"+h+");}\r\n"),l.document.write("<\/script>"),l.document.write(unescape("%3Cscript src='http://pagead2.googlesyndication.com/pagead/show_ads.js' type='text/javascript'%3E%3C/script%3E")),l.document.close())})}function r(n){return n.replace(/"/g,"'").replace(/'/g,"\\'")}function p(n){var t=document.createElement("div"),i;return t.innerHTML='<a href="'+n+'"><a>',i=t.childNodes[0].href,t=null,i}function rt(n){var t=0,i=0;if(n.offsetParent)for(t=n.offsetLeft,i=n.offsetTop;n=n.offsetParent;)t+=n.offsetLeft,i+=n.offsetTop;return[t,i]}var w=this,b=t,h=!1,c=!1,l=null,u=null,a=!1,f=0;return k()}n.docstoc=n.docstoc||{},n.docstoc.docstocviewer={options:{DocId:13338,MemId:129,DocumentType:0,Rev:127308409,DocError:0,ShowRelated:1,ShowOtherDocs:1,width:"100%",height:"1000"}},n.fn.documentviewer=function(i){var i=n.extend({},n.docstoc.docstocviewer.options,i);return i.ShowViewer=!1,swfobject.hasFlashPlayerVersion("4.0.18")&&(i.ShowViewer=!0),this.each(function(){n(this).data("dsviewer",new t(n(this),i))}),this}})(jQuery),$(window).load(function(){swfParams!=undefined&&$("#flashContainerParent").documentviewer(swfParams)}),quickview=!1,$(document).bind("RegPopReady",function(){regpopLoaded=!0;for(var n=0;n<_dsq.length;n++)$(document).trigger(_dsq[n])}),$("h1").click(function(n){n.preventDefault(),openRegisterDownload()}),function(n){var t={},c,e,f,u,i,h,l,o,a;t.VERSION="1.0.0",t.COMPILER_REVISION=4,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"},t.helpers={},t.partials={};var r=Object.prototype.toString,s="[object Function]",v="[object Object]";t.registerHelper=function(n,i,u){if(r.call(n)===v){if(u||i)throw new t.Exception("Arg not supported with multiple helpers");t.Utils.extend(this.helpers,n)}else u&&(i.not=u),this.helpers[n]=i},t.registerPartial=function(n,i){r.call(n)===v?t.Utils.extend(this.partials,n):this.partials[n]=i},t.registerHelper("helperMissing",function(t){if(arguments.length===2)return n;throw new Error("Missing helper: '"+t+"'");}),t.registerHelper("blockHelperMissing",function(n,i){var u=i.inverse||function(){},f=i.fn,e=r.call(n);return e===s&&(n=n.call(this)),n===!0?f(this):n===!1||n==null?u(this):e==="[object Array]"?n.length>0?t.helpers.each(n,i):u(this):f(n)}),t.K=function(){},t.createFrame=Object.create||function(n){t.K.prototype=n;var i=new t.K;return t.K.prototype=null,i},t.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(n,i){if(t.logger.level<=n){var r=t.logger.methodMap[n];typeof console!="undefined"&&console[r]&&console[r].call(console,i)}}},t.log=function(n,i){t.logger.log(n,i)},t.registerHelper("each",function(n,i){var h=i.fn,l=i.inverse,f=0,e="",u,a=r.call(n),c,o;if(a===s&&(n=n.call(this)),i.data&&(u=t.createFrame(i.data)),n&&typeof n=="object")if(n instanceof Array)for(c=n.length;f<c;f++)u&&(u.index=f),e=e+h(n[f],{data:u});else for(o in n)n.hasOwnProperty(o)&&(u&&(u.key=o),e=e+h(n[o],{data:u}),f++);return f===0&&(e=l(this)),e}),t.registerHelper("if",function(n,i){var u=r.call(n);return u===s&&(n=n.call(this)),!n||t.Utils.isEmpty(n)?i.inverse(this):i.fn(this)}),t.registerHelper("unless",function(n,i){return t.helpers["if"].call(this,n,{fn:i.inverse,inverse:i.fn})}),t.registerHelper("with",function(n,i){var u=r.call(n);return u===s&&(n=n.call(this)),t.Utils.isEmpty(n)?void 0:i.fn(n)}),t.registerHelper("log",function(n,i){var r=i.data&&i.data.level!=null?parseInt(i.data.level,10):1;t.log(r,n)}),c=function(){function n(){this.yy={}}var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,simpleInverse:6,statements:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,params:27,hash:28,dataName:29,param:30,STRING:31,INTEGER:32,BOOLEAN:33,hashSegments:34,hashSegment:35,ID:36,EQUALS:37,DATA:38,pathSegments:39,SEP:40,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},productions_:[0,[3,2],[4,2],[4,3],[4,2],[4,1],[4,1],[4,0],[7,1],[7,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[6,2],[17,3],[17,2],[17,2],[17,1],[17,1],[27,2],[27,1],[30,1],[30,1],[30,1],[30,1],[30,1],[28,1],[34,2],[34,1],[35,3],[35,3],[35,3],[35,3],[35,3],[26,1],[26,1],[26,1],[29,2],[21,1],[39,3],[39,1]],performAction:function(n,t,i,r,u,f){var e=f.length-1;switch(u){case 1:return f[e-1];case 2:this.$=new r.ProgramNode([],f[e]);break;case 3:this.$=new r.ProgramNode(f[e-2],f[e]);break;case 4:this.$=new r.ProgramNode(f[e-1],[]);break;case 5:this.$=new r.ProgramNode(f[e]);break;case 6:this.$=new r.ProgramNode([],[]);break;case 7:this.$=new r.ProgramNode([]);break;case 8:this.$=[f[e]];break;case 9:f[e-1].push(f[e]),this.$=f[e-1];break;case 10:this.$=new r.BlockNode(f[e-2],f[e-1].inverse,f[e-1],f[e]);break;case 11:this.$=new r.BlockNode(f[e-2],f[e-1],f[e-1].inverse,f[e]);break;case 12:this.$=f[e];break;case 13:this.$=f[e];break;case 14:this.$=new r.ContentNode(f[e]);break;case 15:this.$=new r.CommentNode(f[e]);break;case 16:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1]);break;case 17:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1]);break;case 18:this.$=f[e-1];break;case 19:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1],f[e-2][2]==="&");break;case 20:this.$=new r.MustacheNode(f[e-1][0],f[e-1][1],!0);break;case 21:this.$=new r.PartialNode(f[e-1]);break;case 22:this.$=new r.PartialNode(f[e-2],f[e-1]);break;case 24:this.$=[[f[e-2]].concat(f[e-1]),f[e]];break;case 25:this.$=[[f[e-1]].concat(f[e]),null];break;case 26:this.$=[[f[e-1]],f[e]];break;case 27:this.$=[[f[e]],null];break;case 28:this.$=[[f[e]],null];break;case 29:f[e-1].push(f[e]),this.$=f[e-1];break;case 30:this.$=[f[e]];break;case 31:this.$=f[e];break;case 32:this.$=new r.StringNode(f[e]);break;case 33:this.$=new r.IntegerNode(f[e]);break;case 34:this.$=new r.BooleanNode(f[e]);break;case 35:this.$=f[e];break;case 36:this.$=new r.HashNode(f[e]);break;case 37:f[e-1].push(f[e]),this.$=f[e-1];break;case 38:this.$=[f[e]];break;case 39:this.$=[f[e-2],f[e]];break;case 40:this.$=[f[e-2],new r.StringNode(f[e])];break;case 41:this.$=[f[e-2],new r.IntegerNode(f[e])];break;case 42:this.$=[f[e-2],new r.BooleanNode(f[e])];break;case 43:this.$=[f[e-2],f[e]];break;case 44:this.$=new r.PartialNameNode(f[e]);break;case 45:this.$=new r.PartialNameNode(new r.StringNode(f[e]));break;case 46:this.$=new r.PartialNameNode(new r.IntegerNode(f[e]));break;case 47:this.$=new r.DataNode(f[e]);break;case 48:this.$=new r.IdNode(f[e]);break;case 49:f[e-2].push({part:f[e],separator:f[e-1]}),this.$=f[e-2];break;case 50:this.$=[{part:f[e]}]}},table:[{3:1,4:2,5:[2,7],6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],22:[1,14],23:[1,15],25:[1,16]},{1:[3]},{5:[1,17]},{5:[2,6],7:18,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,6],22:[1,14],23:[1,15],25:[1,16]},{5:[2,5],6:20,8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,5],22:[1,14],23:[1,15],25:[1,16]},{17:23,18:[1,22],21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],25:[2,8]},{4:29,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{4:30,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{17:31,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:32,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:33,21:24,29:25,36:[1,28],38:[1,27],39:26},{21:35,26:34,31:[1,36],32:[1,37],36:[1,28],39:26},{1:[2,1]},{5:[2,2],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,2],22:[1,14],23:[1,15],25:[1,16]},{17:23,21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,4],7:38,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,4],22:[1,14],23:[1,15],25:[1,16]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{5:[2,23],14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{18:[1,39]},{18:[2,27],21:44,24:[2,27],27:40,28:41,29:48,30:42,31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,28],24:[2,28]},{18:[2,48],24:[2,48],31:[2,48],32:[2,48],33:[2,48],36:[2,48],38:[2,48],40:[1,51]},{21:52,36:[1,28],39:26},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],38:[2,50],40:[2,50]},{10:53,20:[1,54]},{10:55,20:[1,54]},{18:[1,56]},{18:[1,57]},{24:[1,58]},{18:[1,59],21:60,36:[1,28],39:26},{18:[2,44],36:[2,44]},{18:[2,45],36:[2,45]},{18:[2,46],36:[2,46]},{5:[2,3],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,3],22:[1,14],23:[1,15],25:[1,16]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{18:[2,25],21:44,24:[2,25],28:61,29:48,30:62,31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,26],24:[2,26]},{18:[2,30],24:[2,30],31:[2,30],32:[2,30],33:[2,30],36:[2,30],38:[2,30]},{18:[2,36],24:[2,36],35:63,36:[1,64]},{18:[2,31],24:[2,31],31:[2,31],32:[2,31],33:[2,31],36:[2,31],38:[2,31]},{18:[2,32],24:[2,32],31:[2,32],32:[2,32],33:[2,32],36:[2,32],38:[2,32]},{18:[2,33],24:[2,33],31:[2,33],32:[2,33],33:[2,33],36:[2,33],38:[2,33]},{18:[2,34],24:[2,34],31:[2,34],32:[2,34],33:[2,34],36:[2,34],38:[2,34]},{18:[2,35],24:[2,35],31:[2,35],32:[2,35],33:[2,35],36:[2,35],38:[2,35]},{18:[2,38],24:[2,38],36:[2,38]},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],37:[1,65],38:[2,50],40:[2,50]},{36:[1,66]},{18:[2,47],24:[2,47],31:[2,47],32:[2,47],33:[2,47],36:[2,47],38:[2,47]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{21:67,36:[1,28],39:26},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,68]},{18:[2,24],24:[2,24]},{18:[2,29],24:[2,29],31:[2,29],32:[2,29],33:[2,29],36:[2,29],38:[2,29]},{18:[2,37],24:[2,37],36:[2,37]},{37:[1,65]},{21:69,29:73,31:[1,70],32:[1,71],33:[1,72],36:[1,28],38:[1,27],39:26},{18:[2,49],24:[2,49],31:[2,49],32:[2,49],33:[2,49],36:[2,49],38:[2,49],40:[2,49]},{18:[1,74]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{18:[2,39],24:[2,39],36:[2,39]},{18:[2,40],24:[2,40],36:[2,40]},{18:[2,41],24:[2,41],36:[2,41]},{18:[2,42],24:[2,42],36:[2,42]},{18:[2,43],24:[2,43],36:[2,43]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]}],defaultActions:{17:[2,1]},parseError:function(n){throw new Error(n);},parse:function(n){function it(){var n;return n=k.lexer.lex()||1,typeof n!="number"&&(n=k.symbols_[n]||n),n}var k=this,r=[0],e=[null],t=[],h=this.table,d="",c=0,g=0,y=0,l,nt,i,p,o,u,w,s,a,f,tt,v,b;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={}),l=this.lexer.yylloc,t.push(l),nt=this.lexer.options&&this.lexer.options.ranges,typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError),s={};;){if(o=r[r.length-1],this.defaultActions[o]?u=this.defaultActions[o]:((i===null||typeof i=="undefined")&&(i=it()),u=h[o]&&h[o][i]),(typeof u=="undefined"||!u.length||!u[0])&&(b="",!y)){v=[];for(a in h[o])this.terminals_[a]&&a>2&&v.push("'"+this.terminals_[a]+"'");b=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(c+1)+": Unexpected "+(i==1?"end of input":"'"+(this.terminals_[i]||i)+"'"),this.parseError(b,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:l,expected:v})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+o+", token: "+i);switch(u[0]){case 1:r.push(i),e.push(this.lexer.yytext),t.push(this.lexer.yylloc),r.push(u[1]),i=null,p?(i=p,p=null):(g=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,l=this.lexer.yylloc,y>0&&y--);break;case 2:if(f=this.productions_[u[1]][1],s.$=e[e.length-f],s._$={first_line:t[t.length-(f||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(f||1)].first_column,last_column:t[t.length-1].last_column},nt&&(s._$.range=[t[t.length-(f||1)].range[0],t[t.length-1].range[1]]),w=this.performAction.call(s,d,g,c,this.yy,u[1],e,t),typeof w!="undefined")return w;f&&(r=r.slice(0,-2*f),e=e.slice(0,-1*f),t=t.slice(0,-1*f)),r.push(this.productions_[u[1]][0]),e.push(s.$),t.push(s._$),tt=h[r[r.length-2]][r[r.length-1]],r.push(tt);break;case 3:return!0}}return!0}},i=function(){var n={EOF:1,parseError:function(n,t){if(this.yy.parser)this.yy.parser.parseError(n,t);else throw new Error(n);},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},next:function(){var f,n,r,e,t,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length;i++)if(r=this._input.match(this.rules[u[i]]),r&&(!n||r[0].length>n[0].length)&&(n=r,e=i,!this.options.flex))break;return n?(t=n[0].match(/(?:\r\n?|\n).*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-t[t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,u[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)?f:void 0:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n!="undefined"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return n.options={},n.performAction=function(n,t,i,r){var u=r;switch(i){case 0:return t.yytext="\\",14;case 1:if(t.yytext.slice(-1)!=="\\"&&this.begin("mu"),t.yytext.slice(-1)==="\\"&&(t.yytext=t.yytext.substr(0,t.yyleng-1),this.begin("emu")),t.yytext)return 14;break;case 2:return 14;case 3:return t.yytext.slice(-1)!=="\\"&&this.popState(),t.yytext.slice(-1)==="\\"&&(t.yytext=t.yytext.substr(0,t.yyleng-1)),14;case 4:return t.yytext=t.yytext.substr(0,t.yyleng-4),this.popState(),15;case 5:return 25;case 6:return 16;case 7:return 20;case 8:return 19;case 9:return 19;case 10:return 23;case 11:return 22;case 12:this.popState(),this.begin("com");break;case 13:return t.yytext=t.yytext.substr(3,t.yyleng-5),this.popState(),15;case 14:return 22;case 15:return 37;case 16:return 36;case 17:return 36;case 18:return 40;case 20:return this.popState(),24;case 21:return this.popState(),18;case 22:return t.yytext=t.yytext.substr(1,t.yyleng-2).replace(/\\"/g,'"'),31;case 23:return t.yytext=t.yytext.substr(1,t.yyleng-2).replace(/\\'/g,"'"),31;case 24:return 38;case 25:return 33;case 26:return 33;case 27:return 32;case 28:return 36;case 29:return t.yytext=t.yytext.substr(1,t.yyleng-2),36;case 30:return"INVALID";case 31:return 5}},n.rules=[/^(?:\\\\(?=(\{\{)))/,/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/,/^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[}\/ ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:-?[0-9]+(?=[}\s]))/,/^(?:[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],inclusive:!1},emu:{rules:[3],inclusive:!1},com:{rules:[4],inclusive:!1},INITIAL:{rules:[0,1,2,31],inclusive:!0}},n}();return t.lexer=i,n.prototype=t,t.Parser=n,new n}(),t.Parser=c,t.parse=function(n){return n.constructor===t.AST.ProgramNode?n:(t.Parser.yy=t.AST,t.Parser.parse(n))},t.AST={},t.AST.ProgramNode=function(n,i){this.type="program",this.statements=n,i&&(this.inverse=new t.AST.ProgramNode(i))},t.AST.MustacheNode=function(n,t,i){this.type="mustache",this.escaped=!i,this.hash=t;var r=this.id=n[0],u=this.params=n.slice(1),f=this.eligibleHelper=r.isSimple;this.isHelper=f&&(u.length||t)},t.AST.PartialNode=function(n,t){this.type="partial",this.partialName=n,this.context=t},t.AST.BlockNode=function(n,i,r,u){if(n.id.original!==u.original)throw new t.Exception(n.id.original+" doesn't match "+u.original);this.type="block",this.mustache=n,this.program=i,this.inverse=r,this.inverse&&!this.program&&(this.isInverse=!0)},t.AST.ContentNode=function(n){this.type="content",this.string=n},t.AST.HashNode=function(n){this.type="hash",this.pairs=n},t.AST.IdNode=function(n){var r,o,i;this.type="ID";var f="",u=[],e=0;for(r=0,o=n.length;r<o;r++)if(i=n[r].part,f+=(n[r].separator||"")+i,i===".."||i==="."||i==="this")if(u.length>0)throw new t.Exception("Invalid path: "+f);else i===".."?e++:this.isScoped=!0;else u.push(i);this.original=f,this.parts=u,this.string=u.join("."),this.depth=e,this.isSimple=n.length===1&&!this.isScoped&&e===0,this.stringModeValue=this.string},t.AST.PartialNameNode=function(n){this.type="PARTIAL_NAME",this.name=n.original},t.AST.DataNode=function(n){this.type="DATA",this.id=n},t.AST.StringNode=function(n){this.type="STRING",this.original=this.string=this.stringModeValue=n},t.AST.IntegerNode=function(n){this.type="INTEGER",this.original=this.integer=n,this.stringModeValue=Number(n)},t.AST.BooleanNode=function(n){this.type="BOOLEAN",this.bool=n,this.stringModeValue=n==="true"},t.AST.CommentNode=function(n){this.type="comment",this.comment=n},e=["description","fileName","lineNumber","message","name","number","stack"],t.Exception=function(){for(var t=Error.prototype.constructor.apply(this,arguments),n=0;n<e.length;n++)this[e[n]]=t[e[n]]},t.Exception.prototype=new Error,t.SafeString=function(n){this.string=n},t.SafeString.prototype.toString=function(){return this.string.toString()};var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},p=/[&<>"'`]/g,w=/[&<>"'`]/,b=function(n){return y[n]||"&amp;"};for(t.Utils={extend:function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},escapeExpression:function(n){return n instanceof t.SafeString?n.toString():n==null||n===!1?"":(n=n.toString(),!w.test(n))?n:n.replace(p,b)},isEmpty:function(n){return n||n===0?r.call(n)==="[object Array]"&&n.length===0?!0:!1:!0}},f=t.Compiler=function(){},f.prototype={compiler:f,disassemble:function(){for(var e=this.opcodes,n,r=[],u,t,i,f=0,o=e.length;f<o;f++)if(n=e[f],n.opcode==="DECLARE")r.push("DECLARE "+n.name+"="+n.value);else{for(u=[],i=0;i<n.args.length;i++)t=n.args[i],typeof t=="string"&&(t='"'+t.replace("\n","\\n")+'"'),u.push(t);r.push(n.opcode+" "+u.join(" "))}return r.join("\n")},equals:function(n){var i=this.opcodes.length,t,r,f,u;if(n.opcodes.length!==i)return!1;for(t=0;t<i;t++){if(r=this.opcodes[t],f=n.opcodes[t],r.opcode!==f.opcode||r.args.length!==f.args.length)return!1;for(u=0;u<r.args.length;u++)if(r.args[u]!==f.args[u])return!1}if(i=this.children.length,n.children.length!==i)return!1;for(t=0;t<i;t++)if(!this.children[t].equals(n.children[t]))return!1;return!0},guid:0,compile:function(n,t){var i,r;if(this.children=[],this.depths={list:[]},this.options=t,i=this.options.knownHelpers,this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0},i)for(r in i)this.options.knownHelpers[r]=i[r];return this.program(n)},accept:function(n){return this[n.type](n)},program:function(n){var u=n.statements,i,t,r;for(this.opcodes=[],t=0,r=u.length;t<r;t++)i=u[t],this[i.type](i);return this.isSimple=r===1,this.depths.list=this.depths.list.sort(function(n,t){return n-t}),this},compileProgram:function(n){var t=(new this.compiler).compile(n,this.options),u=this.guid++,r,i,f;for(this.usePartial=this.usePartial||t.usePartial,this.children[u]=t,i=0,f=t.depths.list.length;i<f;i++)if(r=t.depths.list[i],r<2)continue;else this.addDepth(r-1);return u},block:function(n){var r=n.mustache,t=n.program,i=n.inverse,u;t&&(t=this.compileProgram(t)),i&&(i=this.compileProgram(i)),u=this.classifyMustache(r),u==="helper"?this.helperMustache(r,t,i):u==="simple"?(this.simpleMustache(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousMustache(r,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(n){var u=n.pairs,r,t,i,f;for(this.opcode("pushHash"),i=0,f=u.length;i<f;i++)r=u[i],t=r[1],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.stringModeValue,t.type)):this.accept(t),this.opcode("assignToHash",r[0]);this.opcode("popHash")},partial:function(n){var t=n.partialName;this.usePartial=!0,n.context?this.ID(n.context):this.opcode("push","depth0"),this.opcode("invokePartial",t.name),this.opcode("append")},content:function(n){this.opcode("appendContent",n.string)},mustache:function(n){var i=this.options,t=this.classifyMustache(n);t==="simple"?this.simpleMustache(n):t==="helper"?this.helperMustache(n):this.ambiguousMustache(n),n.escaped&&!i.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousMustache:function(n,t,i){var r=n.id,u=r.parts[0],f=t!=null||i!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("invokeAmbiguous",u,f)},simpleMustache:function(n){var t=n.id;t.type==="DATA"?this.DATA(t):t.parts.length?this.ID(t):(this.addDepth(t.depth),this.opcode("getContext",t.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperMustache:function(n,t,i){var u=this.setupFullMustacheParams(n,t,i),r=n.id.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",u.length,r);else if(this.options.knownHelpersOnly)throw new Error("You specified knownHelpersOnly, but used the unknown helper "+r);else this.opcode("invokeHelper",u.length,r)},ID:function(n){var i,t,r;for(this.addDepth(n.depth),this.opcode("getContext",n.depth),i=n.parts[0],i?this.opcode("lookupOnContext",n.parts[0]):this.opcode("pushContext"),t=1,r=n.parts.length;t<r;t++)this.opcode("lookup",n.parts[t])},DATA:function(n){var r,i,u;if(this.options.data=!0,n.id.isScoped||n.id.depth)throw new t.Exception("Scoped data references are not supported: "+n.original);for(this.opcode("lookupData"),r=n.id.parts,i=0,u=r.length;i<u;i++)this.opcode("lookup",r[i])},STRING:function(n){this.opcode("pushString",n.string)},INTEGER:function(n){this.opcode("pushLiteral",n.integer)},BOOLEAN:function(n){this.opcode("pushLiteral",n.bool)},comment:function(){},opcode:function(n){this.opcodes.push({opcode:n,args:[].slice.call(arguments,1)})},declare:function(n,t){this.opcodes.push({opcode:"DECLARE",name:n,value:t})},addDepth:function(n){if(isNaN(n))throw new Error("EWOT");n!==0&&(this.depths[n]||(this.depths[n]=!0,this.depths.list.push(n)))},classifyMustache:function(n){var t=n.isHelper,i=n.eligibleHelper,r=this.options,u;return i&&!t&&(u=n.id.parts[0],r.knownHelpers[u]?t=!0:r.knownHelpersOnly&&(i=!1)),t?"helper":i?"ambiguous":"simple"},pushParams:function(n){for(var i=n.length,t;i--;)t=n[i],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.stringModeValue,t.type)):this[t.type](t)},setupMustacheParams:function(n){var t=n.params;return this.pushParams(t),n.hash?this.hash(n.hash):this.opcode("emptyHash"),t},setupFullMustacheParams:function(n,t,i){var r=n.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.hash?this.hash(n.hash):this.opcode("emptyHash"),r}},t.precompile=function(n,i){if(n==null||typeof n!="string"&&n.constructor!==t.AST.ProgramNode)throw new t.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+n);i=i||{},"data"in i||(i.data=!0);var r=t.parse(n),u=(new f).compile(r,i);return(new t.JavaScriptCompiler).compile(u,i)},t.compile=function(i,r){function e(){var u=t.parse(i),e=(new f).compile(u,r),o=(new t.JavaScriptCompiler).compile(e,r,n,!0);return t.template(o)}if(i==null||typeof i!="string"&&i.constructor!==t.AST.ProgramNode)throw new t.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+i);r=r||{},"data"in r||(r.data=!0);var u;return function(n,t){return u||(u=e()),u.call(this,n,t)}},u=function(n){this.value=n},i=t.JavaScriptCompiler=function(){},i.prototype={nameLookup:function(n,t){return/^[0-9]+$/.test(t)?n+"["+t+"]":i.isValidJavaScriptVariableName(t)?n+"."+t:n+"['"+t+"']"},appendToBuffer:function(n){return this.environment.isSimple?"return "+n+";":{appendToBuffer:!0,content:n,toString:function(){return"buffer += "+n+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(n,i,r,u){var e,f,o;for(this.environment=n,this.options=i||{},t.log(t.logger.DEBUG,this.environment.disassemble()+"\n\n"),this.name=this.environment.name,this.isChild=!!r,this.context=r||{programs:[],environments:[],aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:[]},this.compileStack=[],this.inlineStack=[],this.compileChildren(n,i),e=n.opcodes,this.i=0,o=e.length;this.i<o;this.i++)f=e[this.i],f.opcode==="DECLARE"?this[f.name]=f.value:this[f.opcode].apply(this,f.args);return this.createFunctionContext(u)},nextOpcode:function(){var n=this.environment.opcodes;return n[this.i+1]},eat:function(){this.i=this.i+1},preamble:function(){var t=[],i,n;this.isChild?t.push(""):(i=this.namespace,n="helpers = this.merge(helpers, "+i+".helpers);",this.environment.usePartial&&(n=n+" partials = this.merge(partials, "+i+".partials);"),this.options.data&&(n=n+" data = data || {};"),t.push(n)),this.environment.isSimple?t.push(""):t.push(", buffer = "+this.initializeBuffer()),this.lastContext=0,this.source=t},createFunctionContext:function(n){var s=this.stackVars.concat(this.registers.list),u,i,f,h,r,e,c,o;if(s.length>0&&(this.source[1]=this.source[1]+", "+s.join(", ")),!this.isChild)for(u in this.context.aliases)this.context.aliases.hasOwnProperty(u)&&(this.source[1]=this.source[1]+", "+u+"="+this.context.aliases[u]);for(this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.source.push("return buffer;"),i=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"],f=0,h=this.environment.depths.list.length;f<h;f++)i.push("depth"+this.environment.depths.list[f]);return r=this.mergeSource(),this.isChild||(e=t.COMPILER_REVISION,c=t.REVISION_CHANGES[e],r="this.compilerInfo = ["+e+",'"+c+"'];\n"+r),n?(i.push(r),Function.apply(this,i)):(o="function "+(this.name||"")+"("+i.join(",")+") {\n  "+r+"}",t.log(t.logger.DEBUG,o+"\n\n"),o)},mergeSource:function(){for(var r="",t,i,u=0,f=this.source.length;u<f;u++)i=this.source[u],i.appendToBuffer?t=t?t+"\n    + "+i.content:i.content:(t&&(r+="buffer += "+t+";\n  ",t=n),r+=i+"\n  ");return r},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var n=["depth0"];this.setupParams(0,n),this.replaceStack(function(t){return n.splice(1,0,t),"blockHelperMissing.call("+n.join(", ")+")"})},ambiguousBlockValue:function(){var n,t;this.context.aliases.blockHelperMissing="helpers.blockHelperMissing",n=["depth0"],this.setupParams(0,n),t=this.topStack(),n.splice(1,0,t),n[n.length-1]="options",this.source.push("if (!"+this.lastHelper+") { "+t+" = blockHelperMissing.call("+n.join(", ")+"); }")},appendContent:function(n){this.source.push(this.appendToBuffer(this.quotedString(n)))},append:function(){this.flushInline();var n=this.popStack();this.source.push("if("+n+" || "+n+" === 0) { "+this.appendToBuffer(n)+" }"),this.environment.isSimple&&this.source.push("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression",this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(n){this.lastContext!==n&&(this.lastContext=n)},lookupOnContext:function(n){this.push(this.nameLookup("depth"+this.lastContext,n,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"',this.replaceStack(function(n){return"typeof "+n+" === functionType ? "+n+".apply(depth0) : "+n})},lookup:function(n){this.replaceStack(function(t){return t+" == null || "+t+" === false ? "+t+" : "+this.nameLookup(t,n,"context")})},lookupData:function(){this.push("data")},pushStringParam:function(n,t){this.pushStackLiteral("depth"+this.lastContext),this.pushString(t),typeof n=="string"?this.pushString(n):this.pushStackLiteral(n)},emptyHash:function(){this.pushStackLiteral("{}"),this.options.stringParams&&(this.register("hashTypes","{}"),this.register("hashContexts","{}"))},pushHash:function(){this.hash={values:[],types:[],contexts:[]}},popHash:function(){var t=this.hash;this.hash=n,this.options.stringParams&&(this.register("hashContexts","{"+t.contexts.join(",")+"}"),this.register("hashTypes","{"+t.types.join(",")+"}")),this.push("{\n    "+t.values.join(",\n    ")+"\n  }")},pushString:function(n){this.pushStackLiteral(this.quotedString(n))},push:function(n){return this.inlineStack.push(n),n},pushLiteral:function(n){this.pushStackLiteral(n)},pushProgram:function(n){n!=null?this.pushStackLiteral(this.programExpression(n)):this.pushStackLiteral(null)},invokeHelper:function(n,t){this.context.aliases.helperMissing="helpers.helperMissing";var i=this.lastHelper=this.setupHelper(n,t,!0),r=this.nameLookup("depth"+this.lastContext,t,"context");this.push(i.name+" || "+r),this.replaceStack(function(n){return n+" ? "+n+".call("+i.callParams+") : helperMissing.call("+i.helperMissingParams+")"})},invokeKnownHelper:function(n,t){var i=this.setupHelper(n,t);this.push(i.name+".call("+i.callParams+")")},invokeAmbiguous:function(n,t){this.context.aliases.functionType='"function"',this.pushStackLiteral("{}");var r=this.setupHelper(0,n,t),u=this.lastHelper=this.nameLookup("helpers",n,"helper"),f=this.nameLookup("depth"+this.lastContext,n,"context"),i=this.nextStack();this.source.push("if ("+i+" = "+u+") { "+i+" = "+i+".call("+r.callParams+"); }"),this.source.push("else { "+i+" = "+f+"; "+i+" = typeof "+i+" === functionType ? "+i+".apply(depth0) : "+i+"; }")},invokePartial:function(n){var t=[this.nameLookup("partials",n,"partial"),"'"+n+"'",this.popStack(),"helpers","partials"];this.options.data&&t.push("data"),this.context.aliases.self="this",this.push("self.invokePartial("+t.join(", ")+")")},assignToHash:function(n){var u=this.popStack(),i,r,t;this.options.stringParams&&(r=this.popStack(),i=this.popStack()),t=this.hash,i&&t.contexts.push("'"+n+"': "+i),r&&t.types.push("'"+n+"': "+r),t.values.push("'"+n+"': ("+u+")")},compiler:i,compileChildren:function(n,t){for(var f=n.children,r,e,i,u=0,o=f.length;u<o;u++)r=f[u],e=new this.compiler,i=this.matchExistingProgram(r),i==null?(this.context.programs.push(""),i=this.context.programs.length,r.index=i,r.name="program"+i,this.context.programs[i]=e.compile(r,t,this.context),this.context.environments[i]=r):(r.index=i,r.name="program"+i)},matchExistingProgram:function(n){for(var i,t=0,r=this.context.environments.length;t<r;t++)if(i=this.context.environments[t],i&&i.equals(n))return t},programExpression:function(n){var t,e;if(this.context.aliases.self="this",n==null)return"self.noop";var i=this.environment.children[n],r=i.depths.list,u,f=[i.index,i.name,"data"];for(t=0,e=r.length;t<e;t++)u=r[t],u===1?f.push("depth0"):f.push("depth"+(u-1));return(r.length===0?"self.program(":"self.programWithDepth(")+f.join(", ")+")"},register:function(n,t){this.useRegister(n),this.source.push(n+" = "+t+";")},useRegister:function(n){this.registers[n]||(this.registers[n]=!0,this.registers.list.push(n))},pushStackLiteral:function(n){return this.push(new u(n))},pushStack:function(n){this.flushInline();var t=this.incrStack();return n&&this.source.push(t+" = "+n+";"),this.compileStack.push(t),t},replaceStack:function(n){var r="",e=this.isInline(),t,i,o,f;return e?(i=this.popStack(!0),i instanceof u?t=i.value:(o=this.stackSlot?this.topStackName():this.incrStack(),r="("+this.push(o)+" = "+i+"),",t=this.topStack())):t=this.topStack(),f=n.call(this,t),e?((this.inlineStack.length||this.compileStack.length)&&this.popStack(),this.push("("+r+f+")")):(/^stack/.test(t)||(t=this.nextStack()),this.source.push(t+" = ("+r+f+");")),t},nextStack:function(){return this.pushStack()},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var i=this.inlineStack,n,r,t;if(i.length)for(this.inlineStack=[],n=0,r=i.length;n<r;n++)t=i[n],t instanceof u?this.compileStack.push(t):this.pushStack(t)},isInline:function(){return this.inlineStack.length},popStack:function(n){var i=this.isInline(),t=(i?this.inlineStack:this.compileStack).pop();return!n&&t instanceof u?t.value:(i||this.stackSlot--,t)},topStack:function(n){var i=this.isInline()?this.inlineStack:this.compileStack,t=i[i.length-1];return!n&&t instanceof u?t.value:t},quotedString:function(n){return'"'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(n,t,i){var r=[],u;return this.setupParams(n,r,i),u=this.nameLookup("helpers",t,"helper"),{params:r,name:u,callParams:["depth0"].concat(r).join(", "),helperMissingParams:i&&["depth0",this.quotedString(t)].concat(r).join(", ")}},setupParams:function(n,t,i){var r=[],o=[],s=[],h,u,f,e;for(r.push("hash:"+this.popStack()),u=this.popStack(),f=this.popStack(),(f||u)&&(f||(this.context.aliases.self="this",f="self.noop"),u||(this.context.aliases.self="this",u="self.noop"),r.push("inverse:"+u),r.push("fn:"+f)),e=0;e<n;e++)h=this.popStack(),t.push(h),this.options.stringParams&&(s.push(this.popStack()),o.push(this.popStack()));return this.options.stringParams&&(r.push("contexts:["+o.join(",")+"]"),r.push("types:["+s.join(",")+"]"),r.push("hashContexts:hashContexts"),r.push("hashTypes:hashTypes")),this.options.data&&r.push("data:data"),r="{"+r.join(",")+"}",i?(this.register("options",r),t.push("options")):t.push(r),t.join(", ")}},h="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),l=i.RESERVED_WORDS={},o=0,a=h.length;o<a;o++)l[h[o]]=!0;i.isValidJavaScriptVariableName=function(n){return!i.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(n)?!0:!1},t.VM={template:function(n){var i={escapeExpression:t.Utils.escapeExpression,invokePartial:t.VM.invokePartial,programs:[],program:function(n,i,r){var u=this.programs[n];return r?u=t.VM.program(n,i,r):u||(u=this.programs[n]=t.VM.program(n,i)),u},merge:function(n,i){var r=n||i;return n&&i&&(r={},t.Utils.extend(r,i),t.Utils.extend(r,n)),r},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(r,u){var o,s;u=u||{};var c=n.call(i,t,r,u.helpers,u.partials,u.data),h=i.compilerInfo||[],f=h[0]||1,e=t.COMPILER_REVISION;if(f!==e)if(f<e){o=t.REVISION_CHANGES[e],s=t.REVISION_CHANGES[f];throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+s+").";}else throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+h[1]+").";return c}},programWithDepth:function(n,t,i){var u=Array.prototype.slice.call(arguments,3),r=function(n,r){return r=r||{},t.apply(this,[n,r.data||i].concat(u))};return r.program=n,r.depth=u.length,r},program:function(n,t,i){var r=function(n,r){return r=r||{},t(n,r.data||i)};return r.program=n,r.depth=0,r},noop:function(){return""},invokePartial:function(i,r,u,f,e,o){var s={helpers:f,partials:e,data:o};if(i===n)throw new t.Exception("The partial "+r+" could not be found");else{if(i instanceof Function)return i(u,s);if(t.compile)return e[r]=t.compile(i,{data:o!==n}),e[r](u,s);throw new t.Exception("The partial "+r+" could not be compiled when running in runtime-only mode");}}},t.template=t.VM.template,this.Handlebars=t}.call(this),function(n){function e(n,t){var i=(n&65535)+(t&65535),r=(n>>16)+(t>>16)+(i>>16);return r<<16|i&65535}function c(n,t){return n<<t|n>>>32-t}function s(n,t,i,r,u,f){return e(c(e(e(t,n),e(r,f)),u),i)}function i(n,t,i,r,u,f,e){return s(t&i|~t&r,n,t,u,f,e)}function r(n,t,i,r,u,f,e){return s(t&r|i&~r,n,t,u,f,e)}function u(n,t,i,r,u,f,e){return s(t^i^r,n,t,u,f,e)}function f(n,t,i,r,u,f,e){return s(i^(t|~r),n,t,u,f,e)}function l(n,t){var l;n[t>>5]|=128<<t%32,n[(t+64>>>9<<4)+14]=t;var o=1732584193,s=-271733879,h=-1732584194,c=271733878;for(l=0;l<n.length;l+=16){var a=o,v=s,y=h,p=c;o=i(o,s,h,c,n[l+0],7,-680876936),c=i(c,o,s,h,n[l+1],12,-389564586),h=i(h,c,o,s,n[l+2],17,606105819),s=i(s,h,c,o,n[l+3],22,-1044525330),o=i(o,s,h,c,n[l+4],7,-176418897),c=i(c,o,s,h,n[l+5],12,1200080426),h=i(h,c,o,s,n[l+6],17,-1473231341),s=i(s,h,c,o,n[l+7],22,-45705983),o=i(o,s,h,c,n[l+8],7,1770035416),c=i(c,o,s,h,n[l+9],12,-1958414417),h=i(h,c,o,s,n[l+10],17,-42063),s=i(s,h,c,o,n[l+11],22,-1990404162),o=i(o,s,h,c,n[l+12],7,1804603682),c=i(c,o,s,h,n[l+13],12,-40341101),h=i(h,c,o,s,n[l+14],17,-1502002290),s=i(s,h,c,o,n[l+15],22,1236535329),o=r(o,s,h,c,n[l+1],5,-165796510),c=r(c,o,s,h,n[l+6],9,-1069501632),h=r(h,c,o,s,n[l+11],14,643717713),s=r(s,h,c,o,n[l+0],20,-373897302),o=r(o,s,h,c,n[l+5],5,-701558691),c=r(c,o,s,h,n[l+10],9,38016083),h=r(h,c,o,s,n[l+15],14,-660478335),s=r(s,h,c,o,n[l+4],20,-405537848),o=r(o,s,h,c,n[l+9],5,568446438),c=r(c,o,s,h,n[l+14],9,-1019803690),h=r(h,c,o,s,n[l+3],14,-187363961),s=r(s,h,c,o,n[l+8],20,1163531501),o=r(o,s,h,c,n[l+13],5,-1444681467),c=r(c,o,s,h,n[l+2],9,-51403784),h=r(h,c,o,s,n[l+7],14,1735328473),s=r(s,h,c,o,n[l+12],20,-1926607734),o=u(o,s,h,c,n[l+5],4,-378558),c=u(c,o,s,h,n[l+8],11,-2022574463),h=u(h,c,o,s,n[l+11],16,1839030562),s=u(s,h,c,o,n[l+14],23,-35309556),o=u(o,s,h,c,n[l+1],4,-1530992060),c=u(c,o,s,h,n[l+4],11,1272893353),h=u(h,c,o,s,n[l+7],16,-155497632),s=u(s,h,c,o,n[l+10],23,-1094730640),o=u(o,s,h,c,n[l+13],4,681279174),c=u(c,o,s,h,n[l+0],11,-358537222),h=u(h,c,o,s,n[l+3],16,-722521979),s=u(s,h,c,o,n[l+6],23,76029189),o=u(o,s,h,c,n[l+9],4,-640364487),c=u(c,o,s,h,n[l+12],11,-421815835),h=u(h,c,o,s,n[l+15],16,530742520),s=u(s,h,c,o,n[l+2],23,-995338651),o=f(o,s,h,c,n[l+0],6,-198630844),c=f(c,o,s,h,n[l+7],10,1126891415),h=f(h,c,o,s,n[l+14],15,-1416354905),s=f(s,h,c,o,n[l+5],21,-57434055),o=f(o,s,h,c,n[l+12],6,1700485571),c=f(c,o,s,h,n[l+3],10,-1894986606),h=f(h,c,o,s,n[l+10],15,-1051523),s=f(s,h,c,o,n[l+1],21,-2054922799),o=f(o,s,h,c,n[l+8],6,1873313359),c=f(c,o,s,h,n[l+15],10,-30611744),h=f(h,c,o,s,n[l+6],15,-1560198380),s=f(s,h,c,o,n[l+13],21,1309151649),o=f(o,s,h,c,n[l+4],6,-145523070),c=f(c,o,s,h,n[l+11],10,-1120210379),h=f(h,c,o,s,n[l+2],15,718787259),s=f(s,h,c,o,n[l+9],21,-343485551),o=e(o,a),s=e(s,v),h=e(h,y),c=e(c,p)}return Array(o,s,h,c)}function a(n){for(var i=Array(),r=(1<<o)-1,t=0;t<n.length*o;t+=o)i[t>>5]|=(n.charCodeAt(t/o)&r)<<t%32;return i}function v(n){for(var i=h?"0123456789ABCDEF":"0123456789abcdef",r="",t=0;t<n.length*4;t++)r+=i.charAt(n[t>>2]>>t%4*8+4&15)+i.charAt(n[t>>2]>>t%4*8&15);return r}n=n||{};var h=0,o=8;n.compute=function(n){return v(l(a(n),n.length*o))}}(window.ds_hash=window.ds_hash||{}),function(n,r,u,f){function c(n){t="",n=n.toLowerCase();var r=n.replace("\n","n");for(r=r.replace(/\/\\/g,""),i=0;i<n.length;i++)n.charAt(i)!="\n"&&n.charAt(i)!="/"&&n.charAt(i)!="\\"?t+=n.charAt(i):n.charAt(i)=="\n"&&(t+="n");return t}function l(n,t){return fileName=n,filenameStart=0,filenameStart=fileName.lastIndexOf(t),filenameStart<0&&(filenameStart=0),filenameFinish=fileName.length,fileName=fileName.substring(filenameStart+t.length,filenameFinish)}function a(){var n="",t,r;if(window.navigator.plugins.length>0)if(opera){for(t="",r="Plugins",i=0;i<window.navigator.plugins.length;i++)plugin=window.navigator.plugins[i],t+=l(plugin.filename,r)+"|";t=t.substring(0,t.length-1),n=c(t)}else{for(i=0;i<window.navigator.plugins.length;i++)plugin=window.navigator.plugins[i],n+=plugin.filename+"|";n=n.substring(0,n.length-1)}else if(window.navigator.mimeTypes.length>0){for(i=0;i<window.navigator.mimeTypes.length;i++)mimeType=window.navigator.mimeTypes[i],n+=mimeType.type+"|";n=n.substring(0,n.length-1)}else if(ie){for(components=["7790769C-0471-11D2-AF11-00C04FA35D02","89820200-ECBD-11CF-8B85-00AA005B4340","283807B5-2C60-11D0-A31D-00AA00B92C03","4F216970-C90C-11D1-B5C7-0000F8051515","44BBA848-CC51-11CF-AAFA-00AA00B6015C","9381D8F2-0288-11D0-9501-00AA00B911A5","4F216970-C90C-11D1-B5C7-0000F8051515","5A8D6EE0-3E18-11D0-821E-444553540000","89820200-ECBD-11CF-8B85-00AA005B4383","08B0E5C0-4FCB-11CF-AAA5-00401C608555","45EA75A0-A269-11D1-B5BF-0000F8051515","DE5AED00-A4BF-11D1-9948-00C04F98BBC9","22D6F312-B0F6-11D0-94AB-0080C74C7E95","44BBA842-CC51-11CF-AAFA-00AA00B6015B","3AF36230-A269-11D1-B5BF-0000F8051515","44BBA840-CC51-11CF-AAFA-00AA00B6015C","CC2A9BA0-3BDD-11D0-821E-444553540000","08B0E5C0-4FCB-11CF-AAA5-00401C608500","D27CDB6E-AE6D-11CF-96B8-444553540000","2A202491-F00D-11CF-87CC-0020AFEECF20"],document.body.addBehavior("#default#clientCaps"),i=0;i<components.length;i++)ver=activeXDetect(components[i]),n+=ver?ver+"|":"null|";n=n.substring(0,n.length-1)}return n}var e=function(){for(var t={},n=u.config&&u.config.tracking?u.config.tracking:"tracking.docstoc.api",n=n.replace("https://","").replace("http://","");n[n.length-1]=="/";)n=n.substring(0,n.length-1);var i="/api/fwd",r="/bot/fingerprint",f="/activities";return t.Version="0.1.0-alpha",t.ForwardSendTo=function(){return n},t.FingerprintLocation=function(){return i+r},t.ActivityLocation=function(){return i+f},t.UseFontSwf=!1,t}(),o=n!==f,s=function(){},v=function(n){return typeof n=="function"?n():n},y=function(n){return typeof n=="function"?n:function(){return n}},h;if(u=u||{},u.track)try{delete u.track}catch(p){o&&n.log("unable to delete ds.track - will attempt redefinition")}if(r===f){o&&n.info("no jQuery, ds.track disabled!"),u.track={activity:s};return}try{h="|",ua=window.navigator.userAgent.toLowerCase(),opera=ua.indexOf("opera")>=0,ie=ua.indexOf("msie")>=0&&!opera,iemac=ie&&ua.indexOf("mac")>=0,moz=ua.indexOf("mozilla")&&!ie&&!opera,os=window.navigator.platform}catch(p){}u.track=function(){function o(){var t=r.Deferred();return setTimeout(function(){if(e.UseFontSwf)try{window.dsmetrics={},dsmetrics.fingerprint={},dsmetrics.fingerprint.FingerprintId="",dsmetrics.fingerprint.Fonts="",dsmetrics.fingerprint.Plugins="",dsmetrics.fingerprint.UserAgent="",dsmetrics.fingerprint.Resolution="";var i='<object id="fontListSWF" name="fontListSWF" type="application/x-shockwave-flash" data="/swf/FontList.swf" width="1" height="1" ><param name="movie" value="/swf/FontList.swf"><embed src="/swf/FontList.swf" width="1" height="1"><\/embed><\/object><\/body>',n=r("<div><\/div>");n.html(i),n.css("display","block"),n.appendTo(document.body)}catch(f){}setTimeout(function(){var i,r;try{if(dsmetrics.fingerprint.Fonts==""){try{i="",self.screen&&(i+=screen.colorDepth+"|"+screen.width+"|"+screen.height+"|"+screen.availHeight)}catch(f){i=""}dsmetrics.fingerprint.Resolution=ds_hash.compute(i);try{r=a()}catch(f){r=""}dsmetrics.fingerprint.Plugins=ds_hash.compute(r)}n.remove(),dsmetrics.fingerprint.Plugins.length>32&&(dsmetrics.fingerprint.Plugins=ds_hash.compute(dsmetrics.fingerprint.Plugins)),dsmetrics.fingerprint.Fonts.length>32&&(dsmetrics.fingerprint.Fonts=ds_hash.compute(dsmetrics.fingerprint.Fonts)),t.resolve(new u(dsmetrics.fingerprint.Fonts,dsmetrics.fingerprint.Plugins,dsmetrics.fingerprint.Resolution))}catch(f){t.reject(f)}},1e3)},0)}var n={},c="",l="",i=function(n,t,i){var r=this;if(!n)throw Error("Cannot create Activity with no Action name");return r.Action=n,r.Page=t||"",r.Location=i||"",r},u=function(n,t,i){var r=this;return r.fn=n,r.pl=t,r.res=i,r},s=function(n,t){if(!n||n===f)throw new Error("Cannot add an empty activity");t=t||r.Deferred();try{r.ajax(e.ActivityLocation(),{type:"POST",data:JSON.stringify(n),dataType:"json",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/json","ds-send-to-api":e.ForwardSendTo()}}).done(function(n,i,r){r.status==201?t.resolve():t.reject("Not created")}).fail(function(n,i,r){t.reject(r)})}catch(i){t.reject(i)}},h=function(n,t){if(!n||n===f)throw new Error("Cannot update an empty fingerprint");t=t||r.Deferred(),r.ajax(e.FingerprintLocation(),{type:"PUT",data:JSON.stringify(n),dataType:"json",contentType:"application/json"}).done(function(n,i,r){r.status===204?t.resolve():r.status>300?t.reject("Not modified"):t.reject("Rejected for unknown reason")}).fail(function(n,i,r){t.reject(r)})},t=function(n){return n.then||(n.then=function(i,r,u){return t(n.done(i).fail(r)).progress(u)}),n.otherwise||(n.otherwise=function(t){return n.then(f,t)}),n.ensure||(n.ensure=function(i){return t(n.always(i))}),n},c={};return!1&&o().done(function(n){c.fingerprint=n,n&&h(n)}),n.activity=function(n,t,u,e){var o,c,h;if(t=t||window.location.pathname,o=new i(n,t,u),e!==f&&e!==null){try{c=JSON.stringify(e)}catch(l){e={derr:"unable to serialize data",error:l}}o=r.extend({},o,{Data:e})}return h=r.Deferred(),s(o,h),h.promise()},n}(),u.track.Version=e.Version}(window.console,window.jQuery,window.ds=window.ds||{}),fordebuggingbreak=0,function(n,t,i,r){var u=!0;if(i.regPop)try{delete i.regPop}catch(f){u&&console.log("Unable to delete ds.track.adapter.regPop",f)}if(i.regPop=function(n,i,r,u){var f=u?"view-reg-popup-on-pkg":"view-reg-popup-on-doc",e=u?{packageid:r}:{docid:r};return t.push({event:f,control:i}),ds.track.activity(f,n,i,e)},i.regSuccess)try{delete i.regSuccess}catch(f){u&&console.log("Unable to delete ds.track.adapter.regSuccess",f)}if(i.regSuccess=function(){},i.regDocPageSuccess)try{delete i.regDocPageSuccess}catch(f){u&&console.log("Unable to delete ds.track.adapter.regDocPageSuccess",f)}if(i.regDocPageSuccess=function(n,i,r,u){var f="registered-member-on-doc";return t.push({event:f,control:i}),ds.track.activity(f,n,i,{docid:r,memid:u||0})},i.loginDocPage)try{delete i.loginDocPage}catch(f){u&&console.log("Unable to delete ds.track.adapter.loginDocPage",f)}if(i.loginDocPage=function(){},i.questionResponse)try{delete i.questionResponse}catch(f){u&&console.log("Unable to delete ds.track.adapter.questionResponse",f)}if(i.questionResponse=function(n,i){var f="register-questionnaire-response",r,u;if(!i){t.push({event:f,"question.seq":n});return}if(r=[],i.answers)for(u in i.answers)i.answers[u]&&r.push(i.answers[u]);t.push({event:f,"question.seq":n,"question.id":i.qid,"question.responses":r})},i.finishQuestionnaire)try{delete i.finishQuestionnaire}catch(f){u&&console.log("Unable to delete ds.track.adapter.finishQuestionnaire",f)}if(i.finishQuestionnaire=function(n){var i="register-questionnaire-completed";t.push({event:i,"questions.total":n})},i.submitSubscription)try{delete i.submitSubscription}catch(f){u&&console.log("Unable to delete ds.track.adapter.submitSubscription",f)}if(i.submitSubscription=function(n,i,r,u,f,e){var s="submit-subscribe",o={event:s};n&&(o["subscription.campaign"]=n),i&&(o["subscription.group"]=i),r&&(o["subscription.plan"]=r),u&&(o["subscription.interval"]=u),f&&(o["subscription.every"]=f),e&&(o["subscription.priceUSD"]=e),t.push(o)},i.subscribeSuccess)try{delete i.subscribeSuccess}catch(f){u&&console.log("Unable to delete ds.track.adapter.subscribeSuccess",f)}i.subscribeSuccess=function(n,i,r){var u="subscribed";t.push({event:u,"subscription.interval":n,"subscription.every":i,"subscription.priceUSD":r})},i.subPeriodLabel=function(n){function i(n,t,i){return i?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()+" ("+t+")":n+" ("+t+")"}var t={choices:["Daily","Weekly","BiWeekly","Monthly","Quarterly","Semi-Annually","Annually","BiAnnually"],Daily:0,Weekly:1,BiWeekly:2,Monthly:3,Quarterly:4,SemiAnnually:5,Annually:6,BiAnnually:7,monthly:function(n){switch(n){case 1:return t.choices[t.Monthly];case 3:return t.choices[t.Quarterly];case 6:return t.choices[t.SemiAnnually];case 12:return t.choices[t.Annually]}return i(t.choices[t.Monthly],n)},daily:function(n){switch(n){case 1:return t.choices[t.Daily];case 5:return t.choices[t.Weekly];case 7:return t.choices[t.Weekly];case 14:return t.choices[t.BiWeekly];case 28:return t.choices[t.Monthly];case 30:return t.choices[t.Monthly];case 31:return t.choices[t.Monthly];case 365:return t.choices[t.Annually]}return i(t.choices[t.Daily],n)},weekly:function(n){switch(n){case 1:return t.choices[t.Weekly];case 4:return t.choices[t.Monthly];case 52:return t.choices[t.Annually]}return i(t.choices[t.Weekly],n)},yearly:function(n){switch(n){case 1:return t.choices[t.Annually];case 2:return t.choices[t.BiAnnually]}return i(t.choices[t.Annually],n)}};return n?(n.interval||(n.interval=n.period||""),!n.interval)?r:(n.interval=n.interval.toLowerCase(),n.every=+(n.every||"1"),t[n.interval])?t[n.interval](n.every):i(n.interval,n.every,!0):r},i.ecommerceTransaction=function(n,r,u,f,e,o,s){s=s||0;var h="Subscription - "+(i.subPeriodLabel({interval:u,every:f})||"Unknown");t.push({transactionId:""+n,transactionAffiliation:"Docstoc.com",transactionTotal:o,transactionTax:s,transactionShipping:0,transactionProducts:[{sku:r,name:h,category:""+e,price:o,quantity:1}]})},i.youtubePlay=function(n,i,r,u,f,e){var o=u?"course-play":"video-play";return u?(window.dataLayer&&t.push({event:o,"course.id":r,"course.chapter":f,"course.lesson":e}),ds.track.activity(o,n,i,{courseId:r,chapterId:f,lessonId:e})):(window.dataLayer&&t.push({event:o,"video.id":r}),ds.track.activity(o,n,i,{videoId:r}))},i.socialShare=function(n,i,r,u,f,e){var o="social-share";return window.dataLayer&&t.push({event:o,"social.network":r,"social.action":u,"social.target":n}),ds.track.activity(o,n,i,{id:f,resourceType:e,socialMediaType:r,socialAction:u})},i.articleWidgetTrack=function(n,i,r,u,f){window.dataLayer&&t.push({event:n,"topic.asked":r,"article.widget.source":u,"article.widget.comment":f})},i.foodieBanner=function(n,i,r){window.dataLayer&&t.push({event:n,memberId:r,url:i})},i.myBusiness=function(n,i,r){window.dataLayer&&t.push({event:n,mbIndustry:i,mbSubscribed:r})}}(ds.track,window.dataLayer=window.dataLayer||[],ds.track.adapter=ds.track.adapter||{}),$(document).ready(function(){$("#embedModal").hide(),$(".width-position .measurement").val("630"),$(".height-position .measurement").val("550"),$("#copy-all a").click(function(){var t=$(this).closest("div.embed-copy").next(".embed-text");t.select()})}),$(document).load(function(){$("#embedModal").hide()}),$("#socialEmbed").click(function(n){n.preventDefault(),$(document).trigger("embedPopup")}),$(document).bind("embedPopup",function(){$("#embedModal").fadeIn(200),$(".modal-backdrop").fadeIn(500)}),$(".close, .modal-backdrop").click(function(){$(document).trigger("modal-close")}),$("#embed-done").click(function(n){n.preventDefault(),$(document).trigger("modal-close")}),$(document).bind("modal-close",function(){$(".modal-backdrop").hide(),$(".modal").hide(),$(".loader-display").hide()}),$(".width-position .measurement, .height-position .measurement").change(function(){var n=updateEmdedCode();$(document).trigger("keypress")}),$('.input[type="text"]').bind("keypress",function(n){if(n.which==13){n.preventDefault();var t=updateEmdedCode()}}),$('input[type="radio"], #embedModal input[type="checkbox"]').click(function(){var n=updateEmdedCode()}),code=updateEmdedCode(),window.ds=window.ds||{},ds.account=ds.account||{},ds.account.documentModals=function(n,t,i,r){var u=this,r=$.extend({},ds.account.documentModelOptions,r),e=ds.config.FbBtnGone,f;n.setDocId(r.docId),t.setDocId(r.docId),$(document).bind("RegisterDownload",function(){ds.account.Download(r.docId,0,function(n){n.Success?($("#joinModal").hide(),$("#loginModal").hide(),$(".modal-backdrop").hide(),i().always(function(){window.location.href=n.Value}),$(document).trigger("Download")):(u.setupModals(0),$(document).trigger("join"),$("#joinModal .join-docstoc").hide(),$(".modal-header .subtitle").addClass("docfont-18"),ds.track.adapter.regPop(r.page,"btn-download",r.docId))},function(){u.setupModals(0),$(document).trigger("join"),ds.track.adapter.regPop(r.page,"btn-download",r.docId)})}),$(document).bind("RegisterPackageDownload",function(){console.log("RegisterPackageDownload"),r.page="Package_Detail",ds.account.PackageDownload(r.docId,function(n){n.Success?($("#joinModal").hide(),$("#loginModal").hide(),$(".modal-backdrop").hide(),i().always(function(){window.location.href=n.Value}),$(document).trigger("Download")):(u.setupModals(0),$(document).trigger("join"),$("#joinModal .join-docstoc").hide(),$(".modal-header .subtitle").addClass("docfont-18"),ds.track.adapter.regPop(r.page,"btn-download",r.docId,!0))},function(){u.setupModals(0),$(document).trigger("join"),ds.track.adapter.regPop(r.page,"btn-download",r.docId,!0)})}),$(document).bind("RegisterPrint",function(){ds.account.isLoggedIn(r.docId,1,function(n){n.Success?($("#joinModal").hide(),$("#loginModal").hide(),$(".modal-backdrop").hide(),i().always(function(){window.location.href=n.Value}),$(document).trigger("Print")):(u.setupModals(1),$(document).trigger("join"),$("#joinModal .join-docstoc").hide(),$(".modal-header .subtitle").addClass("docfont-18"),ds.track.adapter.regPop(r.page,"btn-print",r.docId))},function(){u.setupModals(1),$(document).trigger("join"),ds.track.adapter.regPop(r.page,"btn-print",r.docId)})}),this.setupModals=function(u){u===1?($(".modal-header h3",n.root).html("YOU'RE ALMOST READY TO PRINT"),$(".modal-header .subtitle",n.root).html('Register &amp; get access to "'+r.Title+'"')):($(".modal-header h3",n.root).html("YOU'RE ALMOST READY TO DOWNLOAD"),$(".modal-header .subtitle",n.root).html('Register &amp; get access to "'+r.Title+'"')),n.registerSuccess=function(n){ds.track.adapter.regDocPageSuccess(r.page,"popup-questionnaire",r.docId,n.MemId),$("#joinModal").hide(),$("#loginModal").hide(),i().always(function(){r.page=="Package_Detail"?ds.account.PackageDownload(r.docId,function(n){location.href=n.Value},function(){console.log("error in joinModal.registerSuccess")}):ds.account.getAction(r.docId,u,function(n){location.href="https://"+location.host+"/account/RedirectBack?next="+encodeURIComponent(n.Url)},function(){location.href="https://"+location.host+"/account/RedirectBack?next="+encodeURIComponent(n.Url)})})},t.loginSuccess=function(n){ds.track.activity("logged-in-on-doc",r.page,"popup-questionnaire",{docid:r.docId,memid:n.MemId||0}),$("#joinModal").hide(),$("#loginModal").hide(),$(".modal-backdrop").hide(),i().always(function(){r.page=="Package_Detail"?ds.account.PackageDownload(r.docId,function(n){location.href=n.Value},function(){console.log("error in joinModal.registerSuccess")}):ds.account.getAction(r.docId,u,function(n){location.href="https://"+location.host+"/account/RedirectBack?next="+encodeURIComponent(n.Url)},function(){location.href="https://"+location.host+"/account/RedirectBack?next="+encodeURIComponent(n.Url)})})}},f=ds.utils.oneTimePromise(function(){return ds.apis.MembersApi.bucketUser(r.docId||undefined,"")}),this.getGroupId=function(){return f().then(function(n){return console.log("promise returned"),n.SubscriptionGroup.Id},function(){return 0})},$(document).trigger("RegPopReady")},function(n,t){var r=new n.account.documentModals(modal,loginModal,n.runtime.registrationQuestionnaire||n.utils.noopPromise,t)}(window.ds,{docId:window.RegFlowData?RegFlowData.DocID||0:0,page:window.RegFlowData?RegFlowData.Page||"Document_Detail":"Document_Detail",Title:window.swfParams?swfParams.DocTitle:""})