document.write('<style type="text/css">body{display:none}</style>'); $(function(a) { a("body").css("display", "block") }); $(document).ready(function() { $(".slideshow-home").after('<ul class="slideshow-thumbs-home">').cycle({ fx: "fade", timeout: 5000, pause: 1, pager: ".slideshow-thumbs-home", pagerAnchorBuilder: function(b, a) { return '<li><a href="#" title="' + $(a).find("a").attr("title") + '" target="_self"><img src="' + $(a).find("img").attr("src") + '" width="162" height="62" alt="' + $(a).find("img").attr("alt") + '" /></a></li>' } }); $(".large-product-image").after('<ul class="slideshow-thumbs-product">').cycle({ fx: "fade", speed: "fast", timeout: 0, width: 600, height: 226, pager: ".slideshow-thumbs-product", pagerAnchorBuilder: function(f, a) { var e = $(a).find("img").attr("src"), d = e.replace("?width=600&height=226&scale=both", "?maxheight=62&maxwidth=108"), b = $(a).find("img").attr("alt"), c = $(a).find("img").attr("alt"); return '<li><a href="#" title="' + b + '" target="_self"><img src="' + d + '" alt="' + c + '" /></a></li>' } }); $(".slideshow").after('<ul class="slideshow-thumbs">').cycle({ fx: "fade", timeout: 5000, pause: 1, pager: ".slideshow-thumbs", pagerAnchorBuilder: function(b, a) { return '<li><a href="#" title="' + $(a).find("a").attr("title") + '" target="_self"><img src="' + $(a).find("img").attr("src") + '" width="104" height="48" alt="' + $(a).find("img").attr("alt") + '" /></a></li>' } }); $("input[name=search-field]").focus(function() { $(this).select() }); $("input[name=search-button],button").focus(function() { $(this).blur() }); $("#tabs").tabs() }); function switch_orderstatus() { if ("none" == document.getElementById("ostatus").style.display) document.getElementById("ostatus").style.display = ""; else document.getElementById("ostatus").style.display = "none" } function close_orderstatus() { if ("none" != document.getElementById("ostatus").style.display) document.getElementById("ostatus").style.display = "none" } (function(a) { a.fn.hideextra = function(b) { var c = { extraElement: "li", extraClass: "extra", buttonClass: "showMore", maxItems: 4, moreText: "more...", lessText: "less..." }, b = a.extend(c, b); this.each(function(g, d) { var e = a(d).children(b.extraElement); for (i = 0; i < e.length; i++) if (i > b.maxItems) { a(e[i]).hide(); a(e[i]).addClass(b.extraClass) } var c = a(b.extraElement + "." + b.extraClass, a(d)); if (e.length > b.maxItems + 1) c.length > 0 && a(d).append("<" + b.extraElement + '><a href="#_" class="' + b.buttonClass + '">' + c.length + " " + b.moreText + "</a></" + b.extraElement + ">"); var f = a("." + b.buttonClass, a(d)); f.click(function() { if (f.text().indexOf(b.moreText) > 0) { c.show(100); f.text(b.lessText) } else { c.hide(100); f.text(c.length + " " + b.moreText) } }) }) } })(jQuery)
