/*
============================== CONTENTS ==============================

			1：初期設定
			2：target属性の代替
			3：プリロード
			4：ポップアップ
			99：デバッグ

====================================================================
*/

// :::::::: 初期設定 ::::::::

mainUrl = "";

// :::::::: target属性の代替 ::::::::
function wopen(url) {
	if (url) {
		opwin = window.open(url);
		opwin.focus();
	}
}

// :::::::: プリロード ::::::::
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);
}

 i=0;
imgw=0;
function openWin(img, imgtitle, w, h){
  if (i>0 && win1.closed == false){
      win1.close();
  }
  imgw++;
  win1=window.open("", "imgw", "resizable=yes,scrollbars=yes,width="+w+", height="+h);
  i++;
  with(win1.document){
    writeln("<html><head><title>"+imgtitle+"</title></head>");
    writeln("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
    writeln("<div align='center'><a href='#' onClick='window.close()'><img src='"+img+"' title='??????' alt='??????' border=0></a></div>");
    writeln("</body></html>");
  }
}

// :::::::: デバッグ ::::::::
function debug(){
	alert(accUrl);
}


// E N D

