Create a new xmlpackage called zoomify.header.javascript.xml.config which contains the following :-
HTML Code:
<?xml version="1.0" standalone="yes" ?>
<package version="2.1" displayname="Simple Product" debug="false" includeentityhelper="false" allowengine="true">
<HTTPHeaders>
<HTTPHeader headername="Content-Type" headervalue="text/javascript" />
</HTTPHeaders>
<PackageTransform>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" exclude-result-prefixes="aspdnsf">
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="/root/QueryString/productid">
Z.showImage('ZoomImage', '<xsl:value-of select="/root/QueryString/productid" />', 'zMinZoom=0&zMaxZoom=250&zNavigatorVisible=1&zNavigatorWidth=100&zNavigatorHeight=80&zNavigatorLeft=10&zNavigatorTop=10&zNavigatorFit=1&zToolbarVisible=1&zToolbarPosition=1&zLogoVisible=0&zFullPageVisible=1&zProgressVisible=1&zTooltipsVisible=1&zSliderVisible=1&zZoomSpeed=5&zPanSpeed=5&zFadeInSpeed=5&zConstrainPan=1&zClickZoom=1&zClickPan=1&zMousePan=1&zKeys=1&zCanvas=1&zDebug=0&zSkinPath=Assets/Skins/Default', 'zSkinPath=Assets/Skins/Light');
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
</PackageTransform>
</package>
Then edit your template file - where you currently have this :-
HTML Code:
<script type="text/javascript" src="../../jscripts/ZoomifyImageViewer.js"></script>
<style type="text/css"> #ZoomImage { width: 578px; height: 585px } </style>
<script type="text/javascript"> Z.showImage("ZoomImage", "986", "zMinZoom=0&zMaxZoom=250&zNavigatorVisible=1&zNavigatorWidth=100&zNavigatorHeight=80&zNavigatorLeft=10&zNavigatorTop=10&zNavigatorFit=1&zToolbarVisible=1&zToolbarPosition=1&zLogoVisible=0&zFullPageVisible=1&zProgressVisible=1&zTooltipsVisible=1&zSliderVisible=1&zZoomSpeed=5&zPanSpeed=5&zFadeInSpeed=5&zConstrainPan=1&zClickZoom=1&zClickPan=1&zMousePan=1 &zKeys=1&zCanvas=1&zDebug=0&zSkinPath=Assets/Skins/Default", "zSkinPath=Assets/Skins/Light"); </script>
Replace it with this ;-
HTML Code:
<script type="text/javascript" src="../../jscripts/ZoomifyImageViewer.js"></script>
<style type="text/css"> #ZoomImage { width: 578px; height: 585px } </style>
<script type="text/javascript">
(!XmlPackage Name="zoomify.header.javascript"!)
</script>
TTFN
BFG