$(function() {
											
$('#pickup-container').tabs({
    fxFade:true,
    fxAutoHeight:true,
    tabStruct:'div>div'
		}
);

$("#introduction > li > a").find("+ ul").slideUp(1);
$("#introduction > li > a").click(function() {
	$(this).find("+ ul").slideToggle("slow");
});

});

//RITSUMEXバナーカウントダウン
function bannerChange() {
		var	i;
		var	month;
		var	day;
		var	today;

		var	maxFile = 12;

		var	date = new Date();
		var	graphics_data = new Array(maxFile);
		var	graphics_path = new Array(maxFile);
		var	graphics_width = new Array(maxFile);
		var	graphics_height = new Array(maxFile);
		var	graphics_alt = new Array(maxFile);
		var	graphics_class = new Array(maxFile);
		var	graphics_url = new Array(maxFile);

		if ((month = (date.getMonth() + 1)) < 10) {
			month = "0" + month;
		}
		else {
			month += "";
		}

		if ((day = date.getDate()) < 10) {
			day = "0" + day;
		}
		else {
			day += "";
		}

		today = month + day;

		graphics_data[0] = "0227";
		graphics_path[0] = "global/images/spacer.gif";
		graphics_width[0] = "1";
		graphics_height[0] = "1";
		graphics_alt[0] = "dummy";
		graphics_class[0] = "non-banner";
		graphics_url[0] = "./index_j.html";

		graphics_data[1] = "0228";
		graphics_path[1] = "images/jukensei_mar_countdown01.gif";
		graphics_width[1] = "177";
		graphics_height[1] = "267";
		graphics_alt[1] = "バナー：まだ出願できるの知ってる？";
		graphics_class[1] = "banner";
		graphics_url[1] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/ippan/index.htm";

		graphics_data[2] = "0229";
		graphics_path[2] = "images/jukensei_mar_countdown02.gif";
		graphics_width[2] = "177";
		graphics_height[2] = "267";
		graphics_alt[2] = "バナー：志願者速報は要チェック！";
		graphics_class[2] = "banner";
		graphics_url[2] = "http://www.ritsumei.ac.jp/ritsnet/sigansya-sokuhou/sokuhou.html";

		graphics_data[3] = "0301";
		graphics_path[3] = "images/jukensei_mar_countdown03.gif";
		graphics_width[3] = "177";
		graphics_height[3] = "267";
		graphics_alt[3] = "バナー：郵送とインターネットで願書受付中。";
		graphics_class[3] = "banner";
		graphics_url[3] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/08net_syutsugan/index.html";

		graphics_data[4] = "0302";
		graphics_path[4] = "images/jukensei_mar_countdown04.gif";
		graphics_width[4] = "177";
		graphics_height[4] = "267";
		graphics_alt[4] = "バナー：まだまだ願書受付中。";
		graphics_class[4] = "banner";
		graphics_url[4] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/ippan/index.htm";

		graphics_data[5] = "0303";
		graphics_path[5] = "images/jukensei_mar_countdown05.gif";
		graphics_width[5] = "177";
		graphics_height[5] = "267";
		graphics_alt[5] = "バナー：志願者速報は要チェック！";
		graphics_class[5] = "banner";
		graphics_url[5] = "http://www.ritsumei.ac.jp/ritsnet/sigansya-sokuhou/sokuhou.html";

		graphics_data[6] = "0304";
		graphics_path[6] = "images/jukensei_mar_countdown06.gif";
		graphics_width[6] = "177";
		graphics_height[6] = "267";
		graphics_alt[6] = "バナー：郵送とインターネットで願書受付中。";
		graphics_class[6] = "banner";
		graphics_url[6] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/08net_syutsugan/index.html";

		graphics_data[7] = "0305";
		graphics_path[7] = "images/jukensei_mar_countdown07.gif";
		graphics_width[7] = "177";
		graphics_height[7] = "267";
		graphics_alt[7] = "バナー：郵送出願いよいよ明日締切！";
		graphics_class[7] = "banner";
		graphics_url[7] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/ippan/index.htm";

		graphics_data[8] = "0306";
		graphics_path[8] = "images/jukensei_mar_countdown08.gif";
		graphics_width[8] = "177";
		graphics_height[8] = "267";
		graphics_alt[8] = "バナー：郵送出願本日締切！";
		graphics_class[8] = "banner";
		graphics_url[8] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/ippan/nittei/index.htm#04";

		graphics_data[9] = "0307";
		graphics_path[9] = "images/jukensei_mar_countdown09.gif";
		graphics_width[9] = "177";
		graphics_height[9] = "267";
		graphics_alt[9] = "バナー：インターネット出願本日締切！";
		graphics_class[9] = "banner";
		graphics_url[9] = "http://www.ritsumei.ac.jp/ritsnet/nyushi/08net_syutsugan/index.html";

		graphics_data[10] = "0308";
		graphics_path[10] = "global/images/spacer.gif";
		graphics_width[10] = "1";
		graphics_height[10] = "1";
		graphics_alt[10] = "dummy";
		graphics_class[10] = "non-banner";
		graphics_url[10] = "./index_j.html";

		graphics_data[10] = "0309";
		graphics_path[10] = "global/images/spacer.gif";
		graphics_width[10] = "1";
		graphics_height[10] = "1";
		graphics_alt[10] = "dummy";
		graphics_class[10] = "non-banner";
		graphics_url[10] = "./index_j.html";

		graphics_data[11] = "0310";
		graphics_path[11] = "global/images/spacer.gif";
		graphics_width[11] = "1";
		graphics_height[11] = "1";
		graphics_alt[11] = "dummy";
		graphics_class[11] = "non-banner";
		graphics_url[11] = "./index_j.html";



		for (i = 0; i < maxFile; i++) {
			if (graphics_data[i] > today) {
				if (i == 0) {
					i = maxFile;
				}
				break;
			}
		}
		i--;
		
		myStr = new String('');
		myStr+= '<ul class="ritsumex">';
		myStr+= '<li>';
		myStr+= '<a href='+ graphics_url[i] +' class="popup" onclick="javascript:urchinTracker(\'/トップページ/センター試験後期型カウントダウンバナーRits Net\');" onkeypress="javascript:urchinTracker(\'/トップページ/カウントダウンバナーRits Net\');">';
		myStr+= '<img src='+ graphics_path[i] +' alt='+ graphics_alt[i] +' class='+ graphics_class[i] +' width='+ graphics_width[i] +' height='+ graphics_height[i] +' \/>';
		myStr+= '<\/a>';
		myStr+= '<\/li>';
		myStr+= '<\/ul>';
		
		document.open();
		document.write(myStr);
		document.close();
		//document.write("<img src=\"" + graphics_path[i] + "\" />");

	}


//右クリック禁止
	var Mac   = navigator.userAgent.indexOf("Mac") != -1   ? true : false;
	function mdown(e) {
	if (navigator.appName == "Microsoft Internet Explorer") {
		//Mac版IE５ではコマンドキーを使ったショートカットでソースを見ることができます。
		if (event.button == 2 || (Mac && (event.ctrlKey || event.keyCode == 91))) {
			alert("右クリックはご利用できません。");
			return(false);
		}
	  } else if (navigator.appName == "Netscape") {
		if (e.which == 3 || e.modifiers == 2 || e.ctrlKey) {
			alert("右クリックはご利用できません。");
			return false;
	    }
	  } 
	}

	function noright(){
		alert("右クリックはご利用できません。");
		return false;
	}


	document.oncontextmenu = noright;

	if (document.all && (Mac || ! document.getElementById)) {
		document.onmousedown = mdown;
		document.onkeydown = mdown;
	} else if (document.layers) {
		window.captureEvents(Event.MOUSEDOWN | Event.modifiers | Event.KEYDOWN);
		window.onmousedown = mdown;
		window.onkeydown = mdown;
	} else if(navigator.userAgent.indexOf("Netscape6")!=-1){
		//onmousedownだとalertが表示されますが、
		//同時にデフォルトのコンテクストメニューも表示されてしまいます。
		//なのでonmouseupを使います
  		document.onmouseup = mdown; 
		document.onkeydown = mdown;
}

