(function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}})(jQuery),function(n){n.fn.lazyload=function(t){var f={attr:"data-imgurl",container:n(window),callback:n.noop},i=n.extend({},f,t||{}),r,u;i.cache=[];n(this).each(function(){var t=this.nodeName.toLowerCase(),r=n(this).attr(i.attr),u={obj:n(this),tag:t,url:r};i.cache.push(u)});r=function(t){n.isFunction(i.callback)&&i.callback.call(t.get(0))};u=function(){var t=i.container.height();contop=n(window).get(0)===window?n(window).scrollTop():i.container.offset().top;n.each(i.cache,function(n,i){var u=i.obj,s=i.tag,e=i.url,f,o;u&&(f=u.offset().top-contop,f+u.height(),(f>=0&&f<t||o>0&&o<=t)&&(e?s==="img"?r(u.attr("src",e)):u.load(e,{},function(){r(u)}):r(u),i.obj=null))})};u();i.container.bind("scroll",u)}}(jQuery),function(n){function u(i){function c(){i?s.removeData(i):f&&delete t[f]}function l(){u.id=setTimeout(function(){u.fn()},h)}var a=this,s,u={},y=i?n.fn:n,e=arguments,v=4,f=e[1],h=e[2],o=e[3];if(typeof f!="string"&&(v--,f=i=0,h=e[1],o=e[2]),i?(s=a.eq(0),s.data(i,u=s.data(i)||{})):f&&(u=t[f]||(t[f]={})),u.id&&clearTimeout(u.id),delete u.id,o)u.fn=function(n){typeof o=="string"&&(o=y[o]);o.apply(a,r.call(e,v))===!0&&!n?l():c()},l();else{if(u.fn)return h===undefined?c():u.fn(h===!1),!0;c()}}var t={},i="doTimeout",r=Array.prototype.slice;n[i]=function(){return u.apply(window,[0].concat(r.call(arguments)))};n.fn[i]=function(){var n=r.call(arguments),t=u.apply(this,[i+n[0]].concat(n));return typeof n[0]=="number"||typeof n[1]=="number"?this:t}}(jQuery);var defaultPath=contentDomain+"/Images/en-US/Menu/",learnMore="Learn More",headerChat={title:"Talk to a specialist : ",tel:"(888) 462-3899"},topHeadMenu=[{title:"Blog",link:"http://blog.ibuypower.com/",target:"_self",subMenu:[]},{title:"Reviews",link:"/Testimonial/FeedBack",target:"_self",subMenu:[]},{title:"Support",link:"/Support/Support",target:"_self",subMenu:[]},{title:"Rebate",link:"/Rebate/RebateCenter",target:"_self",subMenu:[]},{title:"MyAccount",link:"/Login/?ReturnUrl="+location.pathname,target:"_self",subMenu:[{title:"Order Status",link:"/Account/StatusCheck",target:"_self"},{title:"My Account",link:"/Login/Account",target:"_self"},{title:"Login",link:"/Login/?ReturnUrl="+location.pathname,target:"_self"}]}],headMenu=[{title:"SIGNATURE PC",link:"/Product/SignatureSeries",image:"Rollover_Signature.jpg",target:"_self",subMenu:[{title:"CHIMERA 5",image:"Chimera5_Rollover.jpg",content:"Starting $799",link:"/Site/Chimera5",target:"_self"},{title:"NOCTIS",image:"Noctis-Header-Rollover-2015.jpg",content:"Starting $1029",link:"/Noctis",target:"_self"},{title:"REVOLT",image:"Rollover_Revolt.jpg",content:"Starting $629",link:"/Product/Revolt",target:"_self"},{title:"EREBUS GT",image:"Rollover_Erebus.jpg",content:"Starting $1329",link:"/Product/ErebusGT",target:"_self"},{title:"PRO SERIES",image:"Rollover_Pro-Series.jpg",content:"Starting $1309",link:"/Product/Professional-Series",target:"_self"}]},{title:"ASUS / MSI PC",image:"Rollover_Optiboost.jpg",link:"/Product/Optiboost",target:"_self",subMenu:[{title:"OPTIBOOST",image:"Rollover_Optiboost.jpg",content:"View All Brands",link:"/Product/Optiboost",target:"_self"},{title:"ASUS Systems",image:"Rollover_ASUS.jpg",content:"Starting $529",link:"/Product/Asus",target:"_self"},{title:"MSI Laptops",image:"Rollover_MSI.jpg",content:"Starting $899",link:"/Product/MSI",target:"_self"}]},{title:"DESKTOPS",image:"Rollover_Desktops.jpg",link:"/Site/CustConfig",target:"_self",subMenu:[{title:"All Desktops",image:"Rollover_Desktops.jpg",content:"Starting $499",link:"/Site/CustConfig",target:"_self"},{title:"AMD APU",image:"Rollover_AMD_APU.jpg",content:"Starting $499",link:"/Site/AMD_APU",target:"_self"},{title:"AMD FX",image:"Rollover_AMD_FX.jpg",content:"Starting $799",link:"/Site/AMD_FX_Lobby",target:"_self"},{title:"INTEL Z170",image:"Intel_Z170_Skylake_Rollover.jpg",content:"Starting $649",link:"/Site/Intel-Z170",target:"_self"},{title:"INTEL Z97",image:"Rollover_Intel_Z97.jpg",content:"Starting $879",link:"/Site/Intel-4th-Generation",target:"_self"},{title:"INTEL X99 i7",image:"Rollover_Intel_X99.jpg",content:"Starting $1129",link:"/Site/New-Intel-I7-Extreme",target:"_self"},{title:"Micro ATX Systems",image:"mATX_rollover.jpg",content:"Starting $529",link:"/Site/mATX",target:"_self"}]},{title:"NOTEBOOKS",image:"Laptop_HolidaySale_rollover.jpg",link:"/Site/Gaming-Laptop",target:"_self",subMenu:[{title:"View All Laptops",image:"Laptop_HolidaySale_rollover.jpg",content:"Starting $999",link:"/Site/Gaming-Laptop",target:"_self"},{title:"15'' Laptops",image:"Rollover_Notebooks_15in.jpg",content:"Starting $999",link:"/Site/15-Inch-Gaming-Laptop",target:"_self"},{title:"17'' Laptops",image:"Rollover_Notebooks_17in.jpg",content:" Starting $999",link:"/Site/17-Inch-Gaming-Laptop",target:"_self"},{title:"ASUS Laptops",image:"Rollover_Notebooks_ASUS.jpg",content:"Starting $1099",link:"/Product/Asus",target:"_self"},{title:"MSI Laptops",image:"Rollover_Notebooks_MSI.jpg",content:"Starting $999",link:"/Product/MSI",target:"_self"},{title:"Battalion Laptops",image:"Battalion_rollover.jpg",content:"Starting $949",link:"/Site/Battalion-Laptop",target:"_self"},{title:"Refurbished",image:"Rollover_Refurbished.jpg",content:"Starting $899",link:"/Site/Refurbish-Sale",target:"_self"}]},{title:"SALE",image:"HolidayGamerSale_Rollover.jpg",link:"/Site/Holiday-Gamer-Sale",target:"_self",subMenu:[{title:"HOLIDAY SALE",image:"HolidayGamerSale_Rollover.jpg",content:"Starting $799",link:"/Site/Holiday-Gamer-Sale",target:"_self"},{title:"SHIP IN 24HR",image:"LastMinuteChristmas_Sale_Rollover.jpg",content:"Starting $799",link:"/Site/Ship24Hr",target:"_self"},{title:"LAPTOP DEALS",image:"Laptop_HolidaySale_rollover.jpg",content:"Starting $899",link:"/Site/LaptopSale",target:"_self"},{title:"REFURBISHED",image:"Rollover_Refurbished.jpg",content:"Starting $899",link:"/Site/Refurbish-Sale",target:"_self"}]},{title:"IBP GEAR",image:"",link:"/IBPStore",target:"_self",subMenu:[]},{title:'<img src="//content.ibuypower.com/Images/en-US/Lobby/AD/win10-badge-blue.jpg" />',image:"",link:"/Site/Microsoft",target:"_self",subMenu:[]}],footerMenu=[{area:[{name:"SIGNATURE SERIES",link:"/Product/SignatureSeries",target:"_self",content:[{name:"Revolt",link:"/Product/Revolt",target:"_self"},{name:"Chimera 5",link:"/Product/Chimera5",target:"_self"},{name:"Noctis",link:"/Product/Noctis-LP",target:"_self"},{name:"Erebus GT",link:"/Product/ErebusGT",target:"_self"},{name:"Professional Series",link:"/Product/Professional-Series",target:"_self"}]}]},{area:[{name:"DESKTOPS",link:"/Site/CustConfig",target:"_self",content:[{name:"Custom Configurator",link:"/Site/CustConfig",target:"_self"},{name:"AMD FX",link:"/Site/AMD_FX_Lobby",target:"_self"},{name:"AMD APU",link:"/Site/AMD_APU",target:"_self"},{name:"Intel B85",link:"/Store/Intel-B85-Configurator",target:"_self"},{name:"Intel Z97",link:"/Site/Intel-4th-Generation",target:"_self"},{name:"Intel Z170",link:"/Site/Intel-Z170",target:"_self"},{name:"Intel X99 i7",link:"/Site/New-Intel-I7-Extreme",target:"_self"}]}]},{area:[{name:"LAPTOPS",link:"/Site/Gaming-Laptop",target:"_self",content:[{name:"15 Inch",link:"/Site/15-Inch-Gaming-Laptop",target:"_self"},{name:"17 Inch",link:"/Site/17-Inch-Gaming-Laptop",target:"_self"},{name:"Refurbished",link:"/Site/Refurbish-Sale",target:"_self"},]},{name:"<b>SALE<\/b>",link:"/Site/Holiday-Gamer-Sale",target:"_self",content:[{name:"Weekly Sale",link:"/Site/Holiday-Gamer-Sale",target:"_self"},{name:"Laptop Deals",link:"/Site/LaptopSale",target:"_self"},{name:"Starter Systems",link:"/Site/League-Systems",target:"_self"},{name:"Refurbished Systems",link:"/Site/Refurbish-Sale",target:"_self"}]}]},{area:[{name:"REVIEWS",link:"/Testimonial/FeedBack",target:"_self",content:[{name:"Awards & Reviews",link:"/Company/Awards",target:"_self"},{name:"Customer Reviews",link:"/Testimonial/FeedBack",target:"_self"},{name:"BBB Rating",link:"/Testimonial/FeedBack",target:"_self"}]}]},{area:[{name:"SUPPORT",link:"/Support/Support",target:"_self",content:[{name:"SUPPORT",link:"/Support/Support",target:"_self"},{name:"Order Status",link:"/Account/StatusCheck",target:"_self"},{name:"Technical Support",link:"/Support/Support",target:"_self"},{name:"Drivers & Downloads",link:"/Support/Driver",target:"_self"},{name:"Warranty",link:"/Support/Warranty",target:"_self"},{name:"FAQ / Knowledge Base",link:"/Support/FAQ",target:"_self"},{name:"Shipping Information",link:"/Support/ShipInfo",target:"_self"},{name:"Rebate Center",link:"/Rebate/RebateCenter",target:"_self"},{name:"Recycling",link:"//www.recycle4earth.com/HomeConsumerRecycling/ConsumerRecycling",target:"_blank"}]}]},{area:[{name:"COMPANY",link:"/Company/Aboutus",target:"_self",content:[{name:"About Us",link:"/Company/Aboutus",target:"_self"},{name:"Contact Us",link:"/Company/Contactus",target:"_self"},{name:"Careers",link:"/Company/Careers",target:"_self"},{name:"Press Releases",link:"/Company/News",target:"_self"},{name:"Subscribe to Newsletter",link:"/Account/Subscribe",target:"_self"},{name:"Tech Feature",link:"/Site/Tech-Highlight",target:"_self"}]}]},{area:[{name:"NEWS & EXTRAS",link:"http://blog.ibuypower.com/",target:"_self",content:[{name:"<b>Blog<\/b>",link:"http://blog.ibuypower.com/",target:"_self"},{name:"<b>Wallpapers<\/b>",link:"/Download/Wallpaper",target:"_self"}]}]}],footerLinks=[{id:"Terms",link:"/Company/Terms"},{id:"Privacy",link:"/Company/Privacy"},{id:"Disclaimer",link:"/Company/Disclaimer"}],footerSetting={msg1:"iBUYPOWER IS POWERED BY: <a>View All<\/a>",msg2:"iBUYPOWER PRODUCTS CAN BE PURCHASED FROM: <a>View All<\/a>",tel:"Buy online or call toll free: 888-462-3899"},footerSettingRWD={msg1:"<span>iBUYPOWER IS POWERED BY: <\/span><a>View All<\/a>",msg2:"<span>iBUYPOWER PRODUCTS CAN BE PURCHASED FROM: <\/span><a>View All<\/a>",tel:"Buy online or call toll free: 888-462-3899"},sharePush=[{name:"iconFacebook",link:"https://www.facebook.com/iBuypowerPC",target:"_blank"},{name:"iconTwitter",link:"https://twitter.com/iBUYPOWER",target:"_blank"},{name:"iconYouTube",link:"http://www.youtube.com/user/ibuypower",target:"_blank"},{name:"iconGoogle",link:"http://google.com/+ibuypower",target:"_blank"},{name:"iconInstafeed",link:"https://instagram.com/ibuypowerpc/",target:"_blank"}],popup={adImagePath:"/Images/en-US/Lobby/AD/win10-badge-blue.jpg",adLink:"/Site/Meet-Windows",contentImagePath:"/Images/Popup/HolidayGamerSale_Popup.jpg",contentLink:"/Site/Holiday-Gamer-Sale",enable:!0,disablePages:["/Site/Meet-Windows","/Site/Valentine-Sale","/Product/SBX","/Site/IBP-Invite","/Site/IBP-Invite-About","/Site/IBP-Invite-Teams","/Site/IBP-Invite-News","/Site/IBP-Invite-Sponsors","/Site/Veterans-Day-Sale","/Lobby","/Site/ibpCosmic","/Site/IBP-Cup-Giveaway","/","/Site/Holiday-Gamer-Sale","/Site/ThanksgivingSale","/Site/BlackFridaySale","/Site/CyberMondaySale","/Site/CyberWeek"]};(function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(g=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||nt.css(h.overlayCSS),nt.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&nt._fadeIn(h.fadeIn,vt);l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&nt.show(),l&&w.show(),h.onBlock&&h.onBlock();c(1,s,h);p?(t=w[0],i=n(h.focusableElements,t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY);h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o,s=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});c(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=s?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));s&&(t=i=null);u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&h(f,l,u,r)})):h(f,l,u,r)}function h(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o);e[0].style.width=s}}function c(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,l):n(document).unbind(e,l))}function l(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}if(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick)u.onOverlayClick(r);return f.parents("div."+u.blockMsgClass).length>0?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)};n.unblockUI=function(n){e(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);e=function(t){t=t||{};n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};e();o=f.css("opacity");f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop();t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})};n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0));this.style.zoom=1;s(this,t)})};n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){e(this,t)})};n.blockUI.version=2.66;n.blockUI.defaults={message:'<span style="color:white; font-size:30px;">Please Wait...<\/span>',title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"none",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)})(),function(n,t){function o(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function u(n){return v?v(n):"[object Array]"===y.call(n)}function s(n){return"[object Object]"===y.call(n)}function h(n,t){var i,n=n||{},t=t||{};for(i in t)t.hasOwnProperty(i)&&null==n[i]&&(n[i]=t[i]);return n}function r(n,t,i){var u=[],r,f;if(!n)return u;if(a&&n.map===a)return n.map(t,i);for(r=0,f=n.length;r<f;r++)u[r]=t.call(i,n[r],r,n);return u}function f(n,t){return n=Math.round(Math.abs(n)),isNaN(n)?t:n}function l(n){var t=i.settings.currency.format;return"function"==typeof n&&(n=n()),o(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:!n||!n.pos||!n.pos.match("%v")?o(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t:n}var i={version:"0.3.2",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},a=Array.prototype.map,v=Array.isArray,y=Object.prototype.toString,e=i.unformat=i.parse=function(n,t){if(u(n))return r(n,function(n){return e(n,t)});if(n=n||0,"number"==typeof n)return n;var t=t||".",i=RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(i,"").replace(t,"."));return isNaN(i)?0:i},p=i.toFixed=function(n,t){var t=f(t,i.settings.number.precision),r=Math.pow(10,t);return(Math.round(i.unformat(n)*r)/r).toFixed(t)},c=i.formatNumber=function(n,t,o,l){if(u(n))return r(n,function(n){return c(n,t,o,l)});var n=e(n),a=h(s(t)?t:{precision:t,thousand:o,decimal:l},i.settings.number),y=f(a.precision),b=0>n?"-":"",v=parseInt(p(Math.abs(n||0),y),10)+"",w=3<v.length?v.length%3:0;return b+(w?v.substr(0,w)+a.thousand:"")+v.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(y?a.decimal+p(Math.abs(n),y).split(".")[1]:"")},w=i.formatMoney=function(n,t,o,a,v,y){if(u(n))return r(n,function(n){return w(n,t,o,a,v,y)});var n=e(n),p=h(s(t)?t:{symbol:t,precision:o,thousand:a,decimal:v,format:y},i.settings.currency),b=l(p.format);return(0<n?b.pos:0>n?b.neg:b.zero).replace("%s",p.symbol).replace("%v",c(Math.abs(n),f(p.precision),p.thousand,p.decimal))};i.formatColumn=function(n,t,a,v,y,p){if(!n)return[];var w=h(s(t)?t:{symbol:t,precision:a,thousand:v,decimal:y,format:p},i.settings.currency),b=l(w.format),d=b.pos.indexOf("%s")<b.pos.indexOf("%v")?!0:!1,k=0,n=r(n,function(n){return u(n)?i.formatColumn(n,w):(n=e(n),n=(0<n?b.pos:0>n?b.neg:b.zero).replace("%s",w.symbol).replace("%v",c(Math.abs(n),f(w.precision),w.thousand,w.decimal)),n.length>k&&(k=n.length),n)});return r(n,function(n){return o(n)&&n.length<k?d?n.replace(w.symbol,w.symbol+Array(k-n.length+1).join(" ")):Array(k-n.length+1).join(" ")+n:n})};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=i),exports.accounting=i):"function"==typeof define&&define.amd?define([],function(){return i}):(i.noConflict=function(r){return function(){return n.accounting=r,i.noConflict=t,i}}(n.accounting),n.accounting=i)}(this)