// JavaScript Document

$(function(){		
	$(document.body).click(function(){ 
	$(".my_homepage,.my_notice_info,#ul_sort").hide();
	});
	$('.mine').click(function(){	
		if($('.my_homepage').css('display')=='none') {
			$('.my_homepage').show();
		}else{
			$('.my_homepage').hide();			
			}						  
		$('.my_notice_info').hide();		
	})
	$('.mynotice').click(function(){
		if($('.my_notice_info').css('display')=='none') {
			$('.my_notice_info').show();
		}else{
			$('.my_notice_info').hide();			
			}					  
		$('.my_homepage').hide();						  
	})
	$(".mine,.mynotice,.sort").click(function(e) {
		e.stopPropagation();
   	});

	$(".text").focus(function(){
		$(this).css("background-color","#FFFCEA");	
	}).blur(function(){
		$(this).css("background-color","#fff");	
	});
	

	//µ¯³ö¿ò
	tb_init('a[boxname=thickbox], area[boxname=thickbox], input[boxname=thickbox]');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;


	//combobox
	/*$('.com_sel').combobox({
		comboboxContainerClass: "comboboxContainer",
		comboboxValueContentContainerClass: "comboboxValueContainer",
		comboboxValueContentClass: "comboboxValueContent",
		comboboxDropDownClass: "comboboxDropDownContainer",
		comboboxDropDownButtonClass: "comboboxDropDownButton",
		comboboxDropDownItemClass: "comboboxItem",
		comboboxDropDownItemHoverClass: "comboboxItemHover",
		comboboxDropDownGroupItemHeaderClass: "comboboxGroupItemHeader",
		comboboxDropDownGroupItemContainerClass: "comboboxGroupItemContainer"
	});*/

});

function tb_close( tb_login )
{
	if( tb_login == "true" )
	{
		parent.document.location.reload();
	}
	tb_remove();
}