var CP=CP||{};CP.livemodel=CP.livemodel||{};CP.livemodel.log=function(a){console&&console.log&&console.log(a)};CP.livemodel.Site=(function(){var m=function(p){if(CP.livemodel.secure){var q={secure:CP.livemodel.secure};$.extend(q,p);return q}return p};var n=function(p,r){var s=p.accounts;for(var q=0;q<s.length;q++){if(s[q].tokenType==r){return true}}return false};var g=function(p,q){if((q.type==="COUNTDOWN")&&n(p,"BRONZE")){return"BRONZE"}if((q.type==="COUNTDOWN")&&n(p,"GOLD")){return"GOLD"}if((q.type==="PROMO")&&n(p,"TIN")){return"TIN"}};var k=function(p){return function(q,r){q=m(q);CP.util.postToSite("member",p,q,function(s){if(!("error" in s)){var t=s.result;t.accounts=s.result.accounts||{};t.hasTokens=function(){return s.result.getTokensLeft()>0};t.getAppropriateTokenType=function(u){return g(t,u)};t.getTokensLeft=function(w){var u=0;var v=new Date().getTime();$.each(s.result.accounts,function(z,y){var x=Number(y.expires);if(!x||(x>v)){if(w||(y.tokenType==="GOLD")||(y.tokenType==="BRONZE")){u+=Number(y.bidsLeft)}}});return u}}(r&&r(s))})}};var b={};var c=function(p,q){if((p in b)&&q){setTimeout(function(){q(b[p])},0);return}CP.util.getFromSite("product",p,function(s){if(s.us&&q){var r=[];$.each(s.us.images,function(t){if(!s.us.images[t].deleted){this.getURL=function(u){return CP.config.productImageURL+"/"+p+"/"+t+"."+u+".jpg"};r.push(this)}});s.us.images=r;b[p]=s;q(s)}})};var o={};var h=function(q,p){return function(r){q.updatedValues=q.updatedValues||{};q.updatedValues[p]=r;q[p]=r}};var e=function(p,q){CP.util.postToSite("auction","search",p,function(r){if(q){var s=[];if(!("error" in r)){s=$.map(r.result,function(t){var x=t.productClusterID;var v=null;var w={fetchProduct:function(y){if(v){y(v)}else{c(x,function(z){v=z;y(v)})}},getPrice:function(y){if(!y&&w.price){return w.price}var A,B;try{A=w.regionalAuctions.US.step||50;B=w.regionalAuctions.US.base||0}catch(z){if(window.console){window.console.log(z)}A=50;B=0}return(y||w.bidLevel)*A+B},getListPrice:function(y){return w.listPrice||y}};w.updateStatus=h(w,"status");w.updateBidLevel=h(w,"bidLevel");$.extend(w,t);var u=o[w.id];if(u){$.extend(u,w);if(u.updatedValues){$.extend(u,u.updatedValues)}}else{o[w.id]=w}return w})}q(s)}})};var l=false;var d=function(p){if(p.bidPackID){return f(p)}else{return j(p)}};var f=function(p){$.extend(p,{isBidPack:function(){return true},getBidPack:function(){return CP.util.getBidpack(p.bidPackID)},fetchShippingOptions:function(q){q({})}});return p};var j=function(p){$.extend(p,{isBidPack:function(){return false},fetchShippingOptions:function(q){CP.util.getFromSite("purchase","shippingmethods",m({victoryID:p.victoryID}),function(r){(q&&q(r.result))})},fetchProduct:function(q){c(p.productClusterID,q)},fetchAuction:function(q){CP.livemodel.Site.fetchAuction(p.auctionID,q)}});return p};var i=function(p,r,t,q){r=m(r);if(p.isBidPack()){p.bidPackID=p.getBidPack().id}r.order=$.toJSON(CP.util.dataOf(p));var s=function(u){if("error" in u){(q&&q(p,u))}else{(t&&t(u.result.orderID))}};CP.util.postToSite("purchase","placeorder",r,s)};var a=function(p,q){e({id:p},function(r){q&&q(r[0])})};return{init:function(p){CP.livemodel.log("CP.Site.init called");p({signedIn:false})},isSignedIn:function(){return l},fetchUser:k("who"),signUp:k("signup"),signIn:k("signin"),signOut:k("signout"),changePassword:k("changepassword"),forgotPassword:k("forgotpassword"),inviteFriends:k("share"),testSignUp:function(p,q){CP.util.postToSite("member","testsignup",p,q)},fetchUncachedAuction:a,fetchAuction:function(p,q){if((p in o)&&q){setTimeout(function(){q(o[p])},0);return}a(p,q)},fetchHomeAuctions:function(p){e({type:"home"},p)},fetchSpotlightAuctions:function(p){e({type:"spotlight"},p)},fetchPendingParticipatedAuctions:function(p){e({type:"participated",running:true},p)},fetchEndedParticipatedAuctions:function(p){e({type:"participated",running:false},p)},fetchAuctionByCategory:function(p,q){e({cat:p},q)},fetchAuctionBySubcategory:function(p,q,r){e({cat:p,subcat:q},r)},fetchEndedAuctions:function(q,p){e({type:"ended",limit:0,auctionType:(p||"")},q)},fetchGoodEndedAuctions:function(q,p){e({type:"ended",good:"true",limit:20,auctionType:(p||"")},q)},fetchLiveAuctions:function(q,p){e({type:"live",auctionType:(p||"")},q)},fetchUpcomingAuctions:function(q,p){e({type:"upcoming",auctionType:(p||"")},q)},fetchPromoAuction:function(p){e({type:"live",auctionType:"PROMO"},function(q){p(q.length>0?q[0]:null)})},fetchAuctionForProduct:function(p,q){e({clustername:p},function(r){(q&&q(r[0]))})},createTokenOrder:function(p,q){$.get(CP.util.makeServletURL("purchase","create"),m({bidpackID:p}),function(s){var r=s.result;$.extend(r,{getBidPack:function(){return CP.util.getBidpack(p)},isBidPack:function(){return true},getTaxPercentage:function(){return 0.09},fetchShippingOptions:function(t){t&&t([])}});(q&&q(r))},"json")},createVictoryOrder:function(p,q){$.get(CP.util.makeServletURL("purchase","create"),m({victoryID:p}),function(s){var r=s.result;j(r);(q&&q(r))},"json")},recalculateOrder:function(p,q,s,r){if(p.isBidPack()){$.extend(p,{bidPackID:p.getBidPack().id})}CP.util.postToSite("purchase","recalculate",m({order:$.toJSON(CP.util.dataOf(p)),couponID:q}),function(u){if(u.error){r&&r(u.error)}else{var t=u.result;d(t);if(t.couponMessage){t.itemMessage=CP.lang["coupon_"+t.couponMessage]}(s&&s(t))}})},submitOrderWithProfile:function(p,r,q,u,t){var s={maxauth:p.total,couponID:q,profileCode:r.code};i(p,s,u,t)},submitOrderWithCCinfo:function(p,q,u,r,v,t){var s={maxauth:p.total,couponID:r,persist:u,CCinfo:$.toJSON(q)};i(p,s,v,t)},fetchPaymentProfile:function(p){$.get(CP.util.makeServletURL("member","paymentprofile"),m({}),function(q){var r=q.result;p&&p(r)},"json")},fetchUnorderedVictories:function(p){CP.util.getFromSite("purchase","victories",{},function(q){if(p){if("error" in q){p([])}else{p($.map(q.result,function(r){var s={};$.extend(s,r);s.fetchProduct=function(t){c(r.productClusterID,t)};return s}))}}})},fetchVictoryByAuctionID:function(p,q){CP.util.getFromSite("purchase","victory",{auction_id:p},function(r){if(q){if("error" in r){q()}else{r.result.fetchProduct=function(s){c(r.result.productClusterID,s)};q(r.result)}}})},countUnorderedVictories:function(p){CP.util.getFromSite("purchase","victories",{},function(q){if(p){p(("error" in q)?0:q.result.length)}})},fetchPastOrder:function(q,p){CP.util.getFromSite("purchase","order",{orderID:q},function(r){if(p){if(r.error){p([])}else{p(r.result)}}})},checkCoupon:function(p,r){var q=m({couponID:p});CP.util.getFromSite("purchase","checkcoupon",q,function(s){if(r){if(!s.error){r(s.result)}}})},fetchPastOrders:function(p){CP.util.getFromSite("purchase","orders",{},function(q){if(p){if(q.error){p([])}else{p($.map(q.result,function(r){d(r);return r}))}}})},fetchPayPalURL:function(r,u,t,q,s){if(r.isBidPack()){r.bidPackID=r.getBidPack().id}var p={order:$.toJSON(CP.util.dataOf(r)),CCinfo:$.toJSON(u),returnURL:t,cancelURL:q,token:"",userID:""};p=m(p);CP.util.postToSite("purchase","pptoken",p,function(v){if(s){s(v)}})},fetchPayPalOrderData:function(q,s,r){var p=m({token:q,PayerID:s});CP.util.postToSite("purchase","ppdata",p,function(t){if(r){r(t)}})},confirmAddress:function(p,q){CP.util.postToSite("member","confirmaddress",{proof:p},function(r){(q&&q(r.result))})},auctionBiddingTime:function(p){return(p.type==="PROMO")?15000:60000}}})();CP.livemodel.Auctioneer=(function(){return{init:function(b,a){CP.livemodel.log("CP.Auctioneer.init called")},subscribe:function(a){CP.livemodel.log("CP.Auctioneer.subscribe called")}}})();CP.livemodel.Banker=(function(){return{init:function(b,a){CP.livemodel.log("CP.Banker.init called")},bid:function(a){CP.livemodel.log("CP.Banker.bid called")}}})();var CP=CP||{};CP.controller=CP.controller||{};$.extend(CP.controller,(function(){var oldLocation=null;var signedIn=false;var evalLocation=function(parms){var newLocation=window.location.href;$("#locations").append(DIV("Old: "+oldLocation),DIV("\nNew: "+newLocation));if(newLocation!==oldLocation){oldLocation=newLocation;CP.controller.parms=parms||{};$.extend(CP.controller.parms,CP.util.getAnchorParms());CP.UI.page.checkLocation()}};var currentUser=null;var initCommunication=function(){CP.model.Communication.init(currentUser,{onStatusChange:function(message){CP.model.Site.fetchAuction(message.getAuctionID(),function(auction){auction.updateStatus(message.getStatus());if(("COMPLETED"===message.getStatus())&&message.getBidLevel()){auction.updateBidLevel(message.getBidLevel())}$.triggerCEvent("status"+message.getAuctionID(),message)})},onBidResult:function(bidResult){if(bidResult.getSuccess()){CP.model.Site.fetchAuction(bidResult.getAuctionID(),function(auction){auction.updateBidLevel(bidResult.bidlevel);$.triggerCEvent("bid"+bidResult.getAuctionID(),bidResult)})}else{$.triggerCEvent("bid_error"+bidResult.getAuctionID(),bidResult)}},onVictory:function(result){$.triggerCEvent("victory",result)},onBalance:function(result){currentUser.accounts=result.accounts;$.triggerCEvent("balancechange",result)},onDisconnected:function(result){CP.model.Communication.quit();CP.controller.isConnected=false;$.triggerCEvent("disconnected",result);setTimeout(initCommunication,2000)},onConnected:function(result){CP.controller.isConnected=true;$.triggerCEvent("connected",result)},onGiftReceived:function(result){$.triggerCEvent("giftReceived",result)}},{start:function(){},log:function(msg,level){if(window.console&&(level<3)){console.log(msg)}},setLevel:function(){},getLevel:function(){}},10000)};var siteFunction=function(todo,parameters,onsuccess,onfailure){todo(parameters,function(result){if("error" in result){if(onfailure){onfailure(result.error)}}else{if(onsuccess){onsuccess()}}})};var userFunction=function(todo,parameters,onsuccess,onfailure){todo(parameters,function(result){if("error" in result){if(onfailure){onfailure(result.error)}}else{if(CP.model.Communication){CP.model.Communication.quit()}currentUser=result.result;signedIn=currentUser.isSignedIn;if(CP.model.Communication){initCommunication()}if(onsuccess){onsuccess()}}$.triggerCEvent("loginState",signedIn)})};var criticalParms=function(){return{live:CP.controller.parms.live,inviter:CP.controller.parms.inviter}};var establishHistory=function(){if($.browser.msie){var hash=String(window.location.hash);if($("#historyAnchor").length===0){$("body").append(A({id:"historyAnchor",style:{position:"fixed",top:"0px"}}))}$("#historyAnchor").attr("name",hash.split("#")[1])}};var doSignin=function(userCookie){document.cookie="username="+userCookie+"; path=/"};var checkIE6=function(){var IE6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;if(IE6){$("body").append(CP.UI.drawApologyPopup(CP.lang.popup_ie6))}};var composeURL=function(h,clear){var nh={};if(clear){nh=criticalParms()}else{$.extend(nh,CP.controller.parms)}$.extend(nh,h);return CP.util.encodeQuery(nh)};return{composeURL:composeURL,goTo:function(h,clear,y){var doGoTo=function(){h=composeURL(h,clear);window.location="#"+h;evalLocation();y=(typeof(y)==="number")?y:0;scroll(0,y);establishHistory();pageTracker._trackEvent("Goto",CP.controller.parms.section)};if(CP.UI.isUIinPaidState()){CP.UI.drawPaidStateWarningPopup(doGoTo)}else{doGoTo()}},goToSecure:function(h){var doGoTo=function(){$.extend(h,criticalParms());h.secure=CP.controller.getUser().signature;window.location=CP.config.secureURL+"#"+CP.util.encodeQuery(h);establishHistory();scroll(0,0)};if(CP.UI.isUIinPaidState()){CP.UI.drawPaidStateWarningPopup(doGoTo)}else{doGoTo()}},FBGoToSecure:function(h){var doGoTo=function(){$.extend(h,criticalParms());h.secure=CP.controller.getUser().signature;window.open(CP.config.secureURL+"#"+CP.util.encodeQuery(h))};if(CP.UI.isUIinPaidState()){CP.UI.drawPaidStateWarningPopup(doGoTo)}else{doGoTo()}},goToUnsecure:function(h){$.extend(h,criticalParms());window.location=CP.config.unsecureURL+"#"+CP.util.encodeQuery(h);establishHistory();scroll(0,0)},getUser:function(){return currentUser},init:function(target,parms,ui){CP.model=CP.livemodel;setInterval(function(){$.triggerCEvent("longtick",0)},180000);CP.controller.parms=parms||{};$.extend(CP.controller.parms,CP.util.getAnchorParms());$.extend(CP.UI,ui);checkIE6();var initialize=function(){CP.model.secure=CP.controller.parms.secure||null;establishHistory();CP.UI.init();userFunction(CP.model.Site.fetchUser,CP.UI.getSessionInfo(),function(results){target.append(CP.UI.page.draw());evalLocation(parms);setInterval(function(){evalLocation()},300)})};if(CP.controller.parms.live==="database"){LazyLoad.js([CP.util.staticURL("site/fakemodel.js"),CP.util.staticURL("site/fakedata.js")],function(){CP.model.Communication=CP.fakemodel.Communication;setTimeout(function(){$.triggerCEvent("connected",0)},2000);initialize()})}else{if(CP.controller.parms.live==="false"){LazyLoad.js([CP.util.staticURL("site/fakemodel.js"),CP.util.staticURL("admin/fakecomm.js"),CP.util.staticURL("site/fakedata.js")],function(){CP.model=CP.fakemodel;setTimeout(function(){$.triggerCEvent("connected",0)},2000);initialize()})}else{initialize()}}},track:function(callback,eventCategory,eventAction,eventLabel){return function(){if(window.pageTracker){pageTracker._trackEvent(eventCategory,eventAction)}if(callback){callback()}}},isSignedIn:function(){return signedIn},signIn:function(parameters,onsuccess,onfailure){return userFunction(CP.model.Site.signIn,parameters,CP.controller.track(onsuccess,"Signedin"),onfailure)},signUp:function(parameters,onsuccess,onfailure){return userFunction(CP.model.Site.signUp,parameters,CP.controller.track(onsuccess,"Registered"),onfailure)},signOut:function(parameters,onsuccess,onfailure){return userFunction(CP.model.Site.signOut,parameters,onsuccess,onfailure)},changePassword:function(parameters,onsuccess,onfailure){return siteFunction(CP.model.Site.changePassword,parameters,onsuccess,onfailure)},forgotPassword:function(parameters,onsuccess,onfailure){return siteFunction(CP.model.Site.forgotPassword,parameters,onsuccess,onfailure)},inviteFriends:function(parameters,onsuccess,onfailure){return siteFunction(CP.model.Site.inviteFriends,parameters,onsuccess,onfailure)}}}()));var CP=CP||{};CP.UI=CP.UI||{};$.extend(CP.UI,(function(){var c=function(l,k,m){return function(){CP.UI.goToUnsecure(l,k,m)}};var g=function(l,k,m){return function(){CP.UI.goToUnsecure(l,k,m)}};var d=function(m,v,n){var l=DIV({id:m},A(v));var s,q;var r=false;var o=function(){s=Number(l.css("background-position").split(" ")[0].replace("px",""));q=Number(l.css("background-position").split(" ")[1].replace("px",""));r=true};if(!l.css("background-position-x")){setTimeout(o,0)}var k=function(w,z){l.css("background-position",w+"px "+z+"px")};var u=function(){if(!r){s=Number(l.css("background-position-x").replace("px",""));q=Number(l.css("background-position-y").replace("px",""));r=true}k(s-n,q)};var p=function(){k(s,q)};var t=function(){k(s-n*2,q)};if(n){l.hover(u,p).mousedown(t).mouseup(u)}return l};var f=function(n,m,k,p){if(typeof(m)==="string"){m={section:m}}var l="#";var o;if(typeof(m)==="object"){o=m;l="#"+CP.controller.composeURL(o);m=function(){CP.controller.goTo(o,true);return false};if(k){m=CP.controller.track(m,k,p)}}else{if(!m){m=function(){return false}}else{o=m;m=function(){o();return false}}}if(n in CP.lang){n=CP.lang[n]}return A({observeClick:m,href:l},n)};var h=function(m,o,l,k,n){return LI({style:o},f(m,l,k,n))};var b=function(l,o,k,m,p){var n=IMG();CP.UI.fitProductPicture(n,o,50,50,44);n.click(function(){CP.UI.fitProductPicture(l,o,800,m,p)});return DIV({"class":"thumbbutton",style:{left:60*k,position:"absolute"}},A(function(){CP.UI.fitProductPicture(l,o,800,m,p)}),n)};var a=function(){if($(".paidState").length>0){return true}else{return false}};var i=function(k){$("body").append(CP.UI.drawSmallPopupWindow(DIV({style:{overflow:"auto",height:"322px",margin:"15px",padding:"0px"}},k.css("width","493px"))))};var e=function(){LazyLoad.js(CP.util.staticURL("local/en/terms.js"),function(){i(CP.lang.terms())})};var j=function(){LazyLoad.js(CP.util.staticURL("local/en/privacy.js"),function(){i(CP.lang.privacy())})};return{quadstate:function(m,n,o){var r=function(s){o.css("background-position",s+"px 0px")};var l=function(){r(0)};var k=function(){r(-1*m)};var q=function(){r(-2*m)};var p=function(){r(-3*m)};return{draw:function(){return o.mousedown(q).hover(k,l).mouseup(k).click(function(){$("input").focus();if(n){n()}})},disable:function(){p();o.unbind();o.css("cursor","default");return o.mousedown(p).hover(p,p).mouseup(p).click(function(){})},enable:function(){l();o.unbind();o.css("cursor","pointer");return o.mousedown(q).hover(k,l).mouseup(k).click(function(){$("input").focus();if(n){n()}})}}},drawLink:f,tristate:function(m,n,o){var q=function(r){o.css("background-position",r+"px 0px")};var l=function(){q(0)};var k=function(){q(-m)};var p=function(){q(-2*m)};return o.mousedown(p).hover(k,l).mouseup(k).click(function(){$("input").focus();if(n){n()}})},tristateButton:function(p,o,q,l,k,n,m){return CP.UI.tristate(l,q,DIV({style:{"background-image":"url('"+CP.util.staticURL(o)+"')",width:l+"px",height:k+"px",overflow:"hidden",color:"white",fontFamily:"Arial",fontWeight:"bold",fontSize:(m||12)+"px",cursor:"pointer"}},DIV({style:{"margin-top":n+"px","text-align":"center"}},p)))},tristateBlueButton:function(k,l){return CP.UI.tristateButton(k,"site/images/bidnowauctionsrrect.gif",l,114,45,12)},fitProductPicture:function(m,q,l,n,r){if(!q){return}var k=new Image();var o,p;k.onload=function(){m.attr("src",q.getURL(l));m.removeAttr("height");var t;var u=r*3/2;var s=(n-u)/2;t=(u*100)/300;o=((q.left||0)*u/300)-s;p=(q.top||0)*u/300;m.css("width",((q.width*u)/300)+"px");m.attr("border",0);m.css({left:-o+"px",top:-p+"px",position:"absolute",cursor:"pointer"})};k.src=q.getURL(l)},header:function(){var o=DIV();var p=SPAN();var l=DIV();var q=DIV({id:"freebidpromo"});o.bindCEvent("balancechange",function(u,t){p.text(CP.controller.getUser().getTokensLeft())});var r=function(t){l.empty();if(CP.controller.isSignedIn()){var u=CP.controller.getUser();p.text(u.getTokensLeft());l.append(DIV({id:"bidtotalbutton"},A()),DIV({"class":"PMbidaccountbutton",id:"bigaccountexpandrrect"}),DIV({id:"bidder"},P(A(c({section:"dashboard"}),u.greeting))," "),DIV({id:"bidaccountbutton"},A(CP.controller.track(CP.UI.drawBidsRemainingPopup,"Buy Bids","Engage Buy Bids","Header Bids Remaining Link"),"Bids Remaining: ",p)))}else{l.append(DIV({id:"headersignin"},A(CP.controller.track(CP.UI.drawSignInPanel,"Signin",1),{id:"headersigninbutton"},"Sign In"),DIV({id:"headerdivider"}," | "),A(CP.controller.track(CP.UI.drawRegistrationPanel,"Register","Engage Registration","Header Registration Link"),{id:"headerregisterbutton"},"Register")))}};var s=function(){var t=DIV({id:"signout"},A(function(){CP.controller.signOut({})},"Sign Out"));t.bindCEvent("loginState",function(v,u){if(u){t.append(A(function(){var w=function(){CP.controller.signOut({},CP.UI.goHome,true,0)};if(CP.UI.isUIinPaidState()){CP.UI.drawPaidStateWarningPopup(w)}else{w()}},"Sign Out"))}else{t.empty()}});return t};var k=function(){window.open("http://blog.circuspop.com/blog/?p=420")};var m=function(){if(!CP.controller.isSignedIn()){(CP.controller.track(CP.UI.drawRegistrationPanel,"Register",3))()}};var n=function(u,t){if(t){q.attr("id","invitepromo");q.click(c({section:"invite"}))}else{q.attr("id","freebidpromo");q.click(CP.controller.track(m,"Register","Engage Registration","HP Free Bid Banner"))}};return{draw:function(){o.bindCEvent("loginState",r);o.bindCEvent("loginState",n);var u=s();r(false);var v=c({section:"main"},true);var t=DIV({id:"promo",observeClick:m});o.append(DIV({id:"cp_header"},d("cplogobutton",v),q,DIV({id:"menuart"}),d("homebutton",CP.UI.goHome,52),((CP.controller.getUser().role==="admin")?d("adminbutton",CP.UI.goToAdmin,139):d("mycircuspopbutton",CP.UI.goToDashboard,139)),d("buybidsbutton",CP.controller.track(CP.UI.drawBidsRemainingPopup,"Engage Buy Bids","Header Buy Bids Button"),103),d("liveauctionsbutton",g({section:"main",type:"live"},true),137),d("endedauctionsbutton",g({section:"endedAuctions"},true),150),d("helpbutton",g({section:"faq"}),67),l,u));return o}}},footer:function(){var n=function(o,p){return h(o,{"font-weight":"bold","padding-bottom":"0px","margin-top":"4px"},p)};var m=function(o,p){return h(o,{"padding-left":"16px"},p)};var k=function(o){return LI({style:{"padding-left":"16px"}},SPAN(CP.lang[o]))};var l=function(){var q=DIV({style:{width:"300px","float":"left","margin-left":"15px","padding-bottom":"15px"}});var o=UL({"class":"footerChannelMenu"},A({"class":"footerChannelMenuTitle"},"Channels"));q.append(o);var p=0;$.each(CP.data.productCategories,function(s,r){p++;o.append(n("cat_"+r[0],{section:"main",cat:r[0]}));$.each(r[1],function(t,u){p++;o.append(m("subcat_"+u,{section:"main",cat:r[0],subcat:u}))});if(p>14){o=UL({"class":"footerChannelMenu"});q.append(o);p=0}});return q};return{draw:function(){var o=DIV({id:"ccpaypalbutton"});if(!CP.config.supportPaypal){o.hide()}return DIV({id:"cpfooter"},DIV({id:"background_footer"},DIV({"class":"rule"}),DIV({id:"cpiconbutton"},A({title:"CP Icon",href:"cpicon.html"})),l(),DIV({style:{width:"400px","float":"left"}},UL({id:"footerhelpmenu"},n("link_help","faq"),m("link_howit","tutorial"),m("link_faqs","faq"),LI(A({href:"mailto:support@circuspop.com",style:{"padding-left":"16px"}},CP.lang.link_emai)),m("link_ship","faq"),m("link_term","terms"),m("link_priv","privacy")),UL({id:"footeraboutcircuspopmenu"},n("link_abou"),m("link_comp",CP.UI.goToCompanyProfile),LI(A({href:"http://www.circuspop.com/blog/",target:"_blank",style:{"padding-left":"16px"}},CP.lang.link_blog)),k("link_news"),k("link_empl"),LI(A({href:"mailto:support@circuspop.com",style:{"padding-left":"16px"}},CP.lang.link_cont)),LI(A({href:"mailto:support@circuspop.com",style:{"padding-left":"16px"}},CP.lang.link_feed)),LI(SPAN({style:{"font-weight":"bold"}},CP.lang.link_auct)),m("link_live",{section:"main",type:"live"}),m("link_ende",{section:"endedAuctions"})),UL({id:"footermycircuspopmenu"},n("link_myc"),m("link_dash",CP.UI.goToDashboard),m("link_buyb",CP.controller.track(CP.UI.drawBidsRemainingPopup,"Buy Bids","Engage Buy Bids","Footer Buy Bids Link"))),UL({id:"footerauctionsmenu"})),DIV({id:"footercontactinfo"},DIV({style:{color:"gray"}},"Need Help? Have Feedback?"),DIV({style:{"font-size":"17px",color:"#2278C3"}},"1-800-POP-8105"),DIV(A({href:"mailto:support@circuspop.com",style:{color:"#2278C3"}},"support@circuspop.com")),DIV({style:{color:"gray"}},"Hours 8:30AM - 7PM PT")),DIV({"class":"rule",style:{clear:"both"}}),DIV(DIV({id:"paywithconfidenceg"},"Pay with Confidence"),DIV({id:"ccvisabutton"}),DIV({id:"ccmcbutton"}),DIV({id:"ccdiscoverbutton"}),DIV({id:"id0ccamexbutton"}),o,CP.UI.drawSeal(),INPUT({style:{display:"none"}}))))}}},drawBidsRemainingPopup:function(l){var k=function(){var m=CP.UI.drawBuyBidsPopup(l);$("body").append(m)};if(CP.controller.isSignedIn()){k()}else{CP.UI.drawSignInPanel(k)}},goToAdmin:function(){CP.UI.goToUnsecure({section:"admin"})},goToDashboard:function(){var k=function(){CP.UI.goToUnsecure({section:"dashboard"})};if(CP.controller.isSignedIn()){k()}else{CP.UI.drawSignInPanel(k)}},drawProductViews:function(l,k,o,n,m,p){return DIV({id:"productthumbnailsrrect"},DIV({id:"productviewssubtitle"},P("Product Views:")),DIV({style:{position:"relative",left:"10px"}},k&&b(l,k[0],0,m,p),k&&b(l,k[1%k.length],1,m,p),k&&b(l,k[2%k.length],2,m,p)))},channelSidebar:function(){var m=function(o){var p="cat_"+o;return h(p,{"font-weight":"bold","padding-bottom":"4px","padding-top":"5px"},{section:"main",cat:o,subcat:null},"Channel",o)};var l=function(o,q){var p="subcat_"+q;return h(p,{"padding-left":"14px"},{section:"main",cat:o,subcat:q},"Subchannel",o+"-"+q)};var k;var n=DIV({id:"background_channels"},DIV({id:"channelrrect"},IMG({src:CP.util.staticURL("cp_templates/sg_cpchannels_media/channelrrect.png"),height:"500",width:"231",style:{position:"absolute",top:"0px",left:"0px","z-index":0}}),DIV({id:"channelstitle"},"CircusPop Channels"),k=UL({id:"channelmenu"})));$.each(CP.data.productCategories,function(p,o){k.append(m(o[0]));$.each(o[1],function(q,r){k.append(l(o[0],r))})});return n},setInitialPicture:function(k,m,l,n){this.fitProductPicture(k,m,800,l,n)},goHome:function(){CP.UI.goToUnsecure({section:"main"},true)},goToLiveAuctions:function(){CP.UI.goToUnsecure({section:"main"})},goToAbout:function(){CP.UI.goToUnsecure({section:"about"})},goToCompanyProfile:function(){CP.UI.goToUnsecure({section:"companyprofile"})},goToEndedAuctions:function(){CP.UI.goToUnsecure({section:"endedAuctions"})},goToComingSoon:function(){CP.UI.goToUnsecure({section:"endedAuctions"})},drawPopupWindow:function(k,m,l){scroll(0,0);var n;var o=function(){n.remove()};l=l||{bottom:"5px",position:"absolute"};n=DIV({id:"background_login"},DIV({id:"popupwhitebkgnd"}),DIV({id:"cpwinningbid"},DIV({id:"popupbkgnd"},DIV({id:"popupinnerbkgnd"},DIV({id:"balloonsimg"},IMG({alt:"balloons",width:286,src:k,style:l})),DIV({id:"victoryclosebuttonbutton"},A(o)),m))));return n},drawSeal:function(){var k=function(){window.open("https://seal.godaddy.com:443/verifySeal?sealID=B6MOJ14vRBGWHfgL1ORP5uyp1dNQaTFOS5FfqXeP1F62bweLTEZz","SealVerfication","location=yes,status=yes,resizable=yes,scrollbars=no,width=536,height=433")};return IMG({style:{width:"115px",height:"60px",cursor:"pointer","margin-left":"5px"},observeClick:k,src:"https://seal.godaddy.com:443/images/1/siteseal_gd_1_h_s_dv.png"})},setFocus:function(){$("input.focus:first").focus()},init:function(){},renderName:function(k){if(k.substring(0,3)==="fb:"){k=k.split(":")[2]}return k},getSessionInfo:function(){return{}},isUIinPaidState:a,drawSmallPopupWindow:function(k){scroll(0,0);var l;var m=function(){l.remove()};l=DIV({id:"background_login"},DIV({id:"popupwhitebkgnd"}),DIV({style:{margin:"0 auto",position:"relative",width:"554px"}},DIV({style:{background:"url("+CP.util.staticURL("site/images/new_popup_background_outer.png")+") no-repeat top left",position:"absolute","z-index":"3",visibility:"visible",top:"0px",height:"425px",width:"554px"}},DIV({style:{background:"url("+CP.util.staticURL("site/images/new_popup_background_inner.png")+") no-repeat top left",left:"8px",top:"10px",position:"absolute","z-index":"4",height:"406px",width:"538px"}},DIV({style:{width:"25px",height:"25px",position:"absolute","z-index":"4",left:"517px",top:"-6px"}},A(m,{style:{width:"25px",height:"25px",display:"block",background:"url("+CP.util.staticURL("site/images/new_popup_close.png")+") no-repeat top left"}})),k))));return l},termsClickTo:e,privacyClickTo:j}}()));var TEXTONLY=function(){var a=arguments;return function(){var b=DIV({"class":"textonly"});$.each(a,function(){b.append(this)});return b}};var CP=CP||{};CP.lang=CP.lang||{};$.extend(CP.lang,{cat_appl:"Apple",cat_audi:"Audio",cat_came:"Cameras & Camcorders",cat_cell:"Cell Phones",cat_comp:"Computers & Office",cat_gift:"Gift Cards & Certificates",cat_home:"Home & Kitchen",cat_kids:"Kids & Baby",cat_othe:"Other Electronics",cat_spor:"Sporting Goods",cat_spec:"Special Occasions",cat_char:"Charity",cat_test:"Test Prep",cat_tv:"TV & Video",cat_vide:"Video Games",subcat_d25:"$25 - $50",subcat_d100:"$100",subcat_d200:"$200",subcat_d300:"$300",subcat_d500:"$500",subcat_d1000:"$1000",subcat_appl:"Apple",subcat_acomp:"Computers",subcat_comp:"Computers",subcat_ipho:"iPhones",subcat_ipod:"iPods",subcat_othe:"Accessories",subcat_home:"Home Audio",subcat_port:"Portable Audio",subcat_camc:"Camcorders",subcat_digi:"Digital SLRs",subcat_poin:"Point & Shoot",subcat_acce:"Accessories",subcat_smar:"Smart Phones",subcat_lapt:"Laptops",subcat_netb:"Netbooks",subcat_peri:"Accessories",subcat_fitn:"Fitness",subcat_golf:"Golf & Tennis",subcat_indo:"Indoor Recreation",subcat_boy:"For Him",subcat_girl:"For Her",subcat_sat:"SAT",subcat_gmat:"GMAT",subcat_lsat:"LSAT",subcat_mcat:"MCAT",subcat_gre:"GRE",subcat_tv:"TVs",subcat_dvd:"DVD/DVR Players",subcat_cons:"Consoles",subcat_game:"Games",subcat_arca:"Arcade",subcat_pinb:"Pinball",link_help:"Help",link_howit:"How It Works",link_faqs:"FAQs",link_emai:"Email Support",link_ship:"Shipping & Delivery",link_site:"Site Map",link_term:"Terms & Conditions",link_priv:"Privacy",link_forgotpass:"Forgot Password?",link_abou:"About CircusPop",link_comp:"Company Profile",link_blog:"Blog",link_news:"News",link_empl:"Employment",link_cont:"Contact",link_myc:"My CircusPop",link_dash:"Dashboard",link_prof:"Profile",link_watc:"Watch List","link_bid ":"Bid History",link_invi:"Invite Friends",link_auct:"Auctions",link_live:"Live Auctions",link_ende:"Ended Auctions",link_pric:"Price-Check Auction",link_spee:"Speed-Sale Auction",link_poli:"Policy",link_feed:"Feedback",link_mobi:"CP Mobile",link_buyb:"Buy Bids",link_bidm:"Bid Master",link_sing:"Single Click Buy",shipping_methods:{ground:"Standard (5 - 7 Days)",fastground:"Priority (3 - 5 Days)",air2:"2 Day Air",nextair:"Next Day",electronic:"Email",NA:"Not Applicable"},quickstart_one:"Register",quickstart_two:"Buy bids",quickstart_three:'Click "Drop Price"',quickstart_four:'"Buy Now" or check back later',recent_deals:"Recent CircusPop Deals",i_agree:"I have read and agree to CircusPop's",termsAndConditions:"Terms and Conditions",privacypolicy:"Privacy Policy",popup_apology:"Someone else bought the item you wanted!  Remember, anyone can buy any item at any time.  Chances are, if you think it's a good deal, someone else will think it's a great deal.  So next time act fast!",popup_ie6:"CircusPop is designed to be compatible with Internet Explorer 7 and above.  Please upgrade to Internet Explorer 7 to fully enjoy CircusPop.",popup_foreign:"Right now we cannot serve people living outside the United States.  Please check back soon.",popup_shipping_explanation:"To protect your security, for seven (7) days after making your first purchase, CircusPop only allows you to ship products to the billing address you have on file with your credit card company.  We regret any inconvenience.",popup_paid_state_warning1:"You are about to navigate away from your LIVE auction.",popup_paid_state_warning2:"Your available time will end and you will need to expend another bid to see the price again.",popup_paid_state_warning3:"Are you sure you want to continue?",popup_wait:"Wait!",spotlight_bid_intro:"Every click DROPS the price $0.25",spotlight_bid_explanation:"(1 click = 1 bid token)",spotlight_tut_intro:"Give it a try now!",needBidsToBid:"You don't have any bids.  You can purchase some below.  The more you buy the better the deal!",bidconfirm1:"This is a friendly reminder that you are about to expend 1 bid to see the price of this item.",bidconfirm2:'If you would like to continue, please press "Confirm".  If you would like to go back, please press "Cancel".',error_mustsignintobid:"You need to sign in before you can bid",error_passwordBelowMinimum:"Password must be at least six characters",error_passwordDoesntMatch:"Passwords don't match",error_nameBelowMinimum:"User Name must be at least five characters",error_emailNotFormatted:"Email must be name@company.com",error_SigninFailed:"name/password not found",error_userNameNotValid:"User name must start with a character and only contain characters and numbers",error_disclaimerNotChecked:"Terms and Condition and Privacy Policy must be read and agreed to",registration_errors:{nameexists:"User name is already in use",emailexists:"E-mail is already in use",impropername:"User name contains inappropriate words",captcha:"Please try captcha again",unknown:"Unknown error, please try again"},error_wrongpass:"Password is incorrect",error_auctionOver_bid:"The auction is over. You cannot see this item's price anymore.",error_auctionOver_buyNow:"Sorry! You missed your chance to buy this item.",error_disconnect:"Communication problems prevented your bid from going through.  Try again in a few seconds.  If the problem persists, reload your page or contact Customer Service.",fb_error_missed1:'Sorry, someone else snagged the deal before you did! A deal isn\'t yours until you click "Buy It Now" on the confirmation screen.',fb_error_missed2:"Keep playing and better luck next time!",error_firstNameEmpty:"First name must be filled",error_lastNameEmpty:"Last name must be filled",error_street1Empty:"Address must be filled",error_stateNotSelected:"State must be selected",error_cityEmpty:"City must be filled",error_postalCodeEmpty:"Zip code must be filled",error_emailEmpty:"E-mail must be filled",error_notEmail:"The entered e-mail address is not an e-mail address",error_emailNotEqual:"The entered e-mails do not match",error_CCtypeNotSelected:"Payment type must be selected",error_CCnumberBad:"Credit card Number invalid",error_CCexpMonthEmpty:"Credit card expiration month must be filled",error_CCexpYearEmpth:"Credit card expiration year must be filled",error_CCcvvEmpty:"Credit card security code must be filled",error_couponalreadyused:"You have already used this promo card",error_nosuchcoupon:"There is no coupon with that code",error_CCfail:"The Credit Card information is invalid",error_unknown:"An unknown error has occurred",error_noShippingSelected:"A shipping option must be selected",coupon_threefreebids:"Three extra bids FREE with $10 purchase!",error_couponTenMinimum:"Minimum $10 purchase to qualify for three free bids!",coupon_tenfreebids:"Ten extra bids FREE with a purchase of a 10-bid pack!",error_couponTenPackMinimum:"Must purchase a 10-bid pack to qualify for Ten free bids!",forget_pass_success:"An E-mail has been sent with further instructions. Please check your e-mail.",forget_pass_error:"Your request could not be completed at this moment. Please try again.",see_price:"Drop Price",buy_now:"Buy Now",get_it_now:"Price Check Auction",sold:"Sold",shippingSpecial:"SPECIAL LAUNCH PROMOTION: Free shipping on all auctions through December 31st!",endedAuctions:"Ended Auctions",liveAuctions:"Live Auctions",featuredAuctions:"Featured Auctions",error_notInternationalYet:"Currently, CircusPop only accepts credit-cards with US billing addresses and only ships merchandise within the US",error_optionNotSelected:"Please select an option",not_selected:"Not selected",product_options:{console:[{label:"Console",options:{wii:"Wii",ps3:"Playstation",xbox:"Xbox"}}],consolenowii:[{label:"Console",options:{ps3:"Playstation",xbox:"Xbox"}}],dinnerandmovie:[{label:"Restaurant",options:{applebees:"Applebees",cheesecake:"Cheesecake Factory",chili:"Chili's",cpk:"CPK",morton:"Morton's",olive:"Olive Garden",outback:"Outback",changs:"P.F. Chang's",ruth:"Ruth's Chris"}},{label:"Theater",options:{amc:"AMC",regal:"Regal (Regal, Edwards, United Artists)",cinemark:"Cinemark (Century, CineArts, Tinseltown)"}}],movie:[{label:"Theater",options:{amc:"AMC",regal:"Regal (Regal, Edwards, United Artists)",cinemark:"Cinemark (Century, CineArts, Tinseltown)"}}],electronicsgift:[{label:"Store",options:{amazon:"Amazon (electronic gift certificate)",apple:"Apple",best:"Best Buy",buy:"Buy.com (electronic gift certificate)",compusa:"CompUsa.com (electronic gift certificate)",newegg:"Newegg (electronic gift certificate)",radio:"Radio Shack",sonystyle:"SonyStyle"}}]},invite_reminder:"Check their status and remind them what a great deal they're getting and what a great friend you are. Remember, you're doing THEM a favor by giving them free bids.",invite_enter_email:"(Enter one e-mail per line or invite from your ",invite_message:'(feel free to use "your voice" if you don\'t like ours):',invite_textarea:"Hey, have you joined CircusPop yet?  If not, here are a couple bids to get you started.  It is a great site for consumer electronics, gift cards and other great products, all at serious discounts up to 50+% off.  It is free to register; all you have to do is click on the link below.",thanks_for_inviting:"Invite e-mails have been sent to your friends!",thanks_for_confirming:"Thanks for confirming your e-mail address.  Your account has been credited with a free bid.",lp_p1:"Find great deals on popular electronics and gift cards.",lp_p2:"Our prices are 10% lower than Amazon on average and we guarantee the lowest prices on the internet or your money back.",lp_p3:"On Circuspop Prices only go down. Now get a FREE BID when you register!",forever:"Forever",bid_names:{GOLD:"Purchased Bids",SILVER:"Purchased Bids",BRONZE:"Free Bids",PAPER:"Gift Tokens",TIN:"Facebook Tokens"},bid_explanation:{BRONZE:"Free bids reveal the current price of the product and enable you to make a purchase, but do not drop the price.  Free bids must be used within one week of registration."},captchaExplanation:"We need to know you're a real person",auction_status_UPCOMING:"coming up",auction_status_RUNNING:"current",auction_status_COMPLETED:"previous",error_dollar_sign_in:"You need to sign in to check the serial number!",pluralize:function(b,a){return String(b)+" "+a+((b===1)?"":"s")},Confirmation:"Confirmation",Order:"Order # : ",orderdate:"Order Date : ",orderText:["Your order will be processed promptly.","We will send you a confirmation email which will include a tracking number (if applicable).","You can also check your order status by going to your MyCircusPop account.",'Thanks again for making CircusPop an "auction packed" site!'],salutation:["Happy bidding!","The CircusPop Crew"],HiGreeting:"Hi, %s !",winnerText:"You are the Winner!",saveText:"You just saved $%d on your purchase of %s with CircusPop for total savings of %d %%",accountName:"Account Name",viewAccount:"View Account Info",Bids:"Bids",Type:"Type",Expire:"Expire",totalBids:"     %d Total Bids",recentItems:"To see your recent items and access your account information, go to your MyCircusPop page.",minBids:"Minimum purchase is 10 Bids",spotlight_button:"Spotlight Button",hero_button:"Hero Button",profile_button:"Profile Button"});function str_repeat(b,a){for(var c=[];a>0;c[--a]=b){}return(c.join(""))}function sprintf(){var g=0,e,h=arguments[g++],k=[],d,j,l,b;while(h){if(d=/^[^\x25]+/.exec(h)){k.push(d[0])}else{if(d=/^\x25{2}/.exec(h)){k.push("%")}else{if(d=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(h)){if(((e=arguments[d[1]||g++])==null)||(e==undefined)){throw ("Too few arguments.")}if(/[^s]/.test(d[7])&&(typeof(e)!="number")){throw ("Expecting number but found "+typeof(e))}switch(d[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=d[6]?e.toExponential(d[6]):e.toExponential();break;case"f":e=d[6]?parseFloat(e).toFixed(d[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=((e=String(e))&&d[6]?e.substring(0,d[6]):e);break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase();break}e=(/[def]/.test(d[7])&&d[2]&&e>0?"+"+e:e);l=d[3]?d[3]=="0"?"0":d[3].charAt(1):" ";b=d[5]-String(e).length;j=d[5]?str_repeat(l,b):"";k.push(d[4]?e+j:j+e)}else{throw ("Huh ?!")}}}h=h.substring(d[0].length)}return k.join("")};jQuery.fn.bindCEvent=function(b,a){this.bind("ready.custom",function(c,d){if(d.type===b){a(c,d.data);c.stopPropagation()}});this.addClass("event-"+b)};jQuery.triggerCEvent=function(a,b){$(".event-"+a).trigger("ready.custom",{data:b,type:a})};(function(j){var c=function(l,i,m){var n=i.toLowerCase();if(n==="class"){l.addClass(m)}else{if((n==="style")&&(typeof(m)==="object")){l.css(m)}else{if(n.substring(0,7)==="observe"){l.bind(i.substring(7).toLowerCase(),m)}else{if(n==="rowspan"){i="rowSpan"}else{if(n==="colspan"){i="colSpan"}else{if(n==="frameborder"){i="frameBorder"}}}l.attr(i,m)}}}};var h=function(t,o){var p={};var r=0;if((o!==null)&&(o.length>0)){var s=o[0];if(s&&(typeof(s)=="object")&&!("jquery" in s)){p=s;r=1}}var m;if(jQuery.browser.msie&&(t==="input")&&p.name){m=document.createElement('<input name="'+p.name+'"/>')}else{m=document.createElement(t)}m=$(m);if((t==="a")&&!p.href){m.attr("href","#");m.bind("click",function(){return false})}for(var l in p){c(m,l,p[l])}for(var q=r;q<o.length;++q){if(typeof(o[q])==="function"){m.append(o[q]())}else{if((typeof(o[q])==="string")||(typeof(o[q])==="number")){m.append(document.createTextNode(o[q]))}else{m.append(o[q])}}}return m};var d=["table","tbody","thead","tr","th","td","a","strong","div","img","br","b","span","li","ul","ol","iframe","form","h1","input","h2","h3","h4","h5","h6","p","br","select","option","optgroup","script","label","textarea","em","button","b","hr","fieldset","nobr","object","embed","param","style"];var b=function(i){return function(){return h(i,arguments)}};for(var g=0;g<d.length;g++){var e=d[g].toUpperCase();var k=d[g];j[e]=b(k)}var a=function(i){return Array.prototype.slice.call(i)};var f=j.A;j.A=function(){var m=null;var i=a(arguments);if(typeof(i[0])=="function"){m=i.shift()}var l=f.apply(this,i);if(m){l.click(function(n){n.preventDefault();m();return false})}return l}})(self);var CP=CP||{};CP.data=CP.data||{};CP.data.productCategories=[["appl",["ipod","acomp","othe"]],["audi",["home","port"]],["came",["camc","digi","poin"]],["char",[]],["comp",["netb","peri"]],["gift",["d25","d100"]],["othe",[]],["tv",["tv","dvd","peri"]],["vide",["cons"]]];CP.data.states=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"];CP.data.vendors={en:{none:"No vendors yet"},vals:["none"]};CP.data.shippingMethods={0:[{method:"ground",cost:0}],1:[{method:"ground",cost:0}],2:[{method:"ground",cost:0}],3:[{method:"ground",cost:0}],4:[{method:"ground",cost:0}],5:[{method:"ground",cost:0}],6:[{method:"ground",cost:0}],7:[{method:"ground",cost:0}],8:[{method:"ground",cost:31990}],9:[{method:"ground",cost:199}],10:[{method:"electronic",cost:199}]};CP.data.options={console:[["xbox","ps3","wii"]],consolenowii:[["xbox","ps3"]],dinnerandmovie:[["applebees","cheesecake","chili","cpk","morton","olive","outback","changs","ruth"],["amc","regal","cinemark"]],movie:[["amc","regal","cinemark"]],electronicsgift:[["amazon","apple","best","buy","compusa","newegg","radio","sonystyle"]]};var CP=CP||{};CP.util=(function(){var n=function(G,I){var H=function(J,K){return(J.charAt(0)===K)&&(J.charAt(J.length-1)===K)};var D=function(J){return J.substring(1,J.length-1)};var F=function(K,J){J=J.split(/(_[^_]*_|\*[^*]*\*)+/);$.each(J,function(L){var M=J[L];if(H(M,"*")){K.append(B(D(M)))}else{if(H(M,"_")){K.append(EM(D(M)))}else{K.append(M)}}});return K};I=I.split("\n");var E=null;var C=null;$.each(I,function(K){var J=I[K];if(!J){E=null;C=null}else{if(J.charAt(0)==="="){if(J.charAt(1)==="="){G.append(H2(J.substring(2)))}else{G.append(H1(J.substring(1)))}}else{if(J.charAt(0)==="*"){if(!E||(E[0].nodeName!=="UL")){E=UL();G.append(E)}E.append(LI(J.substring(1)))}else{if(J.charAt(0)==="#"){if(!C){G.append(TABLE(C=TBODY()))}C.append(E=TR())}else{if(E){if(E.get(0).nodeName==="P"){F(E.append(" "),J)}else{if(E.get(0).nodeName==="TR"){E.append(F(TD(),J))}else{E=null}}}if(!E){G.append(E=F(P(),J))}}}}}});return G};var q=function(C){var D={};if(C){$.each(C.split("&"),function(F,E){E=E.split("=");if(E.length===2){D[decodeURIComponent(E[0])]=decodeURIComponent(E[1])}})}return D};var h=function(){return q(window.location.hash&&window.location.hash.slice(1))};var g=function(){return q(window.location.search&&window.location.search.slice(1))};var y=function(D){var C=[];if(D){$.each(D,function(F,E){if(E){C.push(encodeURIComponent(F)+"="+encodeURIComponent(E))}})}return C.join("&")};var v=function(C){return sprintf("$%03.2f",C/100)};var f=function(C,D){return CP.config.servletURL+"/"+C+"/"+D};var j=function(C){return CP.config.staticURL+"/"+C};var d={"bidpack-1":1,"bidpack-10":10,"bidpack-25":25,"bidpack-50":50};var b=[{id:"bidpack-1",name:"Bid Pack-1",count:1,unitPrice:99,image:j("site/images/bidcoin1.png")},{id:"bidpack-10",name:"Bid Pack-10",count:10,unitPrice:10*85,image:j("site/images/bidcoin2.png")},{id:"bidpack-25",name:"Bid Pack-25",count:25,unitPrice:25*75,image:j("site/images/bidcoin4.png")},{id:"bidpack-50",name:"Bid Pack-50",count:50,unitPrice:50*70,image:j("site/images/bidcoin8.png")}];var p=function(C){for(var D=0;D<b.length;D++){if(C===b[D].id){return b[D]}}return null};var z=/^[A-Z0-9._%+\-]+@[A-Z0-9.\-]+\.[A-Z]{2,4}$/i;var x=function(C){return !!z.exec(C)};var w=/^[A-Z][A-Z0-9]*$/i;var k=function(C){return !!w.exec(C)};var t=function(C){return C.replace(/^\s+|\s+$/g,"")};var r=function(D){var C=function(F){return typeof(F)!=="function"};if(D===null){return D}if($.isArray(D)){return $.map($.grep(D,C),r)}if(typeof(D)==="object"){var E={};$.each(D,function(G,F){if(C(F)){E[G]=r(F)}});return E}else{if(C(D)){return D}}};var c=function(F,E,C,D){$.post(f(F,E),C,D,"json")};var e=function(F,E,C,D){$.get(f(F,E),C,D,"json")};var m=function(E,F,G){var C="";if(G){var D=new Date();D.setTime(D.getTime()+(G*24*60*60*1000));C="; expires="+D.toGMTString()}document.cookie=E+"="+F+C+"; path=/"};var a=function(D){var F=D+"=";var C=document.cookie.split(";");for(var E=0;E<C.length;E++){var G=C[E];while(G.charAt(0)===" "){G=G.substring(1,G.length)}if(G.indexOf(F)===0){return G.substring(F.length,G.length)}}return null};var A=function(C){m(C,"",-1)};var i=function(C){return C};var o=function(D,F,C,E){var G='<object border="0" width="'+F+'" height="'+C+'">';G+='<param name="movie" value="'+D+'"></param><param name="allowFullScreen" value="true"></param>';G+='<param name="allowscriptaccess" value="always"></param><param name="wmode" value="opaque"></param>';G+='<embed id="'+E+'" src="'+D+'" type="application/x-shockwave-flash"';G+=' allowscriptaccess="always" allowfullscreen="true" width="'+F+'" height="'+C+'" wmode="opaque"></embed></object>';return G};var u=function(C){return"url("+j(C)+")"};var s=function(E){var C={};var D=false;return function(){var H=[];var J=arguments[0];for(var I=1;I<arguments.length;I++){H.push(arguments[I])}var F=H.join("%");var G=C[F]||{callbacks:[],args:H};G.callbacks.push(J);C[F]=G;if(!D){D=true;setTimeout(function(){var K=C;C={};D=false;E(K)},0)}}};var l=function(C){return $("#"+C)[0]};return{trim:t,isEmailAddress:x,parseAnchor:h,getAnchorParms:h,getQueryParms:g,encodeQuery:y,numberIntoDollar:v,getHostname:function(){return window.location.hostname},makeServletURL:f,getBidpack:p,getBidpackArray:function(){return b},postToSite:c,getFromSite:e,dataOf:r,wikify:n,isValidUserName:k,staticURL:j,createCookie:m,readCookie:a,eraseCookie:A,displayOrderID:i,generateFlashEmbedHTML:o,makeQueue:s,CSSbgURL:u,getSystemTime:function(){return new Date().getTime()},getFlashMovieObject:l}}());LazyLoad=function(){var n=document,m,q={},o={css:[],js:[]},r;function d(b,c){var a=n.createElement(b),e;for(e in c){if(c.hasOwnProperty(e)){a.setAttribute(e,c[e])}}return a}function l(e){var b=q[e];if(!b){return}var a=b.callback,c=b.urls;c.shift();if(!c.length){if(a){a.call(b.scope||window,b.obj)}q[e]=null;if(o[e].length){k(e)}}}function p(){if(r){return}var b=navigator.userAgent,a=parseFloat,c;r={gecko:0,ie:0,opera:0,webkit:0};c=b.match(/AppleWebKit\/(\S*)/);if(c&&c[1]){r.webkit=a(c[1])}else{c=b.match(/MSIE\s([^;]*)/);if(c&&c[1]){r.ie=a(c[1])}else{if((/Gecko\/(\S*)/).test(b)){r.gecko=1;c=b.match(/rv:([^\s\)]*)/);if(c&&c[1]){r.gecko=a(c[1])}}else{if(c=b.match(/Opera\/(\S*)/)){r.opera=a(c[1])}}}}}function k(a,b,u,f,j){var e,c,g,h,i;p();if(b){b=b.constructor===Array?b:[b];if(a==="css"||r.gecko||r.opera){o[a].push({urls:[].concat(b),callback:u,obj:f,scope:j})}else{for(e=0,c=b.length;e<c;++e){o[a].push({urls:[b[e]],callback:e===c-1?u:null,obj:f,scope:j})}}}if(q[a]||!(h=q[a]=o[a].shift())){return}m=m||n.getElementsByTagName("head")[0];b=h.urls;for(e=0,c=b.length;e<c;++e){i=b[e];if(a==="css"){g=d("link",{href:i,rel:"stylesheet",type:"text/css"})}else{g=d("script",{src:i})}if(r.ie){g.onreadystatechange=function(){var s=this.readyState;if(s==="loaded"||s==="complete"){this.onreadystatechange=null;l(a)}}}else{if(a==="css"&&(r.gecko||r.webkit)){setTimeout(function(){l(a)},50*c)}else{g.onload=g.onerror=function(){l(a)}}}m.appendChild(g)}}return{css:function(b,a,c,e){k("css",b,a,c,e)},js:function(b,a,c,e){k("js",b,a,c,e)}}}();