//画像切り替え
function changeIMG(imgNum,imgSrc) {document.images[imgNum].src = imgSrc;}


//サムネイル
var NewWin = null;

function OpenWin(p_title,p_src,img_width,img_height){

  	source = p_src;

	winwidth = img_width + 50;

	winheight = img_height + 80;

	if ((screen.width < winwidth ) || (screen.height - 40 < winheight)) {

		xscroll = "scrollbars=1,resizable=yes";

	} else {

		xscroll = "scrollbars=0,resizable=yes";

	}

	winwidth = (screen.width < winwidth) ? screen.width : winwidth;

	winheight = (screen.height - 40 < winheight) ? screen.height - 40 : winheight;



	if (NewWin != null) {

		NewWin.close();

		NewWin = null;

	}

	if (document.layers) {

		NewWin = window.open("","OshinoPhotoFrame","toolbar=no,location=no,status=no,menubar=no," + xscroll + ",width=" + winwidth + ",height=" + winheight + ",alwaysRaised=no,screenX=0,screenY=0");

	} 

	if (document.all) {

		NewWin = window.open("","ImgPreview","toolbar=no,location=no,status=no,menubar=no," + xscroll + ",width=" + winwidth + ",height=" + winheight + ",alwaysRaised=no,top=0,left=0");

	}

	NewWin.resizeTo(winwidth,winheight);

	NewWin.document.open();

	NewWin.document.write("<html><head><title>Vernal Hawaii Inc.</title></head>");

	NewWin.document.write("<body bgcolor=black><center>");

	NewWin.document.write("<img src=" + source + " width=" + img_width + " height=" + img_height + "><br>");

	NewWin.document.write("<table border=0 cellspacing=0 cellpadding=5 width=" + img_width + ">");

	NewWin.document.write("<tr valign=top><td>");

	NewWin.document.write("<font size=2 color='#FFFFFF' style='{font:12px}'>" + p_title + "</font>");

	NewWin.document.write("</td><td align=right>");

	NewWin.document.write("<form><input type=button value=close onclick=javascript:window.close()></form>");

	NewWin.document.write("</td></tr></table>");

	NewWin.document.write("</center></body></html>");

	NewWin.focus();

	NewWin.document.close();

}


/////////////////////////////////////

//右クリック禁止

var msg="(C) www.sa-ssy.com";
function NO() {
if (event.button==2||event.button==3) {
alert(msg);
}
}



if (document.images) {
	///////////////////////////////////////////////////
	// メインメニュー
	var imRi11=new Array();
	imRi11[0]=new Image(),imRi11[0].src="images/menubean1.gif";
	imRi11[1]=new Image(),imRi11[1].src="images/menubean.gif";
	///////////////////////////////////////////////////
}
