var cssMoji = "Small";function setActiveStyleSheet(title) {	var i, a, main;	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {			a.disabled = true;			if(a.getAttribute("title") == title) a.disabled = false;		}	}	if(title.indexOf("Small") != -1)		cssMoji = "Small";	if(title.indexOf("Middle") != -1)		cssMoji = "Middle";	if(title.indexOf("Large") != -1)		cssMoji = "Large";}function getActiveStyleSheet() {	var i, a;	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");	}	return null;}function getPreferredStyleSheet() {	var i, a;	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {		if(a.getAttribute("rel").indexOf("style") != -1		&& a.getAttribute("rel").indexOf("alt") == -1		&& a.getAttribute("title")		) return a.getAttribute("title");	}	return null;}function createCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}	else expires = "";	document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}window.onload = function(e) {//文字サイズ/*	$('fontsize').innerHTML = "<div id=\"mojisize\">文字の拡大縮小</div><a href=\"#\" id=\"btnFontSmall\">文字サイズ小</a><a href=\"#\" id=\"btnFontMiddle\">文字サイズ中</a><a href=\"#\" id=\"btnFontLarge\">文字サイズ大</a>";		var cookie = readCookie("style");	var title = cookie ? cookie : getPreferredStyleSheet();	setActiveStyleSheet(cssMoji);	Event.observe($('btnFontSmall') , 'click', function(e){setActiveStyleSheet('Small')}, false);	Event.observe($('btnFontMiddle'), 'click', function(e){setActiveStyleSheet('Middle')}, false);	Event.observe($('btnFontLarge') , 'click', function(e){setActiveStyleSheet('Large')}, false);*/	//角丸/*	var settings1 = { 		tl : { radius : 5 },		tr : { radius : 5 },		bl : { radius : 5 },		br : { radius : 5 },		antiAlias : true	};	curvyCorners(settings1, '#kadomaru1');	curvyCorners(settings1, '#kadomaru2');	curvyCorners(settings1, '#kadomaru3');*/	//topタブ		/*if (document.getElementById('tab') == true){*/	if (document.getElementById('tab')){		/*--setup--*/		tab.setup = {		   tabs: document.getElementById('tab').getElementsByTagName('li'),		   		   pages: [			  document.getElementById('event'),			  document.getElementById('lecture'),			  document.getElementById('planetarium')		   ]		}				tab.init();		/*--setup end--*/	}}window.onunload = function(e) {/*	var title = getActiveStyleSheet();	createCookie("style", title, 365);*/}//クッキー/*var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);*//* --------------------------------------------------------	FLASHの枠消-------------------------------------------------------- */function showFlash(file,width,height){	document.write('<object data="'+file+'" type="application/x-shockwave-flash" height="'+height+'" width="'+width+'">');	document.write('<param name="movie" value="'+file+'">');	document.write('<param name="wmode" value="transparent">');	document.write('<param name="quality" value="best">');	document.write('</object>');}/* --------------------------------------------------------	指定されたサイズのウィンドウを開く-------------------------------------------------------- */function OpenWin(file){	var w = window.open(file,"win1","width=750,height=800,resizable=yes,scrollbars=yes");	w.blur();	w.focus();}/* --------------------------------------------------------	ウィンドウを閉じる-------------------------------------------------------- */function closeWin(){	windows.close();}