$(document).ready(function(){
	$("#basket-case a").css({'opacity':0, 'backgroundColor':'#fff'});
	$("#navigation > ul > li").hover(
		function(){ $("a", this).addClass("hover"); $("ul", this).removeClass("hidden") },
		function(){ $("a", this).removeClass("hover"); $("ul", this).addClass("hidden") }
	);

	$(".box_o, .box-lv2").hover(
		function(){ $(".top1, .top2, .top3, .top4, .top", this).animate({opacity: 0.7}) },
		function(){ $(".top1, .top2, .top3, .top4, .top", this).animate({opacity: 1}) }
	).click(function(){
		location.href = $("a", this).attr("href");
	});
});

var getFieldContent = function(NAME){
	if(window.opener){
		var obj = window.opener.document.getElementById(NAME);
		
		var editor_content = obj.value;

		return editor_content;
	}
}

var getEditorContent = function(NAME){
	if(window.opener){
		var obj = window.opener.document.getElementById(NAME + '___Frame').contentDocument || window.opener.document.frames[NAME + '___Frame'].document;
		
		if($.browser.msie){
			obj = obj.frames[0];
		} else {
			obj = $("#xEditingArea iframe", obj).get(0);
		}

		obj = obj.contentDocument || obj.document;

		var editor_content = obj.body.innerHTML;

		return editor_content;
	}
}