// DimpsWeb用DefaultJavaScript ver1.02

// 環境変数を取り込む
ver = navigator.appVersion.charAt(0);
ie = 0, nn = 0;
if (navigator.appName == "Netscape") nn = 1;
if (navigator.appName == "Microsoft Internet Explorer") ie = 1;

var siteUrl = "http://www.dimps.co.jp/";

// ロールオーバー処理 ( Dreamweaverより抜粋(C)Macromedia )
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) { //v3.0
  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); 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];}
}

// ネスケの自動リロード対処
// Netscape4.x以前のブラウザでは、リサイズ後は全面書き換えが必要
function DP_reload() {
if ( nn && ver < 5 ) history.go(0);
}
// ネスケの場合メッセージを表示
function DP_nnMessage( mes ) {
  if ( nn == 0 ) mes ="";
  document.write( mes ); 
}

// ウインドウのサイズを指定して開く
function mg_01a(){
         window.open("mg_01a.html","_blank","width=500,height=364");
}
function mg_01b(){
         window.open("mg_01b.html","_blank","width=500,height=364");
}
function mg_01c(){
         window.open("mg_01c.html","_blank","width=500,height=364");
}
function mg_03a(){
         window.open("mg_03a.html","_blank","width=500,height=364");
}
function mg_03b(){
         window.open("mg_03b.html","_blank","width=500,height=364");
}
function mg_03c(){
         window.open("mg_03c.html","_blank","width=500,height=364");
}
function rdt_01(){
         window.open("01rdt_01.html","_blank","width=500,height=364");
}
function rdt_02(){
         window.open("01rdt_02.html","_blank","width=500,height=364");
}
function rdt_03(){
         window.open("01rdt_03.html","_blank","width=500,height=364");
}
function rdt_04(){
         window.open("01rdt_04.html","_blank","width=500,height=364");
}
function npa_01(){
         window.open("02npa_01.html","_blank","width=500,height=364");
}
function npa_02(){
         window.open("02npa_02.html","_blank","width=500,height=364");
}
function npa_03(){
         window.open("02npa_03.html","_blank","width=500,height=364");
}
function veg_01(){
         window.open("03veg_01.html","_blank","width=500,height=364");
}
function veg_02(){
         window.open("03veg_02.html","_blank","width=500,height=364");
}
function veg_03(){
         window.open("03veg_03.html","_blank","width=500,height=364");
}
function veg_04(){
         window.open("03veg_04.html","_blank","width=500,height=364");
}
function next_01(){
         window.open("04next_01.html","_blank","width=500,height=364");
}
function next_02(){
         window.open("04next_02.html","_blank","width=500,height=364");
}
function next_03(){
         window.open("04next_03.html","_blank","width=500,height=364");
}
function skill_popo(){
         window.open("skill_popo.html","_blank","width=500,height=350");
}
function tournament(){
         window.open("tournament.html","_blank","width=500,height=350");
}
function compil(){
         window.open("compil.html","_blank","width=500,height=350");
}
function compil_02(){
         window.open("compil_02.html","_blank","width=500,height=350");
}
