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([
'
',
'',
'',
'
Navigation',
'
Top of Menu Content',
'
',
'
',
'
',
'
',
'
',
'
',
'- ',
'
',
'Galaxy S6 edge+',
' ',
'- ',
'
',
'Galaxy Note5',
' ',
'- ',
'
',
'Galaxy S6 edge',
' ',
'- ',
'
',
'Galaxy S6',
' ',
'- ',
'
',
'Galaxy TabPro S',
' ',
'- ',
'
',
'Galaxy Tab S2',
' ',
'- ',
'
',
'Galaxy View',
' ',
'- ',
'
',
'Gear S2',
' ',
'- ',
'
',
'Gear VR',
' ',
'- ',
'
',
'Accessories',
' ',
'
',
'
',
'
',
'
',
'- ',
'
',
'Brand Story',
' ',
'- ',
'
',
'S6 Inside Stories',
' ',
'- ',
'
',
'Galaxy Gallery',
' ',
'- ',
'
',
'Galaxy S6 X Fashion',
' ',
'
',
'
',
'
',
'
',
'- ',
'
',
'Galaxy Unpacked 2015',
' ',
'- ',
'
',
'S Carpet 2015',
' ',
'- ',
'
',
'Samsung - Surf',
' ',
'- ',
'
',
'HD Mobile Gaming',
' ',
'- ',
'
',
'Samsung & Avengers',
' ',
'- ',
'
',
'Galaxy S6 World Tour',
' ',
'
',
'
',
'
',
'
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 = $([
'',
'
',
'
',
'
![]()
',
'
',
GALAXY.isGalaxy?'
Menu
':'',
'
',
'PRE-ORDER',
'BUY NOW',
'
',
'
'
].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);