////////////////////////////////////////////////////////////////////////////////
/// 座標演算
////////////////////////////////////////////////////////////////////////////////

function crdPnt(event,id){
	var idB=document.getElementById(id);
	var oL=103;
	var oT=idB.scrollHeight+10;
	var dB=(document.documentElement&&document.documentElement.clientHeight)?
	document.documentElement:document.body;
  var sW=(document.all&&!window.opera)?dB.scrollLeft:window.scrollX;
  var sH=(document.all&&!window.opera)?dB.scrollTop:window.scrollY;
	if(!event) event=window.event;
  var eL=(document.all&&!window.opera)?((UAuIE7)?event.x+sW:event.x):event.pageX;
  var eT=(document.all&&!window.opera)?((UAuIE7)?event.y+sH:event.y):event.pageY;
	idB.style.left=eL-oL+'px';
	idB.style.top=eT-oT+'px';
}



//////////////////////////////////////////////////////////////////
/// id表示切り替え
//////////////////////////////////////////////////////////////////

var swBlk=function(event,id){
	$('#'+id).fadeIn('fast');
	crdPnt(event,id);
	var time=1500;
	setTimeout(function(){$('#'+id).fadeOut('fast');},time);
}
var swBlkOv=function(event,id){
	var idB=document.getElementById(id);
	if(idB.style.display!="block"){
		$('#'+id).fadeIn('fast');
		crdPnt(event,id);
	}
}
var swBlkOu=function(event,id){
	var time=500;
	setTimeout(function(){$('#'+id).fadeOut('fast');},time);
}



//////////////////////////////////////////////////////////////////
/// ブラウザ判定
//////////////////////////////////////////////////////////////////

var UA=navigator.userAgent;

/*
IE 7以下判定
----------------------------------------------------------------------*/
var UAuIE7=UA.slice(UA.indexOf("MSIE ")+"MSIE ".length,UA.indexOf("MSIE ")+"MSIE ".length+1)<8;




