/* global $ */

(function(w,d,s,l,i){if(location.protocol.toLowerCase().indexOf('file:')===0)return;w[l]=w[l]||[];w[l].push({'gtm.start':
			new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
			j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
			'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
		})(window,document,'script','dataLayer','GTM-NJ9842');		
$(function() {
  var skinName = '<span class="skin-name">' + getVar('#hp-help-name') + '</span>';
  var skinShortName = '<span class="skin-short-name">' + getVar('#hp-help-short-name') + '</span>';
  var VERSION = getVar('#help-name2');

  /* Add short/long name to logo area *.html(skinName + skinShortName)*/
  $('.logo')
    .html(skinName + skinShortName)
    .wrap('<div class="logo-inner"></div> ');
  $('.logo-wrapper')
    .prependTo('.menu-icon-container');
 
  var verLangMenu = $('<span class="version">'  + VERSION + '</span>').appendTo('.logo-wrapper .logo');

  function getVar(vname) {
    return $(vname).text();
  }
  
});