"Xltech.Common".namespace();"Xltech.Wri".namespace();Xltech.Wri.Help=function(){var a={};a.displayHelp=function(a){Xltech.Common.Popup.display(a,400,600)};return a}();Xltech.Wri.Faq=function(){var a={};a.readQuestion=function(a){$.ajax({type:"POST",url:"/faq/ReadQuestion",data:"id="+a,sucess:function(){}})};return a}();Xltech.Wri.Menu=function(){var a={};a.switchImage=function(a){var b=$(a).attr("src"),c=$(a).attr("id");a.src=c;a.id=b};return a}();$(document).ready(function(){$.validator.addMethod("creditCardExpirationDate",function(){return Xltech.Common.CreditCard.validateExpiration($("#ExpirationYear").val(),$("#ExpirationMonth").val())},"The credit card expiration date is in the past");$("input.required_field_light,select.required_field_light").each(function(){$(this).after('<span class="required_field_light">*</span>')});$("input.required_field_dark,select.required_field_dark").each(function(){$(this).after('<span class="required_field_dark">*</span>')});$("#notify-container").fadeTo(3e3,.01,function(){$(this).slideUp("slow",function(){$(this).remove()})});var a=$(window).height()-80;$("#inbox").height(a);$(window).resize(function(){$("#inbox").height($(window).height()-80)});$("#nav a").bind("mouseover mouseout",function(){$(this).children("img.unselected").each(function(){Xltech.Wri.Menu.switchImage(this)})});$("#ribbon a").bind("mouseover mouseout",function(){$(this).children("img.unselected").each(function(){Xltech.Wri.Menu.switchImage(this)})});$("#sub-panel").click(function(){$("#top-panel").slideToggle();var b=$("#shText"),a=$("#shText").html();a=a=="Close Panel"?'<span id="shText">Open Panel</span>':'<span id="shText">Close Panel</span>';b.replaceWith(a)});$.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",autoScale:true,autoDimensions:false,centerOnScroll:true,width:560,height:340,imageScale:true,zoomOpacity:true,overlayShow:true,overlayOpacity:.65,overlayColor:"#000",transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:false,enableEscapeButton:true,hideOnOverlayClick:true,hideOnContentClick:true,titleShow:true,titlePosition:"outside",titleFormat:null,itemArray:[],callbackOnStart:null,callbackOnShow:null,callbackOnClose:null,ajax:{},swf:{wmode:"transparent"},onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};$("a#inline").fancybox({width:640,height:505});$("a#video").fancybox({width:640,height:505});$("a#linkprint").fancybox({width:710,height:660});$("#btnPrint").click(function(){$("a#linkprint").trigger("click")});$("a#inline").fancybox({width:640,height:505});$("a#tos").fancybox({width:550,height:520});$("a.blog").fancybox({width:725,height:520});$("a#analytics").fancybox({width:710,height:520});$("a#templates").fancybox({width:710,height:520});$("a#toolbar").fancybox({width:710,height:520});$("a#processingStatus").fancybox({hideOnContentClick:false,hideOnOverlayClick:false,padding:0,enableEscapeButton:false,showCloseButton:false,width:70,height:70,scrolling:"no"});$("form").submit(function(){if($("form").valid()){setTimeout(function(){$("#processingStatus").trigger("click")},1e3);$("input[type=submit]",this).attr("disabled","disabled");$("input[type=submit]",this).attr("value","Please Wait...");return true}else $("a#anchor1").trigger("click")});$("a.faqlink").click(function(){Xltech.Wri.Faq.readQuestion(this.id)});$("a.anchorLink").anchorAnimate();$("#UseAccountAddress").change(function(){if($(this).attr("checked")){$("#Street1").val($("#Customer_PrimaryAddressLine1").val());$("#Street2").val($("#Customer_PrimaryAddressLine2").val());$("#City").val($("#Customer_PrimaryCity").val());$("#Country").val($("#Customer_PrimaryCountryId").val()).trigger("change");$("#State").val($("#Customer_PrimaryStateId").val());$("#PostalCode").val($("#Customer_PrimaryZip").val())}else{$("#Street1, #Street2, #City, #Country, #State, #PostalCode").val("");$("#Country").trigger("change")}})});jQuery.fn.anchorAnimate=function(a){a=jQuery.extend({speed:1100},a);return this.each(function(){var b=this;$(b).click(function(e){e.preventDefault();var c=$(b).attr("href"),d=$(c).offset().top;$("html:not(:animated),body:not(:animated)").animate({scrollTop:d},a.speed,function(){window.location.hash=c});return false})})};