var loadFromRealServer = function(o) { var realDomain = 'http://www.samsung.com'; var src = $(o).attr('src'); if (src!==''&&src.indexOf('http://')<0) { $(o).attr({src:realDomain+src}); } }; ;(function($) { $(window).load(function() { setTimeout(function() { if (GALAXY.isGalaxy) { $("#wrap").prepend([ '
', '

Skip to accessibility help.

', '
', '', '
', 'Navigation', 'Top of Menu Content', '
', '', '
', '', '
', '', '

Visit Your Country Site

', '

Menu Close

', '
', 'Bottom of Menu Content', '
', ].join('')); } ;(function() { var cases = [ { name: 'Galaxy S6 edge +', root: '/global/galaxy/galaxy-s6-edge-plus', logo: '/global/galaxy/common/icons/color1/logo_samsung-galaxy-s6-edge-plus.png', menu: [{name: 'Overview', folder: ''}, {name: 'Design', folder: 'design'}, {name: 'Entertainment', folder: 'entertainment'}, {name: 'Charging', folder: 'charging'}, {name: 'Camera', folder: 'camera'}, {name: 'Accessories', folder: 'accessories'}, {name: 'Gallery', folder: 'gallery'}, {name: 'How-Tos', folder: 'how-tos'}] }, { name: 'Galaxy Note5', root: '/global/galaxy/galaxy-note5', logo: '/global/galaxy/common/icons/color1/logo_samsung-galaxy-note5.png', menu: [{name: 'Overview', folder: ''}, {name: 'Design', folder: 'design'}, {name: 'S Pen', folder: 'spen'}, {name: 'Charging', folder: 'charging'}, {name: 'Entertainment', folder: 'entertainment'}, {name: 'Camera', folder: 'camera'}, {name: 'Accessories', folder: 'accessories'}, {name: 'Gallery', folder: 'gallery'}, {name: 'How-Tos', folder: 'how-tos'}] } ], locationHref = location.href, $box, $listBox, caseIndex = -1, caseRoot = '', folderName = '', i = 0, max = cases.length; for (; i < max; i++) { if (locationHref.indexOf(cases[i].root) != -1) { caseIndex = i; break; } } if (caseIndex == -1 || (/\/(samsung-pay|galaxy-gifts)/).test(location.href)) { window.initBuyNowButtons && window.initBuyNowButtons(); return; } caseRoot = cases[caseIndex].root +'/'; $box = $([ '' ].join('')); $listBox = $box.find('ul'); $box.find('.heading a').attr('href', caseRoot).find('img').attr({src: cases[caseIndex].logo, alt: cases[caseIndex].name}); for (i = 0, max = cases[caseIndex].menu.length; i < max; i++) { folderName = cases[caseIndex].menu[i].folder; $([ '', '', cases[caseIndex].menu[i].name, '', '' ].join('')) .appendTo($listBox); } if (!$listBox.find('li.on').length) { $listBox.find('li:first').addClass('on'); } $("#contents").prepend($box); window.initBuyNowButtons && window.initBuyNowButtons(); })(); }, 0); }); })(window.jQuery);