$(document).ready(function() {
	
	$("#gnb a").hover(
		function() {
			var STR = $(this).find("img:first").attr("src").substr(0, 21);			
			$(this).find("img:first").attr("src", STR + "on.gif");
		},
		function() {
			if ( $(this).attr("class") != "selected" ) {				
				var STR = $(this).find("img:first").attr("src").substr(0, 21);			
				$(this).find("img:first").attr("src", STR + "off.gif");
			}				
		}		
	);				

	/* board_list_style03 table */
	$(".board_list_style03 table tbody tr:first-child td").css({
		"padding-top":"9px",
		"background":"url('/images/common/boardliststyle03_tbdoy_td_first_bg.gif') repeat-x left top"
	});
	$(".board_list_style03 table tbody tr:first-child th").css({
		"padding-top":"9px",
		"background":"url('/images/common/boardliststyle03_tbdoy_td_first_bg.gif') repeat-x left top",
		"background-color":"#f8f8f8"
	});

	
	/* footer_sitemap */
	$(".toggle_sitemap").toggle(
		function() {
			$(this).find("a").text("서비스 열기").removeClass("closed").addClass("open");
			$(".footer_sitemap").slideUp(50);
			window.scrollBy( 0, document.body.scrollHeight );
		},
		function() {	
			$(this).find("a").text("서비스 닫기").removeClass("open").addClass("closed");
			$(".footer_sitemap").slideDown(50);
			window.scrollBy( 0, document.body.scrollHeight );			
		}
	);	


	/* sidebar_bg */
	$("#sidebar_innerwrap:has('.designshop')").css("background","url('/images/designshop/sidebar_bottom.gif') no-repeat left bottom");	
	$("#sidebar_innerwrap:has('.domain')").css("background","url('/images/domain/sidebar_bottom.gif') no-repeat left bottom");
	$("#sidebar_innerwrap:has('.hosting')").css("background","url('/images/hosting/sidebar_bottom.gif') no-repeat left bottom");
	$("#sidebar_innerwrap:has('.search')").css("background","url('/images/search/sidebar_bottom.gif') no-repeat left bottom");
	$("#sidebar_innerwrap:has('.photo')").css("background","url('/images/photo/sidebar_bottom.gif') no-repeat left bottom");
	/* $("#sidebar_innerwrap:has('.customer')").css("background","url('/images/customer/sidebar_bottom.gif') no-repeat left bottom"); 
	$("#sidebar_innerwrap:has('.intro')").css("background","url('/images/customer/sidebar_bottom.gif') no-repeat left bottom");	*/
	

});
