function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// ########## Open New Window for JoKaye Collection
function openJokaye(num) {
	
	// 2006 A/W
	if(num == 1) {
		url = "collection/2006aw/jokaye/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	
	// 2007S/S
	} else {
		url = "collection/2007ss/jokaye/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	}
	
	str = "'screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h + "'";
	MM_openBrWindow(url,'gallery',str);
}

// ########## Open New Window for Saviours Collection
function openSaviours(num) {
	
	// 2006 A/W
	if(num == 1) {
		url = "collection/2006aw/saviours/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	
	// 2007S/S
	} else {
		url = "collection/2007ss/saviours/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	}
	
	str = "'screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h + "'";
	MM_openBrWindow(url,'gallery',str);
}

// ########## Open New Window for UKO Collection 
function openUko(num) {
	
	// 2006 A/W
	if(num == 1) {
		url = "collection/2006aw/uko/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	
	// 2007S/S
	} else {
		url = "collection/2007ss/uko/index.html";
		w = 476;
		h = 580;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
	}
	
	str = "'screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h + "'";
	MM_openBrWindow(url,'gallery',str);
}



function openGallery(num) {
	w = 476;
	h = 580;
	x = (screen.width - w) / 2;
	y = (screen.height - h) / 2;
	str = "'screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h + "'";
	if(num==1) {
		w = 330;
		h = 270;
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
		str = "'screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",width=" + w + ",height=" + h + "'";
		MM_openBrWindow('http://revois.jp/jun2/jokaye.mov','gallery',str);
	} else if(num==2) {
		MM_openBrWindow('gallery/saviours/index.html','gallery',str);
	} else {
		MM_openBrWindow('gallery/uko/index.html','gallery',str);
	}
}
