// qkamura JavaScript

/* Common:window-name */
window.name = "qkamura";

/* Common:favicon */
da_image = new Image();
da_image.src="/favicon.ico";

/* Auto-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))
})
})

/* PopUp */
function openpopup(theURL,winName,features) {
win1 = window.open(theURL,winName,features);
win1.focus()
}

/* E-Mail */
function address(){
a = "info";
d = "qkamura-s.com";
document.open();
document.write("<a href=mailto:"+a+"&#64;"+d+">"+a+"&#64;"+d+"</a>");
document.close();
}
