(function(a) { a.fn.bgIframe = a.fn.bgiframe = function(c) { if (a.browser.msie && /6.0/.test(navigator.userAgent)) { c = a.extend({ top: "auto", left: "auto", width: "auto", height: "auto", opacity: true, src: "javascript:false;" }, c || {}); var d = function(e) { return e && e.constructor == Number ? e + "px" : e }, b = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + c.src + '"style="display:block;position:absolute;z-index:-1;' + (c.opacity !== false ? "filter:Alpha(Opacity='0');" : "") + "top:" + (c.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" : d(c.top)) + ";left:" + (c.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : d(c.left)) + ";width:" + (c.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : d(c.width)) + ";height:" + (c.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : d(c.height)) + ';"/>'; return this.each(function() { if (a("> iframe.bgiframe", this).length == 0) { this.insertBefore(document.createElement(b), this.firstChild) } }) } return this } })(jQuery); dc_Ns = (navigator.appName.indexOf("Netscape") != -1); document.onmousemove = mmPos; function mmPos(a) { mX = ((dc_Ns) ? a.layerX : window.event.offsetX + 70); mY = ((dc_Ns) ? a.layerY : window.event.offsetY + 250) } function showInfoPopUp(a) { document.getElementById(a).style.top = mY + "px"; document.getElementById(a).style.left = mX + "px"; document.getElementById(a).style.visibility = "visible" } function hideInfoPopUp(a) { document.getElementById(a).style.top = "0px"; document.getElementById(a).style.left = "0px"; document.getElementById(a).style.visibility = "hidden" } function ContentPreviewSet(d, b, a, c) { $(document).ready(function() { $(".gallerypreview").attr("src", b); $(".gallerypreview").alt = a; $(".gallerypreview").title = c }) } function order_shippingdata(b) { var a = b.checked; if (a) { document.getElementById("txtSUname").value = document.getElementById("txtFname").value; document.getElementById("txtSLname").value = document.getElementById("txtLName").value; document.getElementById("txtSStreet").value = document.getElementById("txtStreet").value; document.getElementById("txtSCity").value = document.getElementById("txtCity").value; document.getElementById("txtSZip").value = document.getElementById("txtPSC").value; document.getElementById("txtSState").value = document.getElementById("txtState").value; document.getElementById("txtSTel").value = document.getElementById("txtTel").value; document.getElementById("txtSFax").value = document.getElementById("txtFax").value; document.getElementById("txtSEmail").value = document.getElementById("txtEmail").value } } function UFClear() { $('#content_text input[type="text"]').val("") } function UFFill(b, d, c, a) { switch (c) { case "text": $("input[name=" + b + "]").val(d); if (a) { $("input[name=" + b + "]").attr("readonly", "true") } break; case "select": $("select[name=" + b + "]").val(d); if (a) { $("select[name=" + b + "] option").each(function() { if ($(this).val() != d) { $(this).remove() } }) } break; case "radio": $('input[name="' + b + '"]').each(function(e) { if ($(this).val() == d) { $(this).attr("checked", "true"); $(this).click(function(f) { $(this).attr("checked", "true") }) } }); if (a) { $('input[name="' + b + '"]').each(function(e) { if ($(this).val() != d) { $(this).attr("disabled", "true") } }) } break; case "checkbox": $('input[name="' + b + '"]').each(function(e) { if ($(this).val() == d) { $(this).attr("checked", "true"); $(this).click(function(f) { $(this).attr("checked", "true") }) } }); if (a) { $('input[name="' + b + '"]').each(function(e) { if ($(this).val() != d) { $(this).attr("disabled", "true") } }) } break; case "textarea": $("textarea[name=" + b + "]").val(d); if (a) { $("textarea[name=" + b + "]").attr("readonly", "true") } break; default: } } $(document).ready(function() { if (jQuery().nyroModal) { $(function() { $.fn.nyroModal.settings.processHandler = function(b) { var d = b.from; if (d && d.href && d.href.indexOf(".aspx") > 0) { var a = d.href; var c = "?page_content_only="; if (a.indexOf("?") > 0) { c = "&page_content_only=" } a = a + c; $.nyroModalSettings({ galleryLinks: "", url: a }) } } }) } if (jQuery().nyroModal) { $('A[rel="catalog_score"]').click(function(a) { a.preventDefault(); $("#EshopConditions").modal({ close: true, position: ["10%", ], overlayId: "simplemodal-overlay", containerId: "simplemodal-container", onOpen: contact.open2, onClose: contact.close }); return false }); $('A[rel="show_modal"]').nyroModal(); return false } else { $('A[rel="show_modal"]').click(function(a) { a.preventDefault(); $.get(tb_pathToRoot + "getcontentbyurl.aspx?url=" + this, function(b) { $(b).modal({ close: true, position: ["10%", ], overlayId: "simplemodal-overlay", containerId: "simplemodal-container", onOpen: contact.open, onClose: contact.close }) }); return false }) } $('A[rel="catalog_score"]').click(function(a) { a.preventDefault(); $("#EshopConditions").modal({ close: true, position: ["10%", ], overlayId: "simplemodal-overlay", containerId: "simplemodal-container", onOpen: contact.open2, onClose: contact.close }); return false }) }); var contact = { message: null, open: function(a) { var b = 280; if ($("#modalbody").length) { b += 26 } if ($("#contact-cc").length) { b += 22 } var c = $("#simplemodal-container .modalheader").html(); $("#simplemodal-container .modalheader").html("Loading..."); a.overlay.fadeIn(200, function() { a.container.slideDown(300, function() { a.data.fadeIn(500, function() { $("#simplemodal-container .modalheader").html(c); $("#simplemodal-container form").fadeIn(200, function() { $("#simplemodal-container").css("background-image", "none"); $("#simplemodal-container .modalbody").removeClass("nodisplay") }) }) }) }) }, open2: function(a) { var b = 280; if ($("#modalbody").length) { b += 26 } if ($("#contact-cc").length) { b += 22 } var c = $("#simplemodal-container .modalheader").html(); $("#simplemodal-container .modalheader").html("Loading..."); a.overlay.fadeIn(200, function() { a.container.slideDown(300, function() { a.data.fadeIn(500, function() { $("#simplemodal-container").css("background-image", "none"); $("#simplemodal-container .modalbody").removeClass("nodisplay"); $("#simplemodal-container .modalheader").removeClass("nodisplay"); $("#simplemodal-container .modalheader").html(c) }) }) }) }, close: function(a) { $("#simplemodal-container .message").fadeOut(); $("#simplemodal-container .modalheader").html("Goodbye..."); $("#simplemodal-container form").fadeOut(200); $("#simplemodal-container .modalbody").animate({ height: 40 }, function() { a.data.fadeOut(200, function() { a.container.fadeOut(200, function() { a.overlay.fadeOut(200, function() { $.modal.close() }) }) }) }) }, error: function(a) { alert(a.statusText) } }; function parseXML(c) { var b = []; var a = $(c).find("Item"); $(a).each(function() { var d = $.trim($(this).find("name").text()); b[b.length] = { data: [d], result: d, value: d} }); $(b).each(function() { }); return b } $(document).ready(function() { if (window.opera) { if ($("a.jqbookmark").attr("rel") != "") { $("a.jqbookmark").attr("rel", "sidebar") } } $("a.jqbookmark").click(function(b) { b.preventDefault(); var a = this.href; var c = this.title; if (window.sidebar) { window.sidebar.addPanel(c, a, "") } else { if (window.external) { window.external.AddFavorite(a, c) } else { if (window.opera) { return false } else { alert("Unfortunately, this browser does not support the requested action, please bookmark this page manually.") } } } }) }); $(document).ready(function() { $('A[rel="print_page"]').click(function(a) { a.preventDefault(); window.print(); return false }) }); $(document).ready(function() { if (jQuery().nyroModal) { $('A[rel="gallery"], A[rel="show_gallery"], .show_gallery A').nyroModal() } else { tb_init('A[rel="gallery"], A[rel="show_gallery"], .show_gallery A'); imgLoader = new Image(); imgLoader.src = tb_pathToImage + "loading.gif" } }); function setIECookie() { var a = { path: "/", expires: 1 }; $.cookie("web_ie_warn", "1", a); window.location.reload() };
