0) { $(window).on("load", ResizeSideBanners); $(window).on("resize", ResizeSideBanners); } //#region set secure buy modal links if ($('a[href="javascript:void(\'secureBuyLink\');"]').length > 0) { $('a[href="javascript:void(\'secureBuyLink\');"]').each(function () { $(this).click(function () { if (typeof(InitCarousel) == "function") { if ($('#secureBuyModal').is(':visible') == false) { $('#secureBuyModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#secureBuyModal').show(); } else { RemoveModal('secureBuyModal'); } $('#secureBuyModal button').click(function () { RemoveModal('secureBuyModal'); }); $('.modal.fade.in').click(function () { RemoveModal('secureBuyModal'); }); } else { $('button#btnOpenSecureBuyModal').click(); } }); }); } //#endregion // set Accessibility action events if ($('.accessibility-container .accessibility-action').length > 0) { // set Accessibility Legal Statement modal links $('a[href="javascript:void(\'accessibilityLegalStatementLink\');"]').each(function () { $(this).click(function () { if (typeof (InitCarousel) == "function") { if ($('#accessibilityLegalStatementModal').is(':visible') == false) { $('#accessibilityFeedbackModal button.close').click(); $('#accessibilityLegalStatementModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#accessibilityLegalStatementModal').show(); } else { RemoveModal('accessibilityLegalStatementModal'); } $('#accessibilityLegalStatementModal button').click(function () { RemoveModal('accessibilityLegalStatementModal'); }); $('.modal.fade.in').click(function () { RemoveModal('accessibilityLegalStatementModal'); }); } else { $('#accessibilityFeedbackModal button.close').click(); $('button#btnOpenAccessibilityLegalStatementModal').click(); } }); }); // set Accessibility feedback modal links $('a[href="javascript:void(\'accessibilityFeedbackLink\');"]').each(function () { $(this).click(function () { if (typeof (InitCarousel) == "function") { if ($('#accessibilityFeedbackModal').is(':visible') == false) { var modalBtnClickEvent = $('#btnOpenAccessibilityFeedbackModal').attr('onclick'); if (typeof(modalBtnClickEvent) != 'undefined' && modalBtnClickEvent != null && modalBtnClickEvent != '') { eval(modalBtnClickEvent); } $('#accessibilityLegalStatementModal button.close').click(); $('#accessibilityFeedbackModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#accessibilityFeedbackModal').show(); } else { RemoveModal('accessibilityFeedbackModal'); } $('#accessibilityFeedbackModal button').click(function () { RemoveModal('accessibilityFeedbackModal'); }); $('.modal.fade.in').click(function () { RemoveModal('accessibilityFeedbackModal'); }); } else { $('#accessibilityLegalStatementModal button.close').click(); $('button#btnOpenAccessibilityFeedbackModal').click(); } }); }); // set body's bottom margin when window/font size is change by accessibility action if ($('.fix-body-footer-position').length > 0) { $('.action-increase-font-size, .action-decrease-font-size').click(function () { if ($('#pageBody.acc-zoom').length == 0) { FixFooterPositionOnAccAction(); } }); $('.action-zoom').click(function () { if ($('#pageBody.acc-zoom').length > 0) { $('#siteFooter').css('position', 'static'); $('#pageBody').css('margin-bottom', ''); } else { $('#siteFooter').css('position', 'absolute'); FixFooterPositionOnAccAction(); } }); } } // set catalog video modal if ($('.video-stamp-icon a.video-url').length > 0) { $('.video-stamp-icon a.video-url').each(function () { if ($(this).parents('.staticCIPageContent').length > 0 && $('.staticCIPageContent #imgVertFirst').length > 0 && $('#dlVertSquare img').length > 0) { var vertSquareImgMaxHeight = $('#dlVertSquare img').first().css('max-height'); if (typeof (vertSquareImgMaxHeight) != 'undefined' && vertSquareImgMaxHeight != '') { $(this).parent().css('bottom', vertSquareImgMaxHeight); } } $(this).click(function () { var dataVid = $(this).attr('data-vid'); var dataVidTitle = $(this).attr('data-vid-title'); if (typeof (dataVid) != 'undefined') { $('#videoIframe').attr('src', dataVid); $('#videoIframe').attr('title', dataVidTitle); } if (typeof (InitCarousel) == "function") { if ($('#videoModal').is(':visible') == false) { $('#videoModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#videoModal').show(); } else { RemoveModal('videoModal'); } $('#videoModal button').click(function () { RemoveModal('videoModal'); }); $('.modal.fade.in').click(function () { RemoveModal('videoModal'); }); } else { $('button#btnOpenVideoModal').click(); } }); }); } // set add to wish list modal if ($('#btnShowWishlistConfirm').length > 0) { $('#btnShowWishlistConfirm').click(function () { if (typeof (InitCarousel) == "function") { if ($('#wishlistConfirmModal').is(':visible') == false) { $('#wishlistConfirmModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#wishlistConfirmModal').show(); } else { RemoveModal('wishlistConfirmModal'); } $('#wishlistConfirmModal button').click(function () { RemoveModal('wishlistConfirmModal'); }); $('.modal.fade.in').click(function () { RemoveModal('wishlistConfirmModal'); }); } else { $('button#btnOpenWishlistConfirmModal').click(); } }); } // set recommended items modal if ($('#btnOpenRecommendedItemsModal').length > 0) { $('button#btnOpenRecommendedItemsModal').click(); } // set available delivery opts modal links if ($('a[href="javascript:void(\'availableDeliveryOptsLink\');"]').length > 0) { $('a[href="javascript:void(\'availableDeliveryOptsLink\');"]').each(function () { $(this).click(function () { if (typeof (InitCarousel) == "function") { if ($('#availableDeliveryOptsModal').is(':visible') == false) { $('#availableDeliveryOptsModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#availableDeliveryOptsModal').show(); } else { RemoveModal('availableDeliveryOptsModal'); } $('#availableDeliveryOptsModal button').click(function () { RemoveModal('availableDeliveryOptsModal'); }); $('.modal.fade.in').click(function () { RemoveModal('availableDeliveryOptsModal'); }); } else { $('button#btnOpenAvailableDeliveryOptsModal').click(); } }); }); } // set available delivery opts modal links if ($('a[href="javascript:void(\'askAboutProductLink\');"]').length > 0) { $('a[href="javascript:void(\'askAboutProductLink\');"]').each(function () { $(this).click(function () { if (typeof (InitCarousel) == "function") { if ($('#askAboutProductModal').is(':visible') == false) { var modalBtnClickEvent = $('#btnOpenAskAboutProductModal').attr('onclick'); if (typeof(modalBtnClickEvent) != 'undefined' && modalBtnClickEvent != null && modalBtnClickEvent != '') { eval(modalBtnClickEvent); } $('#askAboutProductModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#askAboutProductModal').show(); } else { RemoveModal('askAboutProductModal'); } $('#askAboutProductModal button').click(function () { RemoveModal('askAboutProductModal'); }); $('.modal.fade.in').click(function () { RemoveModal('askAboutProductModal'); }); } else { $('button#btnOpenAskAboutProductModal').click(); } }); }); } // set item added to cart success modal if ($('#btnOpenProductAddedToOrderModal').length > 0) { $('#btnOpenProductAddedToOrderModal').click(function () { if (typeof (InitCarousel) == "function") { if ($('#productAddedToOrderModal').is(':visible') == false) { $('#productAddedToOrderModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#productAddedToOrderModal').show(); } else { RemoveModal('productAddedToOrderModal'); } $('#productAddedToOrderModal button').click(function () { RemoveModal('productAddedToOrderModal'); }); $('.modal.fade.in').click(function () { RemoveModal('productAddedToOrderModal'); }); } else { $('#productAddedToOrderModal').show(); } }); } // set item removed from cart modal if ($('#btnOpenRemoveItemFromCartModal').length > 0) { $('#btnOpenRemoveItemFromCartModal').click(function () { if (typeof (InitCarousel) == "function") { if ($('#removeItemFromCartModal').is(':visible') == false) { $('#removeItemFromCartModal').addClass('in'); $('#pageBody').addClass('modal-open'); $('body').append(''); $('#removeItemFromCartModal').show(); } else { RemoveModal('removeItemFromCartModal'); } $('#removeItemFromCartModal button').click(function () { RemoveModal('removeItemFromCartModal'); }); $('.modal.fade.in').click(function () { RemoveModal('removeItemFromCartModal'); }); } else { $('#removeItemFromCartModal').show(); } }); } // set available payment opts modal links if ($('a[href="javascript:void(\'availablePaymentOptsLink\');"]').length > 0) { $('a[href="javascript:void(\'availablePaymentOptsLink\');"]').each(function () { $(this).click(function () { if (typeof (InitCarousel) == "function") { if ($('#availablePaymentOptsModal').is(':visible') == false) { $('#availablePaymentOptsModal').addClass('in'); $('#pageBody').addClass('modal-open'); //$('#pageBody').css('padding-right', '17px'); $('body').append(''); $('#availablePaymentOptsModal').show(); } else { RemoveModal('availablePaymentOptsModal'); } $('#availablePaymentOptsModal button').click(function () { RemoveModal('availablePaymentOptsModal'); }); $('.modal.fade.in').click(function () { RemoveModal('availablePaymentOptsModal'); }); } else { $('button#btnOpenAvailablePaymentOptsModal').click(); } }); }); } if ($('.cartContainer').length > 0) { $('.cartContainer').tinyscrollbar( { sizethumb: 11 }); } $(window).on("orientationchange", function () { if ($("#divSplashBanner:visible").length == 1) { openSplashBanner(false, true); } }); // set scroll to anchor $('ul.TopMenu a[href^="#"], ul.TopMenu a[href^="/#"], .tdMiddlePanel a[href^="#"], .tdMiddlePanel a[href^="/#"], .responsive-navbar a[href^="/#"]').on('click',function (e) { e.preventDefault(); var target = this.hash.replace('#',''); if (target != '') { if ($('span[class=' + target + ']').length > 0) { $('span[class=' + target + ']').each(function() { if ($(this).offset().top > 0) { $('html, body').stop().animate( { 'scrollTop': $(this).offset().top }, 900, 'swing', function () { //window.location.hash = target; }); } }); } } }); //#region Remarks - delete me //#endregion // replace css's 'last-child' selector with class name AddLastChildClass(); //$('.gallery').css("display","inline-block"); // add empty alt attribute //$('.gallery img').attr('alt', ''); -> this is not working // set slide show on home page if(typeof(hpSlideShowPics) == "object") ShowSlideShowOnHP(); // set fixed position DForms ShowFormInFixedPosition(); // set slide show iframe size according to the iframe's content slideShowiframe = $('iframe[src*="WideSlideShowIframe"]'); if (slideShowiframe != null && slideShowiframe.length > 0) { try { ResizeSlideShowIframe(); $(window).on("load", ResizeSlideShowIframe); $(window).on("resize", ResizeSlideShowIframe); $(window).on("orientationchange", ResizeSlideShowIframe); } catch(e) { } } // set scroll top icon events $("#pnlScrollTopIcon").hover(function () { $(this).animate({ opacity: "1" }, 200); }, function () { $(this).animate({ opacity: "0.8" }, 200); }); $("#pnlScrollTopIcon a") .focusin(function () { $(this).parent().addClass('child-got-focus'); }) .focusout(function () { $(this).parent().removeClass('child-got-focus'); }); $("#pnlScrollTopIcon > a").click(function () { $("#pnlScrollTopIcon").removeClass('child-got-focus'); $("html,body").animate({ scrollTop: 0 }, 400); }); $('body:not(.responsiveBody) :not(.hideElement) a:not([tabindex])').each(function() { if (typeof ($(this).attr('onclick')) != 'undefined' || (typeof ($(this).attr('href')) != 'undefined' && $(this).attr('href') != 'javascript:void(0);')) { $(this).attr('tabindex', '0'); } }); $(window).scroll(function () { var scrollTop = $(window).scrollTop(); // show icon when not in resposive mode (window width lower than 961) if (scrollTop >= 100 && $(window).width() >= 961) { $("#pnlScrollTopIcon").show(350); } else { $("#pnlScrollTopIcon").hide(350); } }); // Hide upper category description's container if ($('#lblCategoryDescriptionUpper').length > 0 && $('#lblCategoryDescriptionUpper').html() == '') { $('#lblCategoryDescriptionUpper').parents('table.tblDynamicBodyLayout').remove(); } if ($('table.tblLowerBodyContainer td').length == 0) { $('table.tblLowerBodyContainer').remove(); } if ($('table.bottom-pager').length > 0 && $('#siteFooter').height() > 0) { window.setTimeout(function () { FixBottomPanelTopPosition(); }, 1500); } //#region Content categories on home page // Limit img container width to its content $(".staticHPSubCategoriesContainer div.flip-img-warpper").each(function () { var contentsWidth = $(this).contents().width(); if (contentsWidth > 0) { $(this).css('max-width', contentsWidth + 'px'); } else if (navigator.userAgent.indexOf("MSIE ") != -1 || // ie 10 or lower navigator.userAgent.indexOf("Trident/") != -1 || // ie 11 navigator.userAgent.indexOf("Edge/") != -1) // ie edge { $(this).find('img').css('max-width', 'none').css('max-height', 'none'); contentsWidth = $(this).find('img')[0].clientWidth; $(this).css('max-width', contentsWidth + 'px'); $(this).css('height', $(this).find('img')[0].clientHeight + 'px'); } }); $(".responsiveContentSubCategoriesContainer div.flip-img-warpper").each(function () { var contentsWidth = $(this).contents().width(); if (contentsWidth > 0) { $(this).css('max-width', contentsWidth + 'px'); } else if (navigator.userAgent.indexOf("MSIE ") != -1 || // ie 10 or lower navigator.userAgent.indexOf("Trident/") != -1 || // ie 11 navigator.userAgent.indexOf("Edge/") != -1) // ie edge { $(this).find('img').css('max-width', 'none').css('max-height', 'none'); contentsWidth = $(this).find('img')[0].clientWidth; $(this).css('max-width', contentsWidth + 'px'); $(this).css('height', $(this).find('img')[0].clientHeight + 'px'); } }); // Add hover filp effect on content categories on home page $(".staticHPSubCategoriesContainer span.flip-img-warpper, .responsiveContentSubCategoriesContainer span.flip-img-warpper").hover( function () { //return .flip-img-warpper.flip-cat-[CATEGORY ID]-img //var clsTmp = "." + $(this).attr('class').replace(' ', '.'); // using split - //$('div.' + $(this).attr('class').split(' ')[1]).addClass('hover'); var clsTmp = $(this).attr("class").match(/flip-cat-[\w-]*\b/)[0]; $('div.' + clsTmp).addClass('hover'); }, function () { var clsTmp = $(this).attr("class").match(/flip-cat-[\w-]*\b/)[0]; $('div.' + clsTmp).removeClass('hover'); } ); //#endregion Content categories on home page window.CloseModal = function(modalType) { switch (modalType) { case "AccessibilityFeedback": $('button#btnOpenAccessibilityFeedbackModal').click(); break; } }; isLtrSite = false; if ($('body.ltr').length > 0) { isLtrSite = true; } }); // remove bootstrap modal window // this is needed because there is a collision between the bootstrap and owlCarousel libraries function RemoveModal(modalObjId) { $('#' + modalObjId).hide(); $('#pageBody').removeClass('modal-open'); $('#pageBody').css('padding-right', ''); $('.modal-backdrop.fade.in').remove(); $('.modal-backdrop.fade.show').remove(); // for bootstap ver 4 $('#' + modalObjId).removeClass('in'); $('#' + modalObjId).removeClass('show'); // for bootstap ver 4 } function removeSpaces(string) { if(string == null || string == "") return "0"; else return string.split(' ').join(''); } function openSplashBanner(hideOnMobile, isOrientationChanged) { var banner = $("#divSplashBanner"); var banerTbl = $("#divSplashBanner table")[0]; var screenWidth = ScreenWidth() - 10; var screenHeight = window.screen.height - 35; var ratio = 0; var isMobile = false; var objMaxWidth = 0; var objMaxHeight = 0; var objWidth = 0; var objHeight = 0; var maxBannerWidth = screenWidth; var maxBannerHeight = screenHeight; // remove max-width/max-height from images/iframes in the splash banner content if (typeof (isOrientationChanged) != 'undefined' && isOrientationChanged == true) { // remove images max-width & max-height $('#tdSplashBannerContent img').each(function () { $(this).css('max-width', ''); $(this).css('max-height', ''); if ($(this).attr('org-width') != '') { $(this).css('width', $(this).attr('org-width')); $(this).removeAttr('org-width'); } if ($(this).attr('org-height') != '') { $(this).css('height', $(this).attr('org-height')); $(this).removeAttr('org-height'); } }); // remove iframes max-width & max-height $('#tdSplashBannerContent iframe').each(function () { $(this).css('max-width', ''); $(this).css('max-height', ''); }); $('#tblSplashBanner').css('max-width', ''); $('#tblSplashBanner').css('max-height', ''); banner.css('margin-left', ''); banner.css('margin-top', ''); } // reduce images/iframes width & height if (hideOnMobile == false && IsMobileDevice() == true && (screenWidth < banner.width() || screenHeight < banner.height())) { isMobile = true; // reduce images width & height $('#tdSplashBannerContent img').each(function () { if ($(this).width() > screenWidth || $(this).height() > screenHeight) { ratio = $(this).height() / $(this).width(); if (ratio > 0) { // portrait layout if (screenHeight > screenWidth && $(this).width() > screenWidth) { objMaxWidth = screenWidth * ratio; } // landscape layout if (screenWidth > screenHeight && $(this).height() > screenHeight) { objMaxHeight = screenHeight * ratio; } if (objMaxWidth > 0) { // get the largest value between image width and screen width objMaxWidth = Math.max(objMaxWidth, screenWidth); $(this).css('max-width', objMaxWidth); // the banner width should not exceeds its content width if (objMaxWidth < maxBannerWidth) { maxBannerWidth = objMaxWidth; } } else { $(this).attr('org-width', $(this).css('width')); $(this).css('width', 'auto'); } if (objMaxHeight > 0) { // get the largest value between image height and screen height objMaxHeight = Math.max(objMaxHeight, screenHeight); $(this).css('max-height', objMaxHeight); // the banner height should not exceeds its content height if (objMaxHeight < maxBannerHeight) { maxBannerHeight = objMaxHeight; } } else { $(this).attr('org-height', $(this).css('height')); $(this).css('height', 'auto'); } if (objMaxWidth == 0) { objMaxWidth = Math.min($(this).width(), screenWidth); if (objMaxWidth < maxBannerWidth) { maxBannerWidth = objMaxWidth; } } if (objMaxHeight == 0) { objMaxHeight = Math.min($(this).height(), screenHeight); if (objMaxHeight < maxBannerHeight) { maxBannerHeight = objMaxHeight; } } } } }); // reduce iframes width & height $('#tdSplashBannerContent iframe').each(function () { if ($(this).height() > 0) { objWidth = $(this).width(); } else { objWidth = $(this).attr('width'); } if ($(this).height() > 0) { objHeight = $(this).height(); } else { objHeight = $(this).attr('height'); } if (objWidth > screenWidth || objHeight > screenHeight) { ratio = objHeight / objWidth; if (ratio > 0) { if (screenHeight > screenWidth) { // portrait layout $(this).css('max-width', screenWidth); $(this).css('max-height', (screenWidth * ratio)); } else { // landscape layout $(this).css('max-width', screenWidth - 40); $(this).css('max-height', ((screenWidth - 40) * ratio)); } } } }); $('#tdSplashBannerContent').css('height', 'auto'); $('#tblSplashBanner').css('width', 'auto'); $('#tblSplashBanner').css('max-width', maxBannerWidth); $('#tblSplashBanner').css('max-height', maxBannerHeight); } if (hideOnMobile == false || (hideOnMobile == true && window.screen.width > $(banerTbl).width())) { // if the splash banner contain a dform, dont hide the bunner when onblur //if($("#divSplashBanner").find("iframe[src*='DFormIframe']").length == 0) if($("#divSplashBanner").find("iframe").length == 0 && // support all iframes $("#tdSplashBannerContent").find("input").length == 0) // support any input field { banner.show(); banner.focus(); } else { $(banerTbl).focus(); banner.show(); } if ($('#splashBannerOverlay').length == 0) { $("body").append('
'); } // hide banner on Esc $(document).keyup(function (e) { if (e.keyCode == 27) { // escape key maps to keycode `27` HideSplashBanner(); } }); // center the banner on screen if (isMobile == true) { // center on mobile device var _x = 0; var _y = 0; var offsetX = window.pageXOffset; var offsetY = window.pageYOffset; _x = ((window.screen.width - banner.width()) / 2) + offsetX; _y = ((window.screen.height - banner.height()) / 2) + offsetY; banner.css('margin-left', _x); banner.css('top', '0px').css('left', '0px'); $(banner).animate({ marginTop: _y + 'px' }, 1000, function () { // run after animate complete }); } else { // center on desktop $(banner).animate({ marginTop: '+=600px' }, 1000, function () { // run after animate complete //$("body").append('
'); }); } } } function HideSplashBanner() { $('#splashBannerOverlay').css("display", "none"); $('#divSplashBanner').css("display", "none"); $('#tdSplashBannerContent').empty(); } function ShowConfirmModal() { if (typeof ($.cookie('IsModalContentApproved')) == 'undefined') { setTimeout(function () { $('#confirmModal').modal('show'); //$('#btnOpenConfirmModal').click(); $('#btnConfirmModal').click(function () { if (typeof ($.cookie('IsModalContentApproved')) == 'undefined') { $.cookie('IsModalContentApproved', 1, { expires: 14 }); } $('#confirmModal').modal('hide'); }); }, 500); } } // IE8 and lower dont support the css's 'last-child' selector // so we replace the 'last-child' with class name function AddLastChildClass() { if(navigator.userAgent.indexOf("MSIE") > -1 && typeof(metaEmulateIE) == "object" && parseInt(navigator.userAgent.split("MSIE ")[1].split(".")[0]) < 9) { $('ul.TopMenu ul li:last-child').addClass('NavBarLiIELastChildHack'); } } function ShowSlideShowOnHP() { var i = 0; var delay = Number(hpSlideShowDelay); AddSlideShowImages(); if (hpSlideShowPics.length > 1 && delay > 0) { setInterval('cycleImages()', delay); } } function AddSlideShowImages() { // TODO: Check if the browser width ($(window).width()) is smaller than hpMaxSlideShowPicWidth. // If it's smaller than change the body's background image insted of adding slideShowCycler // div to the body $('
').appendTo('#pageBody'); for (var i = 0; i < hpSlideShowPics.length; i++) { var className = "slideShowImgPic"; var imgSrc = ''; var imgTag = ''; if(i == 0 || hpSlideShowPics.length == 1) { className = className + " activeSlideShowPic"; // Set body's background image /* var imgSrc = hpSlideShowPics[i]; imgSrc = imgSrc.replace(location.hostname, '').replace('///', '/'); console.log(imgSrc); $('#pageBody').css("background-image", "url('" + imgSrc + "')"); $('#pageBody').css("background-repeat", "no-repeat"); */ } imgSrc = hpSlideShowPics[i]; imgTag = ''; $.ajax({ url : imgSrc, cache : true, processData : false, async : false }) .done(function (response, status, xhr) { var ct = xhr.getResponseHeader("content-type") || ""; if (ct.indexOf('image') != -1) { $(imgTag).appendTo('#slideShowCycler'); } }); } } function cycleImages() { var $active = $('#slideShowCycler .activeSlideShowPic'); var $next = ($active.next().length > 0) ? $active.next() : $('#slideShowCycler img:first'); $active.fadeOut('slow', function() { $active.removeClass('activeSlideShowPic'); }); $next.fadeIn('slow', function() { $next.addClass('activeSlideShowPic'); }); } function ShowFormInFixedPosition() { $(".showInFixedPosition").each(function() { var topPos = $(this).position().top; var leftPos = $(this).position().left; $(this) .css("position", "fixed") .css("top", topPos + "px") .css("left", leftPos + "px") }); $("iframe[showinfixedposition]").each(function() { var topPos = $(this).position().top; var leftPos = $(this).position().left; $(this) .css("position", "fixed") .css("top", topPos + "px") .css("left", leftPos + "px") }); } function ResizeSlideShowIframe() { if (document.body != null) { window.setTimeout(function() { var width = slideShowiframe.contents().find('#sliderContainer').width(); var height = slideShowiframe.contents().find('#sliderContainer').height(); $(slideShowiframe).width(width); $(slideShowiframe).height(height); }, 60); } else { try { ResizeSlideShowIframe(); } catch(e) { } } } // if there are side banners resize their container according to the win size // hide banners if there is not enough space function ResizeSideBanners() { var sWidth = 1000; var winInnerWidth = $(window).outerWidth(); var rightBannerWidth = 0; var leftBannerWidth = 0; var combinedWidth = 0; if (siteWidth != undefined && isNaN(siteWidth) == false && siteWidth > 0) { sWidth = siteWidth; } if ($('#pnlRightBanner > div').length == 1) { rightBannerWidth = $('#pnlRightBanner > div').width(); } if ($('#pnlLeftBanner > div').length == 1) { leftBannerWidth = $('#pnlLeftBanner > div').width(); } if (rightBannerWidth > 0 && leftBannerWidth == 0) { rightBannerWidth = rightBannerWidth * 2; } else if (rightBannerWidth == 0 && leftBannerWidth > 0) { leftBannerWidth = leftBannerWidth * 2; } combinedWidth = sWidth + rightBannerWidth + leftBannerWidth; if ($(window).width() < combinedWidth || screen.width < combinedWidth) { $("#pnlRightBanner").css('visibility', 'hidden'); $("#pnlLeftBanner").css('visibility', 'hidden'); } else { $("#pnlRightBanner").css('visibility', 'visible'); $("#pnlLeftBanner").css('visibility', 'visible'); winInnerWidth = (winInnerWidth - sWidth) / 2; $("#pnlRightBanner").width(winInnerWidth); $("#pnlLeftBanner").width(winInnerWidth); } } // Some clients experience overlapping of the footer and the bottom pager // although we're setting the body's margin bottom property function FixBottomPanelTopPosition() { var pagerTopPos = 0; var pagerHeight = 0; var marginTop = 0; //$('#siteFooter').position().top - ($('table.bottom-pager').position().top + $('table.bottom-pager').height()); var currMarginTop = 0; var overlap = false; var footerRect; var pagerRect; if ($('table.bottom-pager').length > 0) { pagerTopPos = $('table.bottom-pager').position().top; pagerHeight = $('table.bottom-pager').height(); } else { return; } marginTop = $('#siteFooter').position().top - (pagerTopPos + pagerHeight); if (marginTop < 0) { currMarginTop = parseInt($('#pageBody').css('margin-bottom'), 10); if (currMarginTop > 0) { marginTop = Math.abs(marginTop) + currMarginTop; } if (marginTop > currMarginTop) { $('#pageBody').css('margin-bottom', marginTop + 'px'); } } else { footerRect = $('#siteFooter')[0].getBoundingClientRect(); pagerRect = $('table.bottom-pager')[0].getBoundingClientRect(); overlap = !(footerRect.right < pagerRect.left || footerRect.left > pagerRect.right || footerRect.bottom < pagerRect.top || footerRect.top > pagerRect.bottom) if (overlap == true) { currMarginTop = parseInt($('#pageBody').css('margin-bottom'), 10); $('#pageBody').css('margin-bottom', (currMarginTop + pagerHeight) + 'px'); } } } // Set body's bottom margin to reposition the footer after // accessibility actions: zoom (in/out), increase/decrease font size function FixFooterPositionOnAccAction() { var footerHeight = $('#tblBelowFooter').height() + $('#footerDForm').height() + 10; $('#pageBody').css('margin-bottom', footerHeight + 'px'); if ($('table.bottom-pager').length > 0) { window.setTimeout(function () { FixBottomPanelTopPosition(); }, 1500); } } //]]>

ברוכים הבאים

שלום וברוכים הבאים לאתר החדש שלי.
בקרוב אתחיל לעדכן אותו...לכן חיזרו במועד מאוחר יותר

סער
ברוכים הבאים
שלום וברוכים הבאים לאתר החדש שלי.
בקרוב אתחיל לעדכן אותו...לכן חיזרו במועד מאוחר יותר

סער
שדו זהב
לתמונות נוספות...
לרשימת הפורומים המלאה...
האים האתר הזה יפה

לקישורים נוספים...
חשבון משתמש
שלום אורח/ת

התחבר | משתמש חדש

חברים