
function hidepup(){
$(".pup_base1").remove();
$(".pup_img").remove();
$("#cpt_box").show();
$("#cpt_sts").show();
$("#concept").show();
}


$(function(){
$(".pup").css({cursor:'pointer'});

$(".pup").click(function(){
this.blur();
var va=$(this).attr("name");
var att=va.split("_");
$(".pup_base1").remove();
$(".pup_img").remove();

$(".pupxmas_img_base").remove();
$(".pupxmas_fm").remove();
$(".xmas_btn_syukkin").remove();
$(".xmas_btn_anc").remove();
$("#cpt_box").hide();
$("#cpt_sts").hide();
$("#concept").hide();

$("#top_news_list").after("<div class='pup_base1'><div class='pup_base2'></div><div class='pup_base3'></div></div><img src='uimg/"+att[2]+"' class='pup_img' />");
var x=eval(att[0]);
var y=eval(att[1]);
$(".pup_base1").css({width:(x+10),height:(y+5)}).show();
$(".pup_base2").css({width:x,height:(y+5)}).show();
$(".pup_base3").css({left:x,height:(y+5)}).show();
$(".pup_img").css({width:x,height:y,cursor:'pointer'}).show().click(hidepup);


});



});



