Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
}, "se": { "name": "Stamkundens förmåner", "content": Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
} } } ,{ "viewitems": 4, "content": { "fi": { "name": "Stockmann suosittelee", "content": Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
}, "se": { "name": "Stockmann rekommenderar", "content": Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
} } } ,{ "viewitems": 4, "content": { "fi": { "name": "Viikon ostetuimmat", "content": Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
}, "se": { "name": "Veckans populäraste", "content": Stockmann - Hullut Päivät 11.-15.04.2018
Pahoittelemme, hakemaasi sivua ei löytynyt!
} } } ]; window.fbAsyncInit = function() { FB.init( {appId: '196137243797374', status: true, cookie: true, xfbml: true}); FB.Canvas.setAutoGrow(true, 500); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/fi_FI/all.js'; document.getElementById('fb-root').appendChild(e); }()); function scrollLeft(btn) { var btnid = btn.attr('id'); btnid = btnid.charAt(btnid.length-1); var viewitems = catarray[btnid].viewitems; if (!global_animation_lock && global_category_positions[btnid] > 0) { global_animation_lock = 1; --global_category_positions[btnid]; if (global_category_positions[btnid] == 0) { $('#btn_left_'+btnid).fadeOut(400); } $('#btn_right_'+btnid).fadeIn(400); $('#scrollarea_'+btnid).animate({left: '+=810'}, 500, function(){ global_animation_lock = 0; }); _gaq.push(['_trackEvent', 'Action', 'Scroll', 'Scroll left']); } } function scrollRight(btn) { var btnid = btn.attr('id'); btnid = btnid.charAt(btnid.length-1); var viewitems = catarray[btnid].viewitems; if (!global_animation_lock) { global_animation_lock = 1; ++global_category_positions[btnid]; if (global_category_positions[btnid] == 1) { $('#btn_left_'+btnid).fadeIn(400); } if ((global_category_positions[btnid]+1) * viewitems >= catarray[btnid].content['fi'].content.length ) { $('#btn_right_'+btnid).fadeOut(400); } $('#scrollarea_'+btnid).animate({left: '-=810'}, 500, function(){ global_animation_lock = 0; }); _gaq.push(['_trackEvent', 'Action', 'Scroll', 'Scroll right']); } } function openURL(item) { var tmparr = item.attr('id').split('_'); var tag = '?'+global_cm_tag; window.open(catarray[tmparr[1]].content[global_currentlanguage].content[tmparr[2]].URL+''+tag, '_blank'); _gaq.push(['_trackEvent', 'Action', 'ViewItem', ''+catarray[tmparr[1]].content[global_currentlanguage].content[tmparr[2]].code]); } function dot2comma(value) { retval = ''; if (value) { for (var i=0; i0) { $('#categoryheader_'+i).html(catarray[i].content[lang].name); for (var j=0; j'+dot2comma(catarray[i].content[lang].content[j].price.min)+' €'+' ('+dot2comma(catarray[i].content[lang].content[j].price.ref)+' €)'); break; case 'regular': $('#itemprice_'+i+'_'+j).html(''+dot2comma(catarray[i].content[lang].content[j].price.min)+' €'+' ('+dot2comma(catarray[i].content[lang].content[j].price.ref)+' €)'); break; case 'none': default: $('#itemprice_'+i+'_'+j).html(dot2comma(catarray[i].content[lang].content[j].price.min)+' €'); break; } } } $('img.regular').attr('title', titlestr); } } function insertCategories() { // $('.mainwrapper').css({'height': (catarray.length*450 + 200)+'px'}); $('#maincontainer').css({'height': (catarray.length*450 + 200)+'px'}); for (var i=0; i 0) { var tmpstr = ''; var scrollareaheight = 200; var odd = 0; for (var j=0; j

'; } $('#categorycontainer').append('

'+tmpstr+'
'); for (var j=0; j catarray[i].viewitems) { $('#btn_right_'+i).fadeIn(400); } $('#btn_left_'+i).on('click', function(){ scrollLeft($(this)); }); $('#btn_right_'+i).on('click', function(){ scrollRight($(this)); }); global_category_positions[i] = 0; } } } function initialize() { if (global_firsttime) { if (!global_isfan) { } else { insertCategories(); setLanguage(global_currentlanguage); } $('#changelanguage').unbind('click').bind('click', function(){ if (global_currentlanguage == 'fi') { global_currentlanguage = 'se'; } else { global_currentlanguage = 'fi'; } _gaq.push(['_trackEvent', 'Action', 'LanguageChanged', ''+global_currentlanguage]); setLanguage(global_currentlanguage); }); global_firsttime = false; } } $(document).ready(function() { initialize(); });