﻿// JavaScript Document

/*@cc_on _d=document;eval('var document=_d')@*/

var userAgent = window.navigator.userAgent.toLowerCase();
var appVersion = window.navigator.appVersion.toLowerCase();
var os = navigator.userAgent.toLowerCase();


////////////////////////////////////////////////////////
//グローバルナビフォーカス用に文字列を追加
////////////////////////////////////////////////////////
jQuery(function(){
	h1className = jQuery("#contentsArea").attr("class");
	jQuery("#headerArea ul#gnav").addClass(h1className);
});


////★ロールオーバー処理

var overKey = '_over';////▲任意の値▲ オーバー時に使う画像名のキーを指定
var activeKey = '_over';////▲任意の値▲ アクティブ時に使う画像名のキーを指定
var selectHtmlTag = '#contentsArea a.btn img, #footerArea a.btn img, #headerArea [class!=logo] a img, input[type="image"],\
#footerArea li a img[class!=current], #contentsArea #tab a img, #popup a img, #contentsArea #tabTeam a img,\
#contentsArea #tabArchive a img, #contentsArea #sideArea p a img, #archivetop #sideA a img, #penantArea li a img, #mainWrap a.btn img';////▲任意の値▲対象となるタグ（img）を指定
////ロールオーバー処理から部分的に除外したい場合は、htmlに class="exception" を任意のHTMLタグに追加し、var selectHtmlTag の該当タグには [class!=exception] を追加する

jQuery(function(){
	jQuery(selectHtmlTag).each(function(){		
			
	jQuery(this).hover(
			function(){ ////★マウスオーバー時の処理
			
			srcPath = jQuery(this).attr("src");
			imgCutString = srcPath.slice(0, -4);
			imgSuffix = srcPath.replace(imgCutString, "");
			
				if(srcPath.lastIndexOf(overKey) == -1 && srcPath.lastIndexOf(activeKey) == -1) {
				//指定したタグのsrc要素内に変数overKeyを含まず、activeKeyも含まない場合
					newSrcPath = jQuery(this).attr("src").replace(imgSuffix , overKey + imgSuffix);
					jQuery(this).attr("src",newSrcPath);
				}
			},
			function(){ ////★マウスアウト時の処理
				if(srcPath.lastIndexOf(overKey) == -1 && srcPath.lastIndexOf(activeKey) == -1) {
					newSrcPath = jQuery(this).attr("src").replace(overKey + imgSuffix , imgSuffix);
					jQuery(this).attr("src",newSrcPath);
				}
			}
	);
	});
});
jQuery(window).unload(function(){});

////★読み込み時のアクティブ表示処理
var parentHtmlTag = '#headerArea ul#gnav, #tabArchive, #tabTeam, #tab';
////▲任意の値▲フォーカス用として画像のid名をclass名として挿入する場所に追加

jQuery(function(){	
	jQuery(parentHtmlTag).each(function(){
		parentsClassName = jQuery(this).attr("class").split( " " );
		
		if( parentsClassName != "" ) {
			
			srcPath = jQuery("img#" + parentsClassName).attr("src");
			imgCutString = srcPath.slice(0, -4);
			imgSuffix = srcPath.replace(imgCutString, "");
			
		newSrcPath = jQuery("img#" + parentsClassName).attr("src").replace(imgSuffix, activeKey + imgSuffix);
		jQuery("img#" + parentsClassName).attr("src",newSrcPath);
		
				var ua = navigator.userAgent;
				if(ua.indexOf("MSIE") != -1 && ua.indexOf("6.0") != -1) {
						var imgW = jQuery("img#" + parentsClassName).attr("width");
						var imgH = jQuery("img#" + parentsClassName).attr("height");
						jQuery("img#" + parentsClassName).width(imgW).height(imgH);
				}

		}
	})
});


////★ロールオーバー処理で使う画像のプリロード（変更不要）
jQuery(function() {
	var images = jQuery(selectHtmlTag);
	for (var i = 0; i < images.length; i++) {
		////★該当画像の数を取得してその数分くり返す
		var path = images[i].src;
		////★該当画像のパスを格納

		if(path.indexOf(overKey) == -1 && path.indexOf(activeKey) == -1) {
		////画像パスにoverKeyを含まず、且つactiveKeyも含まない場合
			var suffix = path.substr(path.lastIndexOf("."));
			////★該当画像の拡張子を格納
			var basename = path.replace(suffix,"");
			////★該当画像の拡張子を除いたパスを格納
			new Image().src = ( basename + overKey ) + suffix;
			////★「画像の拡張子を除いたパス + overKey + 拡張子」の画像を読み込み
			new Image().src = ( basename + activeKey ) + suffix;
			////★「画像の拡張子を除いたパス + activeKey + 拡張子」の画像を読み込み
		}
	}
});

////★IE6用の透過pngの処理が必要ない場合は、以下を削除

var transmit = '#mainContentsArea .box970, #mainContentsArea,\
#top .box970, #mainContentsAreaBg .box970, #mainContentsAreaBg, #mainArea #newslist li, #sysArea #newslist li,\
#mainContentsArea .rankingArea .sideBox dl,\
#teams .adjustBox2 .set2 img, #teams .adjustBox2 .set3 img, #teams #infoBlock dt img, #teamsNav .box970,\
#mainContentsArea th.ranking img, #contentsArea.packset .adjustBox2 .set2 img, #contentsArea.packset .adjustBox2 .set3 img, #contentsArea #topicpath li';
////▲任意の値▲IE6で透過対象となるタグやクラス名などを指定


if(appVersion.indexOf("msie 6.0") > -1) {
	
	var ie6 = true;

    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 E={J:\'E\',Z:{},1E:7(){4(x.1l&&!x.1l[6.J]){x.1l.23(6.J,\'24:25-26-27:3\')}4(1F.11){1F.11(\'28\',7(){E=29})}},1G:7(){2 a=x.1m(\'8\');x.1H.1b.1n(a,x.1H.1b.1b);2 b=a.1o;b.1c(6.J+\'\\\\:*\',\'{12:2a(#1I#2b)}\');b.1c(6.J+\'\\\\:9\',\'Q:1p;\');b.1c(\'1J.\'+6.J+\'1K\',\'12:y; 1q:y; Q:1p; z-2c:-1; 1d:-1r; 1L:1M;\');6.1o=b},1N:7(){2 a=13.2d;4(13.1e.K(\'2e\')!=-1||13.1e.K(\'1q\')!=-1){E.1f(a)}4(13.1e==\'8.1s\'){2 b=(a.F.1s==\'y\')?\'y\':\'2f\';G(2 v M a.3){a.3[v].9.8.1s=b}}4(13.1e.K(\'14\')!=-1){E.1t(a)}},1t:7(a){4(a.F.14.K(\'2g\')!=-1){2 b=a.F.14;b=1u(b.2h(b.1v(\'=\')+1,b.1v(\')\')),10)/2i;a.3.N.9.8.14=a.F.14;a.3.C.I.2j=b}},15:7(a){2k(7(){E.1f(a)},1)},2l:7(a){2 b=a.1O(\',\');G(2 i=0;i<b.2m;i++){6.1o.1c(b[i],\'12:2n(E.1P(6))\')}},1f:7(a){a.S.1Q=\'\';6.1R(a);6.16(a);6.1t(a);4(a.O){6.1S(a)}},1T:7(b){2 c=6;2 d={2o:\'16\',2p:\'16\'};4(b.17==\'A\'){2 e={2q:\'15\',2r:\'15\',2s:\'15\',2t:\'15\'};G(2 a M e){d[a]=e[a]}}G(2 h M d){b.11(\'1w\'+h,7(){c[d[h]](b)})}b.11(\'2u\',6.1N)},1x:7(a){a.8.2v=1;4(a.F.Q==\'2w\'){a.8.Q=\'2x\'}},1S:7(a){2 b={\'2y\':P,\'2z\':P,\'2A\':P};G(2 s M b){a.3.N.9.8[s]=a.F[s]}},1R:7(a){4(!a.F){1g}U{2 b=a.F}G(2 v M a.3){a.3[v].9.8.1U=b.1U}a.S.18=\'\';a.S.19=\'\';2 c=(b.18==\'1V\');2 d=P;4(b.19!=\'y\'||a.O){4(!a.O){a.D=b.19;a.D=a.D.2B(5,a.D.1v(\'")\')-5)}U{a.D=a.1h}2 e=6;4(!e.Z[a.D]){2 f=x.1m(\'1J\');e.Z[a.D]=f;f.2C=e.J+\'1K\';f.S.1Q=\'12:y; Q:1p; 1y:-1r; 1d:-1r; 1q:y;\';f.11(\'2D\',7(){6.1i=6.2E;6.1j=6.2F;e.16(a)});f.1h=a.D;f.1W(\'1i\');f.1W(\'1j\');x.1X.1n(f,x.1X.1b)}a.3.C.I.1h=a.D;d=V}a.3.C.I.1w=!d;a.3.C.I.N=\'y\';a.3.N.9.8.18=b.18;a.S.19=\'y\';a.S.18=\'1V\'},16:7(e){2 f=e.F;2 g={\'W\':e.2G+1,\'H\':e.2H+1,\'w\':6.Z[e.D].1i,\'h\':6.Z[e.D].1j,\'L\':e.2I,\'T\':e.2J,\'1k\':e.2K,\'1z\':e.2L};2 i=(g.L+g.1k==1)?1:0;2 j=7(a,l,t,w,h,o){a.2M=w+\',\'+h;a.2N=o+\',\'+o;a.2O=\'2P,1Y\'+w+\',1Y\'+w+\',\'+h+\'2Q,\'+h+\' 2R\';a.8.1i=w+\'u\';a.8.1j=h+\'u\';a.8.1y=l+\'u\';a.8.1d=t+\'u\'};j(e.3.N.9,(g.L+(e.O?0:g.1k)),(g.T+(e.O?0:g.1z)),(g.W-1),(g.H-1),0);j(e.3.C.9,(g.L+g.1k),(g.T+g.1z),(g.W),(g.H),1);2 k={\'X\':0,\'Y\':0};2 m=7(a,b){2 c=P;2S(b){1a\'1y\':1a\'1d\':k[a]=0;1A;1a\'2T\':k[a]=.5;1A;1a\'2U\':1a\'2V\':k[a]=1;1A;1I:4(b.K(\'%\')!=-1){k[a]=1u(b)*.2W}U{c=V}}2 d=(a==\'X\');k[a]=2X.2Y(c?((g[d?\'W\':\'H\']*k[a])-(g[d?\'w\':\'h\']*k[a])):1u(b));4(k[a]==0){k[a]++}};G(2 b M k){m(b,f[\'2Z\'+b])}e.3.C.I.Q=(k.X/g.W)+\',\'+(k.Y/g.H);2 n=f.30;2 p={\'T\':1,\'R\':g.W+i,\'B\':g.H,\'L\':1+i};2 q={\'X\':{\'1B\':\'L\',\'1C\':\'R\',\'d\':\'W\'},\'Y\':{\'1B\':\'T\',\'1C\':\'B\',\'d\':\'H\'}};4(n!=\'1D\'){2 c={\'T\':(k.Y),\'R\':(k.X+g.w),\'B\':(k.Y+g.h),\'L\':(k.X)};4(n.K(\'1D-\')!=-1){2 v=n.1O(\'1D-\')[1].31();c[q[v].1B]=1;c[q[v].1C]=g[q[v].d]}4(c.B>g.H){c.B=g.H}e.3.C.9.8.1Z=\'20(\'+c.T+\'u \'+(c.R+i)+\'u \'+c.B+\'u \'+(c.L+i)+\'u)\'}U{e.3.C.9.8.1Z=\'20(\'+p.T+\'u \'+p.R+\'u \'+p.B+\'u \'+p.L+\'u)\'}},1P:7(a){a.8.12=\'y\';4(a.17==\'32\'||a.17==\'33\'||a.17==\'34\'){1g}a.O=V;4(a.17==\'35\'){4(a.1h.21().K(/\\.22$/)!=-1){a.O=P;a.8.1L=\'1M\'}U{1g}}U 4(a.F.19.21().K(\'.22\')==-1){1g}2 b=E;a.3={N:{},C:{}};2 c={9:{},I:{}};G(2 r M a.3){G(2 e M c){2 d=b.J+\':\'+e;a.3[r][e]=x.1m(d)}a.3[r].9.36=V;a.3[r].9.37(a.3[r].I);a.38.1n(a.3[r].9,a)}a.3.C.9.39=\'y\';a.3.C.I.3a=\'3b\';a.3.N.I.1w=V;b.1T(a);b.1x(a);b.1x(a.3c);b.1f(a)}};3d{x.3e("3f",V,P)}3g(r){}E.1E();E.1G();',62,203,'||var|vml|if||this|function|style|shape|||||||||||||||||||||px|||document|none||||image|vmlBg|DD_belatedPNG|currentStyle|for||fill|ns|search||in|color|isImg|true|position||runtimeStyle||else|false||||imgSize||attachEvent|behavior|event|filter|handlePseudoHover|vmlOffsets|nodeName|backgroundColor|backgroundImage|case|firstChild|addRule|top|propertyName|applyVML|return|src|width|height|bLW|namespaces|createElement|insertBefore|styleSheet|absolute|border|10000px|display|vmlOpacity|parseInt|lastIndexOf|on|giveLayout|left|bTW|break|b1|b2|repeat|createVmlNameSpace|window|createVmlStyleSheet|documentElement|default|img|_sizeFinder|visibility|hidden|readPropertyChange|split|fixPng|cssText|vmlFill|copyImageBorders|attachHandlers|zIndex|transparent|removeAttribute|body|0l|clip|rect|toLowerCase|png|add|urn|schemas|microsoft|com|onbeforeunload|null|url|VML|index|srcElement|background|block|lpha|substring|100|opacity|setTimeout|fix|length|expression|resize|move|mouseleave|mouseenter|focus|blur|onpropertychange|zoom|static|relative|borderStyle|borderWidth|borderColor|substr|className|onload|offsetWidth|offsetHeight|clientWidth|clientHeight|offsetLeft|offsetTop|clientLeft|clientTop|coordsize|coordorigin|path|m0|l0|xe|switch|center|right|bottom|01|Math|ceil|backgroundPosition|backgroundRepeat|toUpperCase|BODY|TD|TR|IMG|stroked|appendChild|parentNode|fillcolor|type|tile|offsetParent|try|execCommand|BackgroundImageCache|catch'.split('|'),0,{}))
    DD_belatedPNG.fix(transmit);


////★IE6用の透過pngのロールオーバー処理が必要ない場合は、以下を削除
jQuery(function(){
  if(ie6 && IEPNGFIX) {
    jQuery(selectHtmlTag).each(function() {
      var hrefpath = jQuery(this).attr("src");
      if(hrefpath.indexOf( overKey + ".png") == -1 && hrefpath.indexOf( activeKey + ".png") == -1 && hrefpath.indexOf(".png") != -1) {
      ////★「_over.png」が無くて「_active.png」が無くて「.png」がある場合
        var imgout = jQuery(this).attr("src");
        var imgovr = imgout.replace(".png", overKey + ".png");
		var imgW = jQuery(this).attr("width");
		var imgH = jQuery(this).attr("height");
		jQuery(this).width(imgW).height(imgH);
        IEPNGFIX.hover(this, imgovr);
      }
	  else {
        IEPNGFIX.fix(this);
      }
    });
  }
});
////▲任意の値▲以下の「img/blank.gif」の部分を格納場所に合わせてパス変更する
if(typeof IEPNGFIX=='undefined'){var IEPNGFIX={blank:'/img/common/blank.gif',filter:'DXImageTransform.Microsoft.AlphaImageLoader',fixit:function(elem,src,method){if(elem.filters[this.filter]){var filter=elem.filters[this.filter];filter.enabled=true;filter.src=src;filter.sizingMethod=method}else{elem.style.filter='progid:'+this.filter+'(src="'+src+'",sizingMethod="'+method+'")'}},fixwidth:function(elem){if(elem.currentStyle.width=='auto'&&elem.currentStyle.height=='auto'){elem.style.width=elem.offsetWidth+'px'}},fixchild:function(elem,recursive){if(!/MSIE (5\.5|6\.|7\.)/.test(navigator.userAgent))return;for(var i=0,n=elem.childNodes.length;i<n;i++){var childNode=elem.childNodes[i];if(childNode.style){if(childNode.style.position){childNode.style.position=childNode.style.position}else{childNode.style.position='relative'}}if(recursive&&childNode.hasChildNodes()){this.fixchild(childNode,recursive)}}},fix:function(elem){if(!/MSIE (5\.5|6\.|7\.)/.test(navigator.userAgent))return;var bgImg=elem.currentStyle.backgroundImage||elem.style.backgroundImage;if(elem.tagName=='IMG'||elem.tagName=='INPUT'){if((/\.png$/i).test(elem.src)){this.fixwidth(elem);this.fixit(elem,elem.src,'scale');elem.src=this.blank;elem.runtimeStyle.behavior='none'}}else if(bgImg&&bgImg!='none'){if(bgImg.match(/^url[("']+(.*\.png)[)"']+$/i)){var s=RegExp.$1;this.fixwidth(elem);elem.style.backgroundImage='none';this.fixit(elem,s,'scale');if(elem.tagName=='A'&&elem.style){if(!elem.style.cursor){elem.style.cursor='pointer'}}this.fixchild(elem);elem.runtimeStyle.behavior='none'}}},hover:function(elem,hvImg){var bgImg=elem.style.backgroundImage;if(!bgImg&&elem.currentStyle)bgImg=elem.currentStyle.backgroundImage;if((elem.tagName=='IMG'||elem.tagName=='INPUT')&&hvImg){var image=elem.src;elem.onmouseover=function(){elem.src=hvImg;IEPNGFIX.fix(elem)};elem.onmouseout=function(){elem.src=image;IEPNGFIX.fix(elem)}}else if(bgImg&&bgImg!='none'&&hvImg){elem.onmouseover=function(){elem.style.backgroundImage='url('+hvImg+')';IEPNGFIX.fix(elem)};elem.onmouseout=function(){elem.style.backgroundImage=bgImg;IEPNGFIX.fix(elem)}}IEPNGFIX.fix(elem)}}}

}
////★ここまで削除




//Mac safari/Mac firefox微調整用

if(userAgent.indexOf("safari") != -1 && os.indexOf("mac") != -1) {
	jQuery(function(){
		jQuery(".box970 table.archive th a").css("height","60px");
		jQuery(".box970 table.archive td").css("font-size","90%");
		jQuery("#mainContentsArea #central.rankingArea .sideBox dl dt").css("padding-bottom","17px");
	});
}
else if (userAgent.indexOf("mozilla") != -1 && os.indexOf("mac") != -1){
	jQuery(function(){
		jQuery(".box970 table.archive th a").css("height","70px");
		jQuery(".box970 table.archive td").css("font-size","90%");
		jQuery("#mainContentsArea #central.rankingArea .sideBox dl dt").css("padding-bottom","16px");
	    jQuery("#open .logo").css("padding-left","5px").css("margin-top","21px");
	    jQuery("#open .header").css("padding-top","0px");
	    jQuery("#open .mb").css("margin-bottom","3px");

	});
};













////////////////////////////////////////////////////////
//scroll ※IE6/OPERA除外
////////////////////////////////////////////////////////
	
//if (userAgent.indexOf("msie") > -1) {
	if (appVersion.indexOf("msie 6.0") > -1 || userAgent.indexOf("opera") > -1) {
	//IE/OPERAの場合 処理なし
	}
//}
	else {

//ここから
//IE/OPERA以外の場合「jQuery Easing Scroll」
//jQuery Easing Scroll - http://moto-mono.net/easingScroll/
jQuery.fn.easingScroll=function(b){var d=$.extend({easing:"swing",duration:500},b),c=$.support.boxModel?navigator.appName.match(/Opera/)?"html":"html,body":"body";if(isNaN(d.duration)==null){if(d.duration.match(/fast/)){d.duration=210;}else{if(d.duration.match(/normal/)){d.duration=410;}else{if(d.duration.match(/slow/)){d.duration=610;}}}}$(this).each(function(){if(this.hash&&$(this.hash).length>0&&this.href.match(new RegExp(location.href.split("#")[0]))){$(this).click(function(e){$(c).queue([]).stop();var a=this.hash;var f=$(a).offset();$(c).animate({scrollTop:f.top,scrollLeft:f.left},{duration:d.duration,easing:d.easing});e.preventDefault();e.stopPropagation();});}});$(document).click(function(a){$(c).queue([]).stop();});};
jQuery.easing.jswing=jQuery.easing.swing;jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(j,i,b,c,d){return jQuery.easing[jQuery.easing.def](j,i,b,c,d);},easeInQuad:function(j,i,b,c,d){return c*(i/=d)*i+b;},easeOutQuad:function(j,i,b,c,d){return -c*(i/=d)*(i-2)+b;},easeInOutQuad:function(j,i,b,c,d){if((i/=d/2)<1){return c/2*i*i+b;}return -c/2*((--i)*(i-2)-1)+b;},easeInCubic:function(j,i,b,c,d){return c*(i/=d)*i*i+b;},easeOutCubic:function(j,i,b,c,d){return c*((i=i/d-1)*i*i+1)+b;},easeInOutCubic:function(j,i,b,c,d){if((i/=d/2)<1){return c/2*i*i*i+b;}return c/2*((i-=2)*i*i+2)+b;},easeInQuart:function(j,i,b,c,d){return c*(i/=d)*i*i*i+b;},easeOutQuart:function(j,i,b,c,d){return -c*((i=i/d-1)*i*i*i-1)+b;},easeInOutQuart:function(j,i,b,c,d){if((i/=d/2)<1){return c/2*i*i*i*i+b;}return -c/2*((i-=2)*i*i*i-2)+b;},easeInQuint:function(j,i,b,c,d){return c*(i/=d)*i*i*i*i+b;},easeOutQuint:function(j,i,b,c,d){return c*((i=i/d-1)*i*i*i*i+1)+b;},easeInOutQuint:function(j,i,b,c,d){if((i/=d/2)<1){return c/2*i*i*i*i*i+b;}return c/2*((i-=2)*i*i*i*i+2)+b;},easeInSine:function(j,i,b,c,d){return -c*Math.cos(i/d*(Math.PI/2))+c+b;},easeOutSine:function(j,i,b,c,d){return c*Math.sin(i/d*(Math.PI/2))+b;},easeInOutSine:function(j,i,b,c,d){return -c/2*(Math.cos(Math.PI*i/d)-1)+b;},easeInExpo:function(j,i,b,c,d){return(i==0)?b:c*Math.pow(2,10*(i/d-1))+b;},easeOutExpo:function(j,i,b,c,d){return(i==d)?b+c:c*(-Math.pow(2,-10*i/d)+1)+b;},easeInOutExpo:function(j,i,b,c,d){if(i==0){return b;}if(i==d){return b+c;}if((i/=d/2)<1){return c/2*Math.pow(2,10*(i-1))+b;}return c/2*(-Math.pow(2,-10*--i)+2)+b;},easeInCirc:function(j,i,b,c,d){return -c*(Math.sqrt(1-(i/=d)*i)-1)+b;},easeOutCirc:function(j,i,b,c,d){return c*Math.sqrt(1-(i=i/d-1)*i)+b;},easeInOutCirc:function(j,i,b,c,d){if((i/=d/2)<1){return -c/2*(Math.sqrt(1-i*i)-1)+b;}return c/2*(Math.sqrt(1-(i-=2)*i)+1)+b;},easeInElastic:function(o,m,p,a,b){var d=1.70158;var c=0;var n=a;if(m==0){return p;}if((m/=b)==1){return p+a;}if(!c){c=b*0.3;}if(n<Math.abs(a)){n=a;var d=c/4;}else{var d=c/(2*Math.PI)*Math.asin(a/n);}return -(n*Math.pow(2,10*(m-=1))*Math.sin((m*b-d)*(2*Math.PI)/c))+p;},easeOutElastic:function(o,m,p,a,b){var d=1.70158;var c=0;var n=a;if(m==0){return p;}if((m/=b)==1){return p+a;}if(!c){c=b*0.3;}if(n<Math.abs(a)){n=a;var d=c/4;}else{var d=c/(2*Math.PI)*Math.asin(a/n);}return n*Math.pow(2,-10*m)*Math.sin((m*b-d)*(2*Math.PI)/c)+a+p;},easeInOutElastic:function(o,m,p,a,b){var d=1.70158;var c=0;var n=a;if(m==0){return p;}if((m/=b/2)==2){return p+a;}if(!c){c=b*(0.3*1.5);}if(n<Math.abs(a)){n=a;var d=c/4;}else{var d=c/(2*Math.PI)*Math.asin(a/n);}if(m<1){return -0.5*(n*Math.pow(2,10*(m-=1))*Math.sin((m*b-d)*(2*Math.PI)/c))+p;}return n*Math.pow(2,-10*(m-=1))*Math.sin((m*b-d)*(2*Math.PI)/c)*0.5+a+p;},easeInBack:function(l,k,b,c,d,j){if(j==undefined){j=1.70158;}return c*(k/=d)*k*((j+1)*k-j)+b;},easeOutBack:function(l,k,b,c,d,j){if(j==undefined){j=1.70158;}return c*((k=k/d-1)*k*((j+1)*k+j)+1)+b;},easeInOutBack:function(l,k,b,c,d,j){if(j==undefined){j=1.70158;}if((k/=d/2)<1){return c/2*(k*k*(((j*=(1.525))+1)*k-j))+b;}return c/2*((k-=2)*k*(((j*=(1.525))+1)*k+j)+2)+b;},easeInBounce:function(j,i,b,c,d){return c-jQuery.easing.easeOutBounce(j,d-i,0,c,d)+b;},easeOutBounce:function(j,i,b,c,d){if((i/=d)<(1/2.75)){return c*(7.5625*i*i)+b;}else{if(i<(2/2.75)){return c*(7.5625*(i-=(1.5/2.75))*i+0.75)+b;}else{if(i<(2.5/2.75)){return c*(7.5625*(i-=(2.25/2.75))*i+0.9375)+b;}else{return c*(7.5625*(i-=(2.625/2.75))*i+0.984375)+b;}}}},easeInOutBounce:function(j,i,b,c,d){if(i<d/2){return jQuery.easing.easeInBounce(j,i*2,0,c,d)*0.5+b;}return jQuery.easing.easeOutBounce(j,i*2-d,0,c,d)*0.5+c*0.5+b;}});
	jQuery(function(){
		jQuery("a[href*='#']").easingScroll({
			easing: "linear",
			duration: 100
		});
	});
//ここまで
};


//放送スケジュールの箱
jQuery(function(){
	jQuery(".oneBox:odd").addClass("fr");
	jQuery(".oneBox:even").addClass("fl");
	jQuery("#lineup01 .lineup:odd").addClass("fr");
	jQuery("#lineup01 .lineup:even").addClass("fl");
	jQuery("#lineup02 .lineup:odd").addClass("fr");
	jQuery("#lineup02 .lineup:even").addClass("fl");
	jQuery("#lineup03 .lineup:odd").addClass("fr");
	jQuery("#lineup03 .lineup:even").addClass("fl");
	jQuery("#lineup04 .lineup:odd").addClass("fr");
	jQuery("#lineup04 .lineup:even").addClass("fl");
	jQuery("#lineup05 .lineup:odd").addClass("fr");
	jQuery("#lineup05 .lineup:even").addClass("fl");
	jQuery("#lineup06 .lineup:odd").addClass("fr");
	jQuery("#lineup06 .lineup:even").addClass("fl");
});



//////////////////////////////////////////////////////////
// jquery.flatheights.js Version: 2007-08-01
//////////////////////////////////////////////////////////

/*jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:1};(function($){var self=$.changeLetterSize;var ins=$('<ins>M</ins>').css({display:'block',visibility:'hidden',position:'absolute',padding:'0',top:'0'});var isChanged=function(){ins.appendTo('body');var size=ins[0].offsetHeight;ins.remove();if(self.currentSize==size)return false;self.currentSize=size;return true};$(isChanged);var observer=function(){if(!isChanged())return;$.each(self.handlers,function(i,handler){handler()})};self.addHandler=function(func){self.handlers.push(func);if(self.handlers.length==1){setInterval(observer,self.interval)}}})(jQuery);(function($){var sets=[];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height});set.css('height',maxHeight+'px')};jQuery.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this)}return this};$.changeLetterSize.addHandler(function(){$.each(sets,function(){this.height('auto');flatHeights(this)})})})(jQuery);
*/
//↓対象を指定
//jQuery(document).ready(function(){
//    jQuery('.packset p.adjsut').flatHeights();
//});

//高さを均一化する対象を指定（セレクターの後の数値はn個置きで揃える数を指定）
var flatary = [['.oneBox', 2],
				['#lineup01 .lineup', 2],
				['#lineup02 .lineup', 2],
				['#lineup03 .lineup', 2],
				['#lineup04 .lineup', 2],
				['#lineup05 .lineup', 2],
				['#lineup06 .lineup', 2],
				['.packset p.adjsut'],
				['#sysArea div']
			   ];


if(window.addEventListener){
	window.addEventListener('load',function(){
		var eq = new equalheight();
		eq.init();
		setInterval(eq.timer,1000);
	},false);
}else if(window.attachEvent){
	window.attachEvent('onload',function(){
		var eq = new equalheight();
		eq.init();
		setInterval(eq.timer,1000);
	});
}


function equalheight(){

	var currentSize = 0;
	var sets = [];
	var self = this;
	
	var ins = jQuery('<ins>M</ins>').css({
		display: 'block',
		visibility: 'hidden',
		position: 'absolute',
		padding: '0',
		top: '0'
	});
	
	equalheight.prototype.init = function(){
		for(var i=0; i<flatary.length; i++){
			if(flatary[i].length != 2){
				self.equalheights(jQuery(flatary[i][0]),'');
			}else{
				self.equalheights(jQuery(flatary[i][0]),flatary[i][1]);
			}
		}
	};
	
	equalheight.prototype.equalheights = function(obj, num){
		var temp = [];

		if(num != ''){
			obj.each(function(i) {
				temp.push(this);
				if(i % num == (num - 1)){
					sets.push(temp);
					temp = [];
				}
			});
			if (temp.length) sets.push(temp);
		} else {
			sets.push(obj);
		}
		jQuery.each(sets, function() {
			self.flatHeights(jQuery(this));
		});
		
	};
	
	equalheight.prototype.flatHeights = function(set){
		var maxHeight = 0;
		var maxpt = 0;
		var maxpb = 0;
		set.each(function(){
			var height = $(this).height();
			var padTop = $(this).css('padding-top');
			var padBtm = $(this).css('padding-bottom');
			
			padTop = parseFloat(padTop);
			padBtm = parseFloat(padBtm);
			
			if (height > maxHeight) maxHeight = height;
			if(padTop > maxpt) maxpt = padTop;
			if(padBtm > maxpb) maxpb = padBtm;
			
		});
		var userAgent = window.navigator.userAgent.toLowerCase();
		var total = maxHeight + maxpt + maxpb + 1;
		
		if (userAgent.indexOf("msie 6.0") > -1) {
			set.css({'height': total, 'padding-top':maxpt, 'padding-bottom':maxpb});
		}else{
			set.css({'height': maxHeight , 'padding-top':maxpt,'padding-bottom':maxpb});
		}
	};
	
	equalheight.prototype.timer = function(){
		ins.appendTo('body');
		var size = $(ins[0]).height();
		ins.remove();
		
		if(self.currentSize != size){
			jQuery.each(sets, function(){
				$(this).height('auto');
				self.flatHeights(jQuery(this));
			});
			self.currentSize = size;
		}
	
	}
		
	
	
}

/*if(window.addEventListener){
	window.addEventListener('load',function(){
		equalHeight2(jQuery('.oneBox'),2);
	},false);
}else if(window.attachEvent){
	window.attachEvent('onload',function(){
		equalHeight2(jQuery('.oneBox'),2);
	});
}

function equalHeight2(obj, num){
	var setting = function(){
		var sets = [], temp = [];

		if(typeof num != 'undefined'){
			obj.each(function(i) {
				temp.push(this);
				if(i % num == (num - 1)){
					sets.push(temp);
					temp = [];
				}
			});
			if (temp.length) sets.push(temp);
		} else {
			sets.push(obj);
		}
		jQuery.each(sets, function() {
			jQuery(this).flatHeights();
		});
	};
	
	var userAgent = window.navigator.userAgent.toLowerCase();
	if( userAgent.indexOf("safari") != -1 && userAgent.indexOf("chrome") == -1 ) {
		document.addEventListener( "DOMContentLoaded", setting(), false);
	} else if( userAgent.indexOf("opera") != -1){
		(function(){
			for (var i = 0; i < document.styleSheets.length; i++){
        		if (document.styleSheets[i].disabled) {
          			setTimeout( arguments.callee, 0 );
           			return;
				}
         	}
			setTimeout(setting(),10);
			
		})();

	} else{
		setting();
	}

}



//font-size拡縮対応
jQuery.changeLetterSize = {
	handlers : [],
	interval : 1000,
	currentSize: 0
};

(function(jQuery) {

	var self = jQuery.changeLetterSize;

	var ins = jQuery('<ins>M</ins>').css({
		display: 'block',
		visibility: 'hidden',
		position: 'absolute',
		padding: '0',
		top: '0'
	});

	var isChanged = function() {
		ins.appendTo('body');
		var size = $(ins[0]).height();
		ins.remove();
		if (self.currentSize == size) return false;
		self.currentSize = size;
		return true;
	};

	jQuery(isChanged);

	var observer = function() {
		if (!isChanged()) return;
		jQuery.each(self.handlers, function(i, handler) {
			handler();
		});
	};

	self.addHandler = function(func) {
		self.handlers.push(func);
		if (self.handlers.length == 1) {
			setInterval(observer, self.interval);
		}
	};

})(jQuery);


//以下高さ対応
(function(jQuery) {

	var sets = [];

	var flatHeights = function(set) {
		var maxHeight = 0;
		var maxpt = 0;
		var maxpb = 0;
		set.each(function(){
			var height = $(this).height();
			var padTop = $(this).css('padding-top');
			var padBtm = $(this).css('padding-bottom');
			
			padTop = parseFloat(padTop);
			padBtm = parseFloat(padBtm);
			
			if (height > maxHeight) maxHeight = height;
			if(padTop > maxpt) maxpt = padTop;
			if(padBtm > maxpb) maxpb = padBtm;
			
		});
		var userAgent = window.navigator.userAgent.toLowerCase();
		var total = maxHeight + maxpt + maxpb + 1;
		
		if (userAgent.indexOf("msie 6.0") > -1) {
			set.css({'height': total, 'padding-top':maxpt, 'padding-bottom':maxpb});
		} 
		else{
			set.css({'height': maxHeight , 'padding-top':maxpt,'padding-bottom':maxpb});
		}
		//set.css('height', maxHeight + 'px');
	};

	jQuery.fn.flatHeights = function() {
		if (this.length > 1) {
			flatHeights(this);
			sets.push(this);
		}
		return this;
	};
	
	jQuery.changeLetterSize.addHandler(function() {
		jQuery.each(sets, function() {
			this.height('auto');
			flatHeights(this);
		});
	});

})(jQuery);
*/

////////////////////////////////////////////////////////
// ボックス要素高さ揃えスクリプト
////////////////////////////////////////////////////////

/*-----------------------------------------*
 *  heightLine JavaScript Library beta4
 *  MIT-style license. 
 *  2007 Kazuma Nishihata 
 *  http://www.webcreativepark.net
 *-----------------------------------------*/



function heightLine(){this.className="heightLine";this.parentClassName="heightLineParent";reg=new RegExp(this.className+"-([a-zA-Z0-9-_]+)","i");objCN=new Array();var k=document.getElementsByTagName?document.getElementsByTagName("*"):document.all;for(var f=0;f<k.length;f++){var a=k[f].className.split(/\s+/);for(var d=0;d<a.length;d++){if(a[d]==this.className){if(!objCN["main CN"]){objCN["main CN"]=new Array()}objCN["main CN"].push(k[f]);break}else{if(a[d]==this.parentClassName){if(!objCN["parent CN"]){objCN["parent CN"]=new Array()}objCN["parent CN"].push(k[f]);break}else{if(a[d].match(reg)){var c=a[d].match(reg);if(!objCN[c]){objCN[c]=new Array()}objCN[c].push(k[f]);break}}}}}var h=document.createElement("div");var g=document.createTextNode("S");h.appendChild(g);h.style.visibility="hidden";h.style.position="absolute";h.style.top="0";document.body.appendChild(h);var b=h.offsetHeight;changeBoxSize=function(){for(var p in objCN){if(objCN.hasOwnProperty(p)){if(p=="parent CN"){for(var o=0;o<objCN[p].length;o++){var n=0;var q=objCN[p][o].childNodes;for(var m=0;m<q.length;m++){if(q[m]&&q[m].nodeType==1){q[m].style.height="auto";n=n>q[m].offsetHeight?n:q[m].offsetHeight}}for(var m=0;m<q.length;m++){if(q[m].style){var l=q[m].currentStyle||document.defaultView.getComputedStyle(q[m],"");var e=n;if(l.paddingTop){e-=l.paddingTop.replace("px","")}if(l.paddingBottom){e-=l.paddingBottom.replace("px","")}if(l.borderTopWidth&&l.borderTopWidth!="medium"){e-=l.borderTopWidth.replace("px","")}if(l.borderBottomWidth&&l.borderBottomWidth!="medium"){e-=l.borderBottomWidth.replace("px","")}q[m].style.height=e+"px"}}}}else{var n=0;for(var o=0;o<objCN[p].length;o++){objCN[p][o].style.height="auto";n=n>objCN[p][o].offsetHeight?n:objCN[p][o].offsetHeight}for(var o=0;o<objCN[p].length;o++){if(objCN[p][o].style){var l=objCN[p][o].currentStyle||document.defaultView.getComputedStyle(objCN[p][o],"");var e=n;if(l.paddingTop){e-=l.paddingTop.replace("px","")}if(l.paddingBottom){e-=l.paddingBottom.replace("px","")}if(l.borderTopWidth&&l.borderTopWidth!="medium"){e-=l.borderTopWidth.replace("px","")}if(l.borderBottomWidth&&l.borderBottomWidth!="medium"){e-=l.borderBottomWidth.replace("px","")}objCN[p][o].style.height=e+"px"}}}}}};checkBoxSize=function(){if(b!=h.offsetHeight){changeBoxSize();b=h.offsetHeight}};changeBoxSize();setInterval(checkBoxSize,1000);window.onresize=changeBoxSize}function addEvent(d,b,a){try{d.addEventListener(b,a,false)}catch(c){d.attachEvent("on"+b,a)}}addEvent(window,"load",heightLine);


//////////////////////////////////////////////////////////
//	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
//////////////////////////////////////////////////////////
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();



////////////////////////////////////////////////////////
// POPUPウインドウを開く 
////////////////////////////////////////////////////////
jQuery(function() {
				
	//カレンダー用
	jQuery('a.popup').click(function(){
		window.open(this.href, 'calendar', 'width=416,height=340,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=0'); 
		return false;
	});
	
	//フッター用
	jQuery('a.openPop').click(function(){
		window.open(this.href, 'calendar', 'width=820,height=750,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=0'); 
		return false;
	});
	
	//ツイッター用
	jQuery('p.tweet a').click(function(){
		window.open(this.href, 'calendar', 'width=550,height=420,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=0'); 
		return false;
	});
	
})

////////////////////////////////////////////////////////
// ウインドウを閉じる 
////////////////////////////////////////////////////////

jQuery(function() {
	jQuery('p.close a').click(function(){
		window.close(); 
		return false;
	});
})


//////////////////////////////////////////////////////////////////
// 「firstChild」追加スクリプト 
//////////////////////////////////////////////////////////////////

jQuery(function(){
	jQuery("#contentsArea #mainArea #newslist li:first").css("background-position","left -1px");
	jQuery("#contentsArea #sysArea #newslist li:first").css("background-position","left -1px");
});



