$(document).ready(function(){

	/* 매장안내 : 지역 셀렉트 - 플러그인 jquery.stylish.select.js */
	$('.store_Select01, .store_Select02, #footer_Link').sSelect();

	/* 매장안내 : 매장명 인풋박스 */
    $("#store_Name").focus(function() {                                           
        if ($(this).attr("value") == "" )
        {
            $(this).removeClass('normal').addClass('focus');
        }
    });   
    $("#store_Name").blur(function() {                            
		if ($(this).attr("value") == "")                                  
        {
            $(this).removeClass('focus').addClass('normal');   
        }
    }); 

	/* 매장정보 : 매장사진 */
	$(".thumbnail li img").hover(
		function(){
			$(this).css({
				"border":"2px solid red",
				"cursor":"pointer"
				});
		},
		function(){
			$(this).css("border","2px solid white");
		}
	);
	$(".thumbnail li a").click(function() {
		var img_HREF = $(this).attr("href");
		$("#preview_Store_Photo").attr("src",img_HREF);
		return false;
	});	

	/* SMS 정보받기 */
	$("#show_SMS")
	.hover(function(){
		$(this).css("cursor","pointer");
	})
	.click(function(){
		$("#layer_SMS").fadeIn(200);
		$("#mid_PN input").focus();
	});
	$("#close_SMS")
	.hover(function(){
		$(this).css("cursor","pointer");		
	})
	.click(function(){
		$("#layer_SMS")
			.hide()
			.css(
				{
					"left":"155px",
					"top":"155px"
		});
		$("input").attr("value","");
	});		
	$("#layer_SMS").draggable({ 
		scroll: false,
		cursor: 'pointer',
		containment: '.info_Store',
		cancel: '.text'
	});	
	$("#layer_SMS .phone_Number input").hover(function(){
		$(this).css("cursor","text");
	});
	$("#layer_SMS .phone_Number input").click(function(){
		$(this).css("cursor","text");
	});
	$("#layer_SMS .phone_Number input").focus(function(){
		$(this).css("cursor","text");
	});

	$("#close").click(function(){
		window.close();
	});

	
	$(".thumbnail img").click(function(){
		var img_SRC = $(this).attr("src");
		$(".preview img").attr("src", img_SRC);
	});

	
});

