var browserName=navigator.appName,browserVer=parseInt(navigator.appVersion),version="",msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3"}else version="n2"
function blurLink(theObject){if(msie4)theObject.blur()}
function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1)}else if(offset<0&&n<start)n=end-(start-n-1);return String.fromCharCode(n)}
function decryptString(enc,offset){var dec="",len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset)}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset)}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset)}else dec+=enc.charAt(i)};return dec}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-1)};
function pageTopScroll(){var x1=x2=x3=0,y1=y2=y3=0;if(document.documentElement){x1=document.documentElement.scrollLeft||0;y1=document.documentElement.scrollTop||0};if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0};x3=window.scrollX||0;y3=window.scrollY||0;var x=Math.max(x1,Math.max(x2,x3)),y=Math.max(y1,Math.max(y2,y3));window.scrollTo(Math.floor(x/2),Math.floor(y/2));if(x>0||y>0)window.setTimeout("pageTopScroll()",10)};
rubyCheck=location.href.indexOf("ruby.php")
function udMenu(){if(rubyCheck!==-1){var url=decodeURIComponent(location.href),normalUrl=url.replace('http://www.wakuwakuplus.com/ruby.php?url=',''),mUrl=location.href,musicUrl=mUrl.replace(/\./g,'_');document.write('<span id="ruby_on"><a href="'+normalUrl+'">ふりがなをはずす</a></span>')}else{var url=encodeURIComponent(location.href);document.write('<span id="ruby_off"><a href="http://www.wakuwakuplus.com/ruby.php?url='+url+'">ふりがなをつける</a></span>')}}
function winOpen(){rubyCheck=location.href.indexOf("ruby.php");if(rubyCheck!==-1){var url=decodeURIComponent(location.href),normalUrl=url.replace('http://www.wakuwakuplus.com/ruby.php?url=',''),encUrl=encodeURIComponent(normalUrl),voiceUrl="http://www.wakuwakuplus.com/voice.php?url="+encUrl,win;if(!win||win.closed){win=window.open(voiceUrl,'voiceWindow','width=250, height=185, top=50, left=50, location=no, menubar=no, toolbar=no, scrollbars=yes')}else win.focus()}else{var url=encodeURIComponent(location.href),voiceUrl="http://www.wakuwakuplus.com/voice.php?url="+url,win;if(!win||win.closed){win=window.open(voiceUrl,'voiceWindow','width=250, height=185, top=50, left=50, location=no, menubar=no, toolbar=no, scrollbars=no')}else win.focus()}};
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-10601704-4']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s)})();
function Cookiemanager(){this.name='cookieManager';this.defaultExpiration=this.getExpiration();this.defaultDomain=window.location.hostname;this.defaultPath='/';this.cookies=new Object();this.expiration=new Object();this.domain=new Object();this.path=new Object();window.onunload=new Function(this.name+'.setDocumentCookies();');this.getDocumentCookies()};Cookiemanager.prototype.getExpiration=function(){var date=new Date();date.setTime(date.getTime()+(7*24*60*60*1000));return date.toGMTString()};Cookiemanager.prototype.getDocumentCookies=function(){var cookie,pair,cookies=document.cookie.split(';'),len=cookies.length;for(var i=0;i<len;i++){cookie=cookies[i];while(cookie.charAt(0)==' ')cookie=cookie.substring(1,cookie.length);pair=cookie.split('=');this.cookies[pair[0]]=pair[1]}};Cookiemanager.prototype.setDocumentCookies=function(){var cookies='';if(this.cookies['fontSize']){cookies='fontSize='+this.cookies['fontSize']+'; expires='+this.expiration['fontSize']+'; path='+this.path['fontSize']+'; domain='+this.domain['fontSize'];if(cookies!='')document.cookie=cookies};return true};Cookiemanager.prototype.getCookie=function(){return(this.cookies['fontSize'])?this.cookies['fontSize']:false};Cookiemanager.prototype.setCookie=function(cookieValue){if(!isNaN(cookieValue)){this.cookies['fontSize']=parseInt(cookieValue);this.expiration['fontSize']=this.getExpiration();this.domain['fontSize']=this.defaultDomain;this.path['fontSize']=this.defaultPath;return true}};var cookieManager=new Cookiemanager();
function Efa_Fontsize06(increment,bigger,reset,smaller,def){this.w3c=(document.getElementById);this.ms=(document.all);this.userAgent=navigator.userAgent.toLowerCase();this.isMacIE=((this.userAgent.indexOf('msie')!=-1)&&(this.userAgent.indexOf('mac')!=-1)&&(this.userAgent.indexOf('opera')==-1));this.isOldOp=((this.userAgent.indexOf('opera')!=-1)&&(parseFloat(this.userAgent.substr(this.userAgent.indexOf('opera')+5))<=7));if((this.w3c||this.ms)&&!this.isOldOp&&!this.isMacIE){this.name="efa_fontSize06";this.cookieName='fontSize';this.increment=increment;this.def=def;this.defPx=Math.round(16*(def/100));this.base=1;this.pref=this.getPref();this.testHTML='<div id="efaTest" style="position:absolute;visibility:hidden;line-height:1em;">&nbsp;</div>';this.biggerLink=this.getLinkHtml(1,bigger);this.resetLink=this.getLinkHtml(0,reset);this.smallerLink=this.getLinkHtml(-1,smaller)}else{this.biggerLink='';this.resetLink='';this.smallerLink='';this.efaInit=new Function('return true;')};this.allLinks=this.biggerLink+this.resetLink+this.smallerLink};Efa_Fontsize06.prototype.efaInit=function(){document.writeln(this.testHTML);this.body=(this.w3c)?document.getElementsByTagName('body')[0].style:document.all.tags('body')[0].style;this.efaTest=(this.w3c)?document.getElementById('efaTest'):document.all['efaTest'];var h=(this.efaTest.clientHeight)?parseInt(this.efaTest.clientHeight):(this.efaTest.offsetHeight)?parseInt(this.efaTest.offsetHeight):999;if(h<this.defPx)this.base=this.defPx/h;this.body.fontSize=Math.round(this.pref*this.base)+'%'};Efa_Fontsize06.prototype.getLinkHtml=function(direction,properties){var html=properties[0]+'<a href="#" onclick="efa_fontSize06.setSize('+direction+'); return false;"';html+=(properties[2])?'title="'+properties[2]+'"':'';html+=(properties[3])?'class="'+properties[3]+'"':'';html+=(properties[4])?'id="'+properties[4]+'"':'';html+=(properties[5])?'name="'+properties[5]+'"':'';html+=(properties[6])?'accesskey="'+properties[6]+'"':'';html+=(properties[7])?'onmouseover="'+properties[7]+'"':'';html+=(properties[8])?'onmouseout="'+properties[8]+'"':'';html+=(properties[9])?'onfocus="'+properties[9]+'"':'';return html+='>'+properties[1]+'</a>'+properties[10]};Efa_Fontsize06.prototype.getPref=function(){var pref=this.getCookie();if(pref){return parseInt(pref)}else return this.def};Efa_Fontsize06.prototype.setSize=function(direction){this.pref=(direction)?this.pref+(direction*this.increment):this.def;this.setCookie(this.pref);this.body.fontSize=Math.round(this.pref*this.base)+'%'};Efa_Fontsize06.prototype.getCookie=function(){var cookie=cookieManager.getCookie();return(cookie)?cookie:false};Efa_Fontsize06.prototype.setCookie=function(cookieValue){return cookieManager.setCookie(cookieValue)};
if(version=="n3"){img4_7e09_0_n=new Image();img4_7e09_0_n.src="typo3temp/menu/84c8b3faa7.gif";img4_7e09_0_h=new Image();img4_7e09_0_h.src="typo3temp/menu/7a6288f7ce.gif";img327_7e09_1_n=new Image();img327_7e09_1_n.src="typo3temp/menu/c207b49f50.gif";img327_7e09_1_h=new Image();img327_7e09_1_h.src="typo3temp/menu/0c9f406b04.gif";img328_7e09_2_n=new Image();img328_7e09_2_n.src="typo3temp/menu/e64f06f6cc.gif";img328_7e09_2_h=new Image();img328_7e09_2_h.src="typo3temp/menu/6549eac701.gif";img40_7e09_3_n=new Image();img40_7e09_3_n.src="typo3temp/menu/4b5cb8a6bd.gif";img40_7e09_3_h=new Image();img40_7e09_3_h.src="typo3temp/menu/a70594501e.gif";img64_7e09_4_n=new Image();img64_7e09_4_n.src="typo3temp/menu/1c2fee2a07.gif";img64_7e09_4_h=new Image();img64_7e09_4_h.src="typo3temp/menu/b3fd99e29c.gif";img2_7e09_5_n=new Image();img2_7e09_5_n.src="typo3temp/menu/3d12e9607a.gif";img2_7e09_5_h=new Image();img2_7e09_5_h.src="typo3temp/menu/02dddbc7f1.gif";img348_7e09_6_n=new Image();img348_7e09_6_n.src="typo3temp/menu/e90cc82aee.gif";img348_7e09_6_h=new Image();img348_7e09_6_h.src="typo3temp/menu/c7c62f6e5c.gif";img352_7e09_7_n=new Image();img352_7e09_7_n.src="typo3temp/menu/d866b8f923.gif";img352_7e09_7_h=new Image();img352_7e09_7_h.src="typo3temp/menu/66c761c78d.gif";img349_7e09_8_n=new Image();img349_7e09_8_n.src="typo3temp/menu/38ec64bbc3.gif";img349_7e09_8_h=new Image();img349_7e09_8_h.src="typo3temp/menu/c9bf7fe3d7.gif";img350_7e09_9_n=new Image();img350_7e09_9_n.src="typo3temp/menu/5f14e6a9b7.gif";img350_7e09_9_h=new Image();img350_7e09_9_h.src="typo3temp/menu/fcd8327250.gif";img280_7e09_10_n=new Image();img280_7e09_10_n.src="typo3temp/menu/2547f974d9.gif";img280_7e09_10_h=new Image();img280_7e09_10_h.src="typo3temp/menu/073204a626.gif"};
function over(name,imgObj){if(version=="n3"&&document[name]){document[name].src=eval(name+"_h.src")}else if(document.getElementById&&document.getElementById(name)){document.getElementById(name).src=eval(name+"_h.src")}else if(imgObj)imgObj.src=eval(name+"_h.src")}
function out(name,imgObj){if(version=="n3"&&document[name]){document[name].src=eval(name+"_n.src")}else if(document.getElementById&&document.getElementById(name)){document.getElementById(name).src=eval(name+"_n.src")}else if(imgObj)imgObj.src=eval(name+"_n.src")};var efa_default=82,efa_increment=15,efa_smaller=['','','Decrease font size','font-smaller','','','','','','',''],efa_reset=['','','Reset font size','font-reset','','','','','','',''],efa_bigger=['','','Increase font size','font-bigger','','','','','','',''],efa_fontSize06=new Efa_Fontsize06(efa_increment,efa_bigger,efa_reset,efa_smaller,efa_default);

