var osobine = 'width=500,height=396, fullscreen=0, location=0, menubar=0, personalbar=0, status=0, toolbar=0, left='+((screen.width)/2 - 250)+',top='+((screen.height)/2 - 300)+'';
var _wind = null;
function PopupPic(ur,tx) {
txt = tx;
url = ur;
if(_wind != null && !_wind.closed) {
_wind.close ();
}
_wind = window.open('js/player.html','',osobine);
_wind.document.close();
}