var castsTimeout;function hide(b){var a=document.getElementById(b);if(a){a.style.display="none"}}function show(b){var a=document.getElementById(b);if(a){a.style.display=""}}function selecttab(c){var b=c.parentNode.parentNode.childNodes;for(var a=0;a<b.length;a++){if(b[a].tagName=="LI"){b[a].className=""}}c.parentNode.className="selected"}function loader(a){}function tryAgain(a){if(typeof(Skypecasts)!="undefined"){displaySkypecasts(a)}}function displaySkypecasts(e){var b=Skypecasts[e];var h=document.getElementById(e);if(!b||!h){return}var f,d,a;var g;for(i in b){a=b[i];f=document.createElement("DIV");g=document.createElement("DIV");g.className="clearer";d='<img src="'+a.image+'" alt="'+a.title+'" class="floatl cast-image" width="74" height="74" />';d+='<div class="cast-content floatr">';if(a.title.length>50){a.title=a.title.substring(0,50)+"&hellip"}d+='<h3><a href="'+a.url_info+'">'+a.title+'</a> <span class="cast-hosted">'+_("text_skypecast_hosted_by")+' <a href="skype:'+a.host_name+'?userinfo">'+a.host_name+"</a></span></h3>";d+="<span>";for(var c=0;c<a.tags.length;c++){d+='<a href="https://skypecasts.skype.com/skypecasts/skypecast/search.html?searchtag='+a.tags[c]+'">'+a.tags[c]+"</a> "}if(a.tags.length>0){d+="<br />"}d+='<span class="cast-time">'+a.start_time_hint+"</span></span>";d+='<a href="'+a.url_info+'" class="call-button floatl"><span>'+_("btn_talk_listen")+"</span></a>";d+="</div>";f.innerHTML=d;f.className="skypecast";h.appendChild(f);if(isEven(i)==false){h.appendChild(g)}}h.className="";window.clearTimeout(castsTimeout)}function isEven(a){if(a%2==0){return true}else{return false}}function killElement(b){var a=document.getElementById(b);if(a){document.body.removeChild(a)}}function loadScript(a,d){var c=document.createElement("script");c.setAttribute("src",a);c.setAttribute("id",d);c.type="text/javascript";var b=document.body.appendChild(c);if(b){return true}else{return false}}function submitForm(b){var a=YAHOO.util.Dom;if(a.get("friend_1").value==a.get("friend_1_confirm").value){a.get(b).submit()}}YAHOO.util.Event.onDOMReady(function(){var c=YAHOO.util.Event;var d=YAHOO.util.Dom;if(document.getElementById("submitButton")){c.addListener("submitButton","click",SKYPE.util.cancelDefault);c.addListener("submitButton","click",function(){if(FIC_checkForm("shareform")){document.getElementById("shareform").submit()}})}if(document.getElementById("previewButton")){if(document.getElementById("shareform")&&document.getElementById("previewform")){c.addListener("previewButton","click",SKYPE.util.cancelDefault);c.addListener("previewButton","click",function(){if(FIC_checkForm("shareform")){var e=document.getElementById("shareform").getElementsByTagName("input");for(var f in e){if(e[f].id){var g=document.getElementById("preview_"+e[f].id);if(g&&g.tagName.toUpperCase()=="INPUT"){g.value=e[f].value}}}document.getElementById("previewform").submit()}})}}var b=d.get("addFriendButton");var a=d.get("shareFriendList");if(b){c.addListener(b,"click",SKYPE.util.cancelDefault);if(a){c.addListener(b,"click",function(){var e=(a.getElementsByTagName("input").length-2)/2;if(e<10){var f=d.getElementsByClassName("friendSample","div",a)[0].cloneNode(true);f.innerHTML=f.innerHTML.replace(/FRIENDNO/g,e+1);d.removeClass(f,"hidden");a.appendChild(f);d.get("friend_"+(e+1)+"_name").focus();if(e==9){d.addClass("addFriendButton","hidden")}}})}}d.getElementsByClassName("submitForm","a","paddedContent",function(){if(this.getAttribute("rel")){if(document.forms[this.getAttribute("rel")]){c.addListener(this,"click",SKYPE.util.cancelDefault);if(d.hasClass(this,"doSend")){c.addListener(this,"click",function(){d.getElementsByClassName("taskField","input",document.forms[this.getAttribute("rel")])[0].value="send";if(typeof FIC_checkForm!="undefined"){if(FIC_checkForm(this.getAttribute("rel"))){document.forms[this.getAttribute("rel")].submit()}}else{document.forms[this.getAttribute("rel")].submit()}})}else{if(d.hasClass(this,"doPreview")){c.addListener(this,"click",function(){d.getElementsByClassName("taskField","input",document.forms[this.getAttribute("rel")])[0].value="preview";if(typeof FIC_checkForm!="undefined"){if(FIC_checkForm(this.getAttribute("rel"))){document.forms[this.getAttribute("rel")].submit()}}else{document.forms[this.getAttribute("rel")].submit()}})}else{c.addListener(this,"click",function(){if(typeof FIC_checkForm!="undefined"){if(FIC_checkForm(this.getAttribute("rel"))){document.forms[this.getAttribute("rel")].submit()}}else{document.forms[this.getAttribute("rel")].submit()}})}}}}})});