// JavaScript Document
//
//
//komado--
function disp(url){
var tmp = window.open(url,"","width=1000,height=450,scrollbars=no");
tmp.moveTo(0,0);
}
//
//
//check_Agent
function mailer(){
document.write('<a href="mailto:postmaster'+'@'+'makibishi.co.jp?subject=HELLO%20MAKIBISHI%20inc.">MAIL : postmaster'+'@'+'makibishi.co.jp <'+'/a>');
}
//
//
//check_Agent
var isIE;
if (navigator.userAgent.indexOf("Gecko") != -1){
   isIE = false;
}else{
   isIE = true;
}
//
//sound_set
var uid = new Date().getTime();
var flashProxy = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');
//
function link_check(){
	var links = document.links;
	var imax = links.length;
	for(var i=0; i<imax; i++){
		links[i].onmouseover = play;
	}
}
function play(){
	javascript:flashProxy.call('play_sound', null);
}
function set0(){
	link_check();
}


//
//Xスクロール
//
var dir_x = 50;
function handle(delta) {
	if (delta < 0){
		window.scrollBy(dir_x,0);
	}else{
		window.scrollBy(-dir_x,0);
	}
}

/** Event handler for mouse wheel event.
 */
function wheel(event){
        var delta = 0;
        if (!event) /* For IE. */
                event = window.event;
        if (event.wheelDelta) { /* IE/Opera. */
                delta = event.wheelDelta/120;
                if (window.opera)
                        delta = -delta;
        } else if (event.detail) { /** Mozilla case. */
                delta = -event.detail/3;
        }
        /** If delta is nonzero, handle it.
         * Basically, delta is now positive if wheel was scrolled up,
         * and negative, if wheel was scrolled down.
         */
        if (delta)
                handle(delta);
        if (event.preventDefault) {
                event.preventDefault();
        }
        event.returnValue = false;
}

/** Initialization code. 
 * If you use your own event management code, change it as required.
 */
if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;
