var oKuru2SampleLayer = "";
var Kuru2Sample_flashvars_labels = [""];
var Kuru2Sample_flashvars_values = [""];
var Kuru2Sample_zIndex = 10;

//--------------------------------------------------------------------
//load時の処理
//--------------------------------------------------------------------
function loadKuru2Sample(){
	oKuru2SampleLayer = new SWFLayer();
	oKuru2SampleLayer.zIndex = Kuru2Sample_zIndex;
	oKuru2SampleLayer.swf_url = "http://www.kiteretsu-so.com/morita_work/float_flash2/images/float_parts.swf";
	oKuru2SampleLayer.layer_name = "Kuru2_float";
	
	oKuru2SampleLayer.flashvars_labels = Kuru2Sample_flashvars_labels;
	oKuru2SampleLayer.flashvars_values = Kuru2Sample_flashvars_values;

	oKuru2SampleLayer.create();
	oKuru2SampleLayer.setSize("full","full");
	oKuru2SampleLayer.setWindowAlign('left');
	oKuru2SampleLayer.setWindowValign('top');

	if(checkBrowser() == "Safari"){
		window.resizeBy(1,0);
	}
	this.hideKuru2Sample();
}
eventObserve(window, 'load', loadKuru2Sample, false);
//--------------------------------------------------------------------
//resize時の処理
//--------------------------------------------------------------------
function resizeKuru2Sample(){
//alert("resizeKuru2Sample");

	oKuru2SampleLayer.correctWindowSize();
	oKuru2SampleLayer.setWindowAlign('left');
	oKuru2SampleLayer.setWindowValign('top');
}
//window.resize・resizeToolイベントハンドラ・・・
eventObserve(window, 'resize', resizeKuru2Sample, false);

//--------------------------------------------------------------------
//scroll時の処理
//--------------------------------------------------------------------
function scrollKuru2Sample(){
//alert("scrollKuru2Sample");

	oKuru2SampleLayer.setWindowAlign('left');
	oKuru2SampleLayer.setWindowValign('top');

}
//window.scroll・scrollToolイベントハンドラ・・・
eventObserve(window, 'scroll', scrollKuru2Sample, false);

//--------------------------------------------------------------------
//firefoxスクロールバー対策
//--------------------------------------------------------------------
function checkBrowser(){
	var uName = navigator.userAgent;
	if (uName.indexOf("Safari") > -1) return "Safari";
	if (uName.indexOf("MSIE") > -1){
		return "MSIE";
	}
	return "Netscape";
}

if(checkBrowser() != "Safari"){
	document.getElementsByTagName("html")[0].style.overflow = "scroll";

}

//--------------------------------------------------------------------
//カスタム
//--------------------------------------------------------------------
function hideKuru2Sample(){
	oKuru2SampleLayer.setVisible("hidden");
}

function showKuru2Sample(){
	oKuru2SampleLayer.setVisible("visible"); 
	document.getElementById('appstaff1').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">出町柳しんご</span>'; 
	document.getElementById('appstaff2').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">韋駄天 太郎</span>'; 
	document.getElementById('appstaff3').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">とんか</span>'; 
	document.getElementById('appstaff4').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">ふーぐー</span>'; 
	document.getElementById('appstaff5').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">棟居真一郎</span>'; 
	document.getElementById('appstaff6').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">寺子屋タラコ</span>'; 
	document.getElementById('appstaff7').innerHTML = '<img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-00.gif" /><span class="auther_name">風の谷のナウシカ</span>'; 
}

function disappstaff1(){
	document.getElementById('appstaff1').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="出町柳しんご のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-4.gif" width="40" height="40" /></a><span class="auther_name">出町柳しんご</span>';  
}
function disappstaff2(){
	document.getElementById('appstaff2').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="韋駄天 太郎 のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-3.gif" width="40" height="40" /></a><span class="auther_name">韋駄天 太郎</span>';  
}
function disappstaff3(){
	document.getElementById('appstaff3').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="とんか のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-2.gif" width="40" height="40" /></a><span class="auther_name">とんか</span>';  
}
function disappstaff4(){
	document.getElementById('appstaff4').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="ふーぐー のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-5.gif" width="40" height="40" /></a><span class="auther_name">ふーぐー</span>';  
}
function disappstaff5(){
	document.getElementById('appstaff5').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="棟居真一郎 のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-6.gif" width="40" height="40" /></a><span class="auther_name">棟居真一郎</span>';  
}
function disappstaff6(){
	document.getElementById('appstaff6').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="寺子屋タラコ のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-7.gif" width="40" height="40" /></a><span class="auther_name">寺子屋タラコ</span>';  
}
function disappstaff7(){
	document.getElementById('appstaff7').innerHTML = '<a href="http://www.kiteretsu-so.com/archives/author/shingo/" title="風の谷のかしこ のブログ"><img src="http://www.kiteretsu-so.com/wordpress/wp-content/themes/kiteretsu-so01/images/author-8.gif" width="40" height="40" /></a><span class="auther_name">風の谷のかしこ</span>';  
}

