var oWind_ChimeLayer = "";
var Wind_Chime_flashvars_labels = ["myUrl"];
var Wind_Chime_flashvars_values = [location.host];//location.hostnameにすると、ホスト名を取得しますよ。
var Wind_Chime_zIndex = 1;

//--------------------------------------------------------------------
//load時の処理
//--------------------------------------------------------------------
function loadWindChime(data){
	oWind_ChimeLayer = new SWFLayer();
	oWind_ChimeLayer.zIndex = Wind_Chime_zIndex;
	oWind_ChimeLayer.swf_url = "http://parts.kuru2jam.com/js/wind_chime.swf";
	oWind_ChimeLayer.swf_id = "wind_chime_swf";
	oWind_ChimeLayer.layer_name = "wind_chime";
	
	oWind_ChimeLayer.flashvars_labels = Wind_Chime_flashvars_labels;
	oWind_ChimeLayer.flashvars_values = Wind_Chime_flashvars_values;
	
	oWind_ChimeLayer.create();
	oWind_ChimeLayer.setSize(160,370);//win IEでは必須
	oWind_ChimeLayer.setWindowAlignFixed('right');
	oWind_ChimeLayer.setWindowValignFixed('top');
	if(checkBrowser() == "Safari"){
		window.resizeBy(1,0);
	}
}

eventObserve(window, 'load', loadWindChime, false);

//--------------------------------------------------------------------
//scroll時の処理
//--------------------------------------------------------------------
function scrollWindChime(){
	oWind_ChimeLayer.setWindowAlignFixed('right');

}
//window.scrollにscrollWind_Chimeイベントハンドラを追加
eventObserve(window, 'scroll', scrollWindChime, false);


//--------------------------------------------------------------------
//resize時の処理
//--------------------------------------------------------------------
function resizeWindChime(){
	oWind_ChimeLayer.setWindowAlignFixed('right');

}
//window.resizeにresizeToolイベントハンドラを追加
eventObserve(window, 'resize', resizeWindChime, false);

//--------------------------------------------------------------------
//カスタム
//--------------------------------------------------------------------
//スクロールバー対策
document.getElementsByTagName("html")[0].style.overflow="scroll";

function hideWind_Chime(){
	oWind_ChimeLayer.setVisible("hidden");
}

function setClose(){
	oWind_ChimeLayer.setSize(0,0);
}

function checkBrowser(){
	var uName = navigator.userAgent;
	if (uName.indexOf("Safari") > -1) return "Safari";
	if (uName.indexOf("MSIE") > -1){
		return "MSIE";
	}
	return "Netscape";
};



//バナー用JS
function writeBanner(){
}
writeBanner();