/*var $body = $('body');
var vis_hide = {visibility:"hidden"};
var vis_show = {visibility:"visible"};
var isIE6 = false;
if (window.external && (typeof window.XMLHttpRequest == "undefined")) { isIE6 = true; }

$(document).ready(function(){

	$(".modal-select-wrap input").focus(function() {
		$(".modal-select td").not(".not-allow-base").removeClass("not-allow");

		var input1 = $(".modal-select-wrap input:eq(1)").val();
		var input2 = $(".modal-select-wrap input:eq(2)").val();

		$(".modal-select:eq(1) .number-" + input2 + ", .modal-select:eq(2) .number-" + input1).addClass("not-allow");


		$(this).next().show();
	});

	$(".modal-select a").click(function() {
		
		on_click(this);
		
		return false;
	});

	$("body").click(function(event){
		if ($(event.target).parents(".modal-select-wrap").size() == 0) {
			$(".modal-select").hide();
		}
	});


	$(".thumbs a").click(function() {

		window.clearTimeout($(".thumbs p").data("timerId"));

		$(".thumbs p").removeClass("active");

		nImgSrc = $(this).attr("href");

		$(this).parent().addClass("active").fadeTo("1000", "1", function() {

			$(".photo img").fadeOut("200", function() {
				$(".photo img").attr("src", nImgSrc);
				$(".photo img").fadeIn("200");
			});

			$(".thumbs p").data("countIndex", $(".thumbs p").index(this) + 1);

			timerId = window.setTimeout(function() {
				changeBanner(".thumbs p", 10000, "photo");
			}, 10000);

			$(".thumbs p").data("timerId", timerId);

		});

		return false;

	});

	$(".popup").click(function() {
		openPopup($(this).attr("href"),"form");
		return false;
	});

	$("#u-agree").click(function() {

		if(!$(this).attr("checked")) {
			$(".i-submit input").attr("disabled", "disabled");
		} else {
			$(".i-submit input").removeAttr("disabled");
		}
	});


	$(".announces a").hover(function() {
		
		$(this).fadeTo("1000", "0.5", function() {
			$(this).addClass("active").fadeTo("1000", "1");
		});

	}, function() {

		$(this).fadeTo("1000", "0.5", function() {
			$(this).removeClass("active").fadeTo("1000", "1");
		});

	});


	$(".modal-link").click(function() {

		if (isIE6) {
			$("select").css(vis_hide);
			$body.css({
				height: $body.height()+'px',
				width: $body.width()+'px',
				position: 'static',
				overflow: 'hidden'
			});
			$('html').css({overflow: 'hidden'});
		}

		$(".modal-wrap").show();

		var $modal_left = (($("body").width() - $(".l-wrapper").width()) / 2) + 652;
		$(".modal-wrap .modal").css("left", $modal_left);

		return false;
	});

	$(".modal-bg").click(function(){
		$(".modal-wrap").hide();
		if (isIE6) {
			$body.css({height: '', width: '', position: '', overflow: ''});
			$('html').css({overflow: ''});
			$("select").css(vis_show);
		}
	});

	$('#inpText, #inpPass')
		.focus(function() {
			$(this).css({backgroundPosition:'0 -1000px'});
		})
		.blur(function() {
			if(this.value == '') {
				$(this).css({backgroundPosition:'0 0'});
			}
		})
		.focus().blur();

});

	function on_click(w){
		if($(w).parent().not(".not-allow").size() > 0) {

			var $modal_input = $(w).parents(".modal-select").prev();

			$modal_input.val($(w).text());

			$(".modal-select").hide();
		}
	}

	function changeBanner(obj, time, param) {

		var $elems = $(obj);

		if(!$(obj).data("countIndex")) {
			$(obj).data("countIndex", 0);
		}

		if($(obj).data("countIndex") >= $elems.size()) $(obj).data("countIndex", 0);

		$elems.removeClass("active");

		$elems.eq($(obj).data("countIndex")).fadeTo("1000", "0.5", function() {
			$(this).addClass("active").fadeTo("1000", "1", function() {

				if( param != null) {

					nImgSrc = $(this).children().attr("href");

					$("." + param + " img").fadeOut("200", function() {
						$("." + param + " img").attr("src", nImgSrc);
						$("." + param + " img").fadeIn("200");
					});

				}
				$(obj).data("countIndex",$(obj).data("countIndex") + 1);

				timerId = window.setTimeout(function() {
					changeBanner(obj, time, param);
				}, time);

				$(obj).data("timerId", timerId);

			});
		});

	}

*/

