function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function setOpacity(layName,arg) {
//arg は 0透明 1不透明
//n4やmac-e4などopacity未対応は0以下で代替処理としてhiddenする
var ua = navigator.userAgent;

if( window.opera ) return; //o6,o7
if( document.layers )       //n4
	   var oj = document.layers[layName];
else if( document.all )            //e4,e5,e6
	   var oj = document.all(layName).style;
else if( document.getElementById ) //n6,n7,m1,s1
	   var oj =document.getElementById(layName).style;

if(document.layers ||
   ua.indexOf('Mac_PowerPC') !=-1 && document.all ||
   ua.indexOf('Safari') !=-1 ) {   //n4,mac-e4,mac-e5,s1
	//opacityの使えないブラウザ用代替処理
	if(arg>0)       oj.visibility='visible';
	else if(arg<=0) oj.visibility='hidden';
} else if(document.all) {          //win-e4,win-e5,win-e6
	document.all(layName).style.filter="alpha(opacity=0)";
	document.all(layName).filters.alpha.Opacity  = (arg * 100);
} else if(ua.indexOf('Gecko')!=-1) //n6,n7,m1
	document.getElementById(layName).style.MozOpacity = arg;
}



/*　・カードゲーム・・・マジック→遊戯王→ヴァイスシュヴァルツ→ガンダムWAR→SUNRISE CRUSADE→Chaos TCG→Lycee-リセ-→Chaos TCG→デュエルマスターズ→ディメンションゼロ→その他のカードゲー ム
　・アーケードカード・・・WCCF→三国志大戦→ロード オブ ヴァーミリオン→BBH→悠久の車輪→GCB→アクエリ オルタナティブ */


function mmLoadMenus() {
  if (window.mm_menu_0526145706_0) return;
                      window.mm_menu_0526145706_0 = new Menu("root",110,18,"",12,"#000000","#FFFFFF","#CCCCCC","#0066CC","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0526145706_0.addMenuItem("マジック","location='/ver2/magic_index.php'");
  mm_menu_0526145706_0.addMenuItem("遊戯王","location='/ver2/yugioh_index.php'");
  mm_menu_0526145706_0.addMenuItem("ヴァイスシュバルツ","location='/ver2/ws_index.php'");   
  mm_menu_0526145706_0.addMenuItem("ヴィクトリースパーク","location='/ver2/vs_index.php'");     
  mm_menu_0526145706_0.addMenuItem("ガンダムWAR","location='/ver2/gundamwar_index.php'");
  mm_menu_0526145706_0.addMenuItem("プレシャスメモリーズ","location='/ver2/pm_index.php'");
  mm_menu_0526145706_0.addMenuItem("SUNRISE CRUSADE","location='/ver2/sunrise_index.php'");
  mm_menu_0526145706_0.addMenuItem("Chaos TCG","location='/ver2/chaos_index.php'");
  mm_menu_0526145706_0.addMenuItem("Lycee&nbsp;-リセ-","location='/ver2/lycee_index.php'");
  mm_menu_0526145706_0.addMenuItem("デュエルマスターズ","location='/ver2/duel_index.php'");
  mm_menu_0526145706_0.addMenuItem("ディメイション&nbsp;ゼロ","location='/ver2/dimension_index.php'");
  mm_menu_0526145706_0.addMenuItem("その他カードゲーム","location='/ver2/etc_index.php'");
//  mm_menu_0526145706_0.addMenuItem("VSシステム","location='/ver2/vs_system_index.php'");
  mm_menu_0526145706_0.addMenuItem("アクセサリー","location='/ver2/supply_index.php'");
   mm_menu_0526145706_0.hideOnMouseOut=true;
   mm_menu_0526145706_0.bgColor='#555555';
   mm_menu_0526145706_0.menuBorder=1;
   mm_menu_0526145706_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0526145706_0.menuBorderBgColor='#777777';
window.mm_menu_0526150011_0 = new Menu("root",110,18,"",12,"#000000","#FFFFFF","#FFFF99","#FF9900","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0526150011_0.addMenuItem("WCCF","location='/ver2/wccf_index.php'");
  mm_menu_0526150011_0.addMenuItem("DQモンスターバトル","location='/ver2/dqmb_index.php'");
  mm_menu_0526150011_0.addMenuItem("三国志大戦","location='/ver2/sangokushi_index.php'");
  mm_menu_0526150011_0.addMenuItem("戦国大戦","location='/ver2/sengoku_index.php'");
  mm_menu_0526150011_0.addMenuItem("LoV","location='/ver2/lov_index.php'");
  mm_menu_0526150011_0.addMenuItem("BBH","location='/ver2/bbh_index.php'"); 
  mm_menu_0526150011_0.addMenuItem("悠久の車輪","location='/ver2/yuukyu_index.php'");
  mm_menu_0526150011_0.addMenuItem("GCB","location='/ver2/gcb_index.php'");
  mm_menu_0526150011_0.addMenuItem("アクセサリー","location='/ver2/supply_index.php'");
   mm_menu_0526150011_0.hideOnMouseOut=true;
   mm_menu_0526150011_0.bgColor='#555555';
   mm_menu_0526150011_0.menuBorder=1;
   mm_menu_0526150011_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0526150011_0.menuBorderBgColor='#777777';
  window.mm_menu_0526150125_0 = new Menu("root",110,18,"",12,"#000000","#FFFFFF","#CCFFCC","#339966","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0526150125_0.addMenuItem("ボーイズフィギュア","location='/ver2/garage_index.php'");
  mm_menu_0526150125_0.addMenuItem("美少女フィギュア","location='/ver2/garagegirl_index.php'");
  mm_menu_0526150125_0.addMenuItem("ガンダム系","location='/ver2/garagegundam_index.php'");
  mm_menu_0526150125_0.addMenuItem("コレクション系","location='/ver2/garagecollection_index.php'");
  mm_menu_0526150125_0.addMenuItem("コレクション系バラ","location='/new/figure.htm'");
   mm_menu_0526150125_0.hideOnMouseOut=true;
   mm_menu_0526150125_0.bgColor='#555555';
   mm_menu_0526150125_0.menuBorder=1;
   mm_menu_0526150125_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0526150125_0.menuBorderBgColor='#777777';
  window.mm_menu_0526150403_0 = new Menu("root",110,18,"",12,"#000000","#FFFFFF","#CCCCCC","#666666","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0526150403_0.addMenuItem("プラモデル","location='/ver2/plamodel_index.php'");
   mm_menu_0526150403_0.hideOnMouseOut=true;
   mm_menu_0526150403_0.bgColor='#555555';
   mm_menu_0526150403_0.menuBorder=1;
   mm_menu_0526150403_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0526150403_0.menuBorderBgColor='#777777';
      window.mm_menu_0601121002_0 = new Menu("root",110,18,"",12,"#000000","#FFFFFF","#CC99FF","#663399","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0601121002_0.addMenuItem("メイジナイト","location='/new/mage.htm'");
  mm_menu_0601121002_0.addMenuItem("メックワォーリア","location='/new/mw.htm'");
  mm_menu_0601121002_0.addMenuItem("ヒーロークリックス","location='/new/hero.htm'");
  mm_menu_0601121002_0.addMenuItem("ダンジョンズ＆ドラゴンズ","location='/new/dragon.htm'");
  mm_menu_0601121002_0.addMenuItem("海外フィギュアゲーム","location='/new/forien.htm'");
  mm_menu_0601121002_0.addMenuItem("ボードゲーム","location='/new/boardgame.htm'");
   mm_menu_0601121002_0.hideOnMouseOut=true;
   mm_menu_0601121002_0.bgColor='#555555';
   mm_menu_0601121002_0.menuBorder=1;
   mm_menu_0601121002_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0601121002_0.menuBorderBgColor='#777777';

mm_menu_0601121002_0.writeMenus();
} // mmLoadMenus()  
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/****************************************************************	(C) www.dhtmlgoodies.com, September 2005

This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	

Terms of use:
You are free to use this script as long as the copyright message is kept intact. However, you may not
redistribute, sell or repost it without our permission.

Thank you!

www.dhtmlgoodies.com
Alf Magne Kalleland

***************************************************************/

function showTool_switch(e, d){
	
	var b=document.hide_balloon_form.hide_balloon_switch.value;
	document.hide_balloon_form.hide_balloon_switch.value=e;
	//alert(document.hide_balloon_form.hide_balloon_switch.value +' from ' +  b +' from ' +  d);
	
}

function showToolTip(e,text){
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	
	//alert(document.hide_balloon_form.hide_balloon_switch.value);
	if(document.hide_balloon_form.hide_balloon_switch.value==1) return false;
	
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	var leftPos = e.clientX -20;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -20    + st + 'px';
}	

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}
 

function showSwitch(e,b){ 
	
	var obj = document.getElementById(e);
	var obj2 = document.getElementById(b);
/*	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	var leftPos = e.clientX -20;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -20    + st + 'px';*/
	
	obj.style.top =obj2.style.top;
	obj.style.left =obj2.style.left;
	
}	

function moveToolTip(obj)
{
	/*
	alert(document.getElementById(obj).style.top+':'+document.getElementById(obj).style.left);
	document.getElementById('bubble_tooltip').style.top =document.getElementById(obj).style.top;
	document.getElementById('bubble_tooltip').style.left =document.getElementById(obj).style.left;
	*/
}
