
document.write('<script type="text/javascript" src="http://homeclub.misawa.co.jp/common/js/swfobject/swfobject.js"></script>');

var floatingMenuTag='';
floatingMenuTag+='<div id="floatingMenu" style="width:193px;height:25px;position:absolute;top:0;z-index:101">\n'
floatingMenuTag+='<div id="floatingMenuSwf">';
floatingMenuTag+='</div>\n'
floatingMenuTag+='</div>\n'
document.write(floatingMenuTag);

observe(window, 'load', initFloatingMenu);


function observe(target, type, listener) {
    if (target.addEventListener) target.addEventListener(type, listener, false);
    else target.attachEvent('on' + type, function() { listener.call(target, window.event); });
}
function initFloatingMenu(){	var isSafari=/a/.__proto__=='//';
	var flashvars = {};
	var params = {
		allowScriptAccess: "always",
		wmode: "transparent"
	};
	var attributes = {
		id: "swfContent",
		name: "swfContent"
	};
	swfobject.embedSWF("http://homeclub.misawa.co.jp/common/swf/floatingMenu.swf","floatingMenuSwf","100%","100%","9.0.0","http://homeclub.misawa.co.jp/common/js/swfobject/expressinstall.swf",flashvars,params, attributes);

	document.getElementById("swfContent").style.outline="none";
}
function showFloatingMenu(){
//	alert("showFloatingMenu");
	document.getElementById("floatingMenu").style.height="136px";
	
}
function hideFloatingMenu(){
//	alert("hideFloatingMenu");
	document.getElementById("floatingMenu").style.height="25px";
}
/*
function alert(str){
		console.log(str);
}*/
