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=""}}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 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 areaNav(c,b,a){if(!document.getElementById){return}if(a&&swc[b]==null){swc[b]=true}if(swc[b]){document.getElementById("treeBoxSubAra"+b).style.position="absolute";document.getElementById("treeBoxSubAra"+b).style.visibility="hidden";c.src="http://www.westatic.com/img/iconBoxPls.png";swc[b]=false}else{document.getElementById("treeBoxSubAra"+b).style.position="";document.getElementById("treeBoxSubAra"+b).style.visibility="visible";c.src="http://www.westatic.com/img/iconBoxMinus.png";swc[b]=true}return false}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}var imgW=130;var imgDN=5;var imgTN=1;var maxW=imgW*imgTN;var step=26;var mTime=8;var targetId="ImgCont";var imgCountId="ImgEBtnCnt";var startX=imgW*(imgDN-imgTN)/2;var posX=startX;var isInAction=false;var targetX;function imgExpInit(){imgTN=document.getElementById(imgCountId)?document.getElementById(imgCountId).value:1;imgTN=imgTN<19?++imgTN:imgTN;maxW=imgW*imgTN;startX=imgW*(imgDN-imgTN)/2;if(imgTN<4){startX=10}posX=startX;if(document.getElementById(targetId)){document.getElementById(targetId).style.width=maxW+"px";document.getElementById(targetId).style.left=startX+"px"}}function nextImgL(){if(isInAction||posX+imgW>0){return false}targetX=posX+imgW;moveImgL(imgW);window.setTimeout("setOpacityL()",mTime*5)}function nextImgR(){if(isInAction||posX-imgW<imgW*(imgDN-imgTN)){return false}targetX=posX-imgW;moveImgR(-imgW);window.setTimeout("setOpacityR()",mTime*5)}function moveImgL(a){isInAction=true;if(!a){a=targetX-posX}if(a>0){posX+=step;document.getElementById(targetId).style.left=posX+"px";window.setTimeout("moveImgL()",mTime)}else{isInAction=false}}function moveImgR(a){isInAction=true;if(!a){a=targetX-posX}if(a<0){posX-=step;document.getElementById(targetId).style.left=posX+"px";window.setTimeout("moveImgR()",mTime)}else{isInAction=false}}function setOpacityL(){if(posX+imgW>0){document.getElementById("ImgEBtnL").style.opacity=0.3;document.getElementById("ImgEBtnL").style.filter="alpha(opacity=30)"}document.getElementById("ImgEBtnR").style.opacity=1;document.getElementById("ImgEBtnR").style.filter="alpha(opacity=100)"}function setOpacityR(){if(posX-imgW<imgW*(imgDN-imgTN)){document.getElementById("ImgEBtnR").style.opacity=0.3;document.getElementById("ImgEBtnR").style.filter="alpha(opacity=30)"}document.getElementById("ImgEBtnL").style.opacity=1;document.getElementById("ImgEBtnL").style.filter="alpha(opacity=100)"}function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,false);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}addEvent(window,"load",imgExpInit);addEvent(window,"onload",imgExpInit);
