if(typeof authus=="undefined"){authus={}}if(typeof authus.lw=="undefined"){authus.lw={}}if(typeof authus.internal=="undefined"){authus.internal={}}authus.IE6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;authus.getIEVersion=function(){var d=-1;if(navigator.appName=="Microsoft Internet Explorer"){var a=navigator.userAgent;var b=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(b.exec(a)!=null){try{d=parseFloat(RegExp.$1)}catch(c){}}}return d};authus.IEVersion=authus.getIEVersion();authus.postMessage=false;if(typeof window.postMessage!=="undefined"){if(authus.IEVersion>0&&authus.IEVersion<8){}else{authus.postMessage=true}}authus.nonceSize=20;authus.addEventHandler=function(c,b,a){if(c.attachEvent){c.attachEvent("on"+b,a)}else{c.addEventListener(b,a,false)}};authus.randomHex=function(g){var d="0123456789abcdef";var b="";for(var a=0;a<2*g;a++){try{var c=Math.floor(16*Math.random());b+=d.charAt(c)}catch(f){b+=d.charAt(6)}}return b};authus.NVP=function(b,a){this.name=b;this.value=a};authus.makeNVPString=function(d){var b="";if(!d){return b}for(var c in d){var a=d[c];if(c&&a){if(b.length>0){b+="&"}b+=c+"="+encodeURIComponent(a)}}return b};authus.parseNVPString=function(d){if(!(typeof(d)=="string")||!d.indexOf("=")>0){return{}}var a={};var e=d.split("&");for(var c=0;c<e.length;c++){var b=e[c].split("=");if(b.length!=2){continue}a[b[0]]=decodeURIComponent(b[1])}return a};authus.internal.handleIsSafe=function(b){if(typeof b=="object"){return true}if(typeof b!="string"){return false}var a=b.replace(/parent/gi,"").replace(/window/gi,"").replace(/\./g,"");if(a.length>0){return false}else{return true}};authus.internal.getHandleObject=function(b){if(!authus.internal.handleIsSafe(b)){return null}if(typeof b=="object"){return b}else{var c=authus.internal.getObjFromHandle(b);var a=true;if(typeof c!="object"){a=false}if(a){return c}else{return null}}};authus.internal.getObjFromHandle=function(e){var a=e.split(".");if(!a){return null}var d=null;if(a[0]&&a[0]=="window"){d=window}else{if(a[0]&&a[0]=="parent"){d=window.parent}else{return null}}for(var b=1;b<a.length;b++){var c=a[b];if(c!="window"&&c!="parent"){return null}d=d[c]}return d};authus.internal.noncify=function(c){if(typeof c!="string"){return c}var a=c.match(/^\[\[[0-9a-f]*\]\]/);if(!a||!a.length||a.length!=1||nw[0].length!=(2*authus.nonceSize)+4){var b=authus.randomHex(authus.nonceSize);return"[["+b+"]]"+c}else{return c}};authus.internal.extractNonce=function(b){if(typeof b!="string"){return null}var a=b.match(/^\[\[[0-9a-f]*\]\]/);if(!a||!a.length||a.length!=1||a[0].length!=(2*authus.nonceSize)+4){return null}return a[0].substring(2,a[0].length-2)};authus.internal.extractMessage=function(b){if(typeof b!="string"){return null}var a=b.match(/^\[\[[0-9a-f]*\]\]/);if(!a||!a.length||a.length!=1||a[0].length!=(2*authus.nonceSize)+4){return null}return b.substring(a[0].length)};if(typeof window.opera!="undefined"){if(parseInt(window.opera.version())==9){Event.prototype.__defineGetter__("origin",function(){if(event.uri){var a=event.uri.toString().match(/http.{0,1}:\/\/[^\/]+(?=\/)/i);if(a&&a.length&&a.length==1){return a[0]}else{return"https://"+this.domain}}else{return"https://"+this.domain}})}}authus.makeLocator=function(a,b){return a+"-"+b.toUpperCase()};authus.makeXmlReference=function(a,b){return authus.makeLocator(a,b)+".xml"};authus.handleMessageEvent=function(f){var a=f.data;var c=f.source;var b=f.origin;var e=authus.internal.extractMessage(a);var d=authus.internal.extractNonce(a);var g=authus.internal.processMessage(d,e,b);if(g){c.postMessage(g,b)}};authus.internal.processMessage=function(c,d,b){var a=b.match(/^https:\/\/[^\/]*\.authus\.com$/);if(!a||!a.length||a.length!=1){return null}var g=null;try{g=authus.messageDispatch(d)}catch(f){}if(!g){return null}if((typeof g=="object")&&g.reply){return"[["+c+"]]"+g.text}else{return null}};authus.internal.handleMessageCall=function(b,c,a){return authus.internal.processMessage(b,c,a)};authus.addEventHandler(window,"message",authus.handleMessageEvent);if(typeof authus=="undefined"){authus={}}if(typeof authus.png=="undefined"){authus.png={}}authus.png.__arVersion=navigator.appVersion.split("MSIE");authus.png.__version=parseFloat(authus.png.__arVersion[1]);authus.png.__needsPngFilter=false;authus.png.__needsAlphaFilter=false;if(authus.png.__arVersion.length>1){authus.png.__needsAlphaFilter=true;authus.png.__needsPngFilter=true}authus.png.__SUFFIX="-outer";authus.png.__IE6_ALPHA_IMG_MIN_HEIGHT=20;authus.png.__allPngImages=[];document.getPngImageById=function(a){return authus.png.__allPngImages[a]};authus.png.PngImage=function(g,a,b,d,f,c,h,e){this.src=a;this.id=b;this.left=d;this.top=f;this.width=c;this.height=h;if(e===null){e=1}this.opacity=e;authus.png.__allPngImages[b]=this;this.setId=authus.png.__setId;this.getPosition=authus.png.__getPosition;this.setPosition=authus.png.__setPosition;this.getSize=authus.png.__getSize;this.setSize=authus.png.__setSize;this.setOpacity=authus.png.__setOpacity;this.setZIndex=authus.png.__setZIndex;var k;if(!authus.png.__needsPngFilter){k=document.createElement("img");k.id=b;k.src=a;k.style.width=c+"px";k.style.height=h+"px"}else{k=document.createElement("div");k.id=b;k.style.width=c+"px";k.style.height=h+"px";var j="scale";k.style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='"+j+"')"}k.style.border="none";var i=document.createElement("div");i.id=b+"-outer";i.style.position="absolute";i.style.width=c+"px";i.style.height=h+"px";i.style.left=d+"px";i.style.top=f+"px";i.style.border="none";if(authus.png.__needsAlphaFilter){i.style.filter+="progid:DXImageTransform.Microsoft.Alpha(opacity="+e*100+")"}else{k.style.opacity=e}i.appendChild(k);g.appendChild(i)};authus.png.__setId=function(a){authus.png.__allPngImages[this.id]=null;this.id=a;authus.png.__allPngImages[a]=this};authus.png.__setSize=function(a,d){var b=document.getElementById(this.id);var c=document.getElementById(this.id+authus.png.__SUFFIX);c.style.width=a+"px";c.style.height=d+"px";b.style.width=a+"px";b.style.height=d+"px";if(authus.png.__needsPngFilter){b.filters["DXImageTransform.Microsoft.AlphaImageLoader"].sizingMethod="scale"}};authus.png.__setZIndex=function(c){var a=document.getElementById(this.id);var b=document.getElementById(this.id+authus.png.__SUFFIX);b.style.zIndex=c;a.style.zIndex=c};authus.png.__getZIndex=function(){var a=document.getElementById(this.id+authus.png.__SUFFIX);return a.style.zIndex};authus.png.__getSize=function(){var a=document.getElementById(this.id+authus.png.__SUFFIX);return{w:a.offsetWidth,h:a.offsetHeight}};authus.png.__getPosition=function(){var a=document.getElementById(this.id+authus.png.__SUFFIX);return{x:a.offsetLeft,y:a.offsetTop}};authus.png.__setPosition=function(a,c){var b=document.getElementById(this.id+authus.png.__SUFFIX);b.style.left=a+"px";b.style.top=c+"px"};authus.png.__setOpacity=function(d){if(authus.png.__needsAlphaFilter){var b=document.getElementById(this.id+authus.png.__SUFFIX);var c=Math.round(d*100);b.filters["DXImageTransform.Microsoft.Alpha"].opacity=c}else{var a=document.getElementById(this.id);a.style.opacity=d}};authus.generateFormValue=function(f,e,c,h,g){var b=c+"-"+h;var d='<?xml version="1.0" encoding="UTF-8"?><get_'+g+' version="01"><retailer_origin url="'+f+'"/><content_origin url="'+e+'"/><assertions_files><assertions_file value="'+b+'"/></assertions_files></get_'+g+">";d=d.replace(/"/g,"%22");return d};authus.makeRequestForm=function(k,f,b,d,j,h){var a=authus.SERVER+authus.VERSION+"/"+j+".html";var c;try{var g='<form style="display: none; visibility: hidden" action="'+a+'" method="POST"></form>';if(h){g='<form style="display: none; visibility: hidden" action="'+a+'" method="POST" target="'+h+'"></form>'}c=document.createElement(g)}catch(e){c=document.createElement("form");c.style.display="none";c.style.visibility="hidden";c.action=a;c.method="POST";if(h){c.target=h}}if(!c){return}else{}var i;n="xml";v=authus.generateFormValue(k,f,b,d,j);try{i=document.createElement('<input type="hidden" name="'+n+'" value="'+v+'">')}catch(e){i=document.createElement("input");i.type="hidden";i.name=n;i.value=v}if(!i){return}else{}c.appendChild(i);try{document.body.appendChild(c)}catch(e){}return c};if(typeof authus=="undefined"){authus={}}if(typeof authus.lw=="undefined"){authus.lw={}}authus.lw.counter=1;authus.lw.getCounter=function(){return ++authus.lw.counter};authus.lw.WIDTH=730;authus.lw.HEIGHT=370;authus.SERVER="https://staging.authus.com/A2/";authus.VERSION="1";authus.IMAGE_DIR=authus.SERVER+authus.VERSION+"/images/";authus.lw.preloadNames=["lightbox.png","authus_shadow_bottom.png","authus_shadow_bottom_left_corner.png","authus_shadow_bottom_right_corner.png","authus_shadow_right.png","authus_shadow_top_right_corner.png",];authus.lw.persistent=[];authus.lw.preloadImages=function(){var c=authus.IMAGE_DIR;if(document.images){for(var b=0;b<authus.lw.preloadNames.length;b++){var a=new Image();authus.lw.persistent.push(a);a.src=c+authus.lw.preloadNames[b]}}};setTimeout(authus.lw.preloadImages,50);authus.lw.instances={};authus.detectMacXFF2=function(){var b=navigator.userAgent.toLowerCase();if(/firefox[\/\s](\d+\.\d+)/.test(b)){var a=new Number(RegExp.$1);if(a<3&&b.indexOf("mac")!=-1){return true}}};authus.isFF2Mac=authus.detectMacXFF2();authus.lw.method="GET";authus.lw.init=function(M,i,N,s){var j=window.location.protocol+"//"+window.location.host;var J=null;if(s&&s!=""){J=s}var e;if(authus.lw.method=="POST"){e=authus.SERVER+authus.VERSION+"/lw-launch.html#";var K={};K.retailerOrigin=j;K.contentOrigin=M;K.UID=i;K.lang=N;if(J){K.docDomain=J}e+=authus.makeNVPString(K)}else{e=authus.SERVER+authus.VERSION+"/lw.html?";var k={};k.ro=j;k.co=M;k.a=(i+"-"+N);if(J){k.dd=J}e+=authus.makeNVPString(k)}var q=document.body.clientWidth;var H=document.body.clientHeight;var z=document.viewport.getDimensions().width;var L=document.viewport.getDimensions().height;this.scrollpos=authus.lw.scrollpos();var B=this.scrollpos.left;var r=this.scrollpos.top;if(!q||!z){q=z=Math.max(q,z)}if(!H||!L){H=L=Math.max(H,L)}var m=z;var D=L;var A=document.createElement("div");if(authus.isFF2Mac){A.style.display="none"}else{A.style.visibility="hidden"}A.style.position="absolute";A.style.left="0px";A.style.top="0px";A.style.width=m+"px";A.style.height=D+"px";var u=new authus.png.PngImage(A,authus.IMAGE_DIR+"lightbox.png","overlay_png",0,0,z,L,1);var d=authus.makeLocator(i,N);authus.lw.instances[d]=A;A.onclick=function(){authus.lw.closeOverlay(d)};var y=0.6;var E=Math.floor((m-authus.lw.WIDTH)/2)-B;var C=Math.floor((D-authus.lw.HEIGHT)/2)-r;var G=authus.lw.WIDTH;var c=authus.lw.HEIGHT;var I=0;var F;try{F=document.createElement('<iframe src="'+e+'" style="position: absolute; top: '+C+"px; left: "+E+"px; width: "+G+"px; height: "+c+'px;" cellspacing="0" frameborder="0" marginwidth="0" marginheight="0" noresize="noresize" scrolling="no"></iframe>')}catch(g){F=document.createElement("iframe");F.style.position="absolute";F.style.top=C+"px";F.style.left=E+"px";F.style.width=G+"px";F.style.height=c+"px";F.style.borderStyle="none";F.src=e}F.style.padding="0px";F.style.margin="0px";F.style.overflow="hidden";A.appendChild(F);u=new authus.png.PngImage(A,authus.IMAGE_DIR+"authus_shadow_top_right_corner.png","png0",E+G+I,C+I,14,38,y);u=new authus.png.PngImage(A,authus.IMAGE_DIR+"authus_shadow_right.png","png1",E+G+I,C+38+I,14,c-38,y);u=new authus.png.PngImage(A,authus.IMAGE_DIR+"authus_shadow_bottom_right_corner.png","png2",E+G+I,C+c+I,14,14,y);u=new authus.png.PngImage(A,authus.IMAGE_DIR+"authus_shadow_bottom_left_corner.png","png3",E+I,C+c+I,20,14,y);u=new authus.png.PngImage(A,authus.IMAGE_DIR+"authus_shadow_bottom.png","png4",E+20+I,C+c+I,G-20,14,y);document.body.appendChild(A);setTimeout(authus.fixFirefoxTransferIssue,100)};authus.lookupWindow=function(a,b,d,c){authus.addEventHandler(window,"load",function(){authus.lw.init(a,b,d,c)})};authus.lw.showOverlay=function(a){var b=authus.lw.instances[a];if(!b){return}authus.lw.hideSelectBoxes();var d=authus.lw.findHighestZIndex()+10;b.style.zIndex=d;if(authus.isFF2Mac){b.style.display=""}else{b.style.visibility="visible"}try{document.body.style.cursor="default"}catch(c){}};authus.lw.closeOverlay=function(a){var b=authus.lw.instances[a];if(!b){return}if(authus.isFF2Mac){b.style.display="none"}else{b.style.visibility="hidden"}b.style.zIndex=0;authus.lw.showSelectBoxes()};authus.lw.hideSelectBoxes=function(){var b=document.getElementsByTagName("select");for(var a=0;a!=b.length;a++){b[a].style.visibility="hidden"}};authus.lw.showSelectBoxes=function(){var b=document.getElementsByTagName("select");for(var a=0;a!=b.length;a++){b[a].style.visibility="visible"}};authus.lw.findHighestZIndex=function(){var a=authus.lw.maxZ(0,document.body.childNodes);return a};authus.lw.maxZ=function(e,b){if(!b||!b.length||b.length===0){return e}for(var c=0;c<b.length;c++){var f=b[c];if(f.style&&f.style.zIndex){var a=0;try{a=parseInt(f.style.zIndex,10)}catch(d){}if(a>e){e=a}if(f.childNodes&&f.childNodes>0){e=authus.lw.maxZ(e,f.childNodes)}}}return e};var Prototype={Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)}};document.viewport={getDimensions:function(){var a=0;var b=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth===0)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}}else{a=window.innerWidth;b=window.innerHeight}return{width:a,height:b}},getScrollOffsets:function(){var a=0;var b=0;if(!window.pageYOffset){if(!(document.documentElement.scrollTop===0)){b=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else{b=document.body.scrollTop;a=document.body.scrollLeft}}else{a=window.pageXOffset;b=window.pageYOffset}return{offsetX:a,offsetY:b}}};authus.lw.scrollpos=function(){if(authus&&authus.IE6){var f=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var b=document.all?f.scrollLeft:window.pageXOffset;var c=document.all?f.scrollTop:window.pageYOffset;return{left:b,top:c}}else{try{if(Prototype.Browser.IE&&document.documentElement!==undefined){return{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}var a=(document.all)?document.body.scrollLeft:window.pageXOffset;var g=(document.all)?document.body.scrollTop:window.pageYOffset;return{left:a,top:g}}catch(d){return{left:0,top:0}}}};authus.fixFirefoxTransferIssue=function(){var a=new Image();var b=authus.randomHex(20);a.src=authus.IMAGE_DIR+"spacer.gif?"+b};authus.messageDispatch=function(c){if(c.indexOf("exposeLW:")===0){var b=c.replace(/^exposeLW:/,"");authus.lw.showOverlay(b);return{reply:true,text:"OK"}}else{if(c.indexOf("closeLW:")===0){var b=c.replace(/^closeLW:/,"");authus.lw.closeOverlay(b);return{reply:true,text:"OK"}}else{if(c=="firefox:transfer"){authus.fixFirefoxTransferIssue();return{reply:true,text:"OK"}}else{if(c.indexOf("echo:")===0){var a=c.replace(/^echo:/,"");return{reply:true,text:a}}}}}return null};