/* kyo.com ver:1.3 */

function OpenNavi(Lang){
	if (parent.frames.length != 0){
		if (Lang=="J") parent.frames['F'].location.href="/x-menu-j.html";
		if (Lang=="E") parent.frames['F'].location.href="/x-menu.html";
		if (Lang=="F") parent.frames['F'].location.href="/x-menu-f.html";
	}
}


function agrandir(picSize){
if(!picSize) picSize="width=670,height=670";
window.open(this.href,this.target,picSize,"toolbar=0,menubar=0,location=0,directories=0,status=no");
}


function OpenWin(fileN){
window.open(fileN,'COMMENT',"height=180,width=520,scrollbars=yes,resizable=yes,toolbar=0,menubar=0,location=0,directories=0,status=1,alwaysRaised");
}


function OpenPhoto(picN,Fwin,picSize){
if(!picSize) picSize="width=670,height=670";
settings=',"toolbar=0,menubar=0,location=0,directories=0,status=1,'+picSize+',scrollbars=yes,resizable=1,alwaysRaised"';
window.open(picN,Fwin,settings);
}


function sona(fileN){
var fichier=("/redirect/www.amazon.co.jp/exec/obidos/clipserve/"+fileN+".ra");
//location.href = fichier;
window.open(fichier,'sound',"height=160,width=160,scrollbars=no,resizable=no,toolbar=0,menubar=0,location=0,directories=0,status=0");
}

function showhide(id){
	if(document.getElementById){
		if(document.getElementById(id).style.display=="none"){
			document.getElementById(id).style.display="block";
		}else{
			document.getElementById(id).style.display="none";
		}
	}
}

function showhide2(id){

	var imgObj=("i"+id);
	var mid=("m"+id);
	imgOpen=("/img/p2-.gif");
	imgClose=("/img/p2+.gif");

	if(document.getElementById){
		if(document.getElementById(mid).style.display=="none"){
			document.getElementById(mid).style.display="block";
			document.images[imgObj].src=(imgOpen);
		}else{
			document.getElementById(mid).style.display="none";
			document.images[imgObj].src=(imgClose);
		}
	}
}


function showhides(id){

	var mid=("m" + id);

	if(document.getElementById){
		if(document.getElementById(mid).style.display=="none"){
			document.getElementById(mid).style.display="block";
		}else{
			document.getElementById(mid).style.display="none";
		}
	}
}

function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
((anchor.getAttribute("rel") == "external nofollow") || (anchor.getAttribute("rel") == "nofollow external") || (anchor.getAttribute("rel") == "external")))
anchor.target = "_blank";
}
}
window.onload = externalLinks;
