var go_on;
$().ready(function() {
	
	$('a.LBpopup').click(function(e){
		e.preventDefault();
		var url = $(this).attr("rel");
		var href = $(this).attr("href");
		
		if($.cookie("show_popup_"+href) != "yes") {
			$.cookie("show_popup_"+href, "yes", { expires: 1 });
			go_on = href;
			$('.LB_dialog').jqm({ajax: url}).jqmShow();
		
		}
		else {
			document.location = href;
		}
	});
  
	$('.LB_dialog').jqmAddClose($('.closewindow, .LB_btnNO, .closewindow_txt')); 
   
	$('.LB_btnNO').hover(function(){
		$(this).addClass("mo");
	}, function(){
		$(this).removeClass("mo");
	});
   
	$(".LB_btnNO").mousedown(function(){	$(this).addClass("act");	});
	$(".LB_btnNO").mouseup(function(){		$(this).removeClass("act");	});
   
});

