
var loader=-1;var top=0;var left=0;var v_offset_pile=20;var h_offset_pile=10;var activeProfile=-1;var currentPosition=0;var activeProfiles=Array();var loading="<div class=\"loading\"><img src=\"/images/loading.gif\" /></div>";function imgLoaded(id){document.getElementById('profile'+id).style.display='block';if(id==profiles.length-1)
{document.getElementById('pile').style.backgroundColor='#ffffff';document.getElementById('pile').style.backgroundImage='';document.getElementById('pile').style.border='1px solid white';}}
function filterImages(FilterID)
{var img=document.all?document.all["img0"]:document.getElementById("img0");var div=document.all?document.all["profile0"]:document.getElementById("profile0");if(div.currentFilter>0)
{var oldFilterLink=document.all?document.all["a"+div.currentFilter]:document.getElementById("a"+div.currentFilter);oldFilterLink.className="";}
var filterLink=document.all?document.all["a"+FilterID]:document.getElementById("a"+FilterID);filterLink.className="current";var divToolTip;var MetaDataArray=Array();var imgEnabled=false;for(var n=0;n<ItemCount;n++)
{imgEnabled=false;div=document.all?document.all["profile"+n]:document.getElementById("profile"+n);divToolTip=document.all?document.all["divToolTip"+n]:document.getElementById("divToolTip"+n);if(FilterID<1)
{imgEnabled=true;}
else
{MetaDataArray=div.MetaDataCSV.split(/,/);for(var i=0;i<MetaDataArray.length;i++)
{if(MetaDataArray[i]==FilterID)
{imgEnabled=true;break;}}}
if(imgEnabled==false)
{div.className="inactive";div.currentFilter=FilterID;divToolTip.EnableMouseOver="false";}
else
{div.className="";div.currentFilter=FilterID;divToolTip.EnableMouseOver="true";}}}
function navigateToDetail(divListID)
{var div=document.all?document.all[divListID]:document.getElementById(divListID);window.location=div.detailUrl+"&f="+div.currentFilter;}
function overThumb(divid)
{divToolTip=document.all?document.all[divid]:document.getElementById(divid);if(divToolTip.EnableMouseOver=="true")
{setOpacity(document.getElementById('dhtmltooltip'),0);ddrivetip(divToolTip.innerHTML,310);window.fadeTime=20;fadeIn('dhtmltooltip',0);}}
function outThumb()
{hideddrivetip();}
function toggleDivListOptions(id)
{var MetaDataListIDArray=Array();MetaDataListIDArray=ListID.split(/,/);for(var i=0;i<MetaDataListIDArray.length;i++)
{if(id==MetaDataListIDArray[i])
{if(document.getElementById('ulList'+id).style.display=='none'){document.getElementById('ulList'+MetaDataListIDArray[i]).style.display='block';document.getElementById('imgList'+id).src=ApplicationPath+'/images/'+id+'_expanded.gif';}
else
{document.getElementById('ulList'+MetaDataListIDArray[i]).style.display='none';document.getElementById('imgList'+id).src=ApplicationPath+'/images/'+id+'_collapsed.gif';}}
else
{document.getElementById('ulList'+MetaDataListIDArray[i]).style.display='none';document.getElementById('imgList'+MetaDataListIDArray[i]).src=ApplicationPath+'/images/'+MetaDataListIDArray[i]+'_collapsed.gif';}}}