var picture={upload:function(){$("#uploadify").uploadify({uploader:"uploadify/uploadify.swf",script:escape("?app=picture&controller=picture&action=upload&auth="+ct.getCookie(COOKIE_PRE+"auth")),method:"POST",fileDesc:"\u6ce8\u610f:\u60a8\u53ea\u80fd\u4e0a\u4f20jpeg,png,gif\u683c\u5f0f\u7684\u6587\u4ef6!",fileExt:"*.jpg;*.jpeg;*.gif;*.png;",cancelImg:"images/cancel.png",queueID:"fileQueue",buttonImg:"images/upload.gif",width:"80",height:"22",auto:true,multi:true,onComplete:function(a,b,d,c){if(c!=
0){a=c.split("|");group.add(a[0],a[1])}else ct.error("\u5bf9\u4e0d\u8d77\uff01\u60a8\u4e0a\u4f20\u6587\u4ef6\u8fc7\u5927\u800c\u5931\u8d25!")},onError:function(a,b,d,c){ct.error(c.type+c.info)}})},zip:function(){$("#uploadzip").uploadify({uploader:"uploadify/uploadify.swf",script:escape("?app=picture&controller=picture&action=upload&auth="+ct.getCookie(COOKIE_PRE+"auth")),method:"POST",fileDesc:"\u6ce8\u610f:\u60a8\u53ea\u80fd\u4e0a\u4f20Zip\u683c\u5f0f\u7684\u6587\u4ef6!",fileExt:"*.zip;",cancelImg:"images/cancel.png",
queueID:"fileQueue",buttonImg:"images/upzip.gif",width:"80",height:"22",auto:true,multi:false,onComplete:function(a,b,d,c){if(c!=0){a=c.split(",");for(k=0;k<a.length;k++){b=a[k].split("|");group.add(b[0],b[1])}}else ct.error("\u5bf9\u4e0d\u8d77\uff01\u60a8\u4e0a\u4f20\u6587\u4ef6\u8fc7\u5927\u800c\u5931\u8d25!")},onError:function(a,b,d,c){ct.error(c.type)}})},remote:function(){ct.form("\u8fdc\u7a0b\u91c7\u96c6","?app=picture&controller=picture&action=remote",400,220,function(a){if(a.state){$.each(a.data,
function(b,d){img=d.split("|");group.add(img[0],img[1])});return true}else ct.error(a.error)})},select:function(){ct.fileManager(function(a){for(k=0;k<a.length;k++){var b=a[k];group.add(b.aid,b.src)}},null,true)}};
