
if(window.attachEvent){
	window.attachEvent('onload', pullInit);
}
else{
	window.addEventListener('load', pullInit, false);
}


function pullInit(){

	/*デモページ用の処理*/
	if(document.getElementById("demo_kuzu")){
		DemoKuzuInit();
	}

	$("#menu li.hasSub").find("ol.subMenu").hide();

	$("#menu li.hasSub").hover(
		function(e){
			$(this).find("ol.subMenu").hoverFlow(e.type,{
				'height':'show',
				'marginTop':'show',
				'marginBottom':'show',
				'paddingTop':'show',
				'paddingBottom':'show'
			});
		},function(e){
			$(this).find("ol.subMenu").hoverFlow(e.type,{
				'height':'hide',
				'marginTop':'hide',
				'marginBottom':'hide',
				'paddingTop':'hide',
				'paddingBottom':'hide'
			});
		}
	);


	$("#menu li.hasSub ol li").hover(
		function(){
			$(this).css("background-color","#c00");
		},
		function(){
			$(this).css("background-color","transparent");
		}
	);


}








//■MSIEのみを判別する
function isMSIE(ua){
	if (ua.indexOf("MSIE")<0){
		if (ua.indexOf("Safari")>0){
			return "safari";
		}else{
			return "no";
		}
	}else if(ua.indexOf("MSIE 7")>=0){
		return "ie7";
	}else if(ua.indexOf("MSIE 8")>=0){
		return "ie8";
	}else if(ua.indexOf("MSIE 9")>=0){
		return "ie9";
	}else{
		return "yes";
	}
}

