#set($detailid = $detail.id )
#if( !$detailid)
#set( $detailid = $context.getRequestParameter("detailid"))
#end
#set($idcount = $context.getRequestParameter("idcount"))
#if(!$idcount)
#set($idcount = "")
#end
####if(!$val)
#set($val = $context.getRequestParameter('assetid'))
####end
#if($val && $val != "")
#set( $foundrow = $mediaarchive.getAsset($val) )
#end
#if( $foundrow )
#set( $rootid = $hits.sessionId )
#set( $click = "$home$apphome/views/modules/asset/editor/generalinformation/index.html?assetid=$!val&hitssessionid=$!rootid" )
#set( $link = "/${applicationid}/components/mediaviewer/player/zoom/index.html?assetid=$foundrow.id&name=preview.jpg")
#set( $hit = $foundrow)
$context.putPageValue("hit", $hit)
#set( $rendertype = $mediaarchive.getMediaRenderType($hit.fileformat))
$context.putPageValue("type", $rendertype)
$context.putPageValue("thumbsize", "small" )
#if(!$rendertype || $rendertype =="rendertype")
#set( $rendertype = "mime" )
#elseif( $rendertype =="video")
#set( $rendertype = "videothumbnail" )
#end
#if($rendertype == "audio")
$pages.include("$componenthome/results/thumbnails/${rendertype}.html", $context)
#else
##
$pages.include("$componenthome/results/thumbnails/${rendertype}.html", $context)
#end
#end