function see_set_comment_mode(b,a,d){flashcontentDiv=document.getElementById("flashcontent");buttonsDiv=document.getElementById("see_buttons_div");backButton=document.getElementById("see_back_button");wpHome=document.getElementById("see_wp_home");wpName=document.getElementById("see_wp_name");switch(a){case"comment":commentInput=document.getElementById("comment");submitButton=document.getElementById("submit");replyId=document.getElementById("comment_reply_ID");seeAllowAnonymous=document.getElementById("see_allow_anonymous");if(b=="videoRec"){inreplyto="";if(commentReplyId==0){postVideouri=document.getElementById("see_post_videouri");if(postVideouri.value){inreplyto=postVideouri.value}else{commentsList=document.getElementById("see_comments_list");if(commentsList.value){commentsSplit=(commentsList.value+"").split(";");inreplyto=commentsSplit[0].split("=")[1]}}}else{commentsList=document.getElementById("see_comments_list");commentsSplit=(commentsList.value+"").split(";");commentsArray=new Array();for(var e in commentsSplit){valuesSplit=(commentsSplit[e]+"").split("=");commentsArray[valuesSplit[0]]=valuesSplit[1]}if(commentsArray[commentReplyId]){inreplyto=commentsArray[commentReplyId]}}flashcontentDiv.style.width="300px";flashcontentDiv.style.height="270px";var c=new SWFObject("http://seesmic.com/embeds/wrapper.swf?v="+Math.floor(Math.random()*10000001),"sobject","300","270","9","#000000");c.addVariable("version","wprecorder");c.addVariable("title",d);c.addVariable("recState",a);c.addVariable("inreplyto",inreplyto);c.addVariable("blog_id",wpHome.value);c.addVariable("allowAnonymous",seeAllowAnonymous.value);c.addVariable("blog_name",wpName.value);c.addParam("allowScriptAccess","always");c.useExpressInstall("swfobject/expressinstall.swf");c.write("flashcontent");if(document.getElementById("comment")){document.getElementById("comment").style.display="none"}if(document.getElementById("submit")){document.getElementById("submit").style.display="none"}if(document.getElementById("see_buttons_div")){document.getElementById("see_buttons_div").style.display="none"}if(document.getElementById("see_back_button")){document.getElementById("see_back_button").style.display="block"}}else{if(document.getElementById("flashcontent")){document.getElementById("flashcontent").innerHTML="";document.getElementById("flashcontent").style.width="10px";document.getElementById("flashcontent").style.height="10px"}if(document.getElementById("comment")){document.getElementById("comment").style.display="block"}if(document.getElementById("submit")){document.getElementById("submit").style.display="block"}if(document.getElementById("see_buttons_div")){document.getElementById("see_buttons_div").style.display="block"}if(document.getElementById("see_back_button")){document.getElementById("see_back_button").style.display="none"}}break;case"post":postTitleInput=document.getElementById("title");if(b=="videoRec"){flashcontentDiv.style.width="300px";flashcontentDiv.style.height="270px";var c=new SWFObject("http://seesmic.com/embeds/wrapper.swf?v="+Math.floor(Math.random()*10000001),"sobject","300","270","9","#000000");c.addVariable("version","wprecorder");c.addVariable("title",d);c.addVariable("recState",a);c.addVariable("blog_id",wpHome.value);c.addVariable("blog_name",wpName.value);c.addVariable("title",postTitleInput.value);c.addParam("allowScriptAccess","always");c.useExpressInstall("swfobject/expressinstall.swf");c.write("flashcontent");if(document.getElementById("see_buttons_div")){document.getElementById("see_buttons_div").style.display="none"}if(document.getElementById("see_back_button")){document.getElementById("see_back_button").style.display="block"}}else{if(document.getElementById("flashcontent")){document.getElementById("flashcontent").innerHTML="";document.getElementById("flashcontent").style.width="10px";document.getElementById("flashcontent").style.height="10px"}if(document.getElementById("see_buttons_div")){document.getElementById("see_buttons_div").style.display="block"}if(document.getElementById("see_back_button")){document.getElementById("see_back_button").style.display="none"}}break;default:}}function see_play_video(b,a){flashcontentDiv=document.getElementById("see_"+b+"_content");previewDiv=document.getElementById("see_"+b+"_preview");if(a){var c=new SWFObject("http://seesmic.com/embeds/wrapper.swf?v="+Math.floor(Math.random()*10000001),"sotester","300","270","9","#000000");c.addVariable("video",b);c.addVariable("version","wpplayer");c.addParam("allowFullScreen","true");c.addParam("allowScriptAccess","always");c.useExpressInstall("swfobject/expressinstall.swf");c.write("see_"+b+"_content");previewDiv.style.display="none"}else{setTimeout("flashcontentDiv.innerHTML=''; previewDiv.style.display='block';",500)}}function videoFromRecorder(c,a,b,d){if(d=="comment"){commentInput=document.getElementById("comment");submitButton=document.getElementById("see_submit");newVideo=a+" ";newVideo+="{seesmic_video:{";newVideo+='"url_thumbnail":{"value":"'+b+'"}';newVideo+='"title":{"value":"'+a+'&nbsp;"}';newVideo+='"videoUri":{"value":"'+c+'"}';newVideo+="}}";commentInput.value=newVideo;submitButton.click()}if(d=="post"){newVideo="{seesmic_video:{";newVideo+='"url_thumbnail":{"value":"'+b+'"}';newVideo+='"title":{"value":"'+a+'&nbsp;"}';newVideo+='"videoUri":{"value":"'+c+'"}';newVideo+="}}";if(document.getElementById("edButtonHTML")){if(document.getElementById("edButtonHTML").tagName=="INPUT"){document.getElementById("edButtonHTML").click()}else{if(document.getElementById("edButtonHTML").onclick!=undefined){document.getElementById("edButtonHTML").onclick()}}}if(document.getElementById("content")){setTimeout("document.getElementById('content').value += ' '+newVideo+' '",1000)}setTimeout("see_set_comment_mode('text','post')",1500)}return"posted"}function checkCommentReplyChange(){replyIdInput=document.getElementById("comment_reply_ID");if(replyIdInput){if(replyIdInput.value!=commentReplyId){commentReplyId=replyIdInput.value;see_set_comment_mode("text","comment")}}}function setCookieStrig(a){document.cookie=a}function set_cookie(j,e,g,d,f,h,c,i){var b=j+"="+escape(e);if(g){var a=new Date(g,d,f);b+="; expires="+a.toGMTString()}if(h){b+="; path="+escape(h)}if(c){b+="; domain="+escape(c)}if(i){b+="; secure"}document.cookie=b}function get_cookie(b){var a=document.cookie.match(b+"=(.*?)(;|$)");if(a){return(unescape(a[1]))}else{return null}}function delete_cookie(b){var a=new Date();a.setTime(a.getTime()-1);document.cookie=b+="=; expires="+a.toGMTString()}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(f,j,g,l,b,d,n,m,k,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f)}if(j){this.setAttribute("id",j)}if(g){this.setAttribute("width",g)}if(l){this.setAttribute("height",l)}if(b){this.setAttribute("version",new deconcept.PlayerVersion(b.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(d){this.addParam("bgcolor",d)}var i=n?n:"high";this.addParam("quality",i);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var a=(m)?m:window.location;this.setAttribute("xiRedirectUrl",a);this.setAttribute("redirectUrl","");if(k){this.setAttribute("redirectUrl",k)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var c;var b=this.getVariables();for(c in b){a[a.length]=c+"="+b[c]}return a},getSWFHTML:function(){var f="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}f='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';f+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var d=this.getParams();for(var c in d){f+=[c]+'="'+d[c]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){f+='flashvars="'+b+'"'}f+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}f='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';f+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var a=this.getParams();for(var c in a){f+='<param name="'+c+'" value="'+a[c]+'" />'}var e=this.getVariablePairs().join("&");if(e.length>0){f+='<param name="flashvars" value="'+e+'" />'}f+="</object>"}return f},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var a=(typeof c=="string")?document.getElementById(c):c;a.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var d=navigator.plugins["Shockwave Flash"];if(d&&d.description){c=new deconcept.PlayerVersion(d.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var f=1;var a=3;while(f){try{a++;f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);c=new deconcept.PlayerVersion([a,0,0])}catch(b){f=null}}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(b){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);f.AllowScriptAccess="always"}catch(b){if(c.major==6){return c}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(b){}}if(f!=null){c=new deconcept.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}}}return c};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(a){var b=document.location.search||document.location.hash;if(a==null){return b}if(b){var d=b.substring(1).split("&");for(var c=0;c<d.length;c++){if(d[c].substring(0,d[c].indexOf("="))==a){return d[c].substring((d[c].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var a=c.length-1;a>=0;a--){c[a].style.display="none";for(var b in c[a]){if(typeof c[a][b]=="function"){c[a][b]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;