// Flash implanting javascript by kawazoel @ beatsync.net
// note: MSIEだとdocument.writelnで生のHTMLを食わせてFlashを埋め込むことができるんだけど、
//       OperaやFirefoxではapplication/xhtml+xmlの文書にはDOMを使わなきゃならないので、
//       userAgentをチェックして場合分けする必要があるわけです。
//       ちなみにMSIEでもDOMを使えばいいんだけど、createElementでobjectやparamを作る時は
//       色々と制限があるので、わりと使いづらいのでおとなしくwritelnを使っておいた。

// MSIE
if(navigator.userAgent.indexOf('Opera')==-1 && navigator.userAgent.indexOf('MSIE')!=-1){
	document.writeln('<object data="mainmaterial/company.swf" width="550" height="80"');
	document.writeln(' type="application/x-shockwave-flash">');
	document.writeln('<param name="movie" value="mainmaterial/company.swf" />');
	document.writeln('beatsync.netサイトマップFlash <!-- 代替テキスト -->');
	document.writeln('</object>');
}
// for Opera/Gecko
else{
	var host=document.getElementById("sitemap_loader");
	var obj=document.createElement("object");
	var prm=document.createElement("param");
	var alttxt=document.createTextNode("beatsync.netサイトマップFlash");
	host.appendChild(obj);
	obj.appendChild(prm);
	obj.appendChild(alttxt);
	obj.setAttribute("data", "mainmaterial/company.swf");
	obj.setAttribute("width", "550");
	obj.setAttribute("height", "80");
	obj.setAttribute("type", "application/x-shockwave-flash");
	prm.setAttribute("name", "movie");
	prm.setAttribute("value", "mainmaterial/company.swf");
}

