popUpID=new Array('MENU-1', 'MENU-2', 'MENU-3', 'NAVI_FOR_FEATURES', 'NAVI_FOR_ILLUSTRATIONS');
ThumbID=new Array();
ThumbMSG=new Array();
ThumbImg=new Array();
ThumbID['F_HORIKITA_USAGI']='http://www.marguerite.jp/Features/_Horikita_Usagi-L.GIF';
ThumbID['F_RABBIT']='http://www.marguerite.jp/Features/_RabbitSchoolGirl104.GIF';
ThumbID['F_YUCHAN']='http://www.marguerite.jp/Features/_Yuchan104.GIF';
ThumbID['F_NORIKOCHAN']='http://www.marguerite.jp/Features/_Norikochan104.GIF';
ThumbID['F_KAYOCHAN']='http://www.marguerite.jp/Features/_Kayochan104.GIF';
ThumbID['F_AYAHIME']='http://www.marguerite.jp/Features/_Ayachan104.GIF';
ThumbID['F_KAORICHAN']='http://www.marguerite.jp/Features/_Kaorichan104.GIF';
ThumbID['F_AICHAN']='http://www.marguerite.jp/Features/_Aichan104.GIF';
ThumbID['F_ELEMENTARY']='http://www.marguerite.jp/Features/_OriginalUniformGirl104.GIF';
ThumbID['F_PINAFORE']='http://www.marguerite.jp/Features/_PinaforeCountryGirl104.GIF';
ThumbID['I_HANKEN']='http://www.3flowers.net/Hanken/_HAKUREI_Reimu104.GIF';
ThumbID['I_PORTRAITS']='http://www.3flowers.net/Portraits/_HORIKITAMaki.GIF';
ThumbID['F_ELEMENTARY']=
ThumbID['FEATURE_SC1']='http://www.marguerite.jp/Features/_OriginalUniformGirl104.GIF';
ThumbID['F_ELEMENTARY2']=
ThumbID['FEATURE_SC2']='http://www.marguerite.jp/Features/_SchoolgirlOfPrivateElementarySchool2-104.GIF';
ThumbID['FEATURE_YUKACHAN']='http://www.marguerite.jp/Features/_Yukachan104.GIF';
for (k in ThumbID) {
	ThumbImg[k]=new Image();
	ThumbImg[k].src=ThumbID[k];
	}

ThumbMSG['F_HORIKITA_USAGI2']='　堀北真希うさぎ(アイドル女優・堀北真希ちゃんにうさぎの耳を着けたうさ耳女子大生)などの創作キャラクタ。';
ThumbMSG['F_HORIKITA_USAGI']='　アイドル女優・堀北真希ちゃんにうさぎの耳を着けた女子大生キャラクタ。';
ThumbMSG['I_HANKEN']='　キミキス・らき☆すた・東方プロジェクト・ヴォーカロイドなど。';
ThumbMSG['I_PORTRAITS']='　アイドル女優・堀北真希ちゃんの似ていない似顔絵。';

MobileDevice=0;
lk_task_k=document.onkeypress;
lk_task_l=window.onload;
if (document.getElementById &&
	 navigator.userAgent.indexOf('Opera/6.')<0 &&
	 navigator.userAgent.indexOf('Opera 6.')<0 &&
	 navigator.userAgent.indexOf('Opera/5.')<0 &&
	 navigator.userAgent.indexOf('Opera 5.')<0) {
	window.onload=lk_setUp;
	}
lk_ie6=(document.all && !window.opera && (navigator.userAgent.indexOf('MSIE 6.0')>-1 || navigator.userAgent.indexOf('MSIE 5.5')>-1) && navigator.userAgent.indexOf('MSIE 7')<0 && navigator.userAgent.indexOf('Trident/')<0);

lk_ie8=(document.all && !window.opera && navigator.userAgent.indexOf('Trident/')>-1 && navigator.userAgent.indexOf('MSIE 7.')<0);

lk_oflag=0;

function lk_setUp() {
	var i,j,k,m,n,t;
	var e='';
	var el='';
	var headings,closebutton,openbutton;

	if (!document.getElementById ||
	    navigator.userAgent.indexOf('BTRON')<0 &&
	    navigator.userAgent.indexOf('Win')<0 &&
	    navigator.userAgent.indexOf('Mac')<0 &&
	    navigator.userAgent.indexOf('X11')<0 ||
	    navigator.userAgent.indexOf('Opera/6')>-1 || navigator.userAgent.indexOf('Opera 6')>-1 ||
	    navigator.userAgent.indexOf('Opera/5')>-1 || navigator.userAgent.indexOf('Opera 5')>-1) {
		if (lk_task_l) lk_task_l();
		return;
		}

	var ua=0;
	if (navigator.userAgent.indexOf('Gecko/')>-1 &&
	     ((j=navigator.userAgent.indexOf('rv:'))<0 || parseFloat(navigator.userAgent.substring(j+3,navigator.userAgent.length))<1.9)) ua=1;
	if (document.all && navigator.userAgent.indexOf('Opera/')<0 &&
	    navigator.userAgent.indexOf('Opera ')<0 &&
	    navigator.userAgent.indexOf('Trident/')<0) ua=2;
	if (navigator.userAgent.indexOf('MSIE 7.')>-1 &&
	    navigator.userAgent.indexOf('Trident/')>-1) ua=2;

	if (document.getElementById) {
		eles=document.getElementById('INJECTED');
		if (eles) eles.innerHTML='';

		eles=document.getElementsByTagName('span');
		k=-1; c=0;
		while (++k<eles.length) {
			i=eles[k].getAttribute('class',0) || eles[k].getAttribute('className',0);
			if (i=='hidden') {
				var t=eles[k].innerHTML;
				if ((i=t.indexOf('ロ'))>-1 || (i=t.indexOf('口'))>-1 || (i=t.indexOf('囗'))>-1) {
					t=t.substring(0,i-1)+'&#9633;'+t.substring(i+1,t.length);
					}
				else if ((i=t.indexOf('Ｏ'))>-1 || (i=t.indexOf('ｏ'))>-1 || (i=t.indexOf('０'))>-1 || (i=t.indexOf('〇'))>-1) {
					t=t.substring(0,i-1)+'&#9675;'+t.substring(i+1,t.length);
					}
				else if ((i=t.indexOf('Ｘ'))>-1 || (i=t.indexOf('ｘ'))>-1) {
					t=t.substring(0,i-1)+'&#215;'+t.substring(i+1,t.length);
					}
				else {
					i=c % t.length;
					t=t.substring(0,i-1)+'&#9675;'+t.substring(i+1,t.length);
					}
				++c;
				eles[k].innerHTML=t;
				eles[k].style.background='transparent';
				eles[k].style.color='#000';
				if (!document.all || window.opera || lk_ie8) eles[k].style.color='inherit';
				continue;
				}
			}

		eles=document.getElementsByTagName('a');
		k=-1;
		while (++k<eles.length) {
			i=eles[k].getAttribute('class',0) || eles[k].getAttribute('className',0);
			if (i=='SpecialLink') {
				eles[k].removeAttribute('href');
				eles[k].onclick='return(false);';
				continue;
				}
			var p;
			i=eles[k].getAttribute('href') || '';
			if ((p=i.indexOf('%E7%B4%80%E5%AD%90%E3%81%A1%E3%82%83%E3%82%93%E3%81%AF%E3%82%BD%E3%83%95%E3%83%88%E3%82%B3%E3%83%B3%E3%82%BF%E3%82%AF%E3%83%88.html'))>-1) {
				eles[k].removeAttribute('href');
				eles[k].setAttribute('href',i.substring(0,p)+'%E7%B4%80%E5%AD%90%E3%81%A1%E3%82%83%E3%82%93.html');
				}


			}

		eles=document.getElementsByTagName('span');
		k=-1;
		while (++k<eles.length) {
			if (eles[k].getAttribute('onclick')) {
				i=eles[k].getAttribute('onclick').toString();
				if ((c=i.indexOf("location.href='"))>-1) {
				i=i.substring(c+15,i.length);
					if ((c=i.indexOf("'"))>-1) {
						i=i.substring(0,c);
						eles[k].innerHTML='<a href="'+i+'">'+eles[k].innerHTML+'</a>';
						eles[k].removeAttribute('onclick');
						}
					}
				}
			}

		var ele2=new Array();
		eles=document.getElementsByTagName('*');
		k=-1;
		while (++k<eles.length) {
			i=eles[k].getAttribute('class',0) || eles[k].getAttribute('className',0) || '';
			if (i=='forAural' && eles[k].innerHTML) {
				eles[k].innerHTML=''; continue;
				}

			if (i=='intention' || i=='iyami') {
				eles[k].setAttribute('className',i+' __NODOT__',0);
				eles[k].setAttribute('class',i+' __NODOT__',0);
				continue;
				}

			if (!(j=eles[k].getAttribute('lang') || '')) continue;
			if (j.toLowerCase().indexOf('ja')>-1) continue;
			ele2=eles[k].getElementsByTagName('em');
			j=-1;
			while (++j<ele2.length) {
				i=ele2[j].getAttribute('className') || ele2[j].getAttribute('class') || '';
				ele2[j].setAttribute('className',i+' __NODOT__ __ENGEM__',0);
				ele2[j].setAttribute('class',i+' __NODOT__ __ENGEM__',0);
				}
			}

		eles=document.getElementsByTagName('samp');
		k=-1;
		while (++k<eles.length) {
			i=eles[k].getAttribute('className') || eles[k].getAttribute('class') || '';
			if (i.indexOf('__NODOT__')>-1) continue;
			ele2=eles[k].getElementsByTagName('em');
			j=-1;
			while (++j<ele2.length) {
				i=ele2[j].getAttribute('className') || ele2[j].getAttribute('class') || '';
				ele2[j].setAttribute('className',i+' __NODOT__',0);
				ele2[j].setAttribute('class',i+' __NODOT__',0);
				}
			}

		eles=document.getElementsByTagName('code');
		k=-1;
		while (++k<eles.length) {
			i=eles[k].getAttribute('className') || eles[k].getAttribute('class') || '';
			if (i.indexOf('__NODOT__')>-1) continue;
			ele2=eles[k].getElementsByTagName('em');
			j=-1;
			while (++j<ele2.length) {
				i=ele2[j].getAttribute('className') || ele2[j].getAttribute('class') || '';
				ele2[j].setAttribute('className',i+' __NODOT__',0);
				ele2[j].setAttribute('class',i+' __NODOT__',0);
				}
			}

		var col=(!document.all || window.opera || lk_ie8) ? 'inherit' : '#000';
		var wei=(!document.all || window.opera || lk_ie8) ? 'inherit' : 'normal';
		eles=document.getElementsByTagName('em');
		k=-1;
		while (++k<eles.length) {
			i=eles[k].getAttribute('className') || eles[k].getAttribute('class') || '';
			if (i.indexOf('__NODOT__')<0) {
				i=eles[k].innerHTML; l=''; sl=0;
				while(i!='') {
					sl=i.length;
					// Tag.
					m=i.substring(0,1); i=i.substring(1,i.length);
					if (m=='<' && (n=i.indexOf('>')+1)>0) {
						l+=m+i.substring(0,n);
						i=i.substring(n,i.length);
						continue;
						}
					// Entity.
					if (m=='&' && (n=i.indexOf(';')+1)>0) {
						l+=m+i.substring(0,n);
						i=i.substring(n,i.length);
						continue;
						}
					// Parenthesis, etc.
					// Other marks in Japanese Text.
					if (' (){}[]+=*/\\!?,."#$%\'、。・「」『』（）？！，．'.indexOf(m)>-1) {
						l+=m; continue;
						}
					// Ascii.
					if ('abcdefghijklmnopqrstuvwxyz0123456789-_'.indexOf(m.toLowerCase())>-1) {
						if (i!='' && 'abcdefghijklmnopqrstuvwxyz0123456789-_'.indexOf(i.substring(0,1).toLowerCase())>-1) {
							m+=i.substring(0,1);
							i=i.substring(1,i.length);
							}
						}
					l+='<span class="em">'+m+'</span>';
					}
				eles[k].innerHTML=l;
				eles[k].style.fontStyle='normal';
				eles[k].style.fontWeight=wei;
				eles[k].style.color=col;
				eles[k].style.padding='0';
				continue;
				}

			if (i.indexOf('__ENGEM__')>-1) {
				eles[k].style.fontStyle='italic';
				eles[k].style.background='transparent';
				eles[k].style.padding='0';
				continue;
				}

			}
		}

	/* IE 8.0 までのポップアップメニュー(JAVAスクリプトの助けが要る) */
	/* ※IE 7.0〜8.0 では本来不要だが、ポップアップが消える事があるためやはり使う。 */
	if (document.all && !window.opera) {
		var i8=0;
		if (navigator.userAgent.indexOf('MSIE 7.')<0 &&
		    navigator.userAgent.indexOf('Trident/')>-1) i8=1;

		var dc=popUpID.length;
		while (--dc>=0) {
			var id=popUpID[dc];
			ele=document.getElementById(id);
			if (!ele) continue;

			ele.style.display='block';
			ele.style.background='transparent';
			var ele2=ele.getElementsByTagName('p');
			i=-1;
			while (++i<ele2.length) {
				ele2[i].onmouseover=show4IE1;
				ele2[i].onmouseout=hide4IE1;
				}
			ele2=ele.getElementsByTagName('ul');
			i=-1;
			while (++i<ele2.length) {
				ele2[i].onmouseover=show4IE2;
				ele2[i].onmouseout=hide4IE2;
				ele2[i].style.display='none';
				}

			ele2=ele.getElementsByTagName('li');;
			//
			if (!i8) {
				if (location.href.indexOf('/English/')>-1) {
					ThumbMSG['F_HORIKITA_USAGI']=' A woman student with rabbit ears based HORIKITA Maki, one of Japan\'s most popular actresses.';
					ThumbMSG['I_HANKEN']=' Illustrations of featured characters of "Kimi Kiss", "Lucky Star", "Toho Project", "Vocaloid", and more.';
					ThumbMSG['I_PORTRAITS']=' HORIKITA Maki, one of Japan\'s most popular actresses.';
					}
				i=ele2.length;
				while(--i>=0) {
					var j1;
					if ((j=ele2[i].getAttribute('id') || '')!='' &&
					    (j1=ThumbID[j])!=null) {
						var w='108px';
						var ei=document.createElement('div');
						var ei2=document.createElement('img');
						ei2.setAttribute('src',j1);
						ei2.setAttribute('alt','');
						ei2.setAttribute('width','104');
						ei2.setAttribute('height','104');
						if (j=='F_HORIKITA_USAGI') {
							ei2.setAttribute('width','120');
							ei2.setAttribute('height','160');
							}
						ei.appendChild(ei2);
						if (ThumbMSG[j]!=null) {
							ei.appendChild(document.createTextNode(ThumbMSG[j]));
							w='16em', m='0 0 0 -16em';
							}
						ei.style.fontSize='125%';
						ei.style.display='none';
						ei.style.margin='0 0 0 -'+w;
						ei.style.padding='1em';
						ei.style.border='double 3px #000';
						ei.style.position='absolute';
						ei.style.left='-3em';
						ei.style.top='16px';
						ei.style.background='#fff';
						ei.style.color='#000';
						ei.style.width=w;
						ei.style.zIndex='100';
						ele2[i].appendChild(ei);
						ele2[i].onmouseover=showImg4IE;
						ele2[i].onmouseout=hideImg4IE;
						}
					}
				}

			ele2=ele.childNodes;
			i=-1;
			while (++i<ele2.length) {
				if (ele2[i].nodeType!=1) continue;

				var ele3=ele2[i].childNodes;
				j=-1;
				while (++j<ele3.length) {
					if (ele3[j].nodeType!=1) continue;

					if (ele3[j].tagName.toLowerCase()=='p') {
						ele3[j].onmouseout='';
						continue;
						}
					if (i8) continue;

					var ele4=ele3[j].getElementsByTagName('p');
					k=-1;
					while (++k<ele4.length) {
						var ti='<span style="color: #000; margin-left: -0.5em; padding: 0 4px 0 0.3em; text-decoration: none; font-family: &quot;Times New Roman&quot;, monospace; ">&#9668;</span>';
						var t=ele4[k].innerHTML;
						var p=t.indexOf('>')+1;
						if (p>0) {
							ele4[k].innerHTML=t.substring(0,p)+ti+t.substring(p,t.length);
							}
						else ele4[k].innerHTML=ti+t;
						}
					}
				}
			}
		}

	if (lk_task_l) lk_task_l();
}

/* IE 7.0までの画像ポップアップ。 */
function showImg4IE() {
	o=this.getElementsByTagName('div');
	if (o.length==1) {
		o[0].style.display='block';
		}
}

/* IE 7.0までの画像ポップアップ消去。 */
function hideImg4IE() {
	o=this.getElementsByTagName('div');
	if (o.length==1) {
		o[0].style.display='none';
		}
}

var timeID;
var m_obj='';
/* IE 7.0までのポップアップメニュー消去(メニュー領域から外れた場合)。 */
function hide4IEall() {
	clearTimeout(timeID);
	timeID=setTimeout('hide4IEall_2()', 500);
}

function hide4IEall_2() {
	clearTimeout(timeID);

	var dc=popUpID.length;
	while (--dc>=0) {
		var id=popUpID[dc];
		var ele=document.getElementById(id);
		if (!ele) continue;

		var e2=ele;
		ele=ele.getElementsByTagName('ul');
		i=ele.length;
		while (--i>=0) {
			ele[i].style.display='none';
			}

		ele=e2.getElementsByTagName('div');
		i=ele.length;
		while (--i>=0) {
			ele[i].style.display='none';
			}
		}
}

/* IE 7.0までのポップアップメニュー表示(子メニューへの見出しがポイントされている場合)。 */
function show4IE1() {
	hide4IEall_2();
	var o=this.nextSibling;
	o.style.display='block';
}

/* IE 7.0までのポップアップメニュー消去(子メニューへの見出しからポイントが外れた場合)。 */
function hide4IE1() {
	clearTimeout(timeID);
	m_obj=this.nextSibling;
	timeID=setTimeout('hide4IE1_2()', 500);
}

function hide4IE1_2() {
	clearTimeout(timeID);
	m_obj.style.display='none';
}

/* IE 7.0までのポップアップメニュー消去防止(子メニューがポイントされている場合)。 */
function show4IE2() {
	clearTimeout(timeID);
	this.style.display='block';
}

/* IE 7.0までのポップアップメニュー消去(子メニューからポイントが外れた場合)。 */
function hide4IE2() {
	clearTimeout(timeID);
	m_obj=this;
	timeID=setTimeout('hide4IE2_2()', 500);
}

function hide4IE2_2() {
	clearTimeout(timeID);
	m_obj.style.display='none';
}


function SetUp3() {
	var i=navigator.userAgent;
	var j;
	if (i.indexOf('Gecko/')>-1 &&
	     ((j=i.indexOf('rv:'))<0 || parseFloat(i.substring(j+3,i.length))<1.9)) {
		var eles=document.getElementsByTagName('*');
		var i=-1;
		var j,k,a;
		while (++i<eles.length) {
			if (!(a=eles[i].getAttribute('class',2))) continue;
			if (a.indexOf('withRuby')<0) continue;
			j=eles[i].getAttribute('title');
			k=eles[i].innerHTML;
			eles[i].innerHTML='<ruby><rb>'+k+'</rb><rt>'+j+'</rt></ruby>';
			eles[i].removeAttribute('title');
			if (a=='withRuby') {
				eles[i].removeAttribute('class');
				eles[i].removeAttribute('className');
				}
			else {
				a=a.split('withRuby').join(' ');
				eles[i].setAttribute('class',a);
				eles[i].setAttribute('className',a);
				}
			}
		}
	else if (document.getElementById) {
		var eles=document.getElementsByTagName('*');
		i=-1;
		while (++i<eles.length) {
			if (!(a=eles[i].getAttribute('class',2)) || a.indexOf('withRuby')<0) continue;
			eles[i].setAttribute('ruby',eles[i].getAttribute('title'));
			eles[i].setAttribute('title','');
			eles[i].removeAttribute('title');
			}
		}

	SetUp2();
}



//	Marguerite Site. Pop-up Script (2). Version 3.50 (Apr. 15, 2006).
//	Copyright (c)2002-2006 Marguerite Site, Saitama, JAPAN. All Rights Reserved.
//	   www.marguerite.jp
function SetUpforIE() {
	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);

	var o=document.body.innerHTML;
	o=o.split('<abbr').join('<acronym').split('<ABBR').join('<acronym').split('<Abbr').join('<acronym class="abbr"');
	o=o.split('</abbr').join('</acronym').split('</ABBR').join('</acronym').split('</Abbr').join('</acronym');
	document.body.innerHTML=o;

///////Private Code.
	if (!lk_ie8) {
		var ne=new Array('abbr', 'nav', 'section', 'header', 'footer', 'aside', 'figure', 'mark', 'hgroup');
		var i=ne.length; while (--i>=0) document.createElement(ne[i]);

		var eles=document.getElementsByTagName('*');
		i=-1;
		var j,k,a;

		while (++i<eles.length) {
			if (!(a=eles[i].getAttribute('class',2)) &&
			    !(a=eles[i].getAttribute('className',2))) continue;
			if (a.indexOf('withRuby')<0) continue;
			j=eles[i].getAttribute('title');
			k=eles[i].innerHTML;
			eles[i].innerHTML='<ruby><rb>'+k+'</rb><rt>'+j+'</rt></ruby>';
			eles[i].removeAttribute('title');
			if (a=='withRuby') {
				eles[i].removeAttribute('className');
				}
			else {
				a=a.split('withRuby').join(' ');
				eles[i].setAttribute('className',a);
				}
			eles[i].style.border='none';
			eles[i].style.color='#000';
			}

		eles=document.getElementsByTagName('ul');
		var i=-1;
		while (++i<eles.length) {
			k=' '+(eles[i].getAttribute('className') || '')+' ';
			j='* ';
			if (location.href.indexOf('/Nihongo/')>-1) { j='※'; }
			if (k.indexOf(' notes ')>-1) {
				eles[i].setAttribute('className',k.split(' notes ').join(' '));
				var eles2=eles[i].childNodes;
				k=-1;
				while (++k<eles2.length) {
					a=eles2[k].innerHTML;
					if (a.indexOf('<p')==0 || a.indexOf('<P')==0) {
						a=a.substring(a.indexOf('>')+1,a.length);
						if (a.indexOf('</p>')>-1) {
							a=a.substring(0,a.indexOf('</p>'))+'<br />'+a.substring(a.indexOf('</p>')+4,a.length);
							}
						else if (a.indexOf('</P>')>-1) {
							a=a.substring(0,a.indexOf('</P>'))+'<br />'+a.substring(a.indexOf('</P>')+4,a.length);
							}
						}
					eles2[k].innerHTML=j+a;
					eles2[k].style.textIndent='0';
					eles2[k].style.listStyleImage='none';
					eles2[k].style.listStyleType='none';
					}
				continue;
				}
			}

		eles=(document.getElementsByTagName('body')[0]).childNodes;
		var i=-1;
		var j=-1;
		while (++i<eles.length) {
			k=eles[i].nodeName.toLowerCase();
			if (k=='h2' || k=='h3' || k=='h4' || k=='h5' || k=='h6') {
				if (j>-1) {
					eles[i].style.marginTop='0';
					}
				j=i; continue;
				}
			else { j=-1; }
			}

		eles=(document.getElementsByTagName('body')[0]).getElementsByTagName('*');
		i=-1;
		while (++i<eles.length) {
			if (eles[i].nodeType!=1) continue;
/*
			k=eles[i].nodeName.toLowerCase();
			if (k=='blockquote' || k=='div' || k=='li' || k=='dd') {
				k=-1;
				j=-1;
				eles2=eles[i].childNodes;
				while (++k<eles2.length) {
					if (eles2[k].nodeType!=1) continue;
					var l=eles2[k].nodeName.toLowerCase();
					if (l=='p' || l=='div' || l=='ol' || l=='ul' || l=='dl' || l=='pre') {
						if (j>-1) eles2[j].style.marginBottom='1em';
						if (k!=0) eles2[k].style.marginTop='1em';
						else eles2[k].style.marginTop='0';
						eles2[k].style.marginBottom='0'; j=k;
						}
					}
				continue;
				}
*/
			k=' '+(eles[i].getAttribute('className') || '')+' ';
			if (k.indexOf(' slang ')>-1) {
				eles[i].innerHTML='"'+eles[i].innerHTML+'"';
				}
			}

		eles=(document.getElementsByTagName('h1'))[0];
		if (eles && lk_ie6) {
			var es=(eles.getElementsByTagName('small'))[0];
			if (es) {
				var et=document.createElement('small');
				et.setAttribute('className', 'subTitle');
				et.innerHTML=es.innerHTML;
				et.style.display='block';
				et.style.margin='-2.8em 0 2.8em -1em';
				et.style.font='normal normal 100%/1em monospace';
				es.style.display='none';
				while (eles=eles.nextSibling) {
					if (eles.nodeType==1) break;
					}
				eb=eles.parentNode;
				eb.insertBefore(et, eles);
				}
			}

		eles=document.getElementsByTagName('q');
		var i=-1;
		j=k='"';
		if (location.href.indexOf('/Nihongo/')>-1) {
			j='<font face="ＭＳ Ｐゴシック">「</font>';
			k='<font face="ＭＳ Ｐゴシック">」</font>';
			}
		while (++i<eles.length) {
			eles[i].innerHTML=j+eles[i].innerHTML+k;
			eles[i].style.fontStyle='normal';
			}

		i=document.getElementById('HEAD_NAVI');
		if (i) {
			eles=i.getElementsByTagName('li');
			var i=0;
			while (++i<eles.length) {
				eles[i].innerHTML='| '+eles[i].innerHTML;
				}
			}

		i=document.getElementById('NAVI_LIST');
		if (i) {
			eles=i.getElementsByTagName('li');
			var i=0;
			while (++i<eles.length) {
				eles[i].innerHTML='&gt; '+eles[i].innerHTML;
				}
			}
/*
		eles=document.getElementsByTagName('a');
		var i=0;
		while (++i<eles.length) {
			j=eles[i].getAttribute('accesskey') || '';
			if (j=='') continue;
			var tc='#000';		//textColor;
			var bg='#eee';	//noaccesskey.
			var bc='#ccc';
			k=eles[i].getAttribute('className') || '';
			if (k!='noLink') {
				bg='#fd8';
				bc='#fd0';
				}

			eles[i].innerHTML='<span style="display: inline; margin-right: 0.4em; margin-left: 0; padding: 0 0.25em; background: '+bg+'; border: 2px '+bc+' outset; font: normal normal 100% monospace; text-decoration: none; line-height: 1em; text-decoration: none; color: '+tc+';">'+j+'</span>'+eles[i].innerHTML;
			}
*/
		//	IE5.5-対策。
		i=document.compatMode || '';
		if (i!='CSS1Compat') {
			if (eles=document.all['TOP']) {
				eles.style.marginTop='3.5em';
				}
			i=popUpID.length;
			while (--i>=0) {
				if (eles=document.all[popUpID[i]]) {
					var e=eles.getElementsByTagName('p')[0];
					if (e) e.style.width='9em';
					}
				}
			}
		}
///////End of Private Code.

	IEFlag=1; popInit();
	if (mes.length>0) { Lyr(0); hLy(0); }
	if (popup_onload) popup_onload();
}

if (document.all && !window.opera && navigator.userAgent.indexOf('Mac')<0) {
	popup_onload=window.onload;
	window.onload = SetUpforIE;
	}
else if (document.getElementById &&
        (!document.all ||
           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)) {
	popup_onload=window.onload;
window.onload=SetUp3;	//Private Code;
//	window.onload = SetUp2;	//Commented out Due to Pricate Code.
	}
else popInit();

