//----------------------------
//著作者：攻略webweb
//----------------------------

//----------------------------
// ↓ リンク先ウィンドウサイズ指定スクリプト
//----------------------------
function openwinlinks() {
	window.open("/gamelife/links.html", "Links","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=820,height=560");
}
function openwincontacts() {
	window.open("http://www.gameindeep.com/nifty02/mail.php", "Contacts","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=600,height=450");
}
function openwintouroku() {
	window.open("http://www.gameindeep.com/nifty02/mail_touroku.php", "touroku","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=600,height=500");
}
//----------------------------
// ↓ AWS_Book_search
//----------------------------
var aid = "dragonq-22"; 
var devt = "06QHTTDYH1JYD2T4BV02";
var StyleSheet = "http://homepage2.nifty.com/gamelife/aws/search.xsl";
var SearchIndex = "Books";

//----------------------------
// ↓ LINK_SOUND
//----------------------------
var lastExecute = now = new Date().getTime();

//全てのリンクのマウスオーバーイベントにリスナー登録する
function init(){
	var links = document.links;
	var imax = links.length;
	for(var i=0; i<imax; i++){
		//links[i].addEventListener("mouseover", play, false);	//FF / Operaは動く
		links[i].onmouseover = play;	//FF / Operaは動く
	}

	var div = document.createElement("div");
	div.id = "SoundUnit"
	document.body.appendChild(div);
}

//マウスオーバーのイベントをフック
//音を鳴らすだけのswfをリロード
function play(e){
	var now = new Date().getTime();
	if( now < lastExecute + 100) return;	//超連打防止
	lastExecute = now;
	
	var div = document.getElementById("SoundUnit");
	//重要！！下のテキスト内のＵＲＬを自分がswfファイルをアップした場所の絶対URLにすること！！！！
	var innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="0" height="0" id="soundunit"><param name="movie" value="http://homepage2.nifty.com/gamelife/swf/soundunit.swf" /><embed src="http://homepage2.nifty.com/gamelife/swf/soundunit.swf" width="0" height="0" name="SoundUnit" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'
	div.innerHTML = innerHTML;
}

window.onload=init;


