get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" {if isset($COMMENT_IMG)} title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" {/if}> {if count($current.available_derivative_types)>1} {footer_script}{literal} function changeImgSrc(url,type,display) { 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 = display; } document.cookie = 'picture_deriv=' + type; } 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}