﻿$(function() {
	$("div.navLeft dl dt").next().css("padding-top", "5px");
	$("div.navLeft dl:last").css("border", "none");
	$("table.board tr td:last-child").css("background", "none");
	$(".swap a img").hover(function() { // 이미지 스왑 : temp.gif >> 오버시 파일명은 temp_over.gif 그리고 상위 엘리먼트에 swap 클래스 주면 적용됨
		$(this).attr("src", $(this).attr("src").split(".gif").join("_over.gif"));
	}, function() {
		$(this).attr("src", $(this).attr("src").split("_over.gif").join(".gif"));
	});
	$("a").click(function() { // 앵커 비활성화 함수
		this.blur();
	});
	$("img[onclick]").hover(function() {
		$(this).css("cursor", "pointer");
	});
	$(".pRight").parent().css("position", "relative");
	$(".pRightBottom").parent().css("position", "relative");
	$(".pRightTop").parent().css("position", "relative");
	$(".pRightMiddle").parent().css("position", "relative");
	$("img.printButton").click(function() {
		$("#popup").jqprint();
		return false;
	});
});

window.onload = function() {
	var target = document.getElementById("popup");
	Drag.init(target);
}

function closePopup() {
//	$("#popup").css("display", "none");
	$("#popup").fadeOut("fast");
}

function openPopup() {
//	$("#popup").css("display", "block");
	$("#popup").css("left", "250px");
	$("#popup").css("top", "100px");
	$("#popup").fadeIn("fast");
}

