//TOPページのウィンドウ操作

function Openjapanese(){

    win=window.open("japanese/index_frame.html","new","width=820,height=540");

    win.focus(); 

win.moveTo(50,50);

}



function Openchinese(){

    win=window.open("chinese/index_frame.html","new","width=820,height=540");

win.moveTo(50,50);

}



function Openenglish(){

    win=window.open("english/index_frame.html","new","width=820,height=540");

	win.moveTo(50,50);

}



function OpenNancyClient(){

    win=window.open("NC_dl/index.html","new","width=820,height=540");

	win.moveTo(50,50);

}



//Messaging Deliver の画像表示01

function Openimg01(){

    win1=window.open("contents_management_img01.html","new1","width=820,height=540");

    win1.moveTo(50,100);

    win1.focus(); 

}



//Messaging Deliver の画像表示02

function Openimg02(){

    win2=window.open("contents_management_img02.html","new1","width=820,height=540");

    win2.moveTo(50,100);

    win2.focus(); 

}



//Map画像表示

function Openimg03(){

    win3=window.open("map_img01.html","new1","width=820,height=540");

    win3.moveTo(50,100);

    win3.focus(); 

}



//右クリック禁止

var message=""; 

function clickIE() {

	if (document.all) {

		(右クリックは禁止です。);return false;

	}

} 



function clickNS(e) {

	if(document.layers||(document.getElementById&&!document.all)) {

		if (e.which==2||e.which==3) {

			(右クリックは禁止です。);return false;

		}

	}

} 

if (document.layers) {

	document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;

}else{

	document.onmouseup=clickNS;document.oncontextmenu=clickIE;

} 





// 画像のプリロードを行ないます

function HpbImgPreload()

{

  var appVer=parseInt(navigator.appVersion);

  var isNC=(document.layers && (appVer >= 4)); // Netscape Navigator 4.0 or later

  var isIE=(document.all    && (appVer >= 4)); // Internet Explorer  4.0 or later

  if (isNC || isIE)

  {

    if (document.images)

    {

      var imgName = HpbImgPreload.arguments[0];

      var cnt;

      swImg[imgName] = new Array;

      for (cnt = 1; cnt < HpbImgPreload.arguments.length; cnt++)

      {

        swImg[imgName][HpbImgPreload.arguments[cnt]] = new Image();

        swImg[imgName][HpbImgPreload.arguments[cnt]].src = HpbImgPreload.arguments[cnt];

      }

    }

  }

}



// Imageオブジェクトを探します

function HpbImgFind(doc, imgName){

	for (var i=0; i < doc.layers.length; i++){

		var img = doc.layers[i].document.images[imgName];

		if (!img) img = HpbImgFind(doc.layers[i], imgName);

    	if (img) return img;

  	}

  	return null;

}



// 画像を入れ換えます

function HpbImgSwap(imgName, imgSrc){

	var appVer=parseInt(navigator.appVersion);

  	var isNC=(document.layers && (appVer >= 4)); // Netscape Navigator 4.0 or later

  	var isIE=(document.all    && (appVer >= 4)); // Internet Explorer  4.0 or later

  	if (isNC || isIE) {

  		if (document.images) {

  			var img = document.images[imgName];

      		if (!img) img = HpbImgFind(document, imgName);

      		if (img) img.src = imgSrc;

    	}

  	}

}

var swImg; swImg=new Array;