//copyright

startYear = 2009;
yearObj = new Date();
thisYear = yearObj.getFullYear();
if (startYear==thisYear){
	copyrightyear ="&copy;"+thisYear+" Ranves.Co.,Ltd All rights reserved."
} else {
	copyrightyear ="&copy;"+startYear+"-"+thisYear+" Ranves.Co.,Ltd All rights reserved."
};

//smooth scroll
Event.observe(window, 'load', function() {
  $$('a[href^=#]:not([href=#])').each(function(element) {
    element.observe('click', function(event) {
      new Effect.ScrollTo(this.hash.substr(1));
      Event.stop(event);
    }.bindAsEventListener(element))
  })
})