function ShowContentList(a){photoIframe.window.ShowContentList(a)}function AppendPhotoToContentList(a){photoIframe.window.AppendPhotoToContentList(a)}function showNowDoingBubble(){photoIframe.window.showNowDoingBubble()}function delPhotoProgress(a){photoIframe.window.delPhotoProgress(a)}function delPhotoFinish(a){console.log(delPhotoFinish);photoIframe.window.delPhotoFinish(a)}function showAddPhotoDlg(a){photoIframe.window.showAddPhotoDlg(a)}function updateAddedInfo(a){console.log(a);photoIframe.window.updateAddedInfo(a)}function ResetGFolderId(a){photoIframe.window.ResetGFolderId(a)}function addFile(a){console.log(a);photoIframe.window.addFile(a)}function showPhoto(a){console.log(a);photoIframe.window.showPhoto(a)}function updateFolderList(a){console.log(a);photoIframe.window.updateFolderList(a)}function apendtable(j){var d=$("#folder_group");var b,k,n,m,l,c;var e;var h;b="";if(j!=""&&j!=null){for(var f=0;f<j.length;f++){n=j[f]["folderid"];m=j[f]["foldername"];l=j[f]["photonum"];k=j[f]["focusid"];c=j[f]["folderpath"];h='<li class="category-list" id="'+n+'"path="'+c+'">\n<div class="listIconBg photoManager"></div>\n<div class="fileName">'+m+'</div>\n<div class="listNum">('+l+")</div>\n</li>\n";b+=h}console.log(b)}var g=$("#photolist");g.html(b);var a=$(".category-list");addFolderEvent(a);setFirstFolderHighlight()}function setFirstFolderHighlight(){var a=$(".category-list");a.removeClass("category-list-click");var b=$("#photolist");var c=$("#photolist").children().first();c.addClass("category-list-click");$(".category").css("background-position-y","0px")}function addFolderEvent(a){if($.browser.msie&&($.browser.version==6||$.browser.version==7)){var b=parseInt($(".category-name").css("max-width"));$(".category-name").each(function(){if($(this).width()>b){$(this).width(b)}})}a.unbind("mouseup").unbind("hover").unbind("mouseleave").mouseup(function(d){if(d.button==2){return}var c=$(".category-list");c.removeClass("category-list-click");$(this).addClass("category-list-click");$(".category").css("background-position-y","0px");g_Folderid=$(this).attr("id");setgloableFolderid(g_Folderid);SetPromptHide();ResetSlectnumber();cef.param=g_Folderid;cef.media("showContentByFolderid");$("#popInOrOut").hide();$("#popOutType").hide();$("#popInType").hide();$("#rightClick").hide()}).mouseleave(function(){$("#opTips").hide()}).mouseenter(function(){showPathTips(this)})}function showPathTips(b){var e=$(b).attr("path");if(typeof(e)=="undefined"||e==""||e.length==0){return}$("#opTips").text($(b).attr("path"));var c=$(b);var a=$(b).offset().left;var f=$(b).offset().top;var d=$(b).height();$("#opTips").css({left:a+15,top:f+d}).show()}function updateThumbnail(a){photoIframe.window.updateThumbnail(a)}function setgloableFolderid(a){photoIframe.window.setgloableFolderid(a)}function updateFolder(c,a){var b="#"+c;console.log(a);$(b).find(".listNum").text("( "+a+" )")}function updateDeleteFolder(a){if(a!=""&&a!=null){for(var b=0;b<a.length;b++){var c="#"+a[b]["folder_id"];var d=a[b]["folder_number"];$(c).find(".listNum").text("( "+d+" )")}}}function getSlectedFolderId(){var a=-1;a=$(".category-list-click").attr("id");console.log(a);return a}function updateLeftFolderNumber(a){console.log(a);var f,e,b;e=a[0]["number"];f=a[0]["folderid"];b=a[0]["foldername"];var d;var c="";$("#"+f).find(".listNum").text("( "+e+" )")}function ClearContentList(){photoIframe.window.ClearContentList()}function RefershAddImageListItem(a){photoIframe.window.RefershAddImageListItem(a)}function SetRefershButtonState(a){photoIframe.window.SetRefershButtonState(a)}function SetPromptHide(){photoIframe.window.SetPromptHide()}function ResetSlectnumber(){photoIframe.window.ResetSlectnumber()}function showSideBarCover(){$("#sideBarCover").show()}function hideSideBarCover(){$("#sideBarCover").hide()}function removePhotoListHighlight(){$("#photolist .category-list").removeClass("category-list-click")};