//Kuno clinic
var doubtlist = "";

var _LA_Kuno_ = {
	closeSwf:function(){
		var Body = document.getElementsByTagName("body")[0];
		Body.removeChild(document.getElementById("_Kuno_LAVP_"));
		Body.removeChild(document.getElementById("_Kuno_LAVP_div_"));
		if (navigator.appName.indexOf("Microsoft") != -1) {
			var flash = window.kuno_ie_external.wakeup();
		} else {
			document.kuno_ie_external.wakeup();
		}
	},
	openSwf:function(){
		var width = "100%";
		var height = 470;
		var url = "http://www2.liveads.jp/bp_widgets/kuno";
		var file = url + "/floating.swf";
		
		var Body = document.getElementsByTagName("body")[0];
		var wrap_div = document.createElement("div");
		wrap_div.id = "_Kuno_LAVP_";
		if (typeof document.body.style.maxHeight != "undefined") {
			wrap_div.style.backgroundImage = "url(" + url + "/bg.png)";
		}else{//ie6
			wrap_div.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + url + '/bg.png", sizingMethod="scale")';
		}
		wrap_div.style.textAlign = "center";
		wrap_div.style.width = "100%";
		
		if (window.pageYOffset != null) {
			var scroll_height = window.pageYOffset;
			var page_height = window.innerHeight;
		} else if (document.documentElement != null && document.documentElement.scrollTop != null){	 // IE 6 標準準拠　用・IE7用
			var scroll_height = document.documentElement.scrollTop;
			var page_height = document.documentElement.clientHeight;
		} else if (document.body) {// 後方互換系
			var scroll_height = document.body.scrollTop;
			var page_height = document.body.clientHeight;
		}
		var win_height = Math.max(document.getElementsByTagName("body")[0].clientHeight,page_height);
		wrap_div.style.height = win_height + "px";
		wrap_div.style.position = "absolute";
		wrap_div.style.top = "0px";
		wrap_div.style.left = "0px";
		
		
		var div = document.createElement("div");
		div.style.textAlign = "center";
		div.style.position = "absolute";
		div.style.left = "0px";
		div.style.width = "100%";
		div.id = "_Kuno_LAVP_div_";
		div.style.top = (scroll_height + (page_height - height) * 0.5) + "px";
		var _LAVP_Flash_02 ;
		_LAVP_Flash_02 = '<object id="kuno_float_ie_external" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + width + '" height="' + height + '">';
		_LAVP_Flash_02 += '<param name="allowScriptAccess" value="always" />';
		_LAVP_Flash_02 += '<param name="movie" value="' + file + '" />';
		_LAVP_Flash_02 += '<param name="FlashVars" value="' + _LAVP_Kuno_Aid_Param + '" />';
		_LAVP_Flash_02 += '<param name="wmode" value="transparent" />';
		_LAVP_Flash_02 += '<param name="quality" value="high" />';
		_LAVP_Flash_02 += '<embed src="'+file+'" FlashVars="' + _LAVP_Kuno_Aid_Param + '" quality="high" wmode="transparent" width="' + width + '" height="' + height + '" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />';
		_LAVP_Flash_02 += '</object>';

		div.innerHTML = _LAVP_Flash_02;
		//wrap_div.appendChild(div);
		Body.appendChild(wrap_div);
		Body.appendChild(div);
	},
	
	onmouse:function(Obj){
		Obj.style.clip="rect(0px 190px 370px 0px)";
	},
	onmouseout:function(Obj){
		Obj.style.clip="rect(0px 175px 370px 15px)";
	}
}
