use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");{my $G = (ref $this)->get("/headfoot/inner_header.html", $this->{param}) or die "no skel /headfoot/inner_header.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("\n");$this->out(Zen::PerlHandler->get("II0eb30bb15c7cb8ee7fc46514b4ed4cdb->mnt_image_gallery")->do($this->{C}));$this->out("\n<script>\n	function scgGoPage(pid)\n	{\n		var form = document.forms[\'ShopcartImageGalleyForm\'];\n		if (pid != undefined)\n			form.page.value = pid;\n		form.submit();\n	}\n\n</script>\n\n<form name=\"ShopcartImageGalleyForm\" method=\"GET\">\n	<input type=\"hidden\" name=\"pack_id\" value=\"$C->{INPUT}{pack_id}\">\n	<input type=\"hidden\" name=\"prod_id\" value=\"$C->{INPUT}{prod_id}\">\n	<input type=\"hidden\" name=\"page\" value=\"$C->{INPUT}{page}\">\n	\n	<br>\n	<img src=\"$C->{CurrentImageURL}\" align=\"center\" height=\"$C->{Settings}{gallery_img_height}\" style=\"float:none;\">\n	<br><br>\n	\n");if ( $C->{Pager}{posF} ) {$this->out("		<a href=\"javascript:scgGoPage($C->{Pager}{posF}-$C->{Pager}{ipp})\">previous</a>\n");} else {$this->out("		<a>previous</a>\n");}$this->out("	&nbsp;|&nbsp;\n	\n");my $in = $C->{Pager}{Pages};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{p} = -1;for my $f (@$loop) {$C->{ITERATION}{p}++;$C->{p} = $f;$this->out("");if ( $C->{p}{this} ) {$this->out("			<a>$C->{p}{numP}</a>\n");} else {$this->out("			<a href=\"javascript:scgGoPage($C->{p}{pos})\">$C->{p}{numP}</a>\n");}$this->out("		&nbsp;|&nbsp;\n");}$this->out("\n");if ( $C->{Pager}{numL} < $C->{Pager}{total} ) {$this->out("		<a href=\"javascript:scgGoPage($C->{Pager}{posF}+$C->{Pager}{ipp})\">next</a>\n");} else {$this->out("		<a>next</a>\n");}$this->out("	\n</form>\n\n<center>\n<input style=\"margin:10px\" type=\"button\" value=\"Close this window\" onClick=\"window.close()\">\n<br>\n</center>\n\n\n");{my $G = (ref $this)->get("/headfoot/inner_footer.html", $this->{param}) or die "no skel /headfoot/inner_footer.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("");}