var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y0){for(var af=0;af0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad'}}aa.outerHTML='"+af+"";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;abGet Adobe Flash player

'}e=e||xiuxiu.defaultID;xiuxiu.editorType=Number(c)||xiuxiu.lightEditor.type;xiuxiu.attributes={};xiuxiu.attributes.name=xiuxiu.attributes.id=e;xiuxiu.flashvars.objectID=xiuxiu.attributes.id;if(xiuxiu.editorType==xiuxiu.lightPuzzle.type){a=xiuxiu.lightPuzzle.url;xiuxiu.params.base=xiuxiu.lightPuzzle.base;f=f||xiuxiu.lightPuzzle.width;l=l||xiuxiu.lightPuzzle.height}else{if(xiuxiu.editorType==xiuxiu.richEditor.type){a=xiuxiu.richEditor.url;xiuxiu.params.base=xiuxiu.richEditor.base;f=f||xiuxiu.richEditor.width;l=l||xiuxiu.richEditor.height}else{if(xiuxiu.editorType==xiuxiu.daitoutie.type){a=xiuxiu.daitoutie.url;xiuxiu.params.base=xiuxiu.daitoutie.base;f=f||xiuxiu.daitoutie.width;l=l||xiuxiu.daitoutie.height}else{if(xiuxiu.editorType==xiuxiu.avatarEditor.type){a=xiuxiu.avatarEditor.url;xiuxiu.params.base=xiuxiu.avatarEditor.base;f=f||xiuxiu.avatarEditor.width;l=l||xiuxiu.avatarEditor.height}else{a=xiuxiu.lightEditor.url;xiuxiu.params.base=xiuxiu.lightEditor.base;f=f||xiuxiu.lightEditor.width;l=l||xiuxiu.lightEditor.height;xiuxiu.editorType=xiuxiu.lightEditor.type}}}}var g={};for(var j in xiuxiu.flashvars.defaultvars){g[j]=xiuxiu.flashvars.defaultvars[j]}if(xiuxiu.flashvars[xiuxiu.defaultID]){for(j in xiuxiu.flashvars[xiuxiu.defaultID]){g[j]=xiuxiu.flashvars[xiuxiu.defaultID][j]}}if(xiuxiu.flashvars[e]){for(j in xiuxiu.flashvars[e]){g[j]=xiuxiu.flashvars[e][j]}}var k={};for(j in xiuxiu.params){k[j]=xiuxiu.params[j]}if(xiuxiu.single){var d=xiuxiu.swfs.length;for(var h=0;h0?xiuxiu.swfs[0].id:xiuxiu.defaultID);swfobject.removeSWF(c);var a=xiuxiu.swfs.length;for(var b=a-1;b>-1;b--){if(xiuxiu.swfs[b].id==c){xiuxiu.swfs.splice(b,1)}}};xiuxiu._init=function(a){xiuxiu.setUploadURL(xiuxiu.uploadURL,a);xiuxiu.setUploadArgs(xiuxiu.uploadArgs,a);xiuxiu.setUploadType(xiuxiu.uploadType,a);xiuxiu.setUploadDataFieldName(xiuxiu.uploadDataFieldName,a);xiuxiu.setCropPresets(xiuxiu.cropPresets,a);if(xiuxiu.onInit&&typeof(xiuxiu.onInit)=="function"){xiuxiu.onInit(a);xiuxiu._apiTrack("onInit",a)}};xiuxiu._upload=function(a){if(xiuxiu.onUpload&&typeof(xiuxiu.onUpload)=="function"){xiuxiu.onUpload(a);xiuxiu._apiTrack("onUpload",a)}};xiuxiu._beforeUpload=function(a,b){if(xiuxiu.onBeforeUpload&&typeof(xiuxiu.onBeforeUpload)=="function"){xiuxiu._apiTrack("onBeforeUpload",b);return xiuxiu.onBeforeUpload(a,b)}else{return true}};xiuxiu._uploadResponse=function(a,b){if(xiuxiu.onUploadResponse&&typeof(xiuxiu.onUploadResponse)=="function"){xiuxiu.onUploadResponse(a,b);xiuxiu._apiTrack("onUploadResponse",b,true)}};xiuxiu._saveBase64Image=function(b,d,a,c){if(xiuxiu.onSaveBase64Image&&typeof(xiuxiu.onSaveBase64Image)=="function"){xiuxiu.onSaveBase64Image(b,d,a,c);xiuxiu._apiTrack("onSaveBase64Image",c)}};xiuxiu._browse=function(c,b,a,d){if(xiuxiu.onBrowse&&typeof(xiuxiu.onBrowse)=="function"){xiuxiu.onBrowse(c,b,a,d);xiuxiu._apiTrack("onBrowse_"+c+"_"+b+"_"+a,d)}};xiuxiu._browseCancel=function(a){if(xiuxiu.onBrowseCancel&&typeof(xiuxiu.onBrowseCancel)=="function"){xiuxiu.onBrowseCancel(a);xiuxiu._apiTrack("onBrowseCancel",a)}};xiuxiu._close=function(a){if(xiuxiu.onClose&&typeof(xiuxiu.onClose)=="function"){xiuxiu.onClose(a);xiuxiu._apiTrack("onClose",a,true)}};xiuxiu._debug=function(a,b){if(xiuxiu.onDebug&&typeof(xiuxiu.onDebug)=="function"){xiuxiu.onDebug(a,b);xiuxiu._apiTrack("onDebug",b)}};xiuxiu.loadPhoto=function(b,c,f,e){var d=e||{};d.uploadType=xiuxiu.uploadType;d.base64=Boolean(c);if(b){d.images=d.imageURL=b}if(xiuxiu.uploadURL){d.uploadURL=xiuxiu.uploadURL}if(xiuxiu.uploadArgs){d.uploadArgs=xiuxiu.uploadArgs}if(xiuxiu.uploadDataFieldName){d.uploadDataFieldName=xiuxiu.uploadDataFieldName}if(xiuxiu.getEditor(f)){var a=xiuxiu._getEditorTypeByID(f);if(a==xiuxiu.richEditor.type){if(b){d.loadImageChannel=d.loadImageChannel||"main";xiuxiu.getEditor(f).loadImages(b,d)}}else{xiuxiu.getEditor(f).loadPhoto(d)}}xiuxiu._apiTrack("loadPhoto_"+typeof(b)+"_"+Boolean(c),f)};xiuxiu.upload=function(a,b,c,d){xiuxiu.uploadURL=a||xiuxiu.uploadURL;xiuxiu.uploadArgs=b||xiuxiu.uploadArgs;c=c||xiuxiu.uploadType;if((c==1||c==3)&&xiuxiu.getEditor(d)){xiuxiu.getEditor(d).upload(xiuxiu.uploadURL,xiuxiu.uploadArgs,c)}xiuxiu._apiTrack("upload",d)};xiuxiu.reset=function(){xiuxiu.uploadURL="";xiuxiu.uploadArgs=null;xiuxiu.uploadType=1;xiuxiu.uploadDataFieldName=xiuxiu.defaultUploadDataFieldName};xiuxiu.getEditor=function(a){a=a||(xiuxiu.swfs.length>0?xiuxiu.swfs[0].id:xiuxiu.defaultID);return xiuxiu._getFlash(a)};xiuxiu.setUploadURL=function(a,b){xiuxiu.uploadURL=a;if(xiuxiu.uploadURL&&xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).setParam){xiuxiu.getEditor(b).setParam("uploadURL",a)}if(a){xiuxiu._apiTrack("setUploadURL",b)}};xiuxiu.setUploadArgs=function(a,b){xiuxiu.uploadArgs=a;if(xiuxiu.uploadArgs&&xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).setParam){xiuxiu.getEditor(b).setParam("uploadArgs",a)}if(a){xiuxiu._apiTrack("setUploadArgs",b)}};xiuxiu.setUploadType=function(a,b){xiuxiu.uploadType=a;if(xiuxiu.uploadType&&xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).setParam){xiuxiu.getEditor(b).setParam("uploadType",xiuxiu.uploadType)}xiuxiu._apiTrack("setUploadType_"+xiuxiu.uploadType,b)};xiuxiu.setUploadDataFieldName=function(a,b){xiuxiu.uploadDataFieldName=a;if(xiuxiu.uploadDataFieldName&&xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).setParam){xiuxiu.getEditor(b).setParam("uploadDataFieldName",a)}xiuxiu._apiTrack("setUploadDataFieldName_"+a,b)};xiuxiu.setCropPresets=function(a,b){xiuxiu.cropPresets=a;if(a&&xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).setParam){xiuxiu.getEditor(b).setParam("cropPresets",a)}if(a){xiuxiu._apiTrack("setCropPresets_"+typeof(a),b)}};xiuxiu.setLaunchVars=xiuxiu.setFlashvars=function(a,b,c){c=c||xiuxiu.defaultID;xiuxiu.flashvars[c]=xiuxiu.flashvars[c]||{};if(a=="cropPresets"){if(b.constructor==Array){xiuxiu.flashvars[c][a]=encodeURIComponent(xiuxiu.stringify(b))}else{xiuxiu.flashvars[c][a]=b}}else{if(a=="customMenu"){if(b.constructor==Array){xiuxiu.flashvars[c][a]=encodeURIComponent(xiuxiu.stringify(b))}else{xiuxiu.flashvars[c][a]=b}}else{xiuxiu.flashvars[c][a]=b}}xiuxiu._apiTrack("setLaunchVars_"+a+"_"+typeof(b))};xiuxiu._setHeight=function(a,b){if(xiuxiu.getEditor(b)){xiuxiu.getEditor(b).height=a}xiuxiu._apiTrack("setHeight",b)};xiuxiu._mouseWheel=function(b,a){if(xiuxiu.getEditor(a)&&xiuxiu.getEditor(a).mouseWheel){xiuxiu.getEditor(a).mouseWheel(b)}};xiuxiu.uploadStart=function(a,b){if(xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).uploadStart){xiuxiu.getEditor(b).uploadStart(a)}xiuxiu._apiTrack("uploadStart",b)};xiuxiu.uploadResponse=function(a,b){if(xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).uploadResponse){xiuxiu.getEditor(b).uploadResponse(a)}xiuxiu._apiTrack("uploadResponse",b)};xiuxiu.uploadFail=function(a,b){if(xiuxiu.getEditor(b)&&xiuxiu.getEditor(b).uploadFail){xiuxiu.getEditor(b).uploadFail(a)}xiuxiu._apiTrack("uploadFail",b)};xiuxiu._getFlash=function(b){var a=document.getElementById(b);if(!a){if(navigator.appName.indexOf("Microsoft")!=-1){a=window[b]}else{a=document[b]}}return a};xiuxiu._getEditorTypeByID=function(e){var a=xiuxiu.swfs.length;e=e||(a>0?xiuxiu.swfs[0].id:xiuxiu.defaultID);var d;var c=xiuxiu.lightEditor.type;for(var b=0;b0){xiuxiu.getEditor(c).apiTrack(xiuxiu.unstatAPI,Boolean(b));xiuxiu.unstatAPI=[]}}};(function(a){window.xiuxiu=window.xiuxiu||{};window.xiuxiu.stringify=a()})(function(){var d=Object.prototype.toString,b=function(e){return d.call(e)==="[object Array]"},a=function(e){return d.call(e)==="[object Object]"};function c(k){var j=[],g,e,f,h=false;if(b(k)){j.push("[");for(g=0,e=k.length;g