

//FLASHのアクティブX問題対策

//----------------------------------------------------------------------------------------------------

function Flash(){

document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='730' height='300'><param name=movie value='menu.swf'><param name=quality value=high><embed src='menu.swf' quality=high pluginspage='http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='730' height='300'></embed></object>");

}



//ここまで///////////////////////////////////////////////////////////////////////////////////////////



//次世代FLASHのアクティブX問題回避？

//----------------------------------------------------------------------------------------------------

function embedFlash(theURL,theX,theY,theBGColor){

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+theX+'" height="'+theY+'" id="mainMovie" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+theURL+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="'+theBGColor+'" /><embed src="'+theURL+'" loop="false" menu="false" quality="high" width="'+theX+'" height="'+theY+'" name="mainMovie" align="middle" allowScriptAccess="sameDomain" bgcolor="'+theBGColor+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');

}

//----------------------------------------------------------------------------------------------------

//サブウィンドウの表示

function openWin(theURL,theX,theY) { //v2.0

var mX=(screen.width/2)-theX;

var mY=(screen.height/2)-theY;

 var features="toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+theX+",height="+theY+",left="+mX+",top="+mY+"";

  window.open(theURL,"subWin",features);

}



//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) { //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];}

}



//ここまで///////////////////////////////////////////////////////////////////////////////////////////





//旧サブウィンドウの表示用スクリプト

function jump3(my_url)



{my_url=document.form1.sele1.selectedIndex;



my_url=document.form1.sele1.options[my_url].value;







if(my_url.charAt(0)==0)



parent.location.href=my_url.substring(2,my_url.length);



else if(my_url.charAt(0)==1)



parent.window.location=my_url.substring(2,my_url.length);



else if(my_url.charAt(0)==2)



window.open(my_url.substring(2,my_url.length),'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=620');



else if(my_url.charAt(0)==3)



window.open(my_url.substring(3,my_url.length),'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=380,height=200');







}







  function NewWindow(loc) {



      var wnd="NewWindow";



      var width='390';



      var height='350';



      var myWindow = window.open(loc, wnd, 'resizable=no,scrollbars=yes,status=0,width='+width+',height='+height);



      if (myWindow.focus!=null) {



          myWindow.focus();



      }



    }







	function NewWindow2(loc) {



      var wnd="NewWindow";



      var width='750';



      var height='620';



      var myWindow = window.open(loc, wnd, 'resizable=yes,scrollbars=yes,status=0,width='+width+',height='+height);



      if (myWindow.focus!=null) {



          myWindow.focus();



      }



    }







	function NewWindow3(loc) {



      var wnd="NewWindow";



      var width='500';



      var height='500';



      var myWindow = window.open(loc, wnd, 'resizable=yes,scrollbars=yes,status=0,width='+width+',height='+height);



      if (myWindow.focus!=null) {



          myWindow.focus();



      }



    }

//ここまで///////////////////////////////////////////////////////////////////////////////////////////


