
function thisYear() {
	weeks=new Array("日","月","火","水","木","金","土");
	today=new Date();
	y=today.getFullYear();
	m=today.getMonth()+1;
	d=today.getDate();
	w=weeks[today.getDay()];
	document.write(y);
	document.close();
}


j$(document).ready(function(){

  j$('.tri1').click(function(){
    j$(this).next().slideToggle('slow');
    j$(this).toggleClass("tri2");
  });

  j$('.tri1 a').click(function(){
    j$('.tri1').unbind('click');
  });

  j$('.tri2').click(function(){
    j$(this).next().slideToggle('slow');
    j$(this).toggleClass("tri3");
  });

  j$('.tri2 a').click(function(){
    j$('.tri2').unbind('click');
  });



  j$('#scrollPageTop a').click(function(){
    j$('#body').ScrollTo(1000, 'easeout');
    return false;
  });

});

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



j$(document).ready(function(){

  j$(".productsSpec tr").mouseover(function(){
    j$(this).addClass("mouseOver");
  }).mouseout(function(){
    j$(this).removeClass("mouseOver");
  });

  j$(".productsSpec01 tr").mouseover(function(){
    j$(this).addClass("mouseOver");
  }).mouseout(function(){
    j$(this).removeClass("mouseOver");
  });

  j$(".productsSpec02 tr").mouseover(function(){
    j$(this).addClass("mouseOver");
  }).mouseout(function(){
    j$(this).removeClass("mouseOver");
  });

  j$('table.even tr:even').addClass('addColor');
  j$('table.even01 tr:even').addClass('addColor');
  j$('table.even02 tr:even').addClass('addColor');
  j$('table.even03 tr:even').addClass('addColor');
  j$('table.even04 tr:even').addClass('addColor');
  j$('table.odd tr:odd').addClass('addColor');
  j$('table.odd01 tr:odd').addClass('addColor');
  j$('table.odd02 tr:odd').addClass('addColor');
  j$('table.odd03 tr:odd').addClass('addColor');
  j$('table.odd04 tr:odd').addClass('addColor');



  j$('#scrollAnchor01 a').click(function(){
    j$('#anchor01').ScrollTo(1000, 'vertical', 'easeout');
    return false;
  });
});



function jpLinks(){
	var path = window.self.location.pathname;
	var fn = new Array();
	fn = path.split("/");
	var fileName = fn[fn.length - 1];
	if( fileName == "" ){ fileName = "index.html" }
	document.write('<a href="../../products/' + fileName + '" title="Japanese">Japanese</a>');
	document.close();
}

function jpLinksProducts(){
	var path = window.self.location.pathname;
	var fn = new Array();
	fn = path.split("/");
	var fileName = fn[fn.length - 1];
	var folderName = fn[fn.length - 2];
	if( fileName == "" ){ fileName = "index.html" }
	document.write('<a href="../../../products/' + folderName + '/' + fileName + '" title="Japanese">Japanese</a>');
	document.close();
}

