/* ---------------------------------------------
  COP:MTG main scripts
------------------------------------------------
    File Name:	script.js
    Build:	2005/10/10
    Updated:	2010/04/22
    Author:	Wataru "Mr.Cid" Hosaka
--------------------------------------------- */

/* トップページ部分 */
	flag = false;
	function treemenu(tName) {
	    tMenu = document.getElementById(tName).style;
	    if (tMenu.display == 'none') tMenu.display = "block";
	    else tMenu.display = "none";
	}

/* Duel Information 部分 */
	function format(type,date) {
	    option="scrollbars=1,resizeable=0,width=630,height=480";
	    window.open("http://www.copmtg.net/material/format.php?type="+type+"&amp;date="+date+"&amp;popup=1",'format',option);
	}

/* MTG Materials 部分 */
	function cardtext(cardname) {
	    option="scrollbars=0,resizeable=0,width=630,height=320";
	    window.open("http://www.copmtg.net/material/cardtext.php?cardname="+cardname,'cardtext',option);
	}

/* Text Storage 部分 */
	function sorting(expansion,packid) {
	    option="scrollbars=1,resizeable=0,width=630,height=600";
	    window.open("http://www.copmtg.net/text/sorting/"+expansion+".php?packid="+packid,'sorting',option);
	}

/* And Etc... 部分 */
	function illusgallery(year,name) {
	    option="scrollbars=1,resizeable=0,width=630,height=600";
	    window.open(+year+"/"+name+".htm",'illus_gallery',option);
	}
