function changeLang(lang) {
  var strTopUrl, strIndex, aryTmp;
  strTopUrl = new String;
  strTopUrl = ""+window.location.href;
  aryTmp = strTopUrl.split("#");
  if (aryTmp.length > 1) {
    strIndex = "#"+aryTmp[1];
    strTopUrl =  strTopUrl.replace (strIndex, "");
  }
  else {
    strIndex = "";
  }
  strTopUrl = strTopUrl.replace (/.language=./gi, "");
  
  if (strTopUrl.indexOf('?')==-1)
  {	  
	  strTopUrl += "&Language=" + lang + strIndex;
	  if (strTopUrl.indexOf('?')==-1)
	  {
		  //replace first '&' with '?'
		  strTopUrl = strTopUrl.replace('&', '?');
	  }
  }
  else
  {
	  strTopUrl = strTopUrl + "&Language=" + lang + strIndex;	  
  }

  window.location.href = strTopUrl;
}

function slidePath(e) {
	e.effect('slide', null, 500, function() {
		if ($(this).next().size()) {
			slidePath($(this).next());
		}
	});
}

$(function() {
	slidePath($('#gui_home'));
});
