document.writeln("
");
document.writeln("
");
document.writeln("
");
document.writeln("
");
//运行函数
var initphotoswipefromdom = function(galleryselector,gallerytagname) {
// parse slide data (url, title, size ...) from dom elements
// (children of galleryselector)
var parsethumbnailelements = function(el) {
var thumbelements = el.childnodes,
numnodes = thumbelements.length,
items = [],
figureel,
linkel,
size,
item;
for(var i = 0; i < numnodes; i++) {
figureel = thumbelements[i]; //