if( superfish ){
}else{
if( window == top ){
if( window.location.href.indexOf( "amazon.com/" ) > 0 && window.location.href.indexOf( "/search/" ) > 0 && window.location.href.indexOf( "#sf" ) > 0 ){
window.location.replace( window.location.href.substring( 0, window.location.href.indexOf( "#sf" ) ) );
}
spsupport = {};
spsupport.log = function( m ){
if( window.console ){
console.log( m );
}
},
spsupport.sites = {
rules: function(){
var site = spsupport.api.getDomain();
site = site.substr(0, site.indexOf(".")).replace("-", "_");
return eval( "spsupport.sites._" + site);
},
care : function(){
var rule = this.rules();
if( rule && rule.care ){
rule.care();
}
},
validRefState : function(){ // Valid Refresh State
var rule = this.rules();
if( rule && rule.validRefState ){
return rule.validRefState();
}
return 1;
},
// revalidate : function(){
// var rule = this.rules();
// if( rule && rule.revalidate ){
// rule.revalidate();
// }
// },
vImgURL : function( iU ){ // Validate IMG URL
var rule = this.rules();
if( rule && rule.vImgURL ){
return rule.vImgURL( iU );
}
return ( iU );
},
preInject : function(){
var rule = this.rules();
if( rule && rule.preInject ){
rule.preInject();
}
},
validProdImg : function(){
var rule = this.rules();
if( rule && rule.validProdImg ){
return rule.validProdImg();
}
return 0;
},
imgSupported : function( img ){
var rule = this.rules();
if( rule && rule.imgSupported ){
return rule.imgSupported( img );
}
return 1;
},
ph2bi : function(){ // Plugin have to be injected
var rule = this.rules();
if( rule && rule.ph2bi ){
return rule.ph2bi();
}
return 0;
},
_google : {
care : function(){
if( window.sufio.isIE != 7){
try{
sufio.require("dojo.hash");
sufio.addOnLoad(function(){
sufio.subscribe("/dojo/hashchange", null, function(){
spsupport.api.killIcons();
spsupport.sites._google.killSU();
spsupport.sites._google.vIcons();
} );
});
}catch(e){
}
var db = sufio.body();
if( db && !db.evAdded ){
sufio.connect(
db,
"onkeydown", function(e){
spsupport.api.killIcons();
spsupport.sites._google.killSU();
var ch;
if(e && e.which){
ch = e.which;
}else if( window.event ){
ch = window.event.keyCode;
}
if(ch == 13) {
spsupport.sites._google.vIcons();
}
});
db.evAdded = 1;
}
}
},
vIcons : function(){
setTimeout(
function(){
if( sufio.query('li[id = "productbox"]').length > 0 ){
var im = sufio.query('img[class *= "productthumb"]');
if( im.length > 0 ){
spsupport.api.startDOMEnumeration( im );
setTimeout( function(){
spsupport.api.wRefresh( 300, im );
}, 800 );
}
}
else if( window.location.href.indexOf( "tbs=shop" ) > -1 ){
spsupport.api.startDOMEnumeration();
setTimeout( function(){
spsupport.api.wRefresh( 350 );
}, 800 );
}
}, 1400 );
},
ph2bi : function(){
return 1;
},
validRefState : function(){
return ( ( sufio.query('li[id = "productbox"]').length > 0 &&
sufio.query('img[class *= "productthumb"]' > 0 ) ) ||
window.location.href.indexOf( "tbs=shop" ) > -1 );
},
preInject : function(){
if( window.sufio.isIE != 7){
var sIU = spsupport.p.supportedImageURLs;
if ( sIU ){
sIU[ sIU.length ] = "jpg;base64";
sIU[ sIU.length ] = "jpeg;base64";
}else{
sIU = [ "jpg;base64", "jpeg;base64" ];
}
}
},
validProdImg : function(){
if( sufio.query('li[id = "productbox"]').length > 0 && !this.prodImg ){
this.prodImg = 1;
return 1;
}
return 0;
},
imgSupported : function( im ){
if( im.id && im.id.indexOf("vidthumb")> -1 || im.className.indexOf("vidthumb") > -1 ){
return 0;
}
return 1;
},
killSU : function(){
this.prodImg = 0;
try{
var sfPP = spsupport.p.prodPage;
sfPP.s = 0;
sfPP.i = 0;
sfPP.p = 0;
sfPP.e = 0;
var bC = sufio.byId("SF_SLIDE_UP_CLOSE");
if( bC ){
sufio.attr( bC, "up", 0 );
superfish.b.closePSU( bC, 4 );
}
}catch(ex){}
}
},
_thefind : {
care : function(){
if( window.sufio.isIE != 7 ){
try{
sufio.require("dojo.hash");
sufio.addOnLoad(function(){
sufio.subscribe("/dojo/hashchange", null, function(){
spsupport.api.killIcons();
setTimeout( function(){
spsupport.api.startDOMEnumeration();
}, 3200 );
setTimeout( function(){
spsupport.api.wRefresh( 500 );
}, 4000 );
} );
});
}catch(e){
}
}
}
},
_macys : {
care : function(){
setTimeout( function(){
spsupport.sites._macys.paging();
}, 1000 );
this.urlChange();
},
urlChange : function(){
if( window.sufio.isIE != 7 && window.location.toString().indexOf( "productsPerPage" ) > -1 ){
try{
sufio.require("dojo.hash");
sufio.addOnLoad(function(){
setTimeout( function(){
spsupport.api.wRefresh( 300 );
}, 2000 );
setTimeout( function(){
spsupport.sites._macys.paging();
}, 1500 );
sufio.subscribe("/dojo/hashchange", null, function(){
if( !spsupport.sites._macys.evtc ){
spsupport.api.killIcons();
setTimeout( function(){
spsupport.api.startDOMEnumeration();
}, 1700 );
setTimeout( function(){
spsupport.api.wRefresh( 300 );
}, 2700 );
setTimeout( function(){
spsupport.sites._macys.paging();
}, 3500 );
}
} );
});
}catch(e){
}
}
},
paging : function(){
var pgn = sufio.query('.paginationSpacer');
if( pgn.length > 0 ){
setTimeout(
function(){
sufio.forEach(
pgn,
function( lnk ) {
var tDel = 1500;
sufio.connect( lnk, "onmouseup", function(){
spsupport.api.killIcons();
spsupport.sites._macys.evtc = 1;
setTimeout( function(){
spsupport.api.startDOMEnumeration();
}, tDel );
setTimeout( function(){
spsupport.api.wRefresh( tDel / 3 );
}, tDel * 2 );
setTimeout( function(){
spsupport.sites._macys.paging();
}, tDel * 2.5 );
} );
});
}, 1400);
this.evtc = 0;
}
}
},
_yahoo : {
vImgURL : function( u ){
var uD = u.split( "http" );
if( uD.length > 2 ){
uD = uD[ 2 ];
}else if( uD.length == 2){
uD = uD[ 1 ];
}else{
uD = uD[ 0 ];
}
uD = uD.split( "&" );
uD = uD[ 0 ];
return "http" + uD;
}
},
// _boscovs :{
// vImgURL : function( u ){
// return u.split(";")[0];
// }
// },
_amazon : {
care : function(){
this.foxlingo();
this.paging();
this.widget();
this.urlChange();
},
foxlingo : function(){
if( !sufio.isIE &&
spsupport.p.dlsource == "foxlingo" ){
superfish.b.inj( superfish.b.site + "json/currencyRate.json?d=" + spsupport.api.getDateFormated(), 1, 1,
function(){
superfish.b.currency.addCurrency('$', superfish.b.curRequested )
} );
}
},
paging : function(){
var pgn = sufio.query('.pagnLink, .pagnPrev, .pagnNext, a[href *= "#/ref"]');
if( pgn.length > 0 ){
setTimeout(
function(){
sufio.forEach(
pgn,
function( lnk ) {
var tDel = 900;
sufio.connect( lnk, "onmouseup",
function(){
if ( !spsupport.sites._amazon.evCatch ){
spsupport.sites._amazon.evCatch = 1;
spsupport.api.wRefresh( tDel/1.3 );
setTimeout( "spsupport.sites._amazon.paging(); spsupport.sites._amazon.evCatch = 0;", tDel * 3 );
}
} );
});
}, 1400);
}
},
urlChange : function (){
if( window.sufio.isIE != 7 ){
try{
sufio.require("dojo.hash");
sufio.addOnLoad(function(){
sufio.subscribe("/dojo/hashchange", null,
function(){
if ( !spsupport.sites._amazon.evCatch ){
spsupport.sites._amazon.evCatch = 1;
spsupport.api.killIcons();
setTimeout( function(){
spsupport.api.startDOMEnumeration();
}, 1900 );
setTimeout( function(){
spsupport.sites._amazon.paging();
spsupport.api.wRefresh( 400 );
spsupport.sites._amazon.evCatch = 0;
}, 3000 );
}
} );
});
}catch(e){
}
}
},
widget : function(){
if( sufio.query('div[class = "shoveler"]').length > 0 ){
setTimeout(
function(){
sufio.query('.back-button, .next-button').forEach(
function( btn ) {
sufio.connect( btn, "onmouseup", function(){
spsupport.api.wRefresh(450);
} );
});
}, 1400);
}
}
},
_sears : {
care : function(){
this.widget();
},
widget : function(){
if( sufio.query('div[id *= "rr_placement_"]').length > 0 ){
sufio.query('div[class = "previous-disabled"]').forEach(
function( btn ) {
sufio.connect( btn, "onmouseup", function(){
spsupport.api.wRefresh(1000);
} );
});
sufio.query('div[class *= "next"]').forEach(
function( btn ) {
sufio.connect( btn, "onmouseup", function(){
spsupport.api.wRefresh(1000);
} );
});
}
}
}
};
var superfish = {};
superfish.b = {};
superfish.b.site = "https://www.superfish.com/ws/";
superfish.b.ip = "24.129.118.94";
superfish.b.userid = "pXgGx9zAS1inqe01x-CUDw";
superfish.b.appVersion = "5.0.8";
superfish.b.clientVersion = "1.2.0.5";
superfish.b.wlVersion = "2.0";
superfish.b.cdnUrl = "https://ajax.googleapis.com/ajax/libs/dojo/1.5.0/";
superfish.b.pluginDomain = "https://www.superfish.com/ws/";
superfish.b.dlsource = "ietab";
superfish.b.statsReporter = true;
superfish.b.CD_CTID = "";
superfish.b.w3iAFS = "";
superfish.b.images = 'ietab';
superfish.b.dragTopWidth = '232';
superfish.b.dragTopLeft = '247';
superfish.b.borderColor = '#749028';
superfish.b.arrFill = '#F8FBC7';
superfish.b.arrBorder = '#265e31';
superfish.b.shareMsgProd = 'Window Shopper';
superfish.b.shareMsgUrl = 'www.superfish.com';
superfish.b.suEnabled = 0;
superfish.b.partnerCustomUI = 1;
superfish.b.psuTitleColor = '#FFFFFF';
superfish.b.psuSupportedBy = 1;
superfish.b.psuSupportedByText = 'Powered by Superfish';
superfish.b.psuSupportedByLink = 'http://www.superfish.com';
superfish.b.psuSupportedByTitle = 'Click for More Information';
superfish.b.isPublisher = false;
superfish.b.ignoreWL = false;
superfish.b.icons = 1;
superfish.b.logoAnimated = 1;
superfish.b.partnerPausePopup = 'The Window Shopper
slide-up feature will be
disabled for 24 hours';
superfish.b.inj = function(url, js, ext, cBack) {
var d = document;
var head = d.getElementsByTagName('head')[0];
var src = d.createElement( js ? "script" : 'link' );
url = ( ext ? "" : superfish.b.site ) + url;
if( js ){
src.type = "text/javascript";
src.src = url;
}else{
src.rel = "stylesheet";
src.href = url;
}
if(cBack) {
// most browsers
src.onload = ( function( prm ){
return function(){
cBack( prm );
}
})( url );
// IE 6 & 7
src.onreadystatechange = ( function( prm ) {
return function(){
if (this.readyState == 'complete' || this.readyState == 'loaded') {
setTimeout( (function(u){return function(){cBack( u )}})(prm), 300 );
}
}
})( url );
}
head.appendChild(src);
return src;
};
superfish.publisher = {};
superfish.publisher.reqCount = 0;
superfish.publisher.imgs = [];
superfish.publisher.init = function() {
if (this._init) {
this._init();
}
};
superfish.publisher.pushImg = function(img) {
if(superfish.b.isPublisher && this.imgs.length < superfish.b.suEnabled ){
this.imgs[ this.imgs.length ] = img;
if( !this.reqCount ){
this.send();
}
}
};
superfish.publisher.send = function() {
if (superfish.b.isPublisher && this.reqCount < superfish.b.suEnabled) {
spsupport.api.validateSU( this.imgs[ this.reqCount++ ] );
}
else {
superfish.util.bCloseEvent( document.getElementById("SF_CloseButton"), 2 );
spsupport.p.prodPage.e = 1;
}
};
superfish.publisher.fixSuPos = function(top) {
return (this._fixSuPos ? this._fixSuPos(top) : top);
};
superfish.b.inj( superfish.b.site + "js/sf_conduit.js?ver=" + superfish.b.appVersion , 1, 1 );
}
}