// JavaScript Document
// Page scroll
function slowdownScroll() {
   if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
      sctop = document.body.parentNode.scrollTop;
   }
   else if(window.pageYOffset){
      sctop = window.pageYOffset;
   } else {
      sctop = document.body.scrollTop;
   }

   if(sctop){
      scup = Math.ceil(sctop*.2);
      scrollBy(0,-scup);
      if (sctop-scup) setTimeout("slowdownScroll()",10);
   }
}

// Banner group
function bnT(){
document.write("<div id='banner'>");
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'")
document.write(" codebase='http://download.macromedia.com/pub/shockwave/cabs/")
document.write("flash/swflash.cab'")
document.write(" width=394 height=50>")
document.write("<param name=movie value='/ban.swf'>")
document.write("<param name=quality value=high>")
document.write("<embed src='/ban.swf' quality=high ")
document.write(" width=394 height=50")
document.write(" type='application/x-shockwave-flash' ")
document.write("pluginspage='http://www.macromedia.com/go/getflashplayer'>")
document.write("</embed>")
document.write("</object>")
document.write("</div>");
}

function topbnT(){
document.write("<div id='banner'>");
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'")
document.write(" codebase='http://download.macromedia.com/pub/shockwave/cabs/")
document.write("flash/swflash.cab'")
document.write(" width=394 height=50>")
document.write("<param name=movie value='/ban.swf'>")
document.write("<param name=quality value=high>")
document.write("<embed src='/ban.swf' quality=high ")
document.write(" width=394 height=50")
document.write(" type='application/x-shockwave-flash' ")
document.write("pluginspage='http://www.macromedia.com/go/getflashplayer'>")
document.write("</embed>")
document.write("</object>")
document.write("</div>");
}

// Menu group
function menuT(){
document.write("<div id='menu'>");
//document.write("<p id='bn03'><a href='https://secure03.chicappa.jp/~chicappa.jp-creatorsmarket/entry/index.php'>出展申し込み</a></p>");
//document.write("<p class='menu_list'>クリマに参加・出展しよう！</p>");
document.write("<p id='bn03B'><a href='/entrylist/'>出展者リスト</a></p>");
document.write("<p class='menu_list'>VOL.22の一覧です。ご参照下さい</p>");
document.write("<p id='bn04'><a href='/about/'>クリマとは？</a></p>");
document.write("<p id='bn05'><a href='/howto/'>出展するには</a></p>");
document.write("<div id='underline'><p id='bn06'><a href='/outline/'>開催概要</a></p></div>");
document.write("<div id='underline'><p id='bn16'><a href='/ny/'>ニューヨークエキシビジョン報告</a></p></div>");
document.write("<div id='underline'><p id='bn10'><a href='/old/'>過去のクリマ</a></p></div>");
document.write("<p id='bn07'><a href='/faq/entry.html'>出展に関するQ＆A</a></p>");
document.write("<p id='bn08'><a href='/faq/attendee.html'>来場に関するQ＆A</a></p>");
document.write("<div id='underline'><p id='bn09'><a href='https://secure03.chicappa.jp/~chicappa.jp-creatorsmarket/inquiry/index.php'>お問いあわせ</a></p></div>");
document.write("<p id='bn13'><a href='/mail/'>クリマ通信</a></p>");
document.write("<div id='underline'><p class='menu_list'>クリマ通信でクリマ情報通になろう！</p></div>");
document.write("<p id='bn15'>クリマオンラインショップ</p>");
document.write("<p class='menu_list'>COMING SOON..</p>");
document.write("<p class='menu_text'>出店方法や参加料金、配送方法など諸々問題をクリアしてから、オープンしたいと考えており、遅れております。</p>");
document.write("<p class='menu_text'>スミマセン！</p>");
document.write('</div>');
}

// Open Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/* preload images */
function preloadImages() {
	var d = document;
	if (d.images) {
		if (!d.p) d.p = new Array();
		var i, j = d.p.length, a = preloadImages.arguments;
		for (i = 0; i < a.length; i++)
		if (a[i].indexOf("#")) {
			d.p[j] = new Image();
			d.p[j++].src = a[i];
		}
	}
}
