/* Private Code */
//	Marguerite Site. Pop-up Script (1). Version 3.90 (June 17, 2008).
//	Copyright (c)2002-2008 Marguerite Site, Saitama, JAPAN. All Rights Reserved.
//	   www.marguerite.jp

popup_width=250;	// Width of pop-up message.
popup_fontsize=16;	// Size of font of pop-up message.
popup_lineheight=20;	// Height of lines in font of pop-up message.
popup_bgcolor='#ffffff';	// Background color of pop-up message.
popup_textcolor='#000000';	// Text color of pop-up message.
popup_emcolor='#000000';	// Emphasized text color of pop-up message.
popup_yearStyle=0;

// Please do not modify following statements.
//Dummy functions.
function Lyr() { return(true); }
function hLy() { return(true); }

/* Initialize. To set CSS up. */
//	Discriminate among Netscape 4.x, Netscape 6 or higher and Internet Explorer.
oldN4=document.layers; if (navigator.userAgent.indexOf('Mozilla/4.0')<0) oldN4=false;
Opera6=navigator.userAgent.indexOf('Opera/5.')>=0 || navigator.userAgent.indexOf('Opera 5.')>=0 ||
	navigator.userAgent.indexOf('Opera/6.')>=0 || navigator.userAgent.indexOf('Opera 6.')>=0;
Opera7=window.opera && !Opera6;
Opera6or7=Opera6 || navigator.userAgent.indexOf('Opera/7.')>=0 || navigator.userAgent.indexOf('Opera 7.')>=0;
Opera95=window.opera &&
        navigator.userAgent.indexOf('Opera/5.')<0 && navigator.userAgent.indexOf('Opera 5.')<0 &&
        navigator.userAgent.indexOf('Opera/6.')<0 && navigator.userAgent.indexOf('Opera 6.')<0 &&
        navigator.userAgent.indexOf('Opera/7.')<0 && navigator.userAgent.indexOf('Opera 7.')<0 &&
        navigator.userAgent.indexOf('Opera/8.')<0 && navigator.userAgent.indexOf('Opera 8.')<0 &&
        navigator.userAgent.indexOf('Opera/9.0')<0 && navigator.userAgent.indexOf('Opera 9.0')<0 &&
        navigator.userAgent.indexOf('Opera/9.1')<0 && navigator.userAgent.indexOf('Opera 9.1')<0 &&
        navigator.userAgent.indexOf('Opera/9.2')<0 && navigator.userAgent.indexOf('Opera 9.2')<0 &&
        navigator.userAgent.indexOf('Opera/9.3')<0 && navigator.userAgent.indexOf('Opera 9.3')<0 &&
        navigator.userAgent.indexOf('Opera/9.4')<0 && navigator.userAgent.indexOf('Opera 9.4')<0;
MacIE=(navigator.userAgent.indexOf('Mac')>-1 && document.all && !window.opera);
IE4=(navigator.userAgent.indexOf('MSIE 4.')>-1 && !window.opera);
domOK=(document.getElementById && (!document.all || window.opera && !Opera6));
p_onmousemove='';

MobileDevice=((navigator.userAgent.indexOf('Mozilla/')>-1 || navigator.userAgent.indexOf('Opera/')>-1) &&
	navigator.userAgent.indexOf('Win')<0 &&
	navigator.userAgent.indexOf('Mac')<0 &&
	navigator.userAgent.indexOf('X11')<0 &&
	navigator.userAgent.indexOf('B-right/V')<0 &&
	navigator.userAgent.indexOf('Linux')<0 ||
	navigator.userAgent.indexOf('Windows CE')>0 ||
	navigator.userAgent.indexOf('UP.Browser')>-1 ||
	navigator.userAgent.indexOf('Nokia/')>-1 ||
	navigator.userAgent.indexOf('SIE-')==0 ||
	navigator.userAgent.indexOf('MOT-')==0);
I6=document.all && document.getElementById && (document.compatMode=='CSS1Compat');

IEFlag=ready=ready2=disp_flag=disp_mode=x=y=lf=0; mn=-1;
p_width2=new Array();
p_height=new Array();
p_width=0;
popup_onload='';

if (document.layers) {
	document.write(
'<style type="text/css">'+
'.popup {'+
' margin: 0;'+
' padding: 8px;'+
' }'+
'.popupO {'+
' margin: 0;'+
' padding: 8px;'+
' background: '+popup_bgcolor+';'+
' border: #999 solid 1px;'+
' font-style: normal;'+
' font-weight: normal;'+
' font-size: '+popup_fontsize+'px;'+
' color: '+popup_textcolor+';'+
'.popup_c {'+
' margin: 0'+
' padding: 4px;'+
' font-style: normal;'+
' font-weight: normal;'+
' color: '+popup_textcolor+';'+
' background: '+popup_bgcolor+';'+
' border: 0 none;'+
' font-size: '+popup_fontsize+'px;'+
' text-indent: 0;'+
' }'+
'.popup_c h1,.popup_c h2,.popup_c h3,.popup_c h4,.popup_c h5,.popup_c h6,'+
'.popup_c ul,.popup_c ol,.popup_c dl,.popup_c div,.popup_c table,.popup_c address,.popup_c p {'+
' margin: 0;'+
' padding: 0;'+
' font-style: normal;'+
' font-weight: normal;'+
' color: '+popup_textcolor+';'+
' background-color: '+popup_bgcolor+';'+
' border: none 0px;'+
' font-size: '+popup_fontsize+'px;'+
' text-indent: 0;'+
' }'+
'.popup_c h1,.popup_c h2,.popup_c h3,.popup_c h4,.popup_c h5,.popup_c h6,'+
'.popup_c em,.popup_c strong {'+
' font-style: normal;'+
' font-weight: normal;'+
' color: '+popup_emcolor+';'+
' }'+
'	</style>');
	}

else if (document.all && MacIE) {
	document.write(
'<style type="text/css" media="screen, projection">'+
'.popup {'+
'	z-index: 200;'+
'	display: block;'+
'	position: absolute;'+
'	background-color: '+popup_bgcolor+';'+
'	top: 0px;'+
'	left: 0px;'+
'	margin: 0px;'+
'	padding: 0px;'+
'	}'+
'.popup h1,.popup h2,.popup h3,.popup h4,.popup h5,.popup h6,'+
'.popup ul,.popup ol,.popup dl,.popup div,.popup address,.popup p {'+
'	margin: 4px;'+
'	padding: 0 0 0 0;'+
'	border: 0px;'+
'	font-family: "Osaka",sans-serif;'+
'	line-height: '+popup_lineheight+'px;'+
'	font-size: '+popup_fontsize+'px;'+
'	text-indent: 0px;'+
'	text-align: left;'+
'	color: '+popup_textcolor+';'+
'	background-color: '+popup_bgcolor+';'+
'	text-indent: 0;'+
'	}'+
'.popup ul dt {'+
'	margin-left: 2em;'+
'	}'+
'.popup h1,.popup h2,.popup h3,.popup h4,.popup h5,.popup h6 {'+
'	color: '+popup_emcolor+';'+
'	font-weight: bold;'+
'	background-color: '+popup_bgcolor+';'+
'	}'+
'.popup em {'+
'	margin: 0px;'+
'	font-family: "Osaka","MS UI Gothic",sans-serif;'+
'	background-color: '+popup_bgcolor+';'+
'	color: '+popup_emcolor+';'+
'	font-size: inherit;'+
'	font-weight: normal;'+
'	font-style: normal;'+
'	text-decoration: none;'+
'	border: 0px;'+
'	}'+
'	</style>');
	}

else if (!domOK && (document.all || document.getElementById)) {
	document.write(
'<style type="text/css" media="screen, projection">'+
'.popup {'+
'	visibility: hidden;'+
'	height: auto;'+
'	z-index: 500;'+
'	display: block;'+
'	position: absolute;'+
'	background-color: '+popup_bgcolor+';'+
'	top: 0px;'+
'	left: 0px;'+
'	border: #000 3px double;'+
'	margin: 0 0 0 0;'+
'	padding: 8px;'+
'	}'+
'.popup h1,.popup h2,.popup h3,.popup h4,.popup h5,.popup h6,'+
'.popup ul,.popup ol,.popup dl,.popup div,.popup table,.popup address,.popup p {'+
'	margin: 0;'+
'	padding: 0 0 0 0;'+
'	border: 0px;'+
'	font-family: "Osaka","MS UI Gothic",sans-serif;'+
'	line-height: '+popup_lineheight+'px;'+
'	font-size: '+popup_fontsize+'px;'+
'	text-indent: 0px;'+
'	text-align: left;'+
'	color: '+popup_textcolor+';'+
'	background-color: '+popup_bgcolor+';'+
'	text-indent: 0;'+
'	}'+
'.popup ul dt {'+
'	margin-left: 2em;'+
'	}'+
'.popup h1,.popup h2,.popup h3,.popup h4,.popup h5,.popup h6 {'+
'	color: '+popup_emcolor+';'+
'	font-weight: bold;'+
'	background-color: '+popup_bgcolor+';'+
'	}'+
'.popup em {'+
'	margin: 0px;'+
'	font-family: "Osaka","MS UI Gothic",sans-serif;'+
'	background-color: '+popup_bgcolor+';'+
'	color: '+popup_emcolor+';'+
'	font-size: inherit;'+
'	font-weight: normal;'+
'	font-style: normal;'+
'	text-decoration: none;'+
'	border: 0px;'+
'	}'+


'</style>');
	}

function SetUp2() {
	if (popup_onload) { popup_onload(); }
	if (domOK && !MobileDevice) {
		var els=document.getElementsByTagName('noscript');
		var i=-1; while (++i<els.length) els[i].innerHTML='';
		popInit();
		}
}

////// Private Use.
function noLINK() {
	return(false);
}
////// End of Private Use.

function popInit() {
	var i,j,k,l,m,n,o;
	if (MobileDevice) return;


////// Private Use.
if (navigator.userAgent.indexOf('Gecko/')>-1) {
	o=document.getElementsByTagName('ruby');
	i=o.length;
	while (--i>=0) {
		o[i].style.verticalAlign='-20%';
		}
}
////// End of Private Use.

	if (!Opera6 && (document.all || document.getElementById)) {
		var lang=(document.documentElement) ? document.documentElement.lang : '';
		if (lang) lang=lang.toLowerCase(); else lang='ja';
		var t;
		j=mes.length;
		var eles=new Array();
////// Private Use.
i=(document.getElementById) ? document.getElementById('HeadNavi') : document.all['HeadNavi'];
if (i) {
	eles=(document.getElementById) ? i.getElementsByTagName('*') : i.all;
	k=-1; while (++k<eles.length) { if (eles[k].getAttribute('title')!='' && (l=(eles[k].tagName).toLowerCase())!='abbr' && l!='acronym') eles[k].removeAttribute('title'); }
	}
eles=(document.getElementById) ? document.getElementsByTagName('*') : document.all;
k=-1; while (++k<eles.length) { if ((eles[k].tagName).toLowerCase()=='a' && eles[k].getAttribute('class')=='SpecialLink') { eles[k].onclick=noLINK; } }
////// End of Private Use.

		if (document.all && !window.opera) eles=document.all;
		else eles=document.getElementsByTagName('*');
		k=-1;
		while (++k<eles.length) {
////// Private Use.
if (eles[k].getAttribute('class',2)=='withRuby') continue;
////// End of Private Use.
			i=eles[k].getAttribute('title',0);
			l=eles[k].getAttribute('datetime',0);
			t=(eles[k].tagName).toLowerCase();
			if (t=='link' || t=='meta' || t=='head' || t=='body' || t=='style' ||
			    t=='script' || t=='frameset' || t=='frame' || t=='noframes' ||
			    !i && !l) continue;
			if (l) {
				var yr,mo,dy;
				var mos=new Array('Jan.','Feb.','Mar.','Apr.','May ','June','July','Aug.','Sep.','Oct.','Nov.','Dec.');
				yr=l.substring(0,4);
				mo=l.substring(5,7);  if (mo.charAt(0)=='0') mo=mo.substring(1,2);
				dy=l.substring(8,10); if (dy.charAt(0)=='0') dy=dy.substring(1,2);
				
				if (lang.indexOf('ja')>-1) {
					if (popup_yearStyle==2) {
						yr=parseInt(yr)+660; yr=parseInt(yr/1000)+','+(yr%1000);
						}
					else if (popup_yearStyle!=1) {
						yr=parseInt(yr)-1988;
						if (yr<1 || yr==1 && mo==1 && dy<8) yr='昭和'+(yr+63);
						else if (yr==1) yr='平成元';
						else if (yr<10) yr='平成 '+yr;
						else yr='平成'+yr;
						}
					if (mo<10) mo=' '+mo;
					if (dy<10) dy=' '+dy;
					l=yr+'年'+mo+'月'+dy+'日';
					if (t=='ins') l+=' 追加';
					else if (t=='del') l+=' 削除';
					else l='';
					if (i) i+=' ('+l+')'; else i=l;
					}
				else if (lang.indexOf('en')>-1) {
					if (lang=='en' || lang=='en-us') l=mos[mo-1]+' '+dy+', '+yr;
					else l=dy+' '+mos[mo-1]+' '+yr;
					if (t=='ins') l='Added on '+l+'.';
					else if (t=='del') l='Deleted on '+l+'.';
					else l='';
					if (i) i+=' ('+l+')'; else i=l;
					}
				else {
					if (t!='ins' && t!='del') l='';
					if (i) i+=' ('+l+')'; else i=l;
					}
				}
			i=(i.split('&')).join('&amp;');
			i=(i.split('<')).join('&lt;');
			i=(i.split('>')).join('&gt;');
			mes[j]='<div>'+i+'</div>';
			/*if (t=='q') eles[k].removeAttribute('title',0);
			else */eles[k].title='';
			eles[k].titleNO=j;
			eles[k].setAttribute('onmouseover','Lyr('+j+')');
			eles[k].setAttribute('onmouseout','hLy('+j+')');
			j++;
			}
		}

	OUT='';
	if (document.layers) {
		p_width=p_width+20; sx=new Array(); sy=new Array();
		i=-1;
		while (++i<mes.length) {
			k=j=mes[i]; o='';
			m='<table class="popup" border="1" cellpadding="0" cellspacing="0" bgcolor="'+popup_bgcolor+'"><tr><td><div class="popup_c">';
			n='<\/div><\/td><\/tr><\/table>';
			if (oldN4) {
				k='';
				while ((l=j.indexOf('<'))>-1) {
					k+=j.substring(0,l); j=j.substring(l+1,j.length);
					if ((l=j.indexOf('>'))>-1) j=j.substring(l+1,j.length);
					}
				k+=j; m=n=''; o=' class="popupO"';
				}

			if (k.indexOf('<img')>-1 || k.indexOf('<IMG')>-1)
				OUT+='<layer visibility="hide" z-index="200" top="0" left="0" name="mss'+i+'"'+o+'>'+m;
			else OUT+='<layer visibility="hide" width="'+popup_width+'" z-index="200" top="0" left="0" name="mss'+i+'"'+o+'>'+m;
			OUT+=k;
			OUT+=n+'<\/layer>';
			}
		}

	else if (document.all && MacIE) {
		sx=new Array(); sy=new Array();
		i=-1;
		while (++i<mes.length) OUT+='<table border="1" width="'+popup_width+'" cellspacing="0" cellpadding="0" class="popup" id="mss'+i+'" bgcolor="'+popup_bgcolor+'"><tr bgcolor="'+popup_bgcolor+'"><td bgcolor="'+popup_bgcolor+'">'+mes[i]+'</td></tr></table>';
		}

	else if (document.all && !domOK) {
		sx=new Array(); sy=new Array();
		var max_width='max-width'; if (Opera6or7) max_width='width';
		i=-1;
		while (++i<mes.length) {
			k=mes[i];
			if (IE4) {
				OUT+='<tab'+'le border="0" class="popup" id="mss'+i+'" style="border: #000 3px double; "><t'+'r><t'+'d style="padding: 8px; ">'+k+'</tr></td></tab'+'le>';
				}
			else if (k.indexOf('<img')>-1 || k.indexOf('<IMG')>-1)
				OUT+='<div class="popup" id="mss'+i+'">'+k+'<\/div>';
			else {
				
				OUT+='<div class="popup" style="'+max_width+': '+popup_width+'px; " id="mss'+i+'">'+k+'<\/div>';
				}
			}
		}

	else if (domOK) {
		var body=document.getElementsByTagName('body')[0];
		sx=new Array(); sy=new Array();
		var e,es,t,f;
		var max_width='max-width'; if (Opera6or7) max_width='width';
		i=-1;
		while (++i<mes.length) {
			k=mes[i];
			e=document.createElement('div');
			e.setAttribute('class','popup');
			e.setAttribute('id','mss'+i);
			f=e.style;
			f.visibility='hidden';
			f.zIndex='500';
			f.display='block';
			f.position='absolute';
			f.background=popup_bgcolor;
			f.top=f.left='0';
			f.border='#000 3px double';
			f.margin='0';
			f.padding='8px';
			f.fontFamily='"Osaka","MS UI Gothic",sans-serif';
			f.lineHeight=popup_lineheight+'px';
			f.fontSize=popup_fontsize+'px';
			f.textIndent='0';
			f.textAlign='left';
			f.color=popup_textcolor;
			if (k.indexOf('<img')<0 && k.indexOf('<IMG')<0) {
				if (Opera6or7) f.width=popup_width+'px';
				else f.maxWidth=popup_width+'px';
				}
			e.innerHTML=k; es=e.getElementsByTagName('*'); k=-1;
			while (++k<es.length) {
				f=es[k].style;
				f.background=popup_bgcolor;
				f.margin=f.padding='0';
				f.fontFamily='"Osaka","MS UI Gothic",sans-serif';
				f.fontWeight=f.fontStyle='normal';
				f.fontSize=popup_fontsize+'px';
				f.lineHeight=popup_lineheight+'px';
				f.textDecoration='none';
				f.textIndent='0';
				f.textAlign='left';
				f.color=popup_textcolor;
				if ((t=(es[k].tagName).toLowerCase())=='h1' || t=='h2' || t=='h3' || t=='h4' || t=='h5' || t=='h6' || t=='em' || t=='strong') f.color=popup_emcolor,f.fontWeight='bold';
				if (t=='ul' || t=='ol' || t=='dd') f.margin='0 0 0 1em';
				}
			body.appendChild(e);
			}
		}
	else return;

	if (document.layers || Opera6 || MacIE) document.write(OUT);
	else if (!domOK) {
		o=document.body.innerHTML;
		document.body.innerHTML=OUT+o;
		}


	if (document.onmousemove) { p_onmousemove=document.onmousemove; }
	document.onmousemove=GetM;
	if (document.layers) document.captureEvents(Event.MOUSEMOVE);

	ready=1;

	i=-1;
	if (MacIE) { while (++i<mes.length) document.all['mss'+i].style.visibility='hidden'; }
	else if (document.getElementById) { while (++i<mes.length) document.getElementById('mss'+i).style.visibility='hidden'; }	// for Netscape 6.x.

	if (document.getElementById && (!document.all || window.opera)) {
		sx=document.getElementsByTagName('a');
		i=-1;
		while (++i<sx.length) {
			j=sx[i].getAttribute('onclick') || '';
			if (j=='') j='hLyAll(); return(true); ';
			else if ((k=j.indexOf('return'))>-1) 
				j=j.substring(0,k)+'; hLyAll(); '+j.substring(k,j.length);
			else j='hLyAll(); '+j;
			sx[i].setAttribute('onclick',j);
			}
		sx=document.getElementsByTagName('form');
		i=-1;
		while (++i<sx.length) {
			j=sx[i].getAttribute('onsubmit') || '';
			if (j=='') j='hLyAll(); return(true); ';
			else if ((k=j.indexOf('return'))>-1) 
				j=j.substring(0,k)+'; hLyAll(); '+j.substring(k,j.length);
			else j='hLyAll(); '+j;
			sx[i].setAttribute('onsubmit',j);
			}
		}
}

function GetM(e){
	if (MobileDevice) return;

	if (Opera6) {
		x=event.clientX; y=event.clientY;
		}
	else if (e) {
		x=e.pageX; y=e.pageY;
		}
	else if (document.all) {
		x=event.clientX+(document.body.scrollLeft || document.documentElement.scrollLeft);
		y=event.clientY+(document.body.scrollTop || document.documentElement.scrollTop);
		}

	if (disp_flag!=0 && mn>-1) Lyr(mn,disp_mode);
	else if (mn>-1) hLy(mn);
	if (p_onmousemove) { p_onmousemove(e); }
}

//	Display message.
function Lyr(i,dmode){
	if (!ready || MobileDevice) return;

	if (ready2==0) {
		if (document.layers) {
			j=-1;
			while (++j<mes.length) {
				p_width2[j]=document.layers['mss'+j].clip.width;
				p_height[j]=document.layers['mss'+j].clip.height;
				}
			}
		else if (Opera6) {
			j=-1;
			while (++j<mes.length) {
				document.getElementById('mss'+j).style.visibility='visible';
				p_width2[j]=document.getElementById('mss'+j).offsetWidth;
				if (p_width2[j]>popup_width) {
					p_width2[j]=popup_width;
					document.getElementById('mss'+j).offsetWidth=popup_width;
					}
				p_height[j]=document.getElementById('mss'+j).offsetHeight-24;
				document.getElementById('mss'+j).style.visibility='hidden';
				}
			}
		else if (!document.all || window.opera) {
			j=-1;
			while (++j<mes.length) {
				document.getElementById('mss'+j).style.visibility='visible';
				p_width2[j]=document.getElementById('mss'+j).offsetWidth-20;
				if (p_width2[j]>popup_width-20) {
					p_width2[j]=popup_width-20;
					document.getElementById('mss'+j).style.width=popup_width+'px';
					}
				p_height[j]=document.getElementById('mss'+j).offsetHeight;
				document.getElementById('mss'+j).style.visibility='hidden';
				}
			}
		else if (document.all) {
			k=(I6)? 20:0; j=-1;
			while (++j<mes.length) {
				document.all['mss'+j].style.visibility='visible';
				p_width2[j]=document.all['mss'+j].offsetWidth-k;
				if (p_width2[j]>popup_width-k) {
					p_width2[j]=popup_width-k;
					document.all['mss'+j].style.width=popup_width+'px';
					}
				p_height[j]=document.all['mss'+j].offsetHeight-24;
				document.all['mss'+j].style.visibility='hidden';
				}
			}
		ready2=1;
		}

	if (mn!=i && mn>-1) hLy(mn);
	disp_flag=1; mn=i; disp_mode=dmode;
	j='mss'+i;
	x2=p_width2[i]; y2=p_height[i];

	if (document.layers) {
		x1=window.innerWidth; y1=window.innerHeight;
		var k2=eval("document.mss"+i);
		x3=x+14; y3=y+16;
		if (x3>x1-x2+window.pageXOffset-20) {
			x3=(dmode==0)? x1-x2-20+window.pageXOffset : x-x2+20;
			}
		if (y3>y1-y2+window.pageYOffset-20) {
			y3=(dmode==0)? y1-y2+window.pageYOffset-2 : y-y2-6;
			}
		k=eval("document.mss"+i);
		k.zIndex=500;
		k.left=x3; k.top=y3;
		k.clip.width=x2; k.clip.height=y2;
		k.visibility='show';
		}

	else if (window.opera) {
		x1=window.innerWidth;
		y1=window.innerHeight;
		k2=document.getElementById('mss'+i);
		y2=k2.offsetHeight;
		x3=x+12; y3=y+18;
		if (x3>x1-x2+document.body.scrollLeft-20) x3=(dmode==0) ? x1-x2+document.body.scrollLeft-36 : x-x2-10;
		if (y3>y1-y2+document.body.scrollTop-10) y3=(dmode==0) ? y1-y2+document.body.scrollTop-2 : y-y2-4;
		with(document.getElementById(j)) {
			style.left=x3; style.top=y3;
			if (!Opera6) style.width=p_width2[i]+'px';
			style.visibility='visible'; style.zIndex=500;
			}
		}

	else if(document.all){
		x3=x+12; y3=y+16;
		if (I6) {
			x1=document.documentElement.clientWidth; y1=document.documentElement.clientHeight;
			x4=document.documentElement.scrollLeft; y4=document.documentElement.scrollTop;
			}
		else {
			x1=document.body.clientWidth; y1=document.body.clientHeight;
			x4=document.body.scrollLeft; y4=document.body.scrollTop;
			}
		if (x3>x1-x2+x4-22) x3=(dmode==0) ? x1-x2+x4-22 : x-x2-10;
		if (y3>y1-y2+y4-26) y3=(dmode==0) ? y1-y2+y4-26 : y-y2-28;
		j=document.all[j];
		j.style.pixelWidth=x2; j.style.pixelHeight=y2;
		j.style.pixelLeft=x3; j.style.pixelTop=y3;
		j.style.visibility='visible'; j.style.zIndex=500;
		}

	else if (document.getElementById) {
		x1=window.innerWidth; y1=window.innerHeight;
		x3=x+12; y3=y+24;
		if (x3>x1-x2+scrollX-36) x3=(dmode==0) ? x1-x2+scrollX-36 : x-x2-24;
		if (y3>y1-y2+scrollY-2) y3=(dmode==0) ? y1-y2+scrollY-2 : y-y2-8;
		j=document.getElementById(j);
		j.style.top=y3+'px';
		j.style.left=x3+'px';
		j.style.width=p_width2[i]+'px';
		j.style.visibility='visible';
		j.style.zIndex=500;
		}
}
//	for IE.
function Lyr2() { Lyr(this.titleNO,0,0); }
//	Clear message.
function hLy(i1){
	if (!ready || MobileDevice || i1<0) return;

	j1='mss'+i1; var k;
	if (document.layers) document.layers[j1].visibility='hide';
	else if (document.getElementById) {
		k=document.getElementById(j1);
		k.style.visibility='hidden';
		k.style.top=k.style.left=0;
		k.style.zIndex=-100;
		}
	else if (document.all) {
		k=document.all[j1]; k.style.visibility='hidden';
		k.style.top= k.style.left=0;
		k.style.zIndex=-100;
		}

	disp_flag=0; mn=-1;
}
//	for IE.
function hLy2() { hLy(this.titleNO); }
//	for Firefox 1.5 or higher.
function hLyAll() {
	var i=-1;
	while (++i<mes.length) {
		document.getElementById('mss'+i).style.visibility='hidden';
		document.getElementById('mss'+i).style.top= document.getElementById('mss'+i).style.left=0;
		document.getElementById('mss'+i).style.zIndex=-100;
		}
	disp_flag=0; mn=-1;
}
