function goBack(){if (document.referrer.indexOf(window.location.host) !== -1) {history.go(-1); return false;}}; function runAfterElementExists(jquery_selector, callback) {var checker = window.setInterval(function() {if ($(jquery_selector).length) {clearInterval(checker);callback();}}, 200);} runAfterElementExists('.variation-select', function() {function getSelection() {var csName_1 = $('.variation-select:first-child>div>span').html();var csSelection_1 = $('.variation-select>div>b').html();$('.currentSelection_1').html(csName_1 + ' ' + csSelection_1);var csName_2 = $('.variation-select:last-child>div>span').html();var csSelection_2 = $('.variation-select:last-child>div>b').html();$('.currentSelection_2').html('/ '+ csName_2 + ' ' + csSelection_2);};getSelection();$(".v-s-box ").click(function() {getSelection();});});