// JavaScript Document
"use strict";
//svgスプライト表示バグ対策
(function(document, window){
document.addEventListener('DOMContentLoaded', function(){
var baseUrl = window.location.href
.replace(window.location.hash, '');
[].slice.call(document.querySelectorAll('use[*|href]'))
.filter(function(element) {
return (element.getAttribute('xlink:href').indexOf('#') === 0);
})
.forEach(function(element) {
element.setAttribute('xlink:href', baseUrl + element.getAttribute('xlink:href'));
});
}, false);
}(document, window));
// 言語選択
$(function(){
$('#tk_selectLanguage dt').click(function(){
$('#tk_selectLanguage dd').slideUp();
$('#tk_selectLanguage dt').removeClass("tk_open");
if($('+dd',this).css('display') == 'none'){
$('+dd',this).slideDown();
$(this).addClass("tk_open");
}
});
$('#tk_selectLanguage dt').prepend('');
});
//svgアイコンセット読み込み
$(function(){
$('#tk_siteName a').text('').prepend('');
$('#tk_globalMenu li:nth-child(1) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(2) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(3) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(4) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(5) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(6) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(7) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(8) a').text('').prepend('');
$('#tk_globalMenu li:nth-child(9) a').text('').prepend('');
$('#tk_mylistBut a').prepend('');
});