get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" {if isset($COMMENT_IMG)} title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" {/if}> {if count($current.unique_derivatives)>1} {footer_script}{literal} function changeImgSrc(url,typeSave,typeMap,typeDisplay) { var theImg = document.getElementById("theMainImage"); if (theImg) { theImg.removeAttribute("width");theImg.removeAttribute("height"); theImg.src = url; var elt = document.getElementById("derivativeSwitchLink"); if (elt) elt.innerHTML = typeDisplay; theImg.useMap = "#map"+typeMap; } document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } function toggleDerivativeSwitchBox() { var elt = document.getElementById("derivativeSwitchBox"), ePos = document.getElementById("derivativeSwitchLink"); if (elt.style.display==="none") { elt.style.position = "absolute"; elt.style.left = (ePos.offsetLeft+10)+"px"; elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; elt.style.display=""; } else elt.style.display="none"; } {/literal}{/footer_script} {$current.selected_derivative->get_type()|@translate} {/if} {foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip} {assign var='size' value=$derivative->get_size()} {if isset($previous)} {$previous.TITLE} {/if} {'Thumbnails'|@translate} {if isset($next)} {$next.TITLE} {/if} {/strip}{/foreach}