// 画像の事前読み込み
document.g_onimgex0 = new Image();
document.g_onimgex0.src="../kako/QuoVadis/thumb_on.jpg";
document.g_onimgex1 = new Image();
document.g_onimgex1.src="../Self-Portrait/gogh_on.jpg";
document.g_onimgex2 = new Image();
document.g_onimgex2.src="../Self-Portrait/renoir_on.jpg";
document.g_onimgex3 = new Image();
document.g_onimgex3.src="../Self-Portrait/monet_on.jpg";
document.g_onimgex4 = new Image();
document.g_onimgex4.src="../Self-Portrait/rembrandt_on.jpg";
document.g_onimgex5 = new Image();
document.g_onimgex5.src="../Self-Portrait/klimt_on.jpg";
document.g_onimgex6 = new Image();
document.g_onimgex6.src="../Self-Portrait/special_on.jpg";
document.g_onimgex7 = new Image();
document.g_onimgex7.src="../Self-Portrait/manet_on.jpg";
document.g_onimgex8 = new Image();
document.g_onimgex8.src="../Self-Portrait/other_on.jpg";
document.g_onimgex9 = new Image();
document.g_onimgex9.src="../Self-Portrait/mucha_on.jpg";
document.g_onimgex99 = new Image();
document.g_onimgex99.src="../../images/new_images/fr-close_on.gif";

function kako_on(i) {
	if(i == 1){document.kako_ex1.src="../kako/QuoVadis/thumb_on.jpg"}
	if(i == 2){document.kako_ex2.src="../Self-Portrait/gogh_on.jpg"}
	if(i == 3){document.kako_ex3.src="../Self-Portrait/renoir_on.jpg"}
	if(i == 4){document.kako_ex4.src="../Self-Portrait/monet_on.jpg"}
	if(i == 5){document.kako_ex5.src="../Self-Portrait/rembrandt_on.jpg"}
	if(i == 6){document.kako_ex6.src="../Self-Portrait/klimt_on.jpg"}
	if(i == 7){document.kako_ex7.src="../Self-Portrait/special_on.jpg"}
	if(i == 8){document.kako_ex8.src="../Self-Portrait/manet_on.jpg"}
	if(i == 9){document.kako_ex9.src="../Self-Portrait/other_on.jpg"}
	if(i == 10){document.kako_ex10.src="../Self-Portrait/mucha_on.jpg"}
	if(i == 99){document.kako_ex99.src="../../images/new_images/fr-close_on.gif"}
}
function kako_off(i) {
	if(i == 1){document.kako_ex1.src="../kako/QuoVadis/thumb_off.jpg"}
	if(i == 2){document.kako_ex2.src="../Self-Portrait/gogh_off.jpg"}
	if(i == 3){document.kako_ex3.src="../Self-Portrait/renoir_off.jpg"}
	if(i == 4){document.kako_ex4.src="../Self-Portrait/monet_off.jpg"}
	if(i == 5){document.kako_ex5.src="../Self-Portrait/rembrandt_off.jpg"}
	if(i == 6){document.kako_ex6.src="../Self-Portrait/klimt_off.jpg"}
	if(i == 7){document.kako_ex7.src="../Self-Portrait/special_off.jpg"}
	if(i == 8){document.kako_ex8.src="../Self-Portrait/manet_off.jpg"}
	if(i == 9){document.kako_ex9.src="../Self-Portrait/other_off.jpg"}
	if(i == 10){document.kako_ex10.src="../Self-Portrait/mucha_off.jpg"}
	if(i == 99){document.kako_ex99.src="../../images/new_images/f-close.gif"}
}


document.kkab_onimg01 = new Image();
document.kkab_onimg01.src="http://stephan.mods.jp/images/new_images/th_tohome_on.gif";
document.kkab_onimg02 = new Image();
document.kkab_onimg02.src="http://stephan.mods.jp/images/new_images/th_toret_on.gif";
document.kkab_onimg03 = new Image();
document.kkab_onimg03.src="http://stephan.mods.jp/images/n_kabe/kako/toh_com1.gif";
document.kkab_onimg04 = new Image();
document.kkab_onimg04.src="http://stephan.mods.jp/images/n_kabe/kako/toh_com2.gif";
document.kkab_onimg05 = new Image();
document.kkab_onimg05.src="http://stephan.mods.jp/images/n_kabe/kako/tokb_com.gif";
document.kkab_onimg06 = new Image();
document.kkab_onimg06.src="http://stephan.mods.jp/images/n_kabe/kako/tooc_com2.gif";
document.kkab_onimg07 = new Image();
document.kkab_onimg07.src="http://stephan.mods.jp/images/new_images/up_on.gif";
document.kkab_onimg08 = new Image();
document.kkab_onimg08.src="http://stephan.mods.jp/images/new_images/up_com.gif";

function kmen_on(i) {
	if(i == 1){document.kmen_toh.src="http://stephan.mods.jp/images/new_images/th_tohome_on.gif";
		document.kmen_com1.src="http://stephan.mods.jp/images/n_kabe/kako/toh_com1.gif";
		document.kmen_thcom2.src="http://stephan.mods.jp/images/n_kabe/kako/toh_com2.gif"}
	if(i == 2){document.kmen_tor.src="http://stephan.mods.jp/images/new_images/th_toret_on.gif";
		document.kmen_com1.src="http://stephan.mods.jp/images/n_kabe/kako/tokb_com.gif";
		document.kmen_tocom2.src="http://stephan.mods.jp/images/n_kabe/kako/tooc_com2.gif"}
	if(i == 3){document.end_02.src="http://stephan.mods.jp/images/new_images/up_on.gif";
		document.end_01.src="http://stephan.mods.jp/images/new_images/up_com.gif"}
}

function kmen_off(i) {
	if(i == 1){document.kmen_toh.src="http://stephan.mods.jp/images/new_images/th_tohome_off.gif";
		document.kmen_com1.src="http://stephan.mods.jp/images/n_kabe/kako/t3-12345.gif";
		document.kmen_thcom2.src="http://stephan.mods.jp/images/new_images/pix.gif"}
	if(i == 2){document.kmen_tor.src="http://stephan.mods.jp/images/new_images/th_toret_off.gif";
		document.kmen_com1.src="http://stephan.mods.jp/images/n_kabe/kako/t3-12345.gif";
		document.kmen_tocom2.src="http://stephan.mods.jp/images/new_images/pix.gif"}
	if(i == 3){document.end_02.src="http://stephan.mods.jp/images/new_images/up_off.gif";
		document.end_01.src="http://stephan.mods.jp/images/new_images/pix.gif"}
}







// 表示位置
	mouse_x = -50;
	mouse_y = 20;
// テーブル
mes_head = '<table cellpadding=3 cellspacing=1 border=0 bgcolor=#9999ff><tr><td bgcolor=white class=line><DIV id="comment" style="font-size:9pt; color:#ff5177">';
mes_foot = '</DIV></td></tr></table>';

// メッセージ・表示
function on(events,mes) {
	text = mes_head + mes + mes_foot;
		if ( navigator.appName.charAt(0) == "N" ) {
			xpos = events.pageX;
			ypos = events.pageY;
			iv = document.layers["coment"];
			iv.left	= xpos + mouse_x;
			iv.top	= ypos + mouse_y;
			iv.document.open();
			iv.document.write(text);
			iv.document.close();
			iv.visibility="show";
		} else if ( navigator.appName.charAt(0) == "M" ) {
			xpos = document.body.scrollLeft+event.clientX;
			ypos = document.body.scrollTop+event.clientY;
			iv = document.all("coment");
			iv.style.posLeft	= xpos + mouse_x;
			iv.style.posTop	= ypos + mouse_y;
			iv.innerHTML = text;
			iv.style.visibility="visible";
		}
}

// メッセージ・非表示
function off() {
	if ( navigator.appName.charAt(0) == "N" ) document.layers["coment"].visibility="hide";
	else if ( navigator.appName.charAt(0) == "M" ) document.all("coment").style.visibility="hidden";
}

// サブウィンドウを開く
function pop_p(name,w,h,url){
	var_w = w;
	var_sw = "width=" + var_w;
	var_h = h;
	var_sh = ",height=" + var_h;
	var_url = url;
	var_name = name;
	varOpenopt = "toolbar=0,menuvar=0,status=0,scrollbars=0,resizable=0," + var_sw + var_sh;
	sho_nw=window.open("",var_name,varOpenopt);
	sho_nw.location.href=var_url;
	sho_nw.focus();}

