function sel(a,b,c,d,e){
$(a).text(d);
var f = function(){$(this).css("display","block");},
g = function(){$(this).css("display","none");}
$(a).on({
click:function(){
if($(b).css("display")=="block"){
$(b).css("display","none");
}else{
$(b).css("display","block");
}
},
mouseout:function(){
$(b).css("display","none");
}
})
$(b).on({
mouseover:f,
mouseout:g,
click:g
})