

var current='';var prev=false;var next=false;function showAttache(param,key)
{if(!key)
{if(current!=param)
{document.getElementById('attache_view_loading').style.display='block';}
if(document.getElementById('attaches_navigation_element_'+param))
{document.getElementById('attaches_navigation_element_'+param).className='group_photo_selected';if(current!=param)
{if(document.getElementById('attaches_navigation_element_'+current))
{document.getElementById('attaches_navigation_element_'+current).className='group_photo';}
current=param;ajax_request('/js/request/groups_topics_attaches.php?id_attache='+param,'showAttache',param);}}
else
{if(current<param)
{if(next)
{showAttachesNavigation(next);}}
else
{if(prev)
{showAttachesNavigation(prev);}}}}
else
{if(param)
{document.getElementById('attache_view').innerHTML=param;document.getElementById('attache_view_loading').style.display='none';}}
return false;}
function showAttachesNavigation(params,key)
{if(!key)
{if(document.getElementById('attache_navigation_loading'))
{document.getElementById('attache_navigation_loading').style.display='block';}
ajax_request('/js/request/groups_topics_attaches.php?'+params,'showAttachesNavigation','result');}
else
{if(document.getElementById('attache_navigation_loading'))
{document.getElementById('attache_navigation_loading').style.display='none';}
if(params)
{document.getElementById('attache_navigation').innerHTML=params;}}
return false;}