maxp_somewin = 5000; show_somewin = 1; ison_somewin = 0; function hide_somew(perm){ if(perm==1){show_somewin = 0;} thewin.fadeOut("slow", function(){}); ison_somewin = 0; } thewin.css("width","200px"); thewin.css("height","110px"); thewin.css("border","1px solid silver");thewin.css("box-shadow","0 0 10px 3px silver"); thewin.css("right","-12px"); thewin.css("top","20px"); thewin.css("background","#fff"); jQuery('#clsbtn_somewin').click(function() { hide_somew(1); }); });