function disable_links_outline() {
　　var blur = function () { this.blur() };
　　for (var i = 0; i < document.links.length; i++)
　　　　document.links[i].onfocus = blur;
}



function openNewWindow(el) {
window.open(el.href);
return false;
}



function GetHeight(Z,newZ)
{
if (document.height)
{
document.getElementById(Z).style.height = parent.frames[newZ].document.height +20 +"px" ;
}
else
{
document.getElementById(Z).style.height = parent.frames[newZ].document.body.scrollHeight +20 +"px";
}
}



function A_Li() {
	Sel=document.Link1.OP.selectedIndex;
	Ms=document.Link1.OP.options[Sel].value;
	location.href=Ms;
}

function A_Li2() {
	Sel=document.Link2.OP2.selectedIndex;
	Ms=document.Link2.OP2.options[Sel].value;
	location.href=Ms;
	}







function replaceEle(){
	if(document.getElementById){
		var obj = document.getElementById("menu2");
		obj.innerHTML = obj.innerHTML.replace(/<dt>/gi, '<dt onmouseover="popupMenu(this);" onmouseout="hiddenMenu(this);">');
		obj.innerHTML = obj.innerHTML.replace(/<li>/gi, '<li onmouseover="popupMenu(this);" onmouseout="hiddenMenu(this);">');
	}
}
	
function popupMenu( obj ){
	var menu2 = obj.getElementsByTagName("ul").item(0);
	if(menu2){
		menu2.style.display = "block";
	}
	
	if(obj.tagName.match(/li/i)){
		obj.style.backgroundImage = "url(../img/disco-menu-li-h.gif)";
		}
}
	
function hiddenMenu( obj ){
	var menu2 = obj.getElementsByTagName("ul").item(0);
	if(menu2){
		menu2.style.display = "none";
	}
	
	if(obj.tagName.match(/li/i)){
		obj.style.backgroundImage = "url(../img/disco-menu-li.gif)";
	}
	}




function openKSS(){

	var url = "https://secure1.quicca.com/~bgbcp/bgbcom.com/kanon/shop/pc/";

	window.open(url,"shop","width=800,height=600,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes");

}

function openNKS(){

	var url = "./shop.php";

	window.open(url,"shop.php","width=800,height=600,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes");

}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




opa=0;
opacnt=1;
timer=15;

function FadeInstr() {
    fade_inId = "fade_in";
    MyImg = document.getElementById(fade_inId);
    MyImg.style.visibility = "visible";
    FadeIn(fade_inId,opa);
}
function FadeIn(fade_inId,opa) {
    if (opa <= 100) {
        document.getElementById(fade_inId).style.filter = "alpha(opacity:"+opa+")";
        document.getElementById(fade_inId).style.opacity = opa/100;
        opa += opacnt;
        setTimeout("FadeIn('"+fade_inId+"',"+opa+")", timer);
        }
}

