var aid_sidebar_path = "http://www.ci-labo.jp/aid/swf/sidebar.swf";document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="158" height="218" id="aid_sidebar" align="middle">\n');document.write('<param name="allowScriptAccess" value="always" />\n');document.write('<param name="allowFullScreen" value="false" />\n');document.write('<param name="movie" value="' + aid_sidebar_path + '" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="bgcolor" value="#ffffff" /><embed src="' + aid_sidebar_path + '" quality="high" menu="false" bgcolor="#ffffff" width="158" height="218" name="aid_sidebar" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');document.write('</object>\n');var aid_float_swf_path = 'http://www.ci-labo.jp/aid/swf/blogparts02.swf';var aid_float_bg_path = "http://www.ci-labo.jp/aid/images/float_bg.png";var aid_swf_id = "Floating";var aid_bg_id = "FloatingBg";var aid_show_flg = 0;function aidFloatingDisp(sMode){	var oLayer;	var sId;	var iLayerTop;	var iLayerWidth;	var iLayerHeight;	if (!sMode) {		location.reload();		return;				sId = aid_swf_id;		oLayer = document.getElementById(sId);				oLayer.style.display='none';		oLayer.innerHTML='';		sId = aid_bg_id;		oLayer = document.getElementById(sId);				oLayer.style.display='none';		oLayer.innerHTML='';				aid_show_flg = 0;				clearInterval(iIntervalId);		clearInterval(iIntervalBgId);				return;	}		if (aid_show_flg){		return;	}else {		if(sMode){			// Background			oLayer = document.createElement('DIV');			oLayer.id = aid_bg_id;			oLayer.style.position = "absolute";			oLayer.style.zIndex = 999;			oLayer.style.display = "block";						iLayerWidth = aidGetWindowSize("width");			iLayerHeight = aidGetWindowSize("height");			if (aidCheckBrowserModeForTicker()){				oLayer.style.width = iLayerWidth + "px";				oLayer.style.height = iLayerHeight + "px";				oLayer.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + aid_float_bg_path  + ", sizingmethod=scale)";			}else {				oLayer.style.width = "100%";				oLayer.style.height = "100%";				oLayer.style.backgroundImage = "url('" + aid_float_bg_path + "')";			}			oLayer.style.top = aidGetScrollPosition("top") + "px";			oLayer.style.left = aidGetScrollPosition("left") + "px";			var sHtml = "&nbsp;";			oLayer.innerHTML = sHtml;			document.getElementsByTagName('body')[0].appendChild(oLayer);			iIntervalBgId = setInterval("aidSetLayPosition('" + aid_bg_id + "')", 100);			// Flash			oLayer = document.createElement('DIV');			oLayer.id = aid_swf_id;			oLayer.style.position = "absolute";			oLayer.style.zIndex = 1000;			oLayer.style.display = "block";						iLayerWidth = aidGetWindowSize("width");			iLayerHeight = aidGetWindowSize("height");			if (aidCheckBrowserModeForTicker()){				oLayer.style.width = iLayerWidth + "px";				oLayer.style.height = iLayerHeight + "px";			}else {				oLayer.style.width = "100%";				oLayer.style.height = "100%";			}			oLayer.style.top = aidGetScrollPosition("top") + "px";			oLayer.style.left = aidGetScrollPosition("left") + "px";			var sHtml = "";			sHtml += '<table style="background-color:transparent; border:none; padding:0; margin:0; text-align:center; vertical-align:middle" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">';			sHtml += '<tr><td align="center" valign="middle" style="padding:0; margin:0; border:none; background-color:transparent; text-align:center; vertical-align:middle">';			sHtml += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="250" align="middle">';			sHtml += '<param name="bgcolor" value="#333333" />';			sHtml += '<param name="allowScriptAccess" value="always" />';			sHtml += '<param name="movie" value="' + aid_float_swf_path + '" />';			sHtml += '<param name="quality" value="high" />';			sHtml += '<param name="menu" value="false" />';			sHtml += '<param name="salign" value="lt" />';			sHtml += '<param name="swLiveConnect" value="true" />';			sHtml += '<embed bgcolor="#000000" swLiveConnect="true" salign="lt" align="middle" src="' + aid_float_swf_path + '" quality="high" menu="false" width="400" height="250" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';			sHtml += '</object></td></tr></table>';			oLayer.innerHTML = sHtml;			document.getElementsByTagName('body')[0].appendChild(oLayer);			iIntervalId = setInterval("aidSetLayPosition('" + aid_swf_id + "')", 100);			aid_show_flg = 1;		}	}}function aidSetLayPosition(sId){	var oTarget = document.getElementById(sId);	if (aidCheckBrowserModeForTicker()){		oTarget.style.width = aidGetWindowSize("width") + "px";		oTarget.style.height = aidGetWindowSize("height") + "px";	}	oTarget.style.top = aidGetScrollPosition("top") + "px";	oTarget.style.left = aidGetScrollPosition("left") + "px";}function aidGetScrollPosition(sMode){	var iScrollPosition;	if (sMode == "left"){		if (self.pageXOffset){			iScrollPosition = self.pageXOffset;		// Explorer 6 Strict		}else if (document.documentElement && document.documentElement.scrollLeft){			iScrollPosition = document.documentElement.scrollLeft;		// all other Explorers		}else if (document.body){			iScrollPosition = document.body.scrollLeft;		}	}else {		if (self.pageYOffset){			iScrollPosition = self.pageYOffset;		// Explorer 6 Strict		}else if (document.documentElement && document.documentElement.scrollTop){			iScrollPosition = document.documentElement.scrollTop;		// all other Explorers		}else if (document.body){			iScrollPosition = document.body.scrollTop;		}	}	return iScrollPosition;}function aidGetWindowSize(sMode){	var iWindowWidth, iWindowHeight;		// all except Explorer	if (self.innerHeight){		iWindowWidth = self.innerWidth;		iWindowHeight = self.innerHeight;	// Explorer 6 Strict Mode	}else if (document.documentElement && document.documentElement.clientHeight){		iWindowWidth = document.documentElement.clientWidth;		iWindowHeight = document.documentElement.clientHeight;	// other Explorers	}else if (document.body){		iWindowWidth = document.body.clientWidth;		iWindowHeight = document.body.clientHeight;	}	if (sMode == "width"){		return (iWindowWidth);	}else {		return (iWindowHeight);	}}	function aidCheckBrowserModeForTicker(){	var sOs = aidGetOsName();	var sBrowser = aidGetNavigatorName();	if (sOs == "Windows" && sBrowser == "Explorer"){		return true;	}	return false;}function aidGetOsName(){	var uAgent  = navigator.userAgent.toUpperCase();	if (uAgent.indexOf("MAC OS X") >= 0) return "MacOSX";	if (uAgent.indexOf("MAC") >= 0) return "MacOS";	if (uAgent.indexOf("WIN") >= 0) return "Windows";	if (uAgent.indexOf("X11") >= 0) return "UNIX";	return "";}function aidGetNavigatorName(){	aName  = navigator.userAgent.toUpperCase();	if (aName.indexOf("SAFARI") >= 0) return "Safari";	if (aName.indexOf("OPERA") >= 0) return "Opera";	aName = navigator.appName.toUpperCase();	if (aName.indexOf("NETSCAPE") >= 0)  return "Netscape";	if (aName.indexOf("MICROSOFT") >= 0) return "Explorer";	return "";}