<!--

var scEng = "eng";
var sEditor = "Support";
var sPublisher = "Utgivare";
var sEditorPublisher = "Utgivare & författare";
var sUpdate = "Ändrad";
var sHelpTabTipText = "Visa / dölj hjälp !";
var scCurrentLang=GetCurrLang();


// Record current language in cookie
function SetLang(setting) 
{
  var expire = new Date();
  expire.setTime(expire.getTime() + ( 7*24*60*60*1000 ) ); // expire in 1 week
  document.cookie = "currLang=" + escape(setting) + "; expires=" + expire.toGMTString();
}

// Reset current language in cookie
function ResetLang() 
{
  var expire = new Date();
  expire.setTime(expire.getTime() - 1); // expire now
  document.cookie = "currLang='none'; expires=" + expire.toGMTString();
}

// Get language cookie setting
function GetCurrLang() 
{
  var label = "currLang="
  var labelLen = label.length
  var cLen = document.cookie.length
  var i = 0
  while (i < cLen) 
  {
    var j = i + labelLen
    if (document.cookie.substring(i,j) == label) 
	{
      var cEnd = document.cookie.indexOf(";",j)
      if (cEnd == -1) { cEnd = document.cookie.length }
      return unescape(document.cookie.substring(j,cEnd))
    }
    i++
  }
  return ""
}

// Show the vaule of the language cookie
function WriteLangCookie()
{
	document.write(GetCurrLang());
}


// Toggle the language between swedish and english.
function ToggleLang() 
{
  if (scCurrentLang == scEng)
  {
    ResetLang();
  }
  else
  {
    SetLang(scEng);
  }
  window.location.href = window.location.href;
}


// Show the head image.
function WriteHeadImage()
{
  if (scCurrentLang == scEng)
  {
    document.write('<a href="http://www.ericsson-if.se/" title="Link to the start page!!!"><img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/head_eng.gif" width="429" height="25"></a>');
  }
  else
  {
    document.write('<a href="http://www.ericsson-if.se/" title="Länk till startsidan!!!"><img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/head.gif" width="429" height="25"></a>');
  }
}



// Show the news image.
function WriteNewsImage()
{
  if (scCurrentLang == scEng)
  {
    document.write('<img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/news_eng.gif" width="100" height="22">');
  }
  else
  {
    document.write('<img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/news.gif" width="100" height="22">');
  }
}




// Show the news image.
function WriteEventsImage()
{
  if (scCurrentLang == scEng)
  {
    document.write('<img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/events_eng.gif" width="130" height="22">');
  }
  else
  {
    document.write('<img border="0" src="http://www.ericsson-if.se/ssi_corporatebar/images/events.gif" width="130" height="22">');
  }
}

//-->

