jQuery.noConflict();
var j$ = jQuery;
j$(function(){
	j$("p#showAllContents a").click(function(){
		window.opener.location.href=j$(this).attr('href');
		window.close();
		return false;
	});
	
	if(j$("body#mypage1").size()){
		j$("a.printBtn").click(function(){
			window.open(j$(this).attr('href'), 'printPreview', "width=650, height=600, scrollbars=yes");
			return false;
		});
	};	
	if(j$("#quickList").size()){
		j$("#quickList").showList();
	};
	j$("a[@rel='placeDetail']").click(function(){
		 window.open(j$(this).attr('href'), "regist_window","width=750,height=500,scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes");
		 return false;
	})
	j$("a[@rel='reserve']").click(function(){
		 window.open(j$(this).attr('href'), "reserve_window","width=785,height=400,scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes");
		 return false;
	})
});
jQuery.fn.showList = function(params){
	var thisobj = j$(this);
	thisobj.empty();
	j$.post(url_5, params, function(html, status){
		thisobj.append(html);
		j$(".cancel", thisobj).click(function(){
			var yoyaku_id = this.rel;
			if(confirm(this.title+confirmMsg)){
				thisobj.showList("yoyaku_id="+yoyaku_id);
			}			
			return false;
		});
		j$(".detail", thisobj).click(function(){
			window.open("guide_2.php?pid="+this.rel, '', "width=750,height=600,scrollbars=yes");
			return false;
		});
	});
}
function sub_window_open(url, height){
	window.open(url,"window_name", "width=785, height="+height+", toolbar=yes, menubar=yes, resizable=yes, scrollbars=yes"); 
}
