/* ===== common ===============================================*/
function subwin(url){
  win = window.open(url,'','width=760 ,height=500,scrollbars=yes,menubar=no' );
  win.moveTo((screen.width - 760)/2,(screen.height - 500)/2);
}

function subwinCstm(url, width, height){
  win = window.open(url,'','width=' + width + ',height=' + height + ',scrollbars=yes,menubar=no');
  win.moveTo((screen.width - width)/2,(screen.height - height)/2);
}

$(document).ready(function() {

	$("#zone6 li#m").mouseover(function(){
		$("#msmenu").css("display","block");
	});
	$("#msmenu").mouseover(function(){
		$("#msmenu").css("display","block");
	});
	$("#zone6 li#m").mouseout(function(){
		$("#msmenu").css("display","none");
	});
	$("#msmenu").mouseout(function(){
		$("#msmenu").css("display","none");

/*
	$("li#m").hover(
		function () {
			$(this).css("display","none");
		},
		function () {
			$(this).css("display","block");
		}
*/
	});
});


/* ===== staff-voice ===============================================*/

/* 疑似iframeリサイズ */
$(document).ready(function() {
  var footmargin = 360;
  function resizeContainer(e) {
    var containerHeight = $(window).height() - footmargin;
    (function(jq) {
      for(var i = 0; i < jq.length; i++) {
        jq[i].css("height", containerHeight);
        jq[i].css("overflow-y", "auto");
        jq[i].css("overflow-x", "hidden");
      }
    })(new Array($("body#staff div#list"), $("#bb"), $("#cc")));
  }
  $(window).bind("resize", resizeContainer);
});





/* 疑似iframeリサイズ 
function staffLogoMargin(ele, h) {
	var logoHeight = (this.height());
	var marginHeight = (130-logoHeight)/2;
	this.css("margin-top", marginHeight);
}

*/

/*
$(document).ready(function(){
	$("body#staff #list li a img").each(function(){
		var logoHeight = ($(this).height());
		var marginHeight = (130-logoHeight)/2;
		$(this).css("margin-top", marginHeight);
	})
});

$(document).ready(function(){
	$("body#staff #list li a div").each(function(){
		var divHeight = ($(this).height());
		var divmarginHeight = (130-divHeight)/2;
		$(this).css("margin-top", divmarginHeight);
	})
});


*/