');
a.each(j.results,function(k,n){
if(n.seq>m)m=n.seq;
n.deleted!==true&&n.doc.action!==null&&f.push(n.doc)
});
g=m;
c(e,f,h,g)
}
,"jsonp")
}
,200)
})
};
a.fn.skxwalladd=function(e,f,g,h,j){
return this.each(function(){
var m=new b;
m.user.name=e;
m.user.link=f;
m.user.id=getUserId();
m.action.type=g;
m.action.name=h;
m.action.link=j;
a.ajax({
type:"POST",url:"/wall/",data:a.toJSON(m),dataType:"json",contentType:"application/json",success:function(){},
error:function(){}
})
})
}
})(jQuery);
$(function(){
$("#droplet-wall").skxwall()
});
(function(a){
function b(n,l){
return parseInt(a.css(n,l))||0
}
function c(n){
n=parseInt(n).toString(16);
return n.length<2?"0"+n:n
}
function d(n){
for(;
n;
){
var l=a.css(n,"backgroundColor");
if(l&&l!="transparent"&&l!="rgba(0, 0, 0, 0)"){
if(l.indexOf("rgb")>=0){
n=l.match(/\d+/g);
return"#"+c(n[0])+c(n[1])+c(n[2])
}
return l
}
n=n.parentNode
}
return"#ffffff"
}
function e(n,l,p){
switch(n){
case "round":return Math.round(p*(1-Math.cos(Math.asin(l/p))));
case "cool":return Math.round(p*(1+Math.cos(Math.asin(l/p))));
case "sharp":return Math.round(p*
(1-Math.cos(Math.acos(l/p))));
case "bite":return Math.round(p*Math.cos(Math.asin((p-l-1)/p)));
case "slide":return Math.round(p*Math.atan2(l,p/l));
case "jut":return Math.round(p*Math.atan2(p,p-l-1));
case "curl":return Math.round(p*Math.atan(l));
case "tear":return Math.round(p*Math.cos(l));
case "wicked":return Math.round(p*Math.tan(l));
case "long":return Math.round(p*Math.sqrt(l));
case "sculpt":return Math.round(p*Math.log(p-l-1,p));
case "dogfold":case "dog":return l&1?l+1:p;
case "dog2":return l&2?
l+1:p;
case "dog3":return l&3?l+1:p;
case "fray":return l%2*p;
case "notch":return p;
case "bevelfold":case "bevel":return l+1
}
}
var f=document.createElement("div").style,g=f.MozBorderRadius!==undefined,h=f.WebkitBorderRadius!==undefined,j=f.borderRadius!==undefined||f.BorderRadius!==undefined;
f=document.documentMode||0;
var m=a.browser.msie&&(a.browser.version<8&&!f||f<8),k=a.browser.msie&&function(){
var n=document.createElement("div");
try{
n.style.setExpression("width","0+0");
n.style.removeExpression("width")
}
catch(l){
return false
}
return true
}
();
a.fn.corner=function(n){
if(this.length==0){
if(!a.isReady&&this.selector){
var l=this.selector,p=this.context;
a(function(){
a(l,p).corner(n)
})
}
return this
}
return this.each(function(){
var o=a(this),q=[o.attr(a.fn.corner.defaults.metaAttr)||"",n||""].join(" ").toLowerCase(),v=/keep/.test(q),r=(q.match(/cc:(#[0-9a-f]+)/)||[])[1],t=(q.match(/sc:(#[0-9a-f]+)/)||[])[1],u=parseInt((q.match(/(\d+)px/)||[])[1])||10,A=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;
A=(q.match(A)||["round"])[0];
var D=/dogfold|bevelfold/.test(q),C={
T:0,B:1
};
q={
TL:/top|tl|left/.test(q),TR:/top|tr|right/.test(q),BL:/bottom|bl|left/.test(q),BR:/bottom|br|right/.test(q)
};
if(!q.TL&&!q.TR&&!q.BL&&!q.BR)q={
TL:1,TR:1,BL:1,BR:1
};
if(a.fn.corner.defaults.useNative&&A=="round"&&(j||g||h)&&!r&&!t){
if(q.TL)o.css(j?"border-top-left-radius":g?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",u+"px");
if(q.TR)o.css(j?"border-top-right-radius":g?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
u+"px");
if(q.BL)o.css(j?"border-bottom-left-radius":g?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",u+"px");
if(q.BR)o.css(j?"border-bottom-right-radius":g?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",u+"px")
}
else{
o=document.createElement("div");
a(o).css({
overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:t||"transparent",borderStyle:"solid"
});
t={
T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||
0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0
};
if(typeof this.style.zoom!=undefined)this.style.zoom=1;
if(!v)this.style.border="none";
o.style.borderColor=r||d(this.parentNode);
v=a(this).outerHeight();
for(var z in C)if((r=C[z])&&(q.BL||q.BR)||!r&&(q.TL||q.TR)){
o.style.borderStyle="none "+(q[z+"R"]?"solid":"none")+" none "+(q[z+"L"]?"solid":"none");
var x=document.createElement("div");
a(x).addClass("jquery-corner");
var s=x.style;
r?this.appendChild(x):this.insertBefore(x,
this.firstChild);
if(r&&v!="auto"){
if(a.css(this,"position")=="static")this.style.position="relative";
s.position="absolute";
s.bottom=s.left=s.padding=s.margin="0";
if(k)s.setExpression("width","this.parentNode.offsetWidth");
else s.width="100%"
}
else if(!r&&a.browser.msie){
if(a.css(this,"position")=="static")this.style.position="relative";
s.position="absolute";
s.top=s.left=s.right=s.padding=s.margin="0";
if(k){
var w=b(this,"borderLeftWidth")+b(this,"borderRightWidth");
s.setExpression("width","this.parentNode.offsetWidth - "+
w+'+ "px"')
}
else s.width="100%"
}
else{
s.position="relative";
s.margin=!r?"-"+t.T+"px -"+t.R+"px "+(t.T-u)+"px -"+t.L+"px":t.B-u+"px -"+t.R+"px -"+t.B+"px -"+t.L+"px"
}
for(s=0;
s").css(s).css({
width:u+"px",height:"1px"
});
switch(y){
case "TL":w.css({
bottom:0,left:0
});
break;
case "TR":w.css({
bottom:0,right:0
});
break;
case "BL":w.css({
top:0,left:0
});
break;
case "BR":w.css({
top:0,right:0
});
break
}
x.appendChild(w[0]);
s=a("").css(s).css({
top:0,bottom:0,width:"1px",height:u+"px"
});
switch(y){
case "TL":s.css({
left:u
});
break;
case "TR":s.css({
right:u
});
break;
case "BL":s.css({
left:u
});
break;
case "BR":s.css({
right:u
});
break
}
x.appendChild(s[0])
}
}
}
})
};
a.fn.uncorner=function(){
if(j||g||h)this.css(j?"border-radius":g?"-moz-border-radius":"-webkit-border-radius",0);
a("div.jquery-corner",this).remove();
return this
};
a.fn.corner.defaults={
useNative:true,metaAttr:"data-corner"
}
})(jQuery);
(function(a){
a.fn.jqm=function(l){
var p={
overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:f,ajaxText:"",target:f,modal:f,toTop:f,onShow:f,onHide:f,onLoad:f
};
return this.each(function(){
if(this._jqm)return c[this._jqm].c=a.extend({},c[this._jqm].c,l);
b++;
this._jqm=b;
c[b]={
c:a.extend(p,a.jqm.params,l),a:f,w:a(this).addClass("jqmID"+b),s:b
};
p.trigger&&a(this).jqmAddTrigger(p.trigger)
})
};
a.fn.jqmAddClose=function(l){
return n(this,l,"jqmHide")
};
a.fn.jqmAddTrigger=function(l){
return n(this,
l,"jqmShow")
};
a.fn.jqmShow=function(l){
return this.each(function(){
l=l||window.event;
a.jqm.open(this._jqm,l)
})
};
a.fn.jqmHide=function(l){
return this.each(function(){
l=l||window.event;
a.jqm.close(this._jqm,l)
})
};
a.jqm={
hash:{},open:function(l,p){
var o=c[l],q=o.c,v="."+q.closeClass,r=parseInt(o.w.css("z-index"));
r=r>0?r:3E3;
var t=a("").css({
height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":r-1,opacity:q.overlay/100
});
if(o.a)return f;
o.t=p;
o.a=true;
o.w.css("z-index",r);
if(q.modal){
d[0]||
m("bind");
d.push(l)
}
else if(q.overlay>0)o.w.jqmAddClose(t);
else t=f;
o.o=t?t.addClass(q.overlayClass).prependTo("body"):f;
if(e){
a("html,body").css({
height:"100%",width:"100%"
});
if(t){
t=t.css({
position:"absolute"
})[0];
for(var u in{
Top:1,Left:1
})t.style.setExpression(u.toLowerCase(),"(_=(document.documentElement.scroll"+u+" || document.body.scroll"+u+"))+'px'")
}
}
if(q.ajax){
l=q.target||o.w;
r=q.ajax;
l=typeof l=="string"?a(l,o.w):a(l);
r=r.substr(0,1)=="@"?a(p).attr(r.substring(1)):r;
l.html(q.ajaxText).load(r,
function(){
q.onLoad&&q.onLoad.call(this,o);
v&&o.w.jqmAddClose(a(v,o.w));
h(o)
})
}
else v&&o.w.jqmAddClose(a(v,o.w));
q.toTop&&o.o&&o.w.before('').insertAfter(o.o);
q.onShow?q.onShow(o):o.w.show();
h(o);
return f
}
,close:function(l){
l=c[l];
if(!l.a)return f;
l.a=f;
if(d[0]){
d.pop();
d[0]||m("unbind")
}
l.c.toTop&&l.o&&a("#jqmP"+l.w[0]._jqm).after(l.w).remove();
if(l.c.onHide)l.c.onHide(l);
else{
l.w.hide();
l.o&&l.o.remove()
}
return f
}
,params:{}
};
var b=0,c=a.jqm.hash,d=[],e=a.browser.msie&&
a.browser.version=="6.0",f=false,g=a('').css({
opacity:0
}),h=function(l){
if(e)if(l.o)l.o.html('').prepend(g);
else a("iframe.jqm",l.w)[0]||l.w.prepend(g);
j(l)
}
,j=function(l){
try{
a(":input:visible",l.w)[0].focus()
}
catch(p){}
}
,m=function(l){
a(document)[l]("keypress",k)[l]("keydown",k)[l]("mousedown",k)
}
,k=function(l){
var p=c[d[d.length-1]];
(l=!a(l.target).parents(".jqmID"+p.s)[0])&&j(p);
return!l
}
,
n=function(l,p,o){
return l.each(function(){
var q=this._jqm;
a(p).each(function(){
if(!this[o]){
this[o]=[];
a(this).click(function(){
for(var v in{
jqmShow:1,jqmHide:1
})for(var r in this[v])c[this[v][r]]&&c[this[v][r]].w[v](this);
return f
})
}
this[o].push(q)
})
})
}
})(jQuery);
skxlocal={
total:{
en_US:"Total"
}
,subjectError:{
en_US:"Please choose a subject."
}
,inmorecolors:{
en_US:"in more colors"
}
,viewOrder:{
en_US:"View Order"
}
,"form-billaddr":{
standard:{
en_US:"Please enter a billing address."
}
,custom:{
en_US:"Please enter a valid address."
}
}
,notEmpty_message:{
en_US:"may not be empty"
}
,bagColor:{
en_US:"Color:"
}
,checkoutNow:{
en_US:"Checkout Now"
}
,emptyGC:{
en_US:"Your gift card is empty"
}
,removeText:{
en_US:"Remove"
}
,emptyBag:{
en_US:"Your shopping bag is empty."
}
,linkInStoreTransaction:{
en_US:"Thank you for requesting an in-store credit. Please allow 24 hours for your reward points to be reflected in your total."
}
,
additionalPaymentNeeded:{
en_US:"Please select an additional payment option."
}
,disablePromoGC:{
en_US:"Promotional codes not vaild for purchase of e-Gift Cards."
}
,useAddress:{
en_US:"Use this address"
}
,year:{
en_US:"Year"
}
,removeWishlistItem:{
en_US:"Are you sure you want to remove this item?"
}
,fitnessGroupPOBox:{
en_US:"SKECHERS Fitness Group products cannot be delivered to P.O. Boxes. Please use a different shipping address."
}
,estTotal:{
en_US:"Estimated Total"
}
,bhFitnessNews:{
en_US:"1021400"
}
,number:{
en_US:"Number"
}
,
"form-pw":{
standard:{
en_US:"Please create a password."
}
,custom:{
en_US:"Your password must be at least 6 characters in length."
}
}
,price:{
en_US:"Price"
}
,cancelWholeOrder:{
en_US:"Cancel Order"
}
,cancelItem:{
en_US:"Cancel"
}
,ccUsed:{
en_US:"Your credit card has been saved."
}
,orderEmptyBag:{
en_US:"Your shopping bag is empty, you will not be able to place an order."
}
,gcError:{
en_US:"Please re-enter the gift card and PIN number."
}
,contactErrorEmail:{
en_US:"Email address is missing or invalid."
}
,bhMen:{
en_US:"1021106"
}
,
afterOrderCancel:{
en_US:"This order will no longer be processed."
}
,clearChoice:{
en_US:"Clear Choice"
}
,noEmailPrefSelected:{
en_US:"Please choose an option."
}
,wishlistEmpty:{
en_US:"Your wish list is empty."
}
,contactSuccess:{
en_US:"Your message was sent successfully!"
}
,currency:{
en_US:"$"
}
,noPaymentSelected:{
en_US:"Please enter a payment method to continue."
}
,enterBillAddr:{
en_US:"Enter a new billing address here:"
}
,orderCancel:{
en_US:"CANCELLED"
}
,orderProcess:{
en_US:"PROCESSING"
}
,orderTotalChange:{
en_US:"Your order total will change and your promotional code will no longer be applied for the following reason:"
}
,
emptyType:{
en_US:"Please select card type."
}
,ew:{
en_US:"Wide Width"
}
,totalBagItem:{
en_US:"You have in your bag."
}
,newPrice:{
en_US:"New Price:"
}
,standardShipping:{
en_US:"
Standard Shipping (4-10 business days)*
*processing usually takes 1-4 days"
}
,noResults:{
en_US:"We were unable to find matches for your search."
}
,"form-addr":{
standard:{
en_US:"Please enter an address."
}
,custom:{
en_US:"Please enter a valid address."
}
}
,infantToddler:{
en_US:"Infant and Toddler:"
}
,
yes:{
en_US:"Yes"
}
,bdayMonths:{
en_US:"Month,JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC"
}
,noBillingAddress:{
en_US:"No billing addresses. Please add one."
}
,updateSuccess:{
en_US:"Your profile has been sucessfully updated!"
}
,contactFail:{
en_US:"We were unable to process your message. Please try again."
}
,parsePhone:{
en_US:"^((\\+\\d{1,3}(-| )?\\(?\\d\\)?(-| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(-| )?(\\d{3,4})(-| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$"
}
,gcApplied:{
en_US:"This gift card has been applied. Please use another card or continue to next step."
}
,
stopUpdateOrder:{
en_US:"Sorry, you are no longer able to update this order."
}
,promoCodeUsed:{
en_US:"Promotional code used:"
}
,close:{
en_US:"Close"
}
,expiredText:{
en_US:"Expired"
}
,bhGirls:{
en_US:"1021122"
}
,completeAllFields:{
en_US:"Please complete all fields"
}
,processing:{
en_US:"Processing..."
}
,enterShipAddr:{
en_US:"Enter a new shipping address here:"
}
,emptyCC:{
en_US:"Please fill out your credit card information."
}
,editShipAddr:{
en_US:"Edit a shipping address"
}
,"employer-name":{
standard:{
en_US:"Please enter employer name."
}
}
,
invalidCvv:{
en_US:"Please enter a valid security code."
}
,qty:{
en_US:"Qty"
}
,size:{
en_US:"Size"
}
,additionalPaymentOption:{
en_US:"Please add an additional payment option."
}
,day:{
en_US:"Day"
}
,shipTotal:{
en_US:"Shipping Total:"
}
,errorAccountCreation:{
en_US:"We encountered a problem while creating your account, please try again."
}
,phoneConcat:{
en_US:"$1-$2-$3"
}
,employer:{
en_US:"Employer:"
}
,savedSearches:{
en_US:"My Saved Searches"
}
,contactMessageError:{
en_US:"Please enter a message."
}
,priceChange:{
en_US:"The total price of this order will change to:"
}
,
loadingMessage:{
en_US:"Loading..."
}
,gcInvalidData:{
en_US:"Card Number or PIN incorrect"
}
,style:{
en_US:"style"
}
,ccExpired:{
en_US:"Your credit card is expired. Please update your credit card information."
}
,preschoolGrade:{
en_US:"Preschool and Grade School:"
}
,bhBoys:{
en_US:"1021123"
}
,participantCode:{
en_US:"Participant Code:"
}
,bagOutOfStock:{
en_US:"Out of Stock"
}
,optOutConfirmMessage:{
en_US:"Are you sure you want to unsubscribe? You will no longer recieve SKECHERS exclusive offers and product announcements via email."
}
,
"form-billPhone":{
standard:{
en_US:"Your billing phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
,custom:{
en_US:"Phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
}
,girls:{
en_US:"Girls'"
}
,"mobile-form-phone":{
standard:{
en_US:"Phone # is missing or entered incorrectly.Please try again."
}
,custom:{
en_US:"Phone # is missing or entered incorrectly.Please try again."
}
}
,noOrderHistory:{
en_US:"No order history exists for this account."
}
,
bhWomen:{
en_US:"1021107"
}
,retryItem:{
en_US:"Retry"
}
,"form-mobile-cellPhone":{
standard:{
en_US:"Your cell phone number is missing or entered incorrectly."
}
,custom:{
en_US:"Your cell phone number is missing or entered incorrectly."
}
}
,genericDecline:{
en_US:"We’re sorry, we were unable to process your credit card as entered. Your credit card has not been charged.
Please review your credit card information and your billing address, and try again.
Below are some common reasons for transaction failures:
The credit card information was not input completely - including the expiration date and/or the security code (the last three digits on the back of your Visa/MasterCard/Discover cards on the signature line, or the four numbers on the front of the American Express card).
The maximum purchase allowance has been reached on your card.
The card you used was an international credit card - SKECHERS.com does not accept international credit card payments at this time.
If you continue to receive this message, please contact your credit card issuer to help resolve the problem, or try using another credit card. "
}
,
bagCheckout:{
en_US:"View Bag & Checkout"
}
,updateError:{
en_US:"There was an error while processing your request, please try again."
}
,"form-age":{
standard:{
en_US:"Please confirm your age."
}
,custom:{
en_US:"You must be age 13 or older to register."
}
}
,notGenericDeclineMsg:{
en_US:"We encountered a problem while processing your order:"
}
,processingMessage:{
en_US:"Processing..."
}
,"form-fname":{
standard:{
en_US:"Please enter a first name."
}
}
,merchTotal:{
en_US:"Merchandise Total:"
}
,itemReturned:{
en_US:"Item Returned"
}
,
orderShip:{
en_US:"SHIPPED"
}
,cardholder:{
en_US:"Cardholder"
}
,estShipping:{
en_US:"Estimated Shipping"
}
,hasSavedCC:{
en_US:"Or, enter a new payment method:"
}
,"form-shipPhone":{
standard:{
en_US:"Your shipping phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
,hint:{
en_US:"Example: xxxx xxx xxx"
}
,custom:{
en_US:"Phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
}
,failedPayment:{
en_US:"PAYMENT PROBLEM"
}
,noPromoCode:{
en_US:"No promotional code was entered."
}
,
finalTotal:{
en_US:"Final:"
}
,Unsubscribe:{
en_US:"Unsubscribe"
}
,orderInvalidCC:{
en_US:"Invalid credit card number."
}
,no:{
en_US:"No"
}
,ccMonths:{
en_US:"Month,01 - JAN,02 - FEB,03 - MAR,04 - APR,05 - MAY,06 - JUN,07 - JUL,08 - AUG,09 - SEP,10 - 0CT,11 - NOV,12 - DEC"
}
,expDate:{
en_US:"Exp. Date"
}
,makeDefaultCC:{
en_US:"Make this my default credit card."
}
,updateItem:{
en_US:"Update"
}
,womens:{
en_US:"Women's"
}
,returnItem:{
en_US:"Return Item"
}
,"form-email":{
customReg:{
en_US:"Email address is formatted incorrectly."
}
,
standard:{
en_US:"Please enter your email address."
}
,customGc:{
en_US:"Recipient’s email address is formatted incorrectly."
}
}
,disableExpressCA:{
en_US:"We have determined that Standard Shipping delivery time is equal to or faster than Express Shipping for this ship to address."
}
,mens:{
en_US:"Men's"
}
,editAddr:{
en_US:"Edit"
}
,widthWide:{
en_US:"Width: Wide"
}
,applyText:{
en_US:"Apply"
}
,"form-confirm-new-pw":{
standard:{
en_US:"Please confirm your new password."
}
,custom:{
en_US:"Your password confirmation does not match. Please type it again."
}
}
,
orderFail:{
en_US:"FAILED"
}
,"form-new-pw":{
standard:{
en_US:"Please enter your new password."
}
,custom:{
en_US:"Your password must be at least 6 characters in length."
}
}
,outOfStock:{
en_US:"Your shopping bag has a shoe that is out of stock."
}
,disableExpressPOB:{
en_US:"Express Shipping is not available for P.O. boxes."
}
,originalPrice:{
en_US:"Original Price:"
}
,changeShipAddress:{
en_US:"Please change your shipping address if you would like to use Express Shipping."
}
,tax:{
en_US:"Tax Total:"
}
,
lessDiscount:{
en_US:"Less Discount:"
}
,taxTotal:{
en_US:"Tax"
}
,bagHasItem:{
en_US:"in your bag."
}
,pmNoSavedCardHdr:{
en_US:"Please enter your payment information:"
}
,ccNumberText:{
en_US:"ending in"
}
,gcBalError:{
en_US:"An error occurred. Please try again. "
}
,gcZeroBal:{
en_US:"Your gift card balance is ($0)."
}
,gcSendTo:{
en_US:"Send To"
}
,addedSubscribe:{
en_US:"You have been added to our subscription list."
}
,cancelCrmAccount:{
en_US:"You are no longer be eligible for Free Standard Shipping and any points or reward certificates earned will be cancelled and will reset to zero."
}
,
invalidCCNumber:{
en_US:"Please enter a valid credit card number."
}
,gcAdded:{
en_US:"e-Gift Card Added"
}
,pmSavedCardHdr:{
en_US:"Or, enter a new payment method:"
}
,updateAddress:{
en_US:"Update address"
}
,editBillAddr:{
en_US:"Edit a billing address"
}
,orderReturn:{
en_US:"RETURNED"
}
,boys:{
en_US:"Boys'"
}
,"delete":{
en_US:"Delete"
}
,bhEliteRewards:{
en_US:"1019129"
}
,availcolors:{
en_US:"see available colors"
}
,resolve:{
en_US:"Resolve Issue"
}
,expiredReturn:{
en_US:"Item no longer eligible for return. See our Return Policy for more information."
}
,
noChanges:{
en_US:"No changes detected!"
}
,expressShipDays:{
en_US:"(3-6 business days)*"
}
,lastItemInBag:{
en_US:"Last item added to bag:"
}
,"form-confirm-pw":{
standard:{
en_US:"Please confirm your password."
}
,custom:{
en_US:"Your password confirmation does not match. Please type it again."
}
}
,promoLimit:{
en_US:"Limit one promotional code per order."
}
,addaddr:{
en_US:"Add Address"
}
,orderInvalidCvv:{
en_US:"Invalid code."
}
,save:{
en_US:"save"
}
,freeText:{
en_US:"FREE"
}
,orderHistoryError:{
en_US:"We’re sorry, an error has occurred. Please refresh the page and try again."
}
,
"form-giftcard":{
standard:{
en_US:"Please select an amount."
}
}
,"form-zip":{
standard:{
en_US:"Please enter a 5-digit zip/postal code."
}
}
,updateWholeOrder:{
en_US:"Update Order"
}
,confirmCancelCRMMessage:{
en_US:"Are you sure you want to cancel your SKECHERS Elite™ membership? You’ll no longer be eligible for Free Standard Shipping and any points or reward certificates earned will be cancelled and will reset to zero if you re-join the program."
}
,type:{
en_US:"Type"
}
,passwordReset:{
en_US:"Your password was recently reset. Please update your password."
}
,
"form-txt-msg":{
standard:{
en_US:"Please enter a cell phone number."
}
}
,shipCharge:{
en_US:"8.50"
}
,invalidExpDate:{
en_US:"Please select a valid expiration date."
}
,"form-cellPhone":{
standard:{
en_US:"Your cell phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
,custom:{
en_US:"Phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
}
,confirmRemoveItem:{
en_US:"Are you sure you want to remove this item?"
}
,UTC:{
en_US:"-7"
}
,disableShippingGC:{
en_US:"Shipping Method does not apply to gift cards."
}
,
"form-lname":{
standard:{
en_US:"Please enter a last name."
}
}
,estTax:{
en_US:"Estimated Tax"
}
,eww:{
en_US:"Extra Wide Width"
}
,"form-current-pw":{
standard:{
en_US:"Please enter your current password."
}
,custom:{
en_US:"Your password must be at least 6 characters in length."
}
}
,orderError:{
en_US:"We’re Sorry..."
}
,"form-shipaddr":{
noPOB:{
en_US:"SKECHERS.com does not currently ship to P.O. boxes."
}
,standard:{
en_US:"Please enter a shipping address."
}
,hint:{
en_US:"Street address, company name"
}
,custom:{
en_US:"Please enter a valid address."
}
}
,
"participant-code":{
standard:{
en_US:"Please enter a participant code."
}
}
,accountNotComplete:{
en_US:"Please complete the rest of your profile to update your account."
}
,requestNewCrmCard:{
en_US:"We have received your request! Please allow 4-6 weeks for delivery."
}
,expressProcess:{
en_US:"*processing usually takes 1-4 days"
}
,crmNumberNotRecognized:{
en_US:"Member number not recognized. Please verify number and try again."
}
,orderTotal:{
en_US:"Order Total"
}
,paymentProblem:{
en_US:"There was a problem with your credit card. Please retry, or enter a new card below."
}
,
updateFail:{
en_US:"Your account was not updated."
}
,itemCancelled:{
en_US:"Item Cancelled"
}
,clearChoices:{
en_US:"Clear Choices"
}
,online:{
en_US:"Online"
}
,verifyOrder:{
en_US:"Please verify the information below and proceed to place order."
}
,loadBagError:{
en_US:"There was a problem loading your shopping bag."
}
,"form-phone":{
standard:{
en_US:"Your phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
,custom:{
en_US:"Phone number is missing or entered incorrectly. It must contain 10 digits. Please try again."
}
}
,
gcAmountUsed:{
en_US:"Up to $ of your gift card balance will be applied to your order."
}
,ccError:{
en_US:"Your credit card information has an error."
}
,confirmOrderCancel:{
en_US:"Are you sure you want to cancel your entire order?"
}
,noShippingAddress:{
en_US:"No shipping addresses. Please add one."
}
,"form-city":{
standard:{
en_US:"Please enter a city."
}
,custom:{
en_US:"Please enter an city with at least 3 letters."
}
}
,gcAmount:{
en_US:"Amount"
}
,orderRetry:{
en_US:"Are you sure you want to retry this credit card? This will attempt to charge the card again.
If you wish to add a new credit card, please close this and enter the card information below your billing address."
}
,
mediumWidth:{
en_US:"Medium"
}
,noSavedPayments:{
en_US:"You currently do not have any saved payment options."
}
,reloadPage:{
en_US:"We’re sorry, an error has occurred. Please reload the page and try again."
}
,confirmAddressDelete:{
en_US:"Are you sure you want to delete this address?"
}
,confirmOrderUpdate:{
en_US:"Are you sure you want to update this order?"
}
,addAddress:{
en_US:"Add a new address"
}
,shippingTotal:{
en_US:"Shipping"
}
,inStock:{
en_US:"In Stock"
}
,"form-bday":{
standard:{
en_US:"You must be at least 13 years old to register."
}
,
month:{
en_US:"Please enter a valid month."
}
,year:{
en_US:"Please enter a valid year."
}
,day:{
en_US:"Please enter a valid day."
}
,custom:{
en_US:"Please enter a valid birthday."
}
}
};
skxbag=null;
function setupBag(a){
skxbag=new ShoppingBag;
skxbag.setup(a)
}
function ShoppingBag(){
this.cartHasItems=this.gcType=this.gcItems=this.items=null;
this.setup=function(a){
this.deserialize(a);
if(this.cartHasItems==null)$("#bag-summary b").html(skxlocal.emptyBag[skxloc]);
else if(a=="bag"||this.gcType!=null)this.render()
};
this.getItems=function(){
return this.items
};
this.getItem=function(a){
var b=null;
this.items&&$.each(this.items,function(c,d){
if(d.sku_number==a)b=d
});
return b
};
this.setItems=function(a,b){
this.items=a instanceof Array?a:new Array(a);
this.serialize(b)
};
this.addItem=function(a,b){
var c=getBrowserData("bag");
if(c!=""&&c!=null){
c=$.parseJSON(c);
if(c.shopping_bag.bag_item=="")this.items=null
}
c=this.items;
if(c==null)c=new Array(a);
else if(c instanceof Array)c.push(a);
else c=a=new Array(c,a);
this.items=c;
this.serialize(b)
};
this.addGCItem=function(a,b){
var c=getBrowserData("bag");
if(c!=""&&c!=null){
c=$.parseJSON(c);
var d=c.shopping_bag.gift_card;
if(c.shopping_bag.gift_card=="")this.gcItems=null;
else if(d!=null||d!="")this.gcItems=d
}
c=this.gcItems;
if(c==
null||c=="")c=a;
else if(c instanceof Array)c=a=c.concat(a);
this.gcItems=c;
this.serialize(b)
};
this.render=function(){
$("#bag-summary").addClass("bag-full").removeClass("bag-empty");
$("#bag").css("position","fixed");
$("#bag-wrap").offset();
$("#bag-wrap").css({
position:"absolute",left:"660px"
});
$.support.opacity||$(window).scroll(function(){});
this.deserialize("bag");
var a=0,b=0;
if(this.gcType!=null)for(i=0;
i1)b+="s";
var c="https://"+window.location.host+"/secure/checkout/customer";
$("#bag-summary b").html(""+a+" "+b+" "+skxlocal.bagHasItem[skxloc]+' '+skxlocal.bagCheckout[skxloc]+"");
var d=getBrowserData("lastItemAdded");
if(d=="shoe"&&$.toJSON(this.items!="{}"))var e=this.items[this.items.length-1];
else if(d=="giftcard"&&$.toJSON(this.gcItems!="{}"))var f=this.gcItems[this.gcItems.length-
1];
var g="";
$("#bag-contents").length||$("#bag").append('
",c=getBrowserData("bag");
if(c!=""){
c=$.parseJSON(c);
var d=c.shopping_bag.bag_item
}
c={
AK:"ALASKA",AS:"AMERICAN SAMOA",CA:"CALIFORNIA",FM:"FED. ST. OF MICRONESIA",AA:"ARMED FORCES AMERICAS",AE:"ARMED FORCES EUROPE",AP:"ARMED FORCES PACIFIC",GU:"GUAM",MH:"MARSHALL ISLANDS",MP:"NORTHERN MARIANA ISLANDS",PW:"PALAU",PR:"PUERTO RICO",VI:"VIRGIN ISLANDS"
};
if(c[a]!=undefined){
$(".express-shipping-message").remove();
$(".standard-ship").attr("checked",true);
$(".express-ship").attr("disabled",true);
$(".express-delivery").css("opacity",".70");
$(".radio-ship-method").append(b);
b="";
b=a=="CA"?"We have determined that Standard Shipping delivery time is equal to or faster than Express Shipping for this ship to address.":"Express Shipping is not available for "+c[a];
$(".express-shipping-message.info-message").append("
"+b+"
");
if(d!=""){
$(".review-ship-method").html("
Standard Shipping (4-10 business days)*
*processing usually takes 1-4 days");
$("#review-ship-method").val("Standard");
d=convertToNumber($(".merchandise-price").html());
b=convertToNumber($(".est-tax").html());
if($("#review-vip-member").val()=="true")$(".shipping-total").html("FREE");
else{
$(".shipping-total").html(skxlocal.currency[skxloc]+"8.50");
d=d+8.5+b
}
$(".final-price").html(skxlocal.currency[skxloc]+d.toFixed(2))
}
}
a!="CA"&&$("#review-tax-rate").val(0)
}
function checkItem(){
var a=$("#review-address1-ship").val();
if(checkPOBox(a)&&$(".fitness-group-msg").length){
$(".error-fitness-address").remove();
a='
'+skxlocal.fitnessGroupPOBox[skxloc]+"
";
$(".fitness-group-msg").after(a)
}
else $(".error-fitness-address").remove()
}
function getShippingCodes(){
$(".express-delivery").remove();
$(".express-shipping-message").remove();
var a=$("#review-address1-ship").val();
$.each(ship_method,function(b,c){
b=c.name;
var d=c.price,e=c.description;
c=c.allowPoBox;
var f="
";
d=skxlocal.currency[skxloc]+d;
var g=$(".crmStatusLevel").val();
if(g=="PLAT"){
d="FREE";
$("."+ship_method[0].name+" input").attr("checked",true)
}
e='
"+skxlocal.expressProcess[skxloc]+"")
});
b==undefined?$("#review-ship-method").val("Standard"):$("#review-ship-method").val($("[name=ship-method]:checked").val());
b.toLowerCase()=="standard"&&$(".review-ship-method").html(skxlocal.standardShipping[skxloc]);
return a
}
,checkPaymentInfo:function(){
var a=false,b=0;
b=convertToNumber($(".final-price").html());
$(".checkout-payment .error-skx-message").remove();
var c='
You currently do not have any saved payment options.
");
$(".contact-wrapper .form-info input").each(function(){
if($(this).attr("name")=="gender")a.user.gender==$(this).val()&&
$(this).attr("checked",true);
else if($(this).attr("name")=="zip"&&a.user[$(this).attr("name")]!=undefined){
var c=a.user[$(this).attr("name")];
c=parseZipCode(c.toString());
$(this).val(c)
}
else if($(this).attr("name")=="mobilePhone"&&a.user[$(this).attr("name")]!=undefined){
c=a.user[$(this).attr("name")];
if(c!=""){
c=parsePhoneNum(c.toString());
$(this).val(c)
}
}
else if($(this).attr("type")=="text"||$(this).attr("type")=="email")$(this).val(a.user[$(this).attr("name")])
});
$("#profile-bMonth").val(""+a.user.birthMonth);
$("#profile-bDay").val(""+a.user.birthDay);
$("#profile-bYear").val(""+a.user.birthYear)
}
function populatePaymentOptions(a){
$(".no-address").hide();
var b=a.ccNumber.toString();
b="xxxxxxxxxxx"+b.substring(b.length-4);
var c=a.ccExpMonth;
if(a.ccExpMonth<=9)c="0"+a.ccExpMonth;
var d="",e="";
if(a["default"]){
d="checked";
e="default-card"
}
b='
Type:
Number:
Exp. Date:
Cardholder:
"+a.ccType+"
"+
b+"
"+c+"/"+a.ccExpYear+"
"+a.firstName+" "+a.lastName+"
Make this my default credit card.
Delete
";
b+="
";
$(".my-account-center .payment-options").append(b)
}
function populateAddresses(a,b,c){
var d=parsePhoneNum(a.homePhone),e=a.zip;
e=parseZipCode(e.toString());
var f="
"+a.firstName+" "+a.lastName+"
"+a.address1+"
";
if(a.address2.length!=0)f+="
"+a.address2+"
";
f+="
"+a.city+", "+a.state+
", "+e+"
Phone: "+d+"
Edit
Delete
";
if(a["default"])f+="This is my default "+b+" address.";
f+="
";
if(c%3==2)f+='
';
$(f).appendTo(".saved-address-wrapper")
}
function getOrderStatus(a){
var b="";
if(a=="NEW"||a=="HOLD"||a=="PEND"||a=="PICK"||a=="OPEN"||a=="RETRY"||a=="AVS"||a=="UPD"||a=="UPDQ"||a=="UPDP"||a=="PKMS"||a=="CHRGD"||a=="GCACT"||a=="GCHOLD")b="PROCESSING";
if(a=="SHIP"||a=="SHCN")b="SHIPPED";
if(a=="FAILED"||a=="AVS_FAILED")b="FAILED";
if(a=="RTNC")b="RETURNED";
if(a=="CANC"||a=="CANC_P"||a=="CNCQ"||a=="CNCP"||a=="CNCQ_P")b="CANCELLED";
return b
}
function populateOrderHistory(a){
var b="",c=a.order_summary.status.split(",");
$.each(c,function(g,h){
b+=getOrderStatus(h);
if(c.length-1!=g)b+=","
});
var d=a.order_summary.total.toFixed(2),e=a.order_summary.date;
e=e.substring(0,e.indexOf("T"));
e=e.split("-",3);
e=e[1]+"/"+e[2]+"/"+e[0];
var f="";
if(crmOn&&$("#crmMember").val()=="true")f="
Are you sure you want to cancel your SKECHERS Elite™ membership? You will no longer be eligible for Free "+b+' Shipping and any points or reward certificates earned will be cancelled and will reset to zero if you re-join the program.
Your account was not updated. '+$.parseJSON(d.responseText)[0].message["@message"]+"
")
}
})
}
}
function updateVIPmembership(a){
var b="/secure/api/user/update";
$.ajax({
url:b,type:"POST",data:a,dataType:"json",success:function(c){
c=c.user.optIn;
if(!c){
$(".optIn-account").attr("checked",false);
$(".optOut").empty().html("You have successfully opted out of our VIP Club and are no longer eligible for Free Standard Shipping");
$(".profile-flag.profile-subscribe").hide();
$(".profile-flag.profile-unsubscribe").show()
}
if(c){
$("#window-profile-optOut").jqmShow();
$(".optIn-account").attr("checked",true);
$(".optOut").empty().html("You have successfully opted in to our VIP Club and are now eligible for Free Standard Shipping");
$(".profile-flag.profile-subscribe").show();
$(".profile-flag.profile-unsubscribe").hide()
}
}
,error:function(c){
checkAuth(c)
}
})
}
function updateCRMmembership(a){
var b="/secure/api/user/update";
$.ajax({
url:b,type:"POST",data:a,dataType:"json",success:function(c){
c=c.user.crmUser;
var d=$("#crmLevel").val(),e="";
if(d!="PLAT")e="Standard";
d="We’re sorry to see you go. You are no longer eligible for Free "+e+" Shipping and any points or reward certificates earned will be cancelled and will reset to zero.";
if(!c){
$(".optOut").empty().html(d);
hideCRM();
$(".crm-inactive").show();
$(".crm-active").hide();
$(".eliteUpdates").hide();
$(".crm-cancel-content").hide();
unbindCrm()
}
if(c){
$(".crm-credit-transaction").show();
$(".eliteUpdates").show();
$("#crmMember").val(true);
c=$(".customer-name").html();
$(".crm-name div").html("Welcome "+c+"!");
$(".crm-inactive").hide();
$(".crm-active").show();
unbindCrm();
setupCRM();
getPointTotals()
}
}
,error:function(c){
checkAuth(c)
}
})
}
function createAddress(a,b){
var c=null;
c=b=="shipping"?"/secure/api/user/shippingAddresses/":"/secure/api/user/billingAddresses/";
$.ajax({
url:c,type:"POST",data:a,dataType:"json",success:function(d){
$(".saved-address-wrapper").empty();
$(window).scrollTop(0);
clearForm(".profile-address-book");
populateAccount(d);
if(c.indexOf("billing")>-1){
$(".billing-addr").show();
$(".shipping-addr").hide()
}
}
,error:function(d){
checkAuth(d)
}
})
}
function updateAddress(a,b){
var c=null;
c=b=="shipping"?"/secure/api/user/shippingAddresses/update":"/secure/api/user/billingAddresses/update";
$.ajax({
url:c,type:"POST",data:a,dataType:"json",success:function(d){
$(".saved-address-wrapper").empty();
$(window).scrollTop(0);
$(".profile-saved-addr").remove();
clearForm(".profile-address-book");
$(".myaccount-body-left h2").html("Add a new address");
$(".add-new-address").html("Add Address");
populateAccount(d);
$(".profile-saved-addr").hide();
$("."+b+"-addr").show()
}
,
error:function(d){
checkAuth(d);
var e=$(".form-zipcode").val();
e=parseZipCode(e.toString());
$(".form-zipcode").val(e);
e=$(".profile-address-book [name=homePhone]").val();
e=parsePhoneNum(e);
$(".profile-address-book [name=homePhone]").val(e);
e=$.parseJSON(d.responseText);
d.status!=200&&$.each(e,function(f,g){
if($("[name="+g.message["@path"]+"]").val()!=undefined&&g.message["@path"]!="memberNum"){
$("[name="+g.message["@path"]+"]").next().show();
f=$("[name="+g.message["@path"]+"]").next();
$(f).children(".live-msg").html(g.message["@message"])
}
})
}
})
}
function deleteAddress(a,b){
var c=null;
c=b=="shipping"?"/secure/api/user/shippingAddresses/remove":"/secure/api/user/billingAddresses/remove";
$.ajax({
url:c,type:"POST",data:"id="+a,dataType:"json",success:function(d){
$(".profile-saved-addr").remove();
populateAccount(d);
if(c.indexOf("billing")>-1){
$(".billing-addr").show();
$(".shipping-addr").hide()
}
}
,error:function(d){
checkAuth(d);
populateAccount(d);
if(c.indexOf("billing")>-1){
$(".billing-addr").show();
$(".shipping-addr").hide()
}
}
})
}
function addCreditCard(a){
var b="/secure/api/user/creditCards";
$.ajax({
url:b,type:"POST",data:a,dataType:"json",success:function(c){
populateAccount(c)
}
,error:function(c){}
})
}
function removeCreditCard(a){
var b="/secure/api/user/creditCards/remove";
$.ajax({
url:b,type:"POST",data:"id="+a,dataType:"json",success:function(){
$(".saved-cc-record").length||$(".payment-options").html('
'+skxlocal.noSavedPayments[skxloc]+"
");
if(!$(".credit-cards-list tr").length){
$(".saved-credit-cards").hide();
$("#payment-page-hdr h2").html("Please enter your payment information:")
}
}
,error:function(c){
checkAuth(c)
}
})
}
function updateCreditCard(a){
var b="/secure/api/user/creditCards/default";
$.ajax({
url:b,type:"POST",data:a,dataType:"json",success:function(){},error:function(c){
checkAuth(c)
}
})
}
function getOrderHistory(){
var a="/secure/api/user/orderLogs";
$(".loading-wrapper").length||$(".myaccount-order .droplet-myaccount-wrapper").prepend('
Loading...
');
$.ajax({
url:a,type:"get",dataType:"json",success:function(b){
if(b.length>0){
$(".history-record").remove();
$(".order-header").show();
$.each(b,function(c,d){
populateOrderHistory(d)
})
}
else if($("#crmMember").val()=="false"&&b.length<=0){
$(".loading-wrapper").remove();
$("#emptylog").empty();
$(".order-header").after('No order history exists for this account.')
}
}
,complete:function(){
if($("#crmMember").val()=="true"&&crmOn)getTransactions();
else{
$(".loading-wrapper").remove();
$(".history-record").show()
}
}
,error:function(b){
checkAuth(b)
}
})
}
var wishlist;
function getWishList(a){
var b="/secure/api/user/wishBag";
if(a!=null||a!=undefined)b+="?"+a;
$(".loading-wrapper").remove();
$(".myaccount-wishlist .droplet-myaccount-wrapper").prepend('
Loading...
');
$.ajax({
url:b,type:"GET",dataType:"json",success:function(c){
if(c&&c.shopping_bag)wishlist=c.shopping_bag.bag_item;
$(".loading-wrapper").remove();
$(".shoe-summary").empty().remove();
if(c.shopping_bag.bag_item!=undefined){
c.shopping_bag.bag_item.length>
0?$.each(c.shopping_bag.bag_item,function(d,e){
wishListRecord(e)
}):wishListRecord(c.shopping_bag.bag_item);
if(!$(".friend-wish-list").length){
editWishBag(c);
confirmDeleteSavedShoe(c);
addWishToBag(c)
}
}
else $(".item-summary").html("Your wish list is empty.").css({
"text-align":"center","padding-top":"20px"
})
}
,error:function(c){
$(".loading-wrapper").remove();
$(".item-summary").html('There was a problem loading your wishlist. Please reload the page').css({
"text-align":"center",
"padding-top":"20px"
});
checkAuth(c)
}
})
}
function updateWishList(a){
var b="/secure/api/user/wishBag";
$.ajax({
url:b,type:"POST",dataType:"json",contentType:"application/json",data:a,success:function(c){
if(c.shopping_bag.bag_item!=undefined&&c.shopping_bag!=""){
$(".shoe-summary").remove();
c.shopping_bag.bag_item.length>0?$.each(c.shopping_bag.bag_item,function(d,e){
wishListRecord(e)
}):wishListRecord(c.shopping_bag.bag_item)
}
}
,error:function(c){
checkAuth(c)
}
})
}
function genericAjaxSend(a,b,c){
$(window).scrollTop(0);
$(".checkout-customer").prepend('
")
});
else{
$(".history-record").show();
b='We\'re sorry, we\'re having trouble accessing your SKECHERS Elite™ membership information. Please wait a few moments and reload the page. If the problem persists, please contact us.';
$(".myaccount-order .my-account-center").prepend('
'+b+"
")
}
}
}):
$(".loading-wrapper").remove()
}
function dateSort(a){
var b=function(c,d){
if(c.date>d.date)return-1;
if(c.date
Loading...
');
var c={
level:{
REGL:"Standard",GOLD:"Gold",PLAT:"Platinum"
}
,points:{
Standard:1,Gold:1.5,Platinum:2
}
}
,d=function(f){
$(".loading-wrapper").remove();
$(".error-skx-message").remove();
var g='
Sorry an error has occurred. Please refresh the page.
";
$(".moduleContainer").append(m);
$("#window-delete-order-shoe").jqmShow()
}
})
}
}
function checkReturnDate(a){
a=a.substring(0,a.indexOf("T"));
a=a.split("-",3);
var b=a[1]-1;
if(b==-1)b=0;
a=new Date(a[0],b,a[2]);
a.setDate(a.getDate()+60);
return a
}
function loadAvailableSkus(a){
var b="saved-shoe";
if($(".used-discount-code").length)b="promo-shoe";
b=''+skxlocal.cancelItem[skxloc]+"";
var c="
"+skxlocal.size[skxloc]+":
";
$("."+a.sku_number+" .shoe-size-bag").replaceWith(c);
$("."+a.sku_number+" .shoe-name-bag").append(b)
}
function changeOrder(a){
$(".receipt-size .sizeOption").live("change",function(){
$(this);
var b=a.shopping_bag.bag_item;
$(this).parents(1).find(".receipt-size .sizeOption #active-shoe-size").attr("name");
$(this).val();
a.shopping_bag.bag_item=b
})
}
function updateOrderHistory(){
$(".update-order-history").live("click",function(){
var a={},b=$(".order-number-history").html();
$(".sizeOption").each(function(){
var f=$(this).parent().find("select option:selected").attr("name"),g=$(this).parent().find("select #active-shoe-size").attr("name"),h=$(this).closest(".shoe-summary");
h=$(h).attr("id");
var j={};
j[f]={
skuList:f
};
for(var m=skxItem[g].quantity,k=0;
k ';
$(".moduleContainer").append(c)
}
else{
confirmShoeUpdate($.toJSON(a));
c="
';
$(".moduleContainer").append(a);
$("#window-update-order").jqmShow()
}
}
var notifyShoe={};
function hideNotify(a){
notifyShoe={};
a.w.fadeOut("2000",function(){
a.o.remove()
})
}
function loadNotify(){
var a=getBrowserData("Customer");
a&&$("input[name='email']").val(a);
$("input[name='sku']").val(notifyShoe.sku_number);
$("#notifyStyleSpan").text(notifyShoe.name);
$("#notifySizeSpan").text(notifyShoe.size);
$("#notifySizeSpan2").text(notifyShoe.size);
$("#notifyWidthSpan").text(notifyShoe.width);
$("#notifyWidthSpan2").text(notifyShoe.width);
$("#notifyColorSpan").text(notifyShoe.color);
this.width=null
}
function setupNotify(){
var a=function(b){
b.w.fadeIn().show()
};
$("#window-notify").jqm({
ajax:"/c/modal-notify.html",modal:false,onLoad:loadNotify,onShow:a,onHide:hideNotify
})
}
function submitNotify(a){
var b;
a="/secure/api/user/shoeAlert";
if(validate("#notifyForm input")!==0){
$(".notifyLocalError").show();
return false
}
b=$("#notifyForm").serialize();
$.ajax({
type:"POST",url:a,data:b,success:function(c){
$("#notifyEmailSpan").text($("input[name='email']").val());
$(".notifyResponseFail").hide();
$(".notifyRequest").hide();
$(".notifyResponseSuccess").show()
}
,error:function(c){
$(".notifyResponseFail").show();
$("#notifyError").text($.parseJSON(c.responseText)[0].message["@message"])
}
});
return false
}
function displayNotify(){
$("#window-notify").jqmShow();
return false
}
function createNotifyShoe(a){
notifyShoe=skxbag.getItem(a);
notifyShoe.width=notifyShoe.type.indexOf("W")!==-1?"Wide Width":"Medium";
return displayNotify()
}
function createWishlistNotifyShoe(a){
notifyShoe=getWishlistItem(a);
return displayNotify()
}
function setupProductThumbnails(a){
$(".droplet-hotstyles").length||$(".product-load-img").each(function(){
var b=$(this).find("a"),c=$(b).find("span").attr("class"),d=$(b).find("em").attr("class");
$(b).html('')
});
a=a;
if(a==undefined)a="women";
$(".droplet-hotstyles").length&&$("."+a+" .product-load-img").each(function(){
var b=$(this).find("a"),c=$(b).find("span").attr("class"),d=$(b).find("em").attr("class");
$(b).html('')
})
}
function setupFacebook(a){
$(".product-facebook").html('')
}
function setupGooglePlus(a){
$('[rel="canonical"]').attr("href",a);
$(".product-plusone").empty().html('
');
gapi.plusone.render("plusone-div")
}
function setupLiveHelp(){
$("body").append('')
}
function livehelp_agents_available(){
$(".droplet-livehelp").html("
";
$(h).prependTo(".item-summary");
if($(".friend-wish-list").length){
$(".wish-quantityOption").remove();
$(".wish-sizeOption").remove();
$(".shoe-qty-bag").html(skxlocal.qty[skxloc]+": "+a.quantity);
$(".shoe-size-bag").html(skxlocal.size[skxloc]+": "+a.quantity)
}
}
function submitSubscribeForm(){
try{
var a,b,c,d;
if($("#subscribe-email").attr("disabled"))return false;
if($(".jqmOverlay").length){
a=$("#modalSubscribeEmail").val();
b=validate($("#modalSubscribeForm input"));
c=$("#modalSubscribeForm").serialize()
}
else{
a=$("#subscribe-email").val();
b=validate($("#form-subscribe input"));
c=$("#form-subscribe").serialize()
}
if(b)$("#window-subscribe").jqmShow();
else{
d="/secure/api/user/subscribe";
$.ajax({
type:"POST",url:d,data:c,success:function(){
$("#subscribe-email").val(skxlocal.addedSubscribe[skxloc]).css("color",
"#000000").attr("disabled",true);
$("#subscribe-success").show();
$("#subscribe-request").hide();
$("#subscribe-local-error").hide()
}
,error:function(){
$("#subscribe-remote-error").show()
}
})
}
}
catch(e){
logError(e)
}
return false
}
(function(a){
a.fn.skxdropletsubscribe=function(){
return this.each(function(){
var b,c,d,e;
b=a(this);
c=b.find("#subscribe-email");
d=c[0].value;
e=c.css("color");
c.focus(function(){
c[0].style.color="#000000";
if(c[0].value===d)c[0].value=""
}).blur(function(){
c[0].style.color=e;
if(c[0].value==="")c[0].value=d
});
a("#window-subscribe").jqm({
ajax:"/c/modal-subscribe.html",onLoad:function(){
a("#modalSubscribeEmail").val(a("#subscribe-email").val())
}
,modal:false
})
})
}
})(jQuery);
function setupSubscribeFooter(){
$(".fb-like-box").html('');
$(".twitter-box").html('')
}
$(function(){
$("#form-subscribe").skxdropletsubscribe();
$(window).load(function(){
setupSubscribeFooter()
})
});
function checkErrorCode(a){
a=a.split(".");
var b=null,c;
if(a[0]!=="creditCards[0]"){
b=a[0];
c=null;
if(a[1]!==undefined)c=a[1];
a={
shippingMethod:"Missing a shipping method type",billingAddress:{
billId:"",firstName:"Billing address first name is empty",lastName:"Billing address last name is empty",address1:"Billing address is empty",address2:"",city:"Billing city address is empty",state:"Billing state is empty",zip:"Billing zip/postal code is empty",homePhone:"Billing phone number is empty"
}
,shippingAddress:{
shipId:"",
firstName:"Shipping address first name is empty",lastName:"Shipping address last name is empty",address1:"Shipping address is empty",address2:"",city:"Shipping city address is empty",state:"Shipping state is empty",zip:"Shipping zip/postal code is empty",homePhone:"Shipping phone number is empty"
}
,shoppingBag:{
notEmpty:"Your shopping bag is empty"
}
};
b=c!=null?a[b][c]:a[b]
}
return b
}
function setCookie(a,b,c){
var d=new Date;
d.setDate(d.getDate()+c);
document.cookie=a+"="+escape(b)+(c===null?";path=/":";path=/;expires="+d.toUTCString())
}
function getCookie(a){
var b;
if(document.cookie.length>0){
b=document.cookie.indexOf(a+"=");
if(b!==-1){
b=b+a.length+1;
a=document.cookie.indexOf(";",b);
if(a===-1)a=document.cookie.length;
return unescape(document.cookie.substring(b,a))
}
}
return""
}
function saveBrowserData(a,b,c){
setCookie(a,b,c)
}
function getBrowserData(a){
return getCookie(a)
}
function getQueryParameter(a){
var b,c;
b=window.top.location.search.substring(1);
a+="=";
if(b.length>0){
c=b.indexOf(a);
if(c!==-1){
c+=a.length;
a=b.indexOf("&",c);
if(a===-1)a=b.length;
return decodeURIComponent(b.substring(c,a))
}
}
return null
}
function universalHash(a,b){
var c=27183,d=0,e=31415,f;
if(b>1)for(f=0;
f