var scriptTopUrl="http://www.westatic.com/jsad/";function cbc(a,b){if(a){a.srcBgColor=a.style.backgroundColor;a.style.backgroundColor="#ffffdd";if(b){a.className=b}}}function bbc(a,b){if(a){a.style.backgroundColor=a.srcBgColor;if(b){a.className=b}}}function pt(a){window.status="";return true}function au(d,n){if(document.getElementById){var q=d.id.substring(1);var c="",b="",s,m,k;var l=n.target;if(l){s=l.id;m=l.parentNode;if(m){c=m.id;k=m.parentNode;if(k){b=k.id}}}else{k=n.srcElement;m=k.parentNode;if(m){c=m.id;s=k.id}}if(s==q||c==q||b==q){return true}location.href=document.getElementById(q).href;return false}}var ovCnt=0;function adHd(a){document.write('<script type="text/javascript" language="javascript" src="http://im.ov.yahoo.co.jp/js_flat/?'+a+'"><\/script>')}function adHdIni(){if(typeof zSr!="undefined"){ovCnt=zSr.length-6}}function adScS(a){document.write('<script type="text/javascript" language="javascript" src="'+scriptTopUrl+encodeURL(a)+'"><\/script>')}function adrd(b,d,f,h,g,a,e){document.write('<a href="'+(b+"&amp;u="+encodeURL(d)+"&amp;shu="+encodeURL(f)+"&amp;c="+h)+'" target="_blank" id="'+g+e+'">'+a+"</a>")}function adss(a,b,c){document.write('<img src="'+(a+"?u="+encodeURL(b)+"&amp;s="+encodeURL(c))+'" alt="">')}function encodeURL(e){var f="";var a="";var d="";for(var b=0;b<e.length;b++){f=e.charAt(b);a=e.charCodeAt(b);if(a==42||a==45||a==46||a==95||((a>=48)&&(a<=57))||((a>=65)&&(a<=90))||((a>=97)&&(a<=122))){d+=f}else{if(a==32){d+="+"}else{if((a>=0)&&(a<=127)){f="0"+a.toString(16);d+="%"+f.substr(f.length-2)}else{if(a>2097151){d+="%"+(240+((a&1835008)>>18)).toString(16);d+="%"+(128+((a&258048)>>12)).toString(16);d+="%"+(128+((a&4032)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}else{if(a>2047){d+="%"+(224+((a&61440)>>12)).toString(16);d+="%"+(128+((a&4032)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}else{d+="%"+(192+((a&1984)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}}}}}}return d}function cuFeedBack(b,c,a){b.href=c+"?query="+a;return true}function scSelect(){var a=document.getElementById("scList");window.location="#"+a.options[a.selectedIndex].value}function redirect(a,b){a.href=b;return true}var showBoxSwh=new Array(10);function showBox(c,b){if(!document.getElementById){return false}if(typeof b!="undefined"){showBoxSwh[c]=b}var a=document.getElementById(c);if(typeof a=="undefined"||a==null){return false}if(typeof showBoxSwh[c]!="undefined"&&showBoxSwh[c]){a.style.display="none";showBoxSwh[c]=false}else{a.style.display="block";showBoxSwh[c]=true}return false}function setQueryFocus(){var c=document.f||document.fh;if(!c){return}var b=c.query;if(b){b.focus();if(b.createTextRange){var a=b.createTextRange();a.select()}else{if(b.setSelectionRange){b.setSelectionRange(0,b.value.length)}}}}function setFormFocus(){var b=document.f||document.fh;if(!b){return}var a=b.query;if(a){a.focus();a.value=a.value}}function setFormBlank(){var b=document.f||document.fh;if(!b){return}var a=b.query;if(a){a.focus();a.value=""}}function cu(c,b){var a=getDestUrl(b);if(a&&a.length>0){c.href=a}return true}function ht(d,c){var a=getDestUrl(c);if(a&&a.length>0){location.href=a;return false}var b=getTrgtChildNode(d);if(b){location.href=b.href}return false}function htBS(o){var trgtNode=getTrgtChildNode(o);if(trgtNode){var func=trgtNode.onclick;if(func){eval(func())}}return false}function cdm(c,a,b){c.href=a+"&itm="+b;return true}function getDestUrl(c){var a="";if(c){var b=document.f||document.fh;if(b){if(window.encodeURIComponent){if(b.query.value.length>0){if(b.searchType!=null){a=c+"?searchType="+encodeURIComponent(b.searchType.value)+"&query="+encodeURIComponent(b.query.value)}else{a=c+"?query="+encodeURIComponent(b.query.value)}}}}}return a}function getTrgtChildNode(d){var a={};var e=d.childNodes;for(var b=0;b<e.length;++b){var c=e[b];if(c&&c.tagName&&c.tagName.toLowerCase()=="a"){a=c;break}}return a}rYea=new Array(2008,2009,2010,2011,2012);ys=new Array(10);ms=new Array(ys.length*12);function yea(c,e,b,a){if(!document.getElementById){return}if(ys[c]||(a&&ys[c]==null)){document.getElementById("month"+c).style.position="absolute";document.getElementById("month"+c).style.visibility="hidden";document.getElementById("year"+c).src="http://www.westatic.com/img/iconPlus.png";for(i=0;i<rYea.length;++i){for(j=0;j<12;++j){if(rYea[i]==2008&&j<8){continue}if(rYea[i]>e||(rYea[i]==e&&j>b)){break}var d=j+1;if(d<10){d="0"+d}document.getElementById("day"+rYea[i]+d).style.position="absolute";document.getElementById("day"+rYea[i]+d).style.visibility="hidden";document.getElementById("day"+rYea[i]+d).style.overflow="hidden";document.getElementById("day"+rYea[i]+d).style.height="0";document.getElementById("mon"+rYea[i]+d).src="http://www.westatic.com/img/iconPlus.png";ms[rYea[i]+d]=false}}ys[c]=false}else{document.getElementById("month"+c).style.position="";document.getElementById("month"+c).style.visibility="visible";document.getElementById("year"+c).src="http://www.westatic.com/img/iconMinus.png";ys[c]=true}return false}function mon(b,a){if(!document.getElementById){return}if(ms[b]||(a&&ms[b]==null)){document.getElementById("day"+b).style.position="absolute";document.getElementById("day"+b).style.visibility="hidden";document.getElementById("day"+b).style.overflow="hidden";document.getElementById("day"+b).style.height="0";document.getElementById("mon"+b).src="http://www.westatic.com/img/iconPlus.png";ms[b]=false}else{document.getElementById("day"+b).style.position="";document.getElementById("day"+b).style.visibility="visible";document.getElementById("day"+b).style.overflow="visible";document.getElementById("day"+b).style.height="230px";document.getElementById("day"+b).style.width="280px";document.getElementById("day"+b).style.margin="0 auto";document.getElementById("mon"+b).src="http://www.westatic.com/img/iconMinus.png";ms[b]=true}return false}function seltab(a){if(!document.getElementById){return}for(i=0;i<3;++i){if(i==a){document.getElementById("rankBox"+i).style.position="";document.getElementById("rankBox"+i).style.visibility="visible"}else{document.getElementById("rankBox"+i).style.position="absolute";document.getElementById("rankBox"+i).style.visibility="hidden"}}return false}CommonUtils={};CommonUtils.encodeURL=function(e){var f="";var a="";var d="";for(var b=0;b<e.length;b++){f=e.charAt(b);a=e.charCodeAt(b);if(a==42||a==45||a==46||a==95||((a>=48)&&(a<=57))||((a>=65)&&(a<=90))||((a>=97)&&(a<=122))){d+=f}else{if(a==32){d+="+"}else{if((a>=0)&&(a<=127)){f="0"+a.toString(16);d+="%"+f.substr(f.length-2)}else{if(a>2097151){d+="%"+(240+((a&1835008)>>18)).toString(16);d+="%"+(128+((a&258048)>>12)).toString(16);d+="%"+(128+((a&4032)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}else{if(a>2047){d+="%"+(224+((a&61440)>>12)).toString(16);d+="%"+(128+((a&4032)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}else{d+="%"+(192+((a&1984)>>6)).toString(16);d+="%"+(128+(a&63)).toString(16)}}}}}}return d};CommonUtils.decodeURL=function(e){var g,c,b,k,l,h,a,d;g="";for(c=0;c<e.length;c++){k=e.charAt(c);if(k=="+"){g+=" "}else{if(k!="%"){g+=k}else{h=0;d=1;while(true){l="";for(b=0;b<2;b++){sss=e.charAt(++c);if(((sss>="0")&&(sss<="9"))||((sss>="a")&&(sss<="f"))||((sss>="A")&&(sss<="F"))){l+=sss}else{--c;break}}a=parseInt(l,16);if(a<=127){h=a;d=1}if((a>=192)&&(a<=223)){h=a&31;d=2}if((a>=224)&&(a<=239)){h=a&15;d=3}if((a>=240)&&(a<=247)){h=a&7;d=4}if((a>=128)&&(a<=191)){h=(h<<6)+(a&63);--d}if(d<=1){break}if(e.charAt(c+1)=="%"){c++}else{break}}g+=String.fromCharCode(h)}}}return g};CommonUtils.desanitize=function(a){a=a.replace(/&amp;/g,"&");a=a.replace(/&gt;/g,">");a=a.replace(/&lt;/g,"<");a=a.replace(/&quot;/g,'"');a=a.replace(/&#39;/g,"'");return a};CommonUtils.sanitize=function(a){a=a.replace(/&/g,"&amp;");a=a.replace(/>/g,"&gt;");a=a.replace(/</g,"&lt;");a=a.replace(/"/g,"&quot;");a=a.replace(/'/g,"&#39;");return a};CommonUtils.hasFlashObj=function(){var a;try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(b){}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0){return true}else{if(a){return true}}return false};CommonUtils.clone=function(b){b=(function(){return this}).apply(b);switch(typeof b){case"function":return function(){return b.apply(this,arguments)};case"undefined":return b;case"object":if(b==null){return b}else{var a=function(){};a.prototype=b;var c=new a;switch(b.constructor){case String:case Number:case Boolean:if(c.toSource){c.toSource=function(){return"clone("+b.toSource.apply(b,arguments)+")/*require clone function*/"}}c.toString=function(){return b.toString.apply(b,arguments)};c.valueOf=function(){return b.valueOf.apply(b,arguments)}}return c}}};CommonUtils.cookie=function(b,k,o,l){if(typeof k!="undefined"){o=o||{};l=typeof l!="undefined"?l:true;if(k===null){k="";o.expires=-1}if(!l){k=k.replace(/\r?\n/g,"")}var e="";if(o.expires&&(typeof o.expires=="number"||o.expires.toUTCString)){var f;if(typeof o.expires=="number"){f=new Date();f.setTime(f.getTime()+(o.expires*24*60*60*1000))}else{f=o.expires}e="; expires="+f.toUTCString()}else{}var n=o.path?"; path="+(o.path):"";var g=o.domain?"; domain="+(o.domain):"";var a=o.secure?"; secure":"";document.cookie=[b,"=",(l?CommonUtils.encodeURL(k):k),e,n,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var m=document.cookie.split(";");for(var h=0;h<m.length;h++){var c=jQuery.trim(m[h]);if(c.substring(0,b.length+1)==(b+"=")){d=c.substring(b.length+1);break}}}return d}};CommonUtils.cookieEnabled=function(){return navigator.cookieEnabled==true};swc=new Array(50);function catNav(b,a){if(!document.getElementById){return}if(swc[a]){document.getElementById("treeBoxCat"+a).style.position="absolute";document.getElementById("treeBoxCat"+a).style.visibility="hidden";b.src="http://www.westatic.com/img/iconBoxPls.png";swc[a]=false}else{document.getElementById("treeBoxCat"+a).style.position="";document.getElementById("treeBoxCat"+a).style.visibility="visible";b.src="http://www.westatic.com/img/iconBoxMinus.png";swc[a]=true}return false}function subCatNav(b,a){if(!document.getElementById){return}if(swc[a]){document.getElementById("treeBoxCat"+a).style.display="none";b.innerHTML="▼カテゴリを表示";swc[a]=false}else{document.getElementById("treeBoxCat"+a).style.display="block";b.innerHTML="▲閉じる";swc[a]=true}return false}function catRNewNav(c,b,a){if(!document.getElementById){return}if(a&&typeof swc[b]=="undefined"){document.getElementById("treeBoxCat"+b).style.position="absolute";document.getElementById("treeBoxCat"+b).style.visibility="hidden";c.innerHTML="＋";swc[b]=false}else{if(swc[b]){document.getElementById("treeBoxCat"+b).style.position="absolute";document.getElementById("treeBoxCat"+b).style.visibility="hidden";c.innerHTML="＋";swc[b]=false}else{document.getElementById("treeBoxCat"+b).style.position="";document.getElementById("treeBoxCat"+b).style.visibility="visible";c.innerHTML="－";swc[b]=true}}return false}function Twimg(){var o="http://widgets.twimg.com/j/2/widget.js";var n=document.getElementsByTagName("head");var k=false;if(n&&n.length>0){var c=n[0];var b=c.childNodes;for(var e=0;e<b.length;++e){var a=b[e];if(a&&a.src&&a.src==o){k=true;break}}if(!k){var h=document.createElement("script");h.setAttribute("src",o);h.setAttribute("type","text/javascript");c.appendChild(h);k=true}}this.loaded=function(){return k};function d(p){if(!window.TWTR){return}var q=navigator.userAgent;if(navigator.userAgent.match(/MSIE\s([^;]*)/)){p()}else{if(window.addEventListener){window.addEventListener("load",p,false)}else{if(window.attachEvent){window.attachEvent("onload",p)}else{}}}}function m(){new TWTR.Widget({version:2,id:"twimg_profile",type:"profile",rpp:3,interval:6000,width:158,height:160,theme:{shell:{background:"#3e72a3",color:"#ffffff"},tweets:{background:"#ffffff",color:"#000000",links:"#00319b"}},features:{scrollbar:false,loop:false,live:false,hashtags:false,timestamp:true,avatars:false,behavior:"all"}}).render().setUser("weblio").start()}function l(){new TWTR.Widget({version:2,id:"twimg_index_side",type:"search",search:'"weblio -from:okamotohirano -from:Eitan_bot',interval:6000,title:"",subject:"「weblio」を含むツイート",width:298,height:350,theme:{shell:{background:"#c0d7f0",color:"#000000"},tweets:{background:"#ffffff",color:"#444444",links:"#00319b"}},features:{scrollbar:false,loop:true,live:true,hashtags:true,timestamp:true,avatars:true,behavior:"default"}}).render().start()}function g(){new TWTR.Widget({version:2,id:"twimg_index_side_ejje",type:"search",search:'"ejje.weblio.jp -from:okamotohirano -from:Eitan_bot',interval:6000,title:"",subject:"「weblio」英和辞典のツイート",width:298,height:350,theme:{shell:{background:"#feab17",color:"#fdfdf7"},tweets:{background:"#ffffff",color:"#444444",links:"#0066cc"}},features:{scrollbar:false,loop:true,live:true,hashtags:true,timestamp:true,avatars:true,behavior:"default"}}).render().start()}function f(){new TWTR.Widget({version:2,id:"twimg_index_side_thesaurus",type:"search",search:'"thesaurus.weblio.jp -from:okamotohirano -from:Eitan_bot',interval:6000,title:"",subject:"「weblio」類語辞典のツイート",width:298,height:350,theme:{shell:{background:"#5fb126",color:"#fdfdf7"},tweets:{background:"#ffffff",color:"#444444",links:"#0066cc"}},features:{scrollbar:false,loop:true,live:true,hashtags:true,timestamp:true,avatars:true,behavior:"default"}}).render().start()}this.showProfileWidget=function(){d(m)};this.showSearchWidget=function(){d(l)};this.showSearchWidgetEjje=function(){d(g)};this.showSearchWidgetThesaurus=function(){d(f)}};
