var xy=null;function ShowToolTipDIv(a,b){document.getElementById(b).style.display="block"}function HideToolTipDIv(a){document.getElementById(a).style.display="none"}function ShowToolTipDIv(a,b,c,d,e){document.getElementById(b).style.display="block";document.getElementById(b).style.top=TopPos(document.getElementById(c),d);document.getElementById(b).style.left=LeftPos(document.getElementById(c),e)}function HideToolTipDIv(a){document.getElementById(a).style.display="none"}
function ShowAllTags(){document.getElementById("spanAllTags").style.display="inline";document.getElementById("spanTags").style.display="none";document.getElementById("spanTags").style.visibility="hidden";document.getElementById("hdnTagsStatus").value="1"}
function ShowLessTags(){document.getElementById("spanAllTags").style.display="none";document.getElementById("spanTags").style.display="inline";document.getElementById("spanTags").style.visibility="visible";document.getElementById("hdnTagsStatus").value="0"}function ShowAllDesc(){document.getElementById("spanAllDescription").style.display="inline";document.getElementById("spanDescription").style.display="none"}
function ShowLessDesc(){document.getElementById("spanAllDescription").style.display="none";document.getElementById("spanDescription").style.display="inline"}function SelectData(a){a.select()}function openShare(){xy!=null&&!xy.closed?xy.focus():xy=window.open(m_strServerURL+"presentation-share.aspx?pun="+PUN,"","left=0,top=0,width=600,height=560,status=1,scrollbars=yes")}function SetFocus(){document.getElementById("aPost1").focus()}
function ShowCmt(a){a=a.innerHTML;a=a.replace(/^\s+/,"");a=a.replace(/\s+$/,"");if(a=="Post a Comment"){try{document.getElementById("tdPost").style.display="inline",document.getElementById("btnPostCmt").focus(),document.getElementById("txtComments").focus(),document.getElementById("txtComments").value=""}catch(b){}return!1}else return!0}
function ValidateFlagComments(a,b,c){b=document.getElementById(b);b.style.display="none";c=document.getElementById(c);c.className="str_txtarea_clsnew";a=document.getElementById(a);a.className="str_txtarea_clsnew_listbox";if(a.selectedIndex<=0)return b.innerHTML="Choose option",b.style.display="block",a.className="str_txtarea_clsnew_listbox_red",a.focus(),!1;a=new String(c.value);a=a.replace(/^\s+/,"");a=a.replace(/\s+$/,"");if(a==""){b.innerHTML="Enter comments";b.style.display="block";c.className=
"str_txtarea_clsnew_red";try{c.focus()}catch(d){}return!1}else if(IsNotHtmlTags(a)){if(a.length>1500){b.innerHTML="You can enter only upto 1500 characters";b.style.display="block";try{c.focus()}catch(e){}return!1}document.getElementById("tdPost").style.display="none";document.getElementById("divMarkIt").style.display="none";document.getElementById("divFlag2").style.display="none";return!0}else{b.innerHTML="Invalid characters";b.style.display="block";try{c.focus()}catch(f){}return!1}}
function trimString(a){return(this!=window?this:a).replace(/^\s+/g,"").replace(/\s+$/g,"")}
function ValidateComments(a,b){var c,d;c=a==null||a=="undefined"?document.getElementById("spMsg"):document.getElementById(a);d=b==null||b=="undefined"?document.getElementById("txtComments"):document.getElementById(b);c.innerHTML="";d.value=trimString(d.value);var e=new String(d.value);e=e.replace(/^\s+/,"");e=e.replace(/\s+$/,"");var f=!1;if(e==""){c.innerHTML="Enter comments";try{d.focus()}catch(g){}f=!1}else{if(e.length>1500){c.innerHTML="You can enter only upto 1500 characters";try{d.focus()}catch(j){}}else c.innerHTML=
"";if(IsNotHtmlTags(e)){if(e.length>1500)c.innerHTML="You can enter only upto 1500 characters";f=!0}else c.innerHTML="Invalid characters",f=!1}if(f)document.getElementById("divLoadingComments").style.display="inline";return f}
function ShowHideTranscript(a){a==!0?(document.getElementById("imgMinusTrans").style.display="block",document.getElementById("imgPlusTrans").style.display="none",document.getElementById("divPresentationTrans").style.display="block"):(document.getElementById("imgMinusTrans").style.display="none",document.getElementById("imgPlusTrans").style.display="block",document.getElementById("divPresentationTrans").style.display="none")}if(!document.all)document.onmousemove=MousePosition;var mX,mY;
function MousePosition(a){document.all||(mX=a.pageX+10,mY=a.pageY+20)}function getIEVersionNumber(){var a=navigator.userAgent,b=a.indexOf("MSIE ");return b==-1?0:parseFloat(a.substring(b+5,a.indexOf(";",b)))}var divName=null,divNameOld=null;
function ShowProfileDiv(a,b,c,d){try{if(divNameOld!=void 0)document.getElementById(divNameOld).style.display="none"}catch(e){}try{if(divNameTopOld!=void 0)document.getElementById(divNameTopOld).className=""}catch(f){}divNameOld=divName=b;divNameTopOld=c;document.getElementById(divName).innerHTML="<div class='PopUpDiv'><img src='"+m_strServerURL+"Images/loader.gif'/>&nbsp;Loading...</div";document.getElementById(divName).style.display="block";document.getElementById(c).className="newcatdivyellowTop";
if(getIEVersionNumber()==6)document.getElementById(b).className="newcatdivmail6";oXMLHTTP=GetXmlHttpObject();oXMLHTTP.onreadystatechange=stateUploadedByChanged;oXMLHTTP.open("GET",m_strServerURL+"UserProfileDiv.aspx?"+d+"="+a,!0);oXMLHTTP.send(null)}function stateUploadedByChanged(){if(oXMLHTTP.readyState==4||oXMLHTTP.readyState=="complete"){var a=oXMLHTTP.responseText,b=a.indexOf("<div1>"),c=a.indexOf("</form>")-1;a=a.substring(b,c);document.getElementById(divName).innerHTML=a}}
function ShowProfileDiv3(a){document.getElementById("MainProfileDiv").innerHTML="<div class='PopUpDiv'><img src='"+m_strServerURL+"Images/loader.gif'/>&nbsp;<span class='verdana11r858585'>Loading...</span></div";var b=document.getElementById("MainProfileDiv");b.style.display="block";if(document.all){var c=172;b.style.left=parseInt(event.clientX)+document.documentElement.scrollLeft-15;if(parseInt(b.style.left)+parseInt(c)>screen.width)b.style.left=screen.width-c-40;b.style.top=parseInt(event.clientY)+
parseInt(10)+document.documentElement.scrollTop-3}else{c=172;b.style.left=parseInt(mX)+document.documentElement.scrollLeft-20+"px";if(parseInt(b.style.left)+parseInt(c)>screen.width)b.style.left=screen.width-c-40+"px";b.style.top=parseInt(mY)-parseInt(10)+"px"}pXMLHTTP=GetXmlHttpObject();pXMLHTTP.onreadystatechange=stateChanged;pXMLHTTP.open("GET",m_strServerURL+"UserProfileDiv.aspx?Pid="+a,!0);pXMLHTTP.send(null)}
function stateChanged(){if(pXMLHTTP.readyState==4||pXMLHTTP.readyState=="complete"){var a=pXMLHTTP.responseText,b=a.indexOf("<div1"),c=a.indexOf("</form>")-1;a=a.substring(b,c);document.getElementById("MainProfileDiv").innerHTML=a}}function GetXmlHttpObject(){return window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}
function HideProfileDiv(){document.getElementById("MainProfileDiv").style.display="none";if(document.getElementById("divProfile")!=void 0)document.getElementById("divProfile").style.display="none";for(var a=0;a<10;a++)if(document.getElementById("dlstComments"+a+"_divProfile")!=void 0)document.getElementById("dlstComments"+a+"_divProfile").style.display="none";for(a=0;a<6;a++)if(document.getElementById("dlstRelatedUser"+a+"_divProfile")!=void 0)document.getElementById("dlstRelatedUser"+a+"_divProfile").style.display=
"none";try{if(typeof divNameTopOld!="undefined")document.getElementById(divNameTopOld).className="newcatdivTop"}catch(b){}try{if(divName!=void 0)document.getElementById(divName).style.display="none"}catch(c){}}
function changeTabCss(a,b,c,d){document.getElementById(a).className="p_yellowtabActive";document.getElementById(b).className="p_yellowtabInactive";document.getElementById(c).className="p_yellowtabInactive";document.getElementById("txtEmbedPresentation").style.display="none";document.getElementById("txtURL").style.display="none";document.getElementById("txtEmbedThumbnail").style.display="none";if(d=="Embed")document.getElementById("txtEmbedPresentation").style.display="inline";else if(d=="URL")document.getElementById("txtURL").style.display=
"inline";else if(d=="Thumbnail")document.getElementById("txtEmbedThumbnail").style.display="inline"}function SetDefaultInAppr(){document.getElementById("txtFlag2Comments").value="";document.getElementById("ddlFlagIt2").selectedIndex=0}function HideSignUp(){document.getElementById("pnlFadeIn").style.display="none"}function HideSignInFavDiv(){document.getElementById("SignInFavDiv").style.display="none"}
function addToFavorites(){document.all?window.external.AddFavorite(document.location.href,document.title):window.sidebar.addPanel(document.title,document.location.href,"")}function ShowProgressBar(){PopupShow("DivProgressBar","modalBackground")}var OldChar;
function CheckIELength(){return document.getElementById("txtComments").value.length>1500?(document.getElementById("spMsg").innerHTML="You can enter only upto 1500 characters",document.getElementById("txtComments").className="input_txtbox_cmts_red",event.keyCode=0,!1):(document.getElementById("spMsg").innerHTML="",document.getElementById("txtComments").className="p_txtarea",!0)}
function CheckFFLength(a,b,c){b=b==null||b=="undefined"?document.getElementById("spMsg"):document.getElementById(b);if((c==null||c=="undefined"?document.getElementById("txtComments"):document.getElementById(c)).value.length>1500){b.innerHTML="You can enter only upto 1500 characters";if(a.which==17||a.which==8||a.which==46)return OldChar="17",a.returnValue=!0;if(OldChar=="17")return a.returnValue=!0,OldChar="",!0;c=["0","8","9","36","35","37","38","39","40","45","46"];for(b=0;b<c.length;b++)if(c[b]==
a.which){a.returnValue=!0;break}b==c.length&&a.preventDefault&&a.preventDefault();return!1}else return b.innerHTML="",!0}function ShowBlog(a){PopupShow("div1","modalBackground");GigyaCode(a)}function GigyaCode(a){Wildfire.initPost("213441","divWildfirePost",400,200,{defaultContent:a,UIConfig:'<config><display showEmail="false" showBookmark="true" showCodeBox="false" networksToHide="blackplanet, wordpress, migente, bebo, myspacecomment" /></config>'})}
function SetFeaturedValue(a){document.getElementById("featuredIndex").value=a.selectedIndex;document.getElementById("featuredValue").value=a.options[a.selectedIndex].text}function SetInnappValue(a){document.getElementById("inappIndex").value=a.selectedIndex;document.getElementById("inappVal").value=a.options[a.selectedIndex].text}function clickButton(a,b){try{var c=a?a:window.event,d=document.getElementById(b);if(d&&c.keyCode==13)return ValidateTags()?(d.click(),!0):!1}catch(e){}}
document.onclick=function(a){try{if(window.event)a=window.event;(a.srcElement?a.srcElement:a.target).id.indexOf("lnkProfile")==-1&&HideProfileDiv()}catch(b){}};
function SetPubPri(){document.getElementById("presType").innerHTML=="Make Private :"?document.getElementById("chkPublic").checked?document.getElementById("hValPriPub").value="1":document.getElementById("hValPriPub").value="0":document.getElementById("chkPublic").checked?document.getElementById("hValPriPub").value="0":document.getElementById("hValPriPub").value="1"}
function YoutubeAfterLoginSettings(){document.getElementById("hdnYoutubeStatus").value=="1"?(PopupShow("divYoutube","modalBackground"),document.getElementById("divLoaderYoutube").style.display="none",document.getElementById("divYoutubeUpload").style.display="block",document.getElementById("btnSendYoutube").focus()):(PopupShow("divYoutube","modalBackground"),document.getElementById("divLoaderYoutube").style.display="none",document.getElementById("divYoutubeEdit").style.display="block",document.getElementById("lblYoutubeMsg").innerHTML=
"Sorry, your login was incorrect.",document.getElementById("tblYoutube").className="redbardiv")}
function CloseYoutubeDiv(){document.getElementById("divLoaderYoutube").style.display="block";document.getElementById("divYoutubeEdit").style.display="none";document.getElementById("divYoutubeUpload").style.display="none";document.getElementById("lblYoutubeMsg").innerHTML="Login to your YouTube account to send this Presentation.";document.getElementById("tblYoutube").className="greybardiv";var a=document.getElementById("txtUsername"),b=document.getElementById("txtPwdYouTube");a.style.border="2px solid #DFDFDF";
b.style.border="2px solid #DFDFDF";b.value="";PopupClose()}
function ValidateYoutubeLogin(){var a=!0,b=document.getElementById("txtUsername"),c=document.getElementById("txtPwdYouTube");b.value==""?(a=!1,b.style.border="2px solid #D00B0B",b.focus()):b.style.border="2px solid #DFDFDF";document.getElementById("txtPwdYouTube").value.length==0?(a=!1,c.style.border="2px solid #D00B0B",c.focus()):c.style.border="2px solid #DFDFDF";if(a==!1)document.getElementById("lblYoutubeMsg").innerHTML="*Some fields were missed.",document.getElementById("tblYoutube").className=
"redbardiv";if(a==!0)document.getElementById("divLoaderYoutube").style.display="block",document.getElementById("divYoutubeEdit").style.display="none",document.getElementById("lblYoutubeLoader").innerHTML="Processing...";return a}
function ShowYoutubeInfo(){PopupShow("divYoutube","modalBackground");document.getElementById("txtUsername").value="";document.getElementById("txtPwdYouTube").value="";document.getElementById("divLoaderYoutube").style.display="none";document.getElementById("divYoutubeEdit").style.display="block";document.getElementById("txtUsername").focus();document.getElementById("divYoutubeUpload").style.display="none"}
function DissLive(){PUN=PUN.replace(".","");window.open(m_strServerURL+"PresentLive/"+PUN,"","top=0,left=0,status=no,resizable=no")}
function ShowEditPane(a){document.getElementById("lblError").innerHTML="";document.getElementById("imgUpdateButton").style.display="block";if(a=="editPublicError")a="editPublic",document.getElementById("presType").innerHTML="Make Private :",document.getElementById("imgUpdateButton").style.display="none",document.getElementById("spnDetailPubPriv").style.color="red";else if(a=="editPublic")document.getElementById("spnIsPublic").innerHTML=="Public"?(document.getElementById("presType").innerHTML="Make Private :",
document.getElementById("spnDetailPubPriv").innerHTML="(Checking this checkbox will make this Presentation private and it won\u2019t show in search results, or in Your public profile.)"):(document.getElementById("presType").innerHTML="Make Public :",document.getElementById("spnDetailPubPriv").innerHTML="(Checking this checkbox will make this Presentation available for all users and search engines.)");document.getElementById("editPublic").style.display="none";document.getElementById("editCategory").style.display=
"none";document.getElementById("editLicense").style.display="none";document.getElementById("editDesc").style.display="none";document.getElementById("editTitle").style.display="none";document.getElementById("editDownload").style.display="none";document.getElementById("editDownloadVideo").style.display="none";document.getElementById(a).style.display="block";document.getElementById("hOpenFor").value=a;if(document.getElementById("hOpenFor").value=="editPublic")document.getElementById("lblTitleToEdit").innerHTML=
"Presentation Display Settings";else if(document.getElementById("hOpenFor").value=="editLicense")document.getElementById("lblTitleToEdit").innerHTML="Edit Presentation License";else if(document.getElementById("hOpenFor").value=="editCategory")document.getElementById("lblTitleToEdit").innerHTML="Edit Presentation Category";else if(document.getElementById("hOpenFor").value=="editDesc")document.getElementById("lblTitleToEdit").innerHTML="Edit Presentation Description";else if(document.getElementById("hOpenFor").value==
"editTitle")document.getElementById("lblTitleToEdit").innerHTML="Edit Presentation Title";else if(document.getElementById("hOpenFor").value=="editDownload")document.getElementById("lblTitleToEdit").innerHTML="Allow Presentation Download";else if(document.getElementById("hOpenFor").value=="editDownloadVideo")document.getElementById("lblTitleToEdit").innerHTML="Allow Video & iPod Download";PopupShow("divEditInfoPres","modalBackground");document.getElementById("chkPublic").checked=!1;document.getElementById("divLoaderEdit").style.display=
"none";document.getElementById("divEdit").style.display="block"}
function ValidateUpdate(){document.getElementById("lblError").innerHTML="";if(document.getElementById("hOpenFor").value=="editDesc"){if(ValidateUpdateDesc()==!1)return!1}else if(document.getElementById("hOpenFor").value=="editTitle"){if(ValidateUpdateTitle()==!1)return!1}else document.getElementById("hOpenFor").value=="editPublic"&&SetPubPri();document.getElementById("divEdit").style.display="none";document.getElementById("divLoaderEdit").style.display="block";return!0}
function ValidateOnKeyPress(a){var b=-1;b=navigator.appName=="Microsoft Internet Explorer"?a.keyCode:a.which;if((Number(b)==8||Number(b)==46)&&ValidateUpdateDesc())return document.getElementById("lblError").innerHTML="",!0;a=["0","9","36","35","37","38","39","40","45","17","8","46"];for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return ValidateUpdateDesc()}
function ValidateUpdateDesc(){document.getElementById("lblError").innerHTML="";if(trimString(document.getElementById("txtDescEdit").value).length>500)return document.getElementById("lblError").innerHTML="* Maximum length for Description is 500.",!1;return!0}
function ValidateUpdateTitle(){if(trimString(document.getElementById("txtTitleEdit").value).length==0)return document.getElementById("lblError").innerHTML="* Title for Presentation is required.",!1;if(trimString(document.getElementById("txtTitleEdit").value).indexOf(">")>=0||trimString(document.getElementById("txtTitleEdit").value).indexOf("<")>=0)return document.getElementById("lblError").innerHTML="* Invalid Characters in Title.",!1;return!0}
function CountCharactersGeneral(a,b,c){c=c==null||c=="undefined"?document.getElementById("spMsg"):document.getElementById(c);if(event.keyCode>=37&&event.keyCode<=40||event.keyCode==13||event.keyCode==17)return!0;else c.innerHTML="";a=document.getElementById(a);if(a!=null&&a.value.length>b){c.innerHTML="You can enter only upto "+b+" characters";if(event.keyCode==8||event.keyCode==46)return!0;return!1}return!0}
function ValidateSplCharAndLength(a,b){var c;c=b==null||b=="undefined"?document.getElementById("spMsg"):document.getElementById(b);var d=document.getElementById(a);if(trimString(d.value).length==0)return c.innerHTML="Enter comments.",!1;if(CountCharactersGeneral(a,1500)==!0)if(ValidateComments(b,a)==!0){c.innerHTML="";if(b==null||b=="undefined")document.getElementById("inptCmnts").value="1";return!0}else return!1;else return!1}
function ValidateSplCharAndLengthFF(a,b){var c;c=b==null||b=="undefined"?document.getElementById("spMsg"):document.getElementById(b);c.innerHTML="";sourceTextBox=document.getElementById(a);var d=trimString(sourceTextBox.value).length;if(d==0)return c.innerHTML="Enter comments.",!1;else if(Number(d)>1500)return c.innerHTML="You can enter only upto 1500 characters",!1;if(ValidateComments(b,a)==!0){if(b==null||b=="undefined")document.getElementById("inptCmnts").value="1";return!0}else return!1}
var strURL=new String;strURL=location.href;if(strURL.indexOf("www",0)==-1){var subURL=new String(strURL.substring(7,strURL.length)),domain=strURL.substring(7,23);if(domain=="authorstream.com"||domain=="authorstream.com/"){var strFullURL="http://www."+subURL;location.replace(strFullURL)}}
function copy_Text(){try{document.getElementById("txtWordPress").select();var a=document.getElementById("txtWordPress");if(navigator.appName=="Netscape"){if(!document.getElementById("flashcopier")){var b=document.createElement("div");b.id="flashcopier";document.body.appendChild(b)}document.getElementById("flashcopier").innerHTML="";var c='<embed src="'+m_strServerURL+"SWF/clip.swf?s="+encodeURIComponent(a.value)+'" width="1" height="1" type="application/x-shockwave-flash"></embed>';document.getElementById("flashcopier").innerHTML=
c}else navigator.appName=="Microsoft Internet Explorer"&&(Copied=a.createTextRange(),Copied.execCommand("Copy"))}catch(d){alert(d)}}function ShowProgress(){if(document.getElementById("dlstRelatedUser"))document.getElementById("dlstRelatedUser").style.display="none";if(document.getElementById("lblMsgRelated"))document.getElementById("lblMsgRelated").style.display="none";document.getElementById("lblLoadingMsg").style.display="block";setTimeout("UpdateImg();",1)}
function ShowInsertTags(){document.getElementById("divFlag2").style.display="none";if(document.getElementById("divInsertTags").style.display=="none")document.getElementById("divInsertTags").style.display="block",document.getElementById("txtTags").value="",document.getElementById("txtTags").focus()}
function CloseInsertTags(){document.getElementById("divInsertTags").style.display="none";document.getElementById("spnAddTags").style.display="block";document.getElementById("lblTagError").style.display="none"}
function ValidateTags(){var a=!0,b=document.getElementById("txtTags"),c=document.getElementById("txtTags").value.replace(/^\s+|\s+$/g,"");document.getElementById("lblTagError").innerHTML="";if(c!="")for(var d=0;d<c.length;d++)if("~`!@#%^&*()+=[]\\'./{}|\":<>?_".indexOf(c.charAt(d))!=-1){a=!1;b.className="add_tags_div_txtbox1_red";document.getElementById("lblTagError").innerHTML="Special characters are not allowed.<br>";break}else b.className="add_tags_div_txtbox1";else a=!1,document.getElementById("lblTagError").innerHTML=
"Enter Tags.<br>",document.getElementById("lblTagError").style.display="inline",b.className="add_tags_div_txtbox1_red",document.getElementById("spnAddTags").style.display="none";if(a==!0)document.getElementById("divTagsArea").style.display="none",PopupShow("divUpdate","modalBackground");return a}
function SetCustomBorderColor(a,b,c){if(b==null||b=="undefined")b="playerPreview";document.getElementById(b).style.borderStyle="solid";document.getElementById(b).style.borderColor=a;document.getElementById("hValOfCOl").value=a;c!=null&&c!="undefined"?SetCustBorderWidth(b,"selOptWid",1):SetCustBorderWidth(b,"ddlCustEmbWidthPaid");return!1}
function SetCustBorderWidth(a,b,c){if(b==null||b=="undefined")b="selOptWid";a=document.getElementById(b).selectedIndex;b=document.getElementById(b)[a].value;document.getElementById("hValOfWid").value=b;c!=null&&c!="undefined"?SetCustProperties():SetCustProperties("dlCustEmbdSizePaid","txtCustEmbedPaid","divBorder","rbIncPaid","rdoCustomLogo","rdoShowNavigation");return!1}
function SetCustProperties(a,b,c,d,e,f){document.getElementById("loaderDownloadSWF").src=m_strServerURL+"images/loader_availibility.gif";if(a==null||a=="undefined")a="ddlCustSize";if(b==null||b=="undefined")b="txtCustEmbed";if(c==null||c=="undefined")c="playerPreview";if(d==null||d=="undefined")d="rbInclRel";var g=document.getElementById(a).selectedIndex;document.getElementById(a);a=document.getElementById(a)[g].innerHTML;document.getElementById(f)!=null&&document.getElementById(f)!="undefined"&&
document.getElementById(f).checked==0&&(a=="389x324"?a="389x292":a=="425x354"?a="425x319":a=="481x402"?a="481x361":a=="501x416"?a="501x376":a=="601x492"&&(a="601x451"));g=a.split("x");a=document.getElementById("hdnGenerateEmbedFrom").value.replace(/width="425"/g,'width="'+g[0]+'"').replace(/height="354"/g,'height="'+g[1]+'"');var j=document.getElementById("hdnThemeColor").value;document.getElementById(c).style.borderStyle="none";document.getElementById("divDisEnb").className="";if(document.getElementById(f)!=
null&&document.getElementById(f)!="undefined")if(document.getElementById(f).checked==1){a=a.replace(/p=/g,"n=1&p=");document.getElementById("rdoAutoHideNavigation")!=null&&document.getElementById("rdoAutoHideNavigation")!="undefined"&&document.getElementById("rdoAutoHideNavigation").checked==1&&(a=a.replace(/p=/g,"ah=1&p="));if(document.getElementById("divPPUseLog")!=null&&document.getElementById("divPPUseLog")!="undefined")document.getElementById("divPPUseLog").disabled=!1;if(document.getElementById("divIncDntInclRel")!=
null&&document.getElementById("divIncDntInclRel")!="undefined")document.getElementById("divIncDntInclRel").disabled=!1}else{if(document.getElementById("divPPUseLog")!=null&&document.getElementById("divPPUseLog")!="undefined")document.getElementById("divPPUseLog").disabled=!0;if(document.getElementById("divIncDntInclRel")!=null&&document.getElementById("divIncDntInclRel")!="undefined")document.getElementById("divIncDntInclRel").disabled=!0;if(document.getElementById("rbIncPaid")!=null&&document.getElementById("rbIncPaid")!=
"undefined")document.getElementById("rbIncPaid").checked=0;if(document.getElementById("rbDntIncPaid")!=null&&document.getElementById("rbDntIncPaid")!="undefined")document.getElementById("rbDntIncPaid").checked=1;if(document.getElementById("rdoCustomLogo")!=null&&document.getElementById("rdoCustomLogo")!="undefined")document.getElementById("rdoCustomLogo").checked=0;if(document.getElementById("rdoNoLogo")!=null&&document.getElementById("rdoNoLogo")!="undefined")document.getElementById("rdoNoLogo").checked=
1;document.getElementById("divDisEnb").className="divFade";a=a.replace(/p=/g,"n=0&p=")}if(document.getElementById("hValOfWid").value!="0px"&&document.getElementById("hValOfWid").value!="No Border"){document.getElementById(c).style.borderStyle="solid";f=document.getElementById("hValOfCOl").value;var h=document.getElementById("hValOfWid").value;document.getElementById(c).style.borderWidth=h;c!="playerPreview"?a=document.getElementById(d).checked==!0?a.replace(/p=/g,"c="+j+"&p="):a.replace(/p=/g,"r=0&c="+
j+"&p="):document.getElementById(d).checked!=!0&&(a=a.replace(/p=/g,"r=0&p="));trimString(h)!=""&&trimString(h)!="0px"&&trimString(h)!="No Border"&&(c=Number(g[0])+Number(h.replace("px","")*2),a=a.replace(/<object width/g,"<div style='float:left;width:"+c+"'><div style='border-style:solid; border-color:"+f+"; border-width:"+h+"; float:left;'><object width"),a=a.replace(/object>/g,"object></div>"))}else c!="playerPreview"&&trimString(j)!=""&&(a=a.replace(/p=/g,"c="+j+"&p=")),document.getElementById(d).checked!=
!0&&(a=a.replace(/p=/g,"r=0&p="));if(e!=null&&e!="undefined")if(document.getElementById(e).checked==!0)if(e=document.getElementById("hCustLogo").value.replace(/.gif/g,""),e!=null&&e!="undefined"&&trimString(e)!=""){if(document.getElementById("divPPUseLog")!=null&&document.getElementById("divPPUseLog")!="undefined"&&document.getElementById("divPPUseLog").style.display!="none"&&(Number(e.indexOf("#NoTemplates#"))==-1?a=a.replace(/p=/g,"l="+e+"&p="):Number(document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#"))==
-1||document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#")==-1||document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#")=="-1"||(a=a.replace(/p=/g,"l=0&p="))),document.getElementById("imgLogo")!=null&&document.getElementById("imgLogo")!="undefined")document.getElementById("imgLogo").src=m_strServerURL+"Premium/Logo/preview_"+e}else{if(document.getElementById("divPPUseLog")!=null&&document.getElementById("divPPUseLog")!="undefined"&&document.getElementById("divPPUseLog").style.display!=
"none"&&(a=a.replace(/p=/g,"l=0&p=")),document.getElementById("imgLogo")!=null&&document.getElementById("imgLogo")!="undefined")document.getElementById("imgLogo").src=m_strServerURL+"Premium/Logo/as_default_Logo.gif"}else if(document.getElementById("divPPUseLog")!=null&&document.getElementById("divPPUseLog")!="undefined"&&document.getElementById("divPPUseLog").style.display!="none"&&(a=a.replace(/p=/g,"l=0&p=")),document.getElementById("imgLogo")!=null&&document.getElementById("imgLogo")!="undefined")document.getElementById("imgLogo").src=
m_strServerURL+"Premium/Logo/as_default_Logo.gif";if(document.getElementById("hdnEmbed")!=null||document.getElementById("hdnEmbed")=="undefined")if(Number(document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#"))==-1||document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#")==-1||document.getElementById("hdnEmbed").value.indexOf("#ChangedTempOfPres#")=="-1")document.getElementById("hdnEmbed").value=a+"#ChangedTempOfPres#";document.getElementById(b).value=a;return!1}
function ChangeTheme(a,b){document.getElementById("hdnThemeColor").value=a;document.getElementById("divThemeImage").className=b;SetCustProperties("dlCustEmbdSizePaid","txtCustEmbedPaid","divBorder","rbIncPaid","rdoCustomLogo","rdoShowNavigation")}function HideInfoConnect(a){document.getElementById(a).style.display="none"}
function ShowInfoConnect(a,b,c,d){document.getElementById(b).value="";if(document.getElementById("divsOpenForReply").value!=""){var e=document.getElementById("divsOpenForReply").value;document.getElementById(e).style.display="none";document.getElementById("divsOpenForReply").value=""}document.getElementById(a).style.display="block";document.getElementById("divsOpenForReply").value=a;document.getElementById("hdnReplyId").value="";document.getElementById(c).innerHTML="";try{document.getElementById(d).focus(),
document.getElementById(b).focus()}catch(f){}}function SetEditText(a,b,c,d,e,f){ShowInfoConnect(a,b,e,f);document.getElementById(b).value=document.getElementById(c).innerHTML.replace(/<br>/g,"").replace(/<BR>/g,"");document.getElementById("hdnReplyId").value=d}function SetEditTextByText(a,b,c,d,e,f){ShowInfoConnect(a,b,e,f);document.getElementById(b).value=c;document.getElementById("hdnReplyId").value=d}
function ValidateReplies(a,b,c){return ValidateSplCharAndLength(a,b)?(document.getElementById(c).style.display="block",ShowHideCommentProgressLoaders(0),!0):!1}function ValidateRepliesFF(a,b,c){return ValidateSplCharAndLengthFF(a,b)?(document.getElementById(c).style.display="block",ShowHideCommentProgressLoaders(0),!0):!1}
function ShowHideCommentProgressLoaders(a){a==0?(document.getElementById("divProgressPanelComment").style.display="none",document.getElementById("divLoadingComments").style.display="none"):(document.getElementById("divProgressPanelComment").style.display="block",document.getElementById("divLoadingComments").style.display="block")}
function EnableDisableCommentsSection(a,b,c,d){a==1?(document.getElementById(c).style.display="none",document.getElementById(d).style.display="inline",document.getElementById(b).style.display="inline"):(document.getElementById(c).style.display="inline",document.getElementById(b).style.display="none",document.getElementById(d).style.display="none");return!0}
function ShowCreateVideoLessThan5mins(){document.getElementById("divVideoOptions").style.display="none";document.getElementById("spnZoomSizeVideoMoreThan5Mins").style.visibility="visible";document.getElementById("spnZoomSizeVideoLessThan5Mins").style.visibility="visible";PopupShow("divVideoOptionLessThan5Mins","modalBackground");document.getElementById("hdnVideoFormatDefault").value=0;document.getElementById("divLoaderVideoOption").style.display="none";document.getElementById("divEditVideoOption").style.display=
"block";document.getElementById("divUpdatingVideoOption").style.display="none"}function HideVideoLessThan5minsPopup(){document.getElementById("divLoaderVideoOption").style.display="none";document.getElementById("divEditVideoOption").style.display="none";document.getElementById("divUpdatingVideoOption").style.display="block";setTimeout("UpdateImg();",5)}
function UpdateImg(){document.getElementById("imgLoaderPrivateSettings")!=null&&document.getElementById("imgLoaderPrivateSettings")!="undefined"?document.getElementById("imgLoaderPrivateSettings").src="<%=strSiteUrl %>images/loader.gif":document.getElementById("loading_msg").src=m_strServerURL+"images/loader.gif"}
function FillNewItems(a){document.getElementById(a).length=0;for(var b=document.getElementById("hdnOutputTypes").value.split(","),c=0;c<b.length;c++)document.getElementById(a).options[c]=new Option(b[c],b[c])}function fnSetDDL(a,b){for(var c=0;c<=document.getElementById(a).length-1;c+=1)if(document.getElementById(a).options[c].value==b){document.getElementById(a).selectedIndex=c;break}}
function ShowCreateVideoMoreThan5mins(a){document.getElementById("divVideoOptionsMore").style.display="none";a>0?(PopupShow("divVideoOptionMoreThan5Mins","modalBackground"),document.getElementById("hdnVideoFormatDefault").value=0,document.getElementById("spnReededm").style.display="inline",document.getElementById("hdnRedeem").value="1",document.getElementById("divLoaderVideoOptionMoreThan5Mins").style.display="none",document.getElementById("divEditVideoOptionMoreThan5Mins").style.display="block",
document.getElementById("divUpdatingVideoOptionMoreThan5Mins").style.display="none"):a==-1?(PopupShow("divVideoOptionMoreThan5Mins","modalBackground"),document.getElementById("hdnVideoFormatDefault").value=0,document.getElementById("spnReededm").style.display="none",document.getElementById("hdnRedeem").value="0",document.getElementById("divLoaderVideoOptionMoreThan5Mins").style.display="none",document.getElementById("divEditVideoOptionMoreThan5Mins").style.display="block",document.getElementById("divUpdatingVideoOptionMoreThan5Mins").style.display=
"none"):PopupShow("divNoVideoOption","modalBackground")}function HideVideoMoreThan5minsPopup(){document.getElementById("divLoaderVideoOptionMoreThan5Mins").style.display="none";document.getElementById("divEditVideoOptionMoreThan5Mins").style.display="none";document.getElementById("divUpdatingVideoOptionMoreThan5Mins").style.display="block";setTimeout("UpdateImg();",5)}
function validatePasscode(a,b){if(trimString(document.getElementById("txtPassCode").value)=="")return document.getElementById("lblPassCodeMsg").innerHTML="*PassCode Required",document.getElementById("lblPassCodeMsg").style.color="red",document.getElementById("txtPassCode").style.borderColor="red",!1;CheckPassCode(a,b)}
function CheckPassCode(a,b){b=document.getElementById(b);document.getElementById("imgLoader").style.visibility="visible";document.getElementById("imgLoader").style.display="inline";authorSTREAM.BizLayer.Presentation.ValidatePassCode(a,b.value,CheckPassCode_Callback)}
function CheckPassCode_Callback(a){if(a.value==1){document.getElementById("spnPassCode").style.display="none";document.getElementById("spnBlocked").style.display="none";document.getElementById("spnMatureContent").style.display="none";document.getElementById("divPresentation").style.display="block";document.getElementById("divPresentation").Visible=!0;try{if(document.getElementById("Ptranscript")!="undefined"||document.getElementById("Ptranscript")!=null)document.getElementById("Ptranscript").Visible=
!0}catch(b){}}else document.getElementById("lblPassCodeMsg").innerHTML="Please enter valid Passcode.",document.getElementById("spnPassCode").style.display="block";document.getElementById("imgLoader").style.visibility="hidden";document.getElementById("imgLoader").style.display="none"}function clickButtonPassCode(a,b){try{var c=a?a:window.event,d=document.getElementById(b);if(d&&c.keyCode==13)return d.click(),!0}catch(e){}}
function DownloadFlashNoPlayerDiv(){SetCustProperties("dlCustEmbdSizePaid","txtCustEmbedPaid","divBorder","rbIncPaid","rdoCustomLogo","rdoShowNavigation");PopupShow("divRebuildPPT","modalBackground");document.getElementById("divEditRebuild").style.display="inline";document.getElementById("divLoaderRebuild").style.display="none";document.getElementById("generalHeading").style.display="block";document.getElementById("generalDetail").style.display="block";document.getElementById("embedDetail").style.display=
"none";document.getElementById("embedHeading").style.display="none";document.getElementById("hdnRebuildFrom").value="RebuildFromDownloadflashfile";return!1}
function EmbedNoPlayerDivForPremium(){PopupShow("divRebuildPPT","modalBackground");document.getElementById("divEditRebuild").style.display="inline";document.getElementById("divLoaderRebuild").style.display="none";document.getElementById("generalHeading").style.display="none";document.getElementById("generalDetail").style.display="none";document.getElementById("embedDetail").style.display="block";document.getElementById("embedHeading").style.display="block";document.getElementById("hdnRebuildFrom").value=
"RebuildFromEmbed";return!1}function SetLoginActionValue(a){document.getElementById("hdnLoginAction").value=a}function CreateURLCookie_Callback(){}
function DownloadPPT(a,b){if(navigator.appName=="Microsoft Internet Explorer")window.open(m_strServerURL+"Presentation-download.aspx?pptdownload="+a+"&IDs="+b,"openppt","top=0,left=0,status=no,resizable=no,height=1,width=1");else{var c=document.createEvent("MouseEvents");c.initEvent("click",!0,!0);document.getElementById("hlnkDownload").dispatchEvent(c)}}
function DownloadVideo(a){ClearCookies(a);a=document.getElementById("hlnkDownloadIpod").href;navigator.appName=="Microsoft Internet Explorer"?window.open(a,"openvideo","top=0,left=0,status=no,resizable=yes,height=300,width=300"):window.location.href=a}function MarkInAppropriate(a){ClearCookies(a);SetDefaultInAppr();PopupShow("divFlag2","modalBackground")}
function ClearCookies(a){if(navigator.userAgent.toLowerCase().indexOf("msie 6.0")!=-1)authorSTREAM.BizLayer.Presentation.CreateLoginActionCookie("",CreateURLCookie_Callback);else{var b=new Date;b.setDate(b.getDate()+365);document.cookie="action=; domain="+a+"; expires="+b+"; path=/"}document.getElementById("hdnLoginAction").value=""}function AddToFavorite(){document.getElementById("imgAddToFav").click()}function TopPos(a,b){for(var c=0;a;)c+=a.offsetTop,a=a.offsetParent;return c+b+"px"}
function LeftPos(a,b){for(var c=0;a;)c+=a.offsetLeft,a=a.offsetParent;return c+b+"px"}function SetReplyEmailId(a){document.getElementById("hdnEmailIdForReply").value=a}
function addpptext(a,b){if(document.getElementById("addppt"))document.getElementById("addppt").innerHTML="This Presentation has already been added to channel: ",document.getElementById("channelpage").style.display="block",document.getElementById("channelpage").innerHTML=a,document.getElementById("channelpage").href=m_strServerURL+b+"/"+a.replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-")+"/",document.getElementById("addTochannel").style.display="none",document.getElementById("channelDropdown").style.display=
"none"}function AddTextMessage(){document.getElementById("chPPTMsg").innerHTML="The presentation has been successfully added to the channel:"}
function setFocusDiv(a,b,c,d,e){try{if(document.getElementById("addppt"))document.getElementById("addppt").innerHTML="You have not added this Presentation to any channel yet!",document.getElementById("channelpage").style.display="none";document.getElementById("chPPTMsg").innerHTML="Presentation already added by you in Channel:<br/>";document.getElementById("addTochannel").style.display="block";document.getElementById("channelDropdown").style.display="block";document.getElementById("lblChnlSel2").innerHTML=
"";document.getElementById("lblChnlSel1").innerHTML="";var f;document.getElementById("hdnChannelPID").value=a;if(b==0)document.getElementById("ddlChannels").options[0].selected=!0,PopupShow("divForAddChnlSett","modalBackground");else{f=document.getElementById("ddlChannelsEdit");for(i=0;i<f.length;i++)if(c==document.getElementById("ddlChannelsEdit").options[i].value){document.getElementById("ddlChannelsEdit").options[i].selected=!0;break}document.getElementById("anchChannel").href=m_strServerURL+e+
"/"+d.replace(" ","-")+"/";document.getElementById("anchChannel").innerHTML=d;PopupShow("divForEditChnlSett","modalBackground")}return!1}catch(g){}}
function ShowLoading(a){if(a=="0"){a=document.getElementById("ddlChannels").selectedIndex;if(a=="0")return document.getElementById("lblChnlSel2").innerHTML="Please select a channel first.",document.getElementById("lblChnlSel1").innerHTML="Please select a channel first.",!1;PopupShow("divProcessChannel","modalBackground")}else if(a=="2"){a=document.getElementById("ddlChannelsEdit").selectedIndex;if(a=="0")return document.getElementById("lblChnlSel2").innerHTML="Please select a channel first.",document.getElementById("lblChnlSel1").innerHTML=
"Please select a channel first.",!1;PopupShow("divProcessChannel","modalBackground")}else a=="3"&&PopupShow("divProcessChannel","modalBackground");document.getElementById("divForAddChnlSett").style.display="none";document.getElementById("divForEditChnlSett").style.display="none";return!0}
function ShowChannelDivs(){var a=document.getElementById("hOpenFor").value;document.getElementById("divForAddChnlSett").style.display="none";document.getElementById("divForEditChnlSett").style.display="none";PopupClose();a=="0"?PopupShow("divForAddChnlSett","modalBackground"):a=="1"&&PopupShow("divForEditChnlSett","modalBackground");document.getElementById("divProcessChannel").style.display="none"}
function ShowHideVideoOptions(a,b){document.getElementById("hdnVideoFormatDefault").value="1";document.getElementById(a).style.display="block";document.getElementById(b).style.display="none"}
function VideoFormatsChanged(a,b,c,d,e,f){operation=document.getElementById(a).selectedIndex;document.getElementById(e).selectedIndex=0;if(f!="")document.getElementById(f).style.display="inline";if(operation=="1")document.getElementById(b).style.display="none";else if(document.getElementById(b).style.display="inline",operation=="2")document.getElementById(d).style.display="inline",document.getElementById(c).style.display="none",document.getElementById(d).selectedIndex=1,document.getElementById(e).selectedIndex=
1;else if(operation=="0")document.getElementById(d).style.display="none",document.getElementById(c).style.display="inline",document.getElementById(c).selectedIndex=1};
