

mac=(navigator.appVersion.indexOf('Mac')!=-1)?true:false;
ie=(navigator.appName.charAt(0) == "M")?true:false;
var ua = navigator.userAgent
var saf = (ua.indexOf("Safari")!=-1)

document.write("<STYLE TYPE='text/css'><!--")






if(mac){
	if(ie || saf){
	//***FOR MAC IE / Safari
	//standard
	document.write(".s9{font-size:9px}")
	document.write(".s10{font-size:10px}")
	document.write(".s12{font-size:12px}")
	document.write(".s14{font-size:14px}")
	document.write(".s16{font-size:18px}")
	//black
	document.write(".j9{color:#333333; font-size:9px}")
	document.write(".j10{color:#333333; font-size:10px}")
	document.write(".j12{color:#333333; font-size:12px}")
	document.write(".j14{color:#333333; font-size:14px}")
	document.write(".j16{color:#333333; font-size:18px}")
	//black-link-blue
	document.write("a.j9{color:#003366; font-size:9px}")
	document.write("a.j10{color:#003366; font-size:10px}")
	document.write("a.j12{color:#003366; font-size:12px}")
	document.write("a.j14{color:#003366; font-size:14px}")
	document.write("a.j16{color:#003366; font-size:18px}")
	//red
	document.write(".r9{color:#990000; font-size:9px}")
	document.write(".r10{color:#990000; font-size:10px}")
	document.write(".r12{color:#990000; font-size:12px}")
	document.write(".r14{color:#990000; font-size:14px}")
	document.write(".r16{color:#990000; font-size:18px}")
	document.write("a.r9{color:#990000; font-size:9px; text-decoration: none}")
	document.write("a.r10{color:#990000; font-size:10px; text-decoration: none}")
	document.write("a.r12{color:#990000; font-size:12px; text-decoration: none}")
	document.write("a.r14{color:#990000; font-size:14px; text-decoration: none}")
	document.write("a.r16{color:#990000; font-size:18px; text-decoration: none}")
	document.write("a.r9:hover{color:#990000; font-size:9px; text-decoration: underline}")
	document.write("a.r10:hover{color:#990000; font-size:10px; text-decoration:  underline}")
	document.write("a.r12:hover{color:#990000; font-size:12px; text-decoration:  underline}")
	document.write("a.r14:hover{color:#990000; font-size:14px; text-decoration:  underline}")
	document.write("a.r16:hover{color:#990000; font-size:18px; text-decoration:  underline}")
	//blue
	document.write(".b9{color:#003366; font-size:9px}")
	document.write(".b10{color:#003366; font-size:10px}")
	document.write(".b12{color:#003366; font-size:12px}")
	document.write(".b14{color:#003366; font-size:14px}")
	document.write(".b16{color:#003366; font-size:18px}")
	
	//SUB MENU
	// hover : win_notextdeco ns_underline
	document.write("a.n12{color:#003366; font-size:12px; padding-left:9px; text-decoration: none}")
	// bold
	document.write("a.q12{color:#003366; font-size:12px; font-weight:bold; padding-left:9px; text-decoration: none}")
	// normal
	document.write("a.p12{color:#003366; font-size:12px; text-decoration: none}")
	document.write("a.p12:hover{color:#003366; font-size:12px; text-decoration: underline}")	
	}
	else{
	//***FOR MAC NETSCAPE
	//standard
	document.write(".s9{font-size:9px; line-height:12px}")
	document.write(".s10{font-size:10px; line-height:13px}")
	document.write(".s12{font-size:12px; line-height:15px}")
	document.write(".s14{font-size:14px; line-height:17px}")
	document.write(".s16{font-size:16px; line-height:18px}")
	//black
	document.write(".j9{color:#333333; font-size:9px; line-height:12px}")
	document.write(".j10{color:#333333; font-size:10px; line-height:13px}")
	document.write(".j12{color:#333333; font-size:12px; line-height:15px}")
	document.write(".j14{color:#333333; font-size:14px; line-height:17px}")
	document.write(".j16{color:#333333; font-size:16px; line-height:18px}")
	//black-link-blue
	document.write("a.j9{color:#003366; font-size:9px; line-height:12px}")
	document.write("a.j10{color:#003366; font-size:10px; line-height:13px}")
	document.write("a.j12{color:#003366; font-size:12px; line-height:15px}")
	document.write("a.j14{color:#003366; font-size:14px; line-height:17px}")
	document.write("a.j16{color:#003366; font-size:16px; line-height:18px}")
	//red
	document.write(".r9{color:#990000; font-size:9px; line-height:12px}")
	document.write(".r10{color:#990000; font-size:10px; line-height:13px}")
	document.write(".r12{color:#990000; font-size:12px; line-height:15px}")
	document.write(".r14{color:#990000; font-size:14px; line-height:17px}")
	document.write(".r16{color:#990000; font-size:16px; line-height:18px}")
	document.write("a.r9{color:#990000; font-size:9px; line-height:12px; text-decoration: none}")
	document.write("a.r10{color:#990000; font-size:10px; line-height:13px; text-decoration: none}")
	document.write("a.r12{color:#990000; font-size:12px; line-height:15px; text-decoration: none}")
	document.write("a.r14{color:#990000; font-size:14px; line-height:17px; text-decoration: none}")
	document.write("a.r16{color:#990000; font-size:16px; line-height:18px; text-decoration: none}")
	document.write("a.r9:hover{color:#990000; font-size:9px; line-height:12px; text-decoration: underline}")
	document.write("a.r10:hover{color:#990000; font-size:10px; line-height:13px; text-decoration: underline}")
	document.write("a.r12:hover{color:#990000; font-size:12px; line-height:15px; text-decoration: underline}")
	document.write("a.r14:hover{color:#990000; font-size:14px; line-height:17px; text-decoration: underline}")
	document.write("a.r16:hover{color:#990000; font-size:16px; line-height:18px; text-decoration: underline}")
	//blue
	document.write(".b9{color:#003366; font-size:9px; line-height:12px}")
	document.write(".b10{color:#003366; font-size:10px; line-height:13px}")
	document.write(".b12{color:#003366; font-size:12px; line-height:15px}")
	document.write(".b14{color:#003366; font-size:14px; line-height:17px}")
	document.write(".b16{color:#003366; font-size:16px; line-height:18px}")
	//SUB MENU
	// hover : win_notextdeco ns_underline
	document.write("a.n12{color:#003366; font-size:12px; padding-left:9px; text-decoration: none}")
	document.write("a.n12:hover{color:#003366; font-size:12px; padding-left:9px; text-decoration: underline}")
	// bold
	document.write("a.q12{color:#003366; font-size:12px; font-weight:bold; padding-left:9px; text-decoration: none}")
	document.write("a.q12:hover{color:#003366; font-size:12px; font-weight:bold; padding-left:9px; text-decoration: underline}")
	// normal
	document.write("a.p12{color:#003366; font-size:12px; text-decoration: none}")
	document.write("a.p12:hover{color:#003366; font-size:12px; text-decoration: underline}")
	}
}
else{
	if(ie){
	//***FOR WIN IE
	//standard
	document.write(".s9{font-size:10px; line-height:12px}")
	document.write(".s10{font-size:11px; line-height:13px}")
	document.write(".s12{font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".s14{font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".s16{font-size:16px; line-height:18px; letter-spacing:1px}")
	//black
	document.write(".j9{color:#333333; font-size:10px; line-height:12px}")
	document.write(".j10{color:#333333; font-size:11px; line-height:13px}")
	document.write(".j12{color:#333333; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".j14{color:#333333; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".j16{color:#333333; font-size:16px; line-height:18px; letter-spacing:1px}")
	//black-link-blue
	document.write("a.j9{color:#003366; font-size:10px; line-height:12px}")
	document.write("a.j10{color:#003366; font-size:11px; line-height:13px}")
	document.write("a.j12{color:#003366; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write("a.j14{color:#003366; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write("a.j16{color:#003366; font-size:16px; line-height:18px; letter-spacing:1px}")
	//red
	document.write(".r9{color:#990000; font-size:10px; line-height:12px}")
	document.write(".r10{color:#990000; font-size:11px; line-height:13px}")
	document.write(".r12{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".r14{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".r16{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px}")
	document.write("a.r9{color:#990000; font-size:10px; line-height:12px; text-decoration: none}")
	document.write("a.r10{color:#990000; font-size:11px; line-height:13px; text-decoration: none}")
	document.write("a.r12{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r14{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r16{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r9:k{color:#990000; font-size:10px; line-height:12px; text-decoration: underline}")
	document.write("a.r10:hover{color:#990000; font-size:11px; line-height:13px; text-decoration: underline}")
	document.write("a.r12:hover{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px; text-decoration: underline}")
	document.write("a.r14:hover{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px; text-decoration: underline}")
	document.write("a.r16:hover{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px; text-decoration: underline}")
	//blue
	document.write(".b9{color:#003366; font-size:10px; line-height:12px}")
	document.write(".b10{color:#003366; font-size:11px; line-height:13px}")
	document.write(".b12{color:#003366; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".b14{color:#003366; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".b16{color:#003366; font-size:16px; line-height:18px; letter-spacing:1px}")
	//SUB MENU
	// hover : win_notextdeco ns_underline
	document.write("a.n12{color:#003366; font-size:12px; padding-left:10px; text-decoration: none; letter-spacing:1px}")
	// bold
	document.write("a.q12{color:#003366; font-size:12px; font-weight:bold; padding-left:10px; text-decoration: none; letter-spacing:1px}")
	// nomal
	document.write("a.p12{color:#003366; font-size:12px; text-decoration: none; letter-spacing:1px}")
	document.write("a.p12:hover{color:#003366; font-size:12px; text-decoration: underline; letter-spacing:1px}")
	}
	else{
	//***FOR WIN NETSCAPE
	//standard
	document.write(".s9{font-size:11px; line-height:12px}")
	document.write(".s10{font-size:11px; line-height:13px; letter-spacing:1px}")
	document.write(".s12{font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".s14{font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".s16{font-size:16px; line-height:18px; letter-spacing:1px}")
	//black
	document.write(".j9{color:#333333; font-size:11px; line-height:12px}")
	document.write(".j10{color:#333333; font-size:11px; line-height:13px; letter-spacing:1px}")
	document.write(".j12{color:#333333; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".j14{color:#333333; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".j16{color:#333333; font-size:16px; line-height:18px; letter-spacing:1px}")
	//black-link-blue
	document.write("a.j9{color:#003366; font-size:11px; line-height:12px}")
	document.write("a.j10{color:#003366; font-size:11px; line-height:13px; letter-spacing:1px}")
	document.write("a.j12{color:#003366; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write("a.j14{color:#003366; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write("a.j16{color:#003366; font-size:16px; line-height:18px; letter-spacing:1px}")
	//red
	document.write(".r9{color:#990000; font-size:11px; line-height:12px}")
	document.write(".r10{color:#990000; font-size:11px; line-height:13px; letter-spacing:1px}")
	document.write(".r12{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".r14{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".r16{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px}")
	document.write("a.r9{color:#990000; font-size:11px; line-height:12px; text-decoration: none}")
	document.write("a.r10{color:#990000; font-size:11px; line-height:13px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r12{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r14{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r16{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px; text-decoration: none}")
	document.write("a.r9:hover{color:#990000; font-size:11px; line-height:12px; text-decoration: underline}")
	document.write("a.r10:hover{color:#990000; font-size:11px; line-height:13px; letter-spacing:1px; text-decoration: underline}")
	document.write("a.r12:hover{color:#990000; font-size:12px; line-height:15px; letter-spacing:1px; text-decoration: underline}")
	document.write("a.r14:hover{color:#990000; font-size:14px; line-height:17px; letter-spacing:1px; text-decoration: underline}")
	document.write("a.r16:hover{color:#990000; font-size:16px; line-height:18px; letter-spacing:1px; text-decoration: underline}")
	
	//blue
	document.write(".b9{color:#003366; font-size:11px; line-height:12px}")
	document.write(".b10{color:#003366; font-size:11px; line-height:13px; letter-spacing:1px}")
	document.write(".b12{color:#003366; font-size:12px; line-height:15px; letter-spacing:1px}")
	document.write(".b14{color:#003366; font-size:14px; line-height:17px; letter-spacing:1px}")
	document.write(".b16{color:#003366; font-size:16px; line-height:18px; letter-spacing:1px}")
	//SUB MENU
	// hover : win_notextdeco ns_underline
	document.write("a.n12{color:#003366; font-size:12px; padding-left:9px; text-decoration: none; letter-spacing:1px}")
	document.write("a.n12:hover{color:#003366; font-size:12px; padding-left:9px; text-decoration: underline; letter-spacing:1px}")
	// bold
	document.write("a.q12{color:#003366; font-size:12px; font-weight:bold; padding-left:9px; text-decoration: none; letter-spacing:1px}")
	document.write("a.q12:hover{color:#003366; font-size:12px; font-weight:bold; padding-left:9px; text-decoration: underline; letter-spacing:1px}")
	// nomal
	document.write("a.p12{color:#003366; font-size:12px; text-decoration: none; letter-spacing:1px}")
	document.write("a.p12:hover{color:#003366; font-size:12px; text-decoration: underline; letter-spacing:1px}")
	}
}
document.write("--></STYLE>");



//----------

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 
 }  

//***sub menu rollover
//submenuover(this);
function submenuover(_target) {

 if (window.event) {
   _target.style.backgroundColor = "#ebebeb";

 }
}


//submenuout(this);
function submenuout(_target) {

 if (window.event) {
   _target.style.backgroundColor = "#ffffff";
 }
}





function MM_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}


//----------------------------





// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
//
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// --- Version Date 8-15-02 --------------------------------------------------------------------------------------------------------------
//
// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

var w3c = document.getElementById ? true : false;
var iex = document.all ? true : false;
var ns4 = document.layers ? true : false;

function fixNetscape(){
	if(origWidth != window.innerWidth || origHeight != window.innerHeight){
		window.location.reload();
	}	
}
if(ns4){
	origWidth = window.innerWidth;
	origHeight = window.innerHeight;
	window.onresize = fixNetscape;
}
function newImage(src){
	img = new Image();
	img.src = src;
	return img;
}
function imageSwap(img,obj,div){
	if(ns4 && div != null){
		document.layers[div].document.images[img].src = obj.src;
	}else{
		document.images[img].src = obj.src;
	}
}
function getStyle(name, nest){
	nest = nest ? 'document.'+nest+'.' : '';
	return w3c ? document.getElementById(name).style : iex ? document.all[name].style : ns4 ? eval(nest+'document.'+name) : false;
}

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

Menus = new Object();
var curMenu = null;

MakeMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv){
	this.name = name;
	this.left = left;
	this.top = top;
	this.timer = null;
	this.rollimg = rollimg;
	this.rollout = newImage(rollout);
	this.rollover = newImage(rollover);
	this.rolldiv = (rolldiv != null) ? rolldiv : null;
	this.obj = name+'Object';
	eval(this.obj+'=this');
}
MakeMenu.prototype.show = function(){
	clearTimeout(this.timer);
	getStyle(this.name).visibility = 'visible';
	imageSwap(this.rollimg,this.rollover,this.rolldiv);
	curMenu = this.name;
}
MakeMenu.prototype.hide = function(){
	this.timer = setTimeout(this.obj+'.hideIt()',500);
}
MakeMenu.prototype.hideIt = function(){
	getStyle(this.name).visibility = 'hidden';
	imageSwap(this.rollimg,this.rollout,this.rolldiv);
}
MakeMenu.prototype.startMenu = function(){
	var html;
	if(ns4){
		html = '<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="1000" visibility="hidden" ';
	}else{
		html = '<div id="'+this.name+'" style="position:absolute; left:'+this.left+'px; top:'+this.top+'px; z-index:1000; visibility:hidden" ';
	}
	html += 'onMouseOver="Menus.'+this.name+'.show()" onMouseOut="Menus.'+this.name+'.hide()">';
	return html;
}
hideCur = function(){
	if(curMenu != null){
		Menus[curMenu].hideIt();
		curMenu = null;
	}
}
endMenu = function(){
	 return ns4 ? '<\/layer>' : '<\/div>';
}
createMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv){
	Menus[name] = new MakeMenu(name,left,top,rollimg,rollout,rollover,rolldiv);
}

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

// object name | left position | top position | rollover image name | normal image src | rollover image src | rollover div name (optional)

createMenu('submenu1', 14, 74, 'menu01', 'http://www.bunshun.co.jp/img_common/menu01.gif', 'http://www.bunshun.co.jp/img_common/menu01_over.gif');
createMenu('submenu2', 111, 74, 'menu02', 'http://www.bunshun.co.jp/img_common/menu02.gif', 'http://www.bunshun.co.jp/img_common/menu02_over.gif');
createMenu('submenu3', 218, 74, 'menu03', 'http://www.bunshun.co.jp/img_common/menu03.gif', 'http://www.bunshun.co.jp/img_common/menu03_over.gif');


// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

