//winoepn
function winopen(url,w,h,n) {
	var winName = n;
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + ((screen.width - w) / 2);
	var Top     = ',top='    + ((screen.height- h) / 2);
	var Option = ',status=0,menubar=0,scrollbars=0,resizable=0';
	var features = Width + Height + Left + Top + Option;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}

//function Infoopen(url) {
//	var w		=450;
//	var h		=550;
//	var winName = 'information';
//	var Width   = 'width='   + w;
//	var Height  = ',height=' + h;
//	var Left    = ',left='   + ((screen.width - w) / 2);
//	var Top     = ',top='    + ((screen.height- h) / 2);
//	var Option = 'scrollbars=0,resizable=0,status=1,toolbar=0,menubar=0,';
//	var features = Option + Width + Height + Left + Top;
//	winName = window.open(url,winName,features);
//	if (window.focus) {
//		winName.focus();
//	}
//}

function Wopen(url) {
	var w		=760;
	var h		=530;
	var winName = 'shopcart';
	var Width   = 'width='   + w;
	var Height  = ',height=' + h;
	var Left    = ',left='   + ((screen.width - w) / 2);
	var Top     = ',top='    + ((screen.height- h) / 2);
	var Option = 'scrollbars=1,resizable=1,status=1,toolbar=1,menubar=1,';
	var features = Option + Width + Height + Left + Top;
	winName = window.open(url,winName,features);
	if (window.focus) {
		winName.focus();
	}
}

function onImg(iName,str)
{
	document.images[iName].src = str;
}

//gallery
var ms = navigator.appVersion.indexOf("MSIE");
var ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
var nesc = navigator.appName.lastIndexOf("Netscape"); //一致した位置(0)を返す
var nesc4 = (nesc >= 0) && (parseInt(navigator.appVersion.substring(0,2)) >= 4);

function fullwin(){
	if (nesc4){
    	newwindow = window.open("./gallery.html","kayanogallery",
"scrollbars,width=" + window.screen.width + ",height=" + window.screen.height);
		newwindow.moveTo(0,0);
		newwindow.focus();

	}else if (ie4){
		window.open("./gallery.html","kayanogallery","status=0,fullscreen=yes");

	}else{
		location.href="./gallery.html";
	}
}
