').appendTo(parentElem);
fileid = fileid ? fileid : ''
$j.post('/photos/?jwgc=EdupageGalleryViewer&photo='+albumid+'&gallery='+galleryid+'&fileid='+fileid, {}, function(data) {
if (data != '') {
$div.html(data);
$div.css('background-image','none');
}
});
shownGalleryDialog = $div;
$div.on('remove',function() {
window.location.hash = '';
shownGalleryDialog = null;
for (var i=0;i