var popCM = false; function CMpop(page){ var w = 392; var h = 256; var l = (screen.width-w)/2; var t = (screen.height-h)/2; var url = "http://www.muzeum.miejskie.wroclaw.pl/CMS/popup/" + page+".html"; var name = page; var parm = 'width='+w+',height='+h+',left='+l+',top='+t+',menubar=0,toolbar=0,location=0,status=0,scrollbars=1,resizable=1'; if (typeof(popCM.document)=="object") popCM.close(); self.focus(); popCM = window.open(url,name,parm); } function galeria(val) { var url = 'http://www.muzeum.miejskie.wroclaw.pl/CM/content.php/galeria?gal_path=galeria/' + val; var name = 'galeria'; var w = 750; var h = 530; var l = (screen.width-w)/2; var t = (screen.height-h)/2; var parm = "width="+w+",height="+h+",left="+l+",top="+t+",menubar=0,toolbar=0,location=0,status=0,scrollbars=0,resizable=1"; window.open(url,name, parm); } function kalejdoskop(path) { var w = 750; var h = 530; var l = (screen.width-w)/2; var t = (screen.height-h)/2; var url = 'http://www.muzeum.miejskie.wroclaw.pl/CM/content.php/galeria?gal_path=' + path; var name = 'Galeria'; var parm = 'width='+w+',height='+h+',left='+l+',top='+t+',menubar=0,toolbar=0,location=0,status=0,scrollbars=no,resizable=no'; self.focus(); window.open(url,name, parm); }