
var newNameTip={obj:null,gallery_folder:null,feed:null,path:null,'show_for_navigation':function(e)
{p=system.get_event_target(e);newNameTip.show(p,oNavigation[p.id].name);},'show_for_path':function(p,text)
{newNameTip.path=1;newNameTip.show(p,text);},'show_for_feed':function(p,text)
{newNameTip.feed=1;newNameTip.show(p,text);},'show_for_gallery_folder':function(p)
{newNameTip.gallery_folder=1;newNameTip.show(p);},'show_bottom':function(p,text)
{newNameTip.bottom=1;newNameTip.show(p,text);},'show_bottom2':function(p,text)
{newNameTip.bottom=2;newNameTip.show(p,text);},'show':function(p,text)
{if(newNameTip.obj)
newNameTip.hide();if(typeof(current_rm)=='undefined')
current_rm='';var show=1;var oPos=system.get_object_position(p);if(newNameTip.bottom)
{$j('#text_hint_bottom_bg').empty();$j('#text_hint_bottom_text').empty();$j('<span></span>').text(text).appendTo('#text_hint_bottom_bg');$j('<span></span>').text(text).appendTo('#text_hint_bottom_text');if(newNameTip.bottom==1)
{$j('#text_hint_bottom').css('top',(oPos.y-$j('#text_hint_bottom').height()-15)+'px').css('left',oPos.x+'px').show();}
else
{$j('#text_hint_bottom').css('top',(oPos.y-$j('#text_hint_bottom').height()-15)+'px').css('left',oPos.x-10+'px').show();}
newNameTip.obj=$('text_hint_bottom');newNameTip.bottom=false;}
else
{var Div=$('text_hint');$j(Div).removeClass('min_width');if(!text)
{if(nodes.obj[p.id].name!=oNodes[p.id].name||newNameTip.gallery_folder)
{$j(Div.childNodes[1]).text(oNodes[p.id].name+', '+oNodes[p.id].size);$j(Div.childNodes[2]).text(oNodes[p.id].name+', '+oNodes[p.id].size);}
else
show=0;}
else
{if(text.length<7)$j('#text_hint').addClass('min_width');$j(Div.childNodes[1]).text(text);$j(Div.childNodes[2]).text(text);}
if(show)
{if(typeof(shared_view_mode)=='undefined')
shared_view_mode=0;if(newNameTip.path)
{Div.style.left=oPos.x-18+'px';Div.style.top=oPos.y+37+'px';newNameTip.path=null;}
else if(newNameTip.feed)
{Div.style.left=oPos.x+'px';Div.style.top=oPos.y+p.offsetHeight+'px';}
else if(!shared_view_mode)
{Div.style.left=oPos.x+'px';Div.style.top=oPos.y+30+'px';}
else
{Div.style.left=oPos.x+'px';Div.style.top=oPos.y+100+'px';}
if(newNameTip.gallery_folder)
{Div.childNodes[2].innerHTML+=', '+oNodes[p.id].action['slideshow']['thumb_cnt']+' images';Div.childNodes[1].innerHTML+=', '+oNodes[p.id].action['slideshow']['thumb_cnt']+' images';Div.style.top=oPos.y+165+'px';}
newNameTip.gallery_folder=0;Div.style.display='block';newNameTip.obj=Div;}}},'hide':function()
{if(newNameTip.obj)
{$('text_hint').style.display='none';$j(newNameTip.obj).hide();newNameTip.obj=null;}}}