if(window.attachEvent){
	window.attachEvent('onload', init);
}
else{
	window.addEventListener('load', init, false);
}

function init(){

    $(".slideshow").cycle({
			speed:   2000,
			timeout: 4000,
			startingSlide: 0,
			fx:"uncover",
			easing:'easeOutExpo',
//			before:onBefore,
			pager:"#nav",
			after:onAfter
	});

	$("#myCatch").hover(on2,out2);

	$("#notice dd.btn img").hover(b1_on,b1_off);
	$("#banner li.first img").hover(L1_on,L1_off);
	$("#banner li.second img").hover(L2_on,L2_off);
	$("#banner li.third img").hover(L3_on,L3_off);

//	$(".slideshow").css("visibility","visible");
	$("#board").css("visibility","visible");

}

function b1_on(){
	this.src = "./images/toiBtn1_on.png";
}
function b1_off(){
	this.src = "./images/toiBtn1.png";
}


function L1_on(){
	this.src = "./images/banner_x_on.png";
}
function L1_off(){
	this.src = "./images/banner_x.png";
}


function L2_on(){
	this.src = "./images/banner_desktop_on.png";
}
function L2_off(){
	this.src = "./images/banner_desktop.png";
}


function L3_on(){
	this.src = "./images/banner_server_on.png";
}
function L3_off(){
	this.src = "./images/banner_server.png";
}



function on2(){
	this.style.filter = "alpha(opacity=100)";
	this.style.opacity = "1";
}

function out2(){
	this.style.filter = "alpha(opacity=60)";
	this.style.opacity = "0.6";
}

function onBefore(){
	$('#myCatch p span').html("すべてのテクノロジーに安心と安全を。"); 

}


function onAfter(){
$('#myCatch p span').html("すべてのテクノロジーに安心と安全を。<br />").append(this.alt); 

}





//blindX
//blindY
//blindZ
//cover
//curtainX
//curtainY
//fade
//fadeZoom
//growX
//growY
//scrollUp
//scrollDown
//scrollLeft
//scrollRight
//scrollHorz
//scrollVert
//shuffle
//slideX
//slideY
//toss
//turnUp
//turnDown
//turnLeft
//turnRight
//uncover
//wipe
//zoom

