/*

	global navi
	
	author :Live!Ads oka
	lastupdate :091124
	
================================================== */
jQuery.extend( jQuery.easing,
{
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	}

});
navi = {};
navi.speed = 300;
navi.move = "easeOutQuart";
navi.init = function(){
	$("#mainNav > dd > ul > li").mouseover(function(){
							
		$(this).find('ul').stop();							
		$(this).find('ul').css("display","block");
		$(this).find('ul').animate({
			height: $(this).find('li').length * 31 + "px"
		},navi.speed,navi.move);
		return false;
		
	});	
	$("#mainNav > dd > ul > li").mouseout(function(){
		navi.obj = this;
		$(this).find('ul').stop();							
		$(this).find('ul').animate({
			height: "1px"
		},navi.speed,navi.move,navi.none);
								
		return false;
		
	});	
};
navi.none = function(){
	$("#mainNav dd ul li ul").css("display","none");
};




var font = {};
font.check = function(){
	var e = document.createElement("div");
	var s = document.createTextNode("S");
	e.appendChild(s);
	e.style.visibility="hidden"
	e.style.position="absolute"
	e.style.top="0"
	document.body.appendChild(e);
	var defHeight = e.offsetHeight;
	setInterval(function(){
			     
		if(defHeight != e.offsetHeight){
			//文字サイズが変更された際に実行したい処理
			defHeight= e.offsetHeight;
			//location.reload();
			window.contents_frame.location.reload();
			//document.getElementById("contents_frame").reload();
		}
			     
	},100);
};


$(document).ready(function(){
	navi.init();
});
