1var itemTimer; 2 3jQuery(function($) { 4 // Your code using failsafe $ alias here... 5 6 $(".enterZip").live("click", function() { 7 $(this).parent().siblings(".shipData").toggle(); 8 return false; 9 }); 10 11 $("ul.sf-menu").superfish({ 12 animation: { height: 'show' }, 13 speed: 300, 14 autoArrows: false, 15 dropShadows: false 16 }).find("ul").bgIframe(); 17 18 $(".itemRow").equalHeights(true); 19 $(".modCarousel .items").equalHeights(true); 20 $(".columnRow").equalHeights(true); 21 22 $(".itemWrapper ul.swatchList li a").live("mouseover", function() { 23 $(this).parents(".swatchList").find("a").removeClass("active"); 24 $(this).addClass("active"); 25 var newImg = $(this).find(".swatchAlt").html(); 26 $(this).parents(".itemWrapper").find(".itemImage").attr({ src: newImg }); 27 }); 28 29 $('.altViews li a').live("click", function() { 30 //the new image 31 var newimg = $(this).attr("href"); 32 33 //update active status 34 var altViews = $(".altViews li") 35 altViews.each(function(i) { 36 var children = altViews.eq(i).children("a"); 37 children.each(function(j) { 38 if (newimg.replace('/large/', '').replace('/regular/', '') == children.eq(j).attr("href").replace('/large/', '').replace('/regular/', '')) { 39 children.eq(j).addClass("active"); 40 } else { 41 children.eq(j).removeClass("active"); 42 } 43 }); 44 }); 45 46 //find the regular image 47 $(".productImage img.mainImage").attr({ src: newimg.replace('/large/', '/regular/') }); 48 49 //find the large image 50 $(".imageViewer .mainImage img").attr({ src: newimg.replace('/regular/', '/large/') }); 51 52 return false; 53 }); 54 55 //Banner slide show 56 $("#homeSSW").cycle({ 57 fx: 'fade', 58 speed: 300, 59 timeout: 5000, 60 pager: '.nav' 61 }); 62 // $(".sswControls").css({ 'background-color': '#fff', 'opacity': '0.9' }); 63 64 $(".truncate").truncate({ 65 max_length: 400, 66 more: "read more", 67 less: "read less" 68 }); 69 70 // dialog windows 71 $(".uiModal").dialog({ 72 autoOpen: false, 73 width: "720px", 74 bgiframe: true, 75 modal: true, 76 resizable: false, 77 live: false, 78 buttons: { 79 Close: function() { 80 $(this).dialog('close'); 81 } 82 } 83 }); 84 85 $(".uiDialog").dialog({ 86 autoOpen: false, 87 width: "720px", 88 bgiframe: true, 89 modal: false, 90 resizable: false, 91 buttons: { 92 Close: function() { 93 $(this).dialog('close'); 94 } 95 } 96 }); 97 98 $(".pageTools .recent").live("click", function() { 99 $(".recentDialog").dialog("open"); 100 return false; 101 }); 102 103 $(".productImage .btnEnlarge").live("click", function() { 104 $(".enlargeView").dialog("open"); 105 return false; 106 }); 107 // END dialog windows 108 109 $(".tabModule .tabsRow").tabs(); 110 $(".cartSupport .supportTabs").tabs(); 111 112 // carousels 113 $(".modCarousel4 .scrollable").scrollable({ 114 size: 4, 115 items: ".items", 116 clickable: false 117 }); 118 119 120 $(".modCarousel5 .scrollable").scrollable({ 121 size: 5, 122 items: ".items", 123 clickable: false 124 }); 125 126 $(".scrollable").each(function() { 127 var mcHeight = $(".itemWrapper:first", this).height(); 128 $(this).css({ 'height': mcHeight }); 129 }); 130 // END carousels 131 132 $(".swatchList a").cluetip({ 133 cluetipClass: 'swatch', 134 width: '178px', 135 positionBy: 'fixed', 136 topOffset: '-122px', 137 leftOffset: '-115px', 138 local: true, 139 dropShadow: false, 140 showTitle: false 141 }); 142 143 // Item Added to Cart Slider 144 $("#item-dialog").mouseover(function() { clearTimeout(itemTimer); }); 145 $("#item-dialog").mouseout(function() { itemTimer = setTimeout(function() { hideItemSlider(); }, 1500); }); 146 // END Item Added 147 148 149 $(".tooltip").tooltip({ 150 effect: 'slide', 151 position: 'bottom right', 152 relative: true 153 }).dynamic( { 154 // customized configuration on bottom edge 155 bottom: { 156 direction: 'down', 157 bounce: true 158 }, 159 right: { 160 direction: 'right', 161 bounce: true 162 } 163 });
164 165 166 $(".tooltipadmin").tooltip({ 167 position: 'bottom right', 168 relative: true, 169 track: true 170 }).dynamic( { 171 // customized configuration on bottom edge 172 bottom: { 173 direction:'down', 174 bounce: true 175 }, 176 right: { 177 direction: 'right', 178 bounce: true 179 } 180 }); 181 182 183 $(".mod_landing_gal li").matchHeights(); 184 185}); 186function showItemSlider() { 187 clearTimeout(itemTimer); 188 $("#item-dialog").slideDown(300); 189 itemTimer = setTimeout(function() { hideItemSlider(); }, 5000); 190} 191function hideItemSlider() { 192 $("#item-dialog").slideUp(150); 193} 194 195jQuery(function($) { 196 197 //for text gradient 198 $(".slideheader h1").prepend("<span></span>"); 199 200});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.