function DisRtclickopt(){try{document.getElementById("EmailAdv").disabled=true;document.getElementById("EmailAdv").style.cursor="none";document.getElementById("readOut").disabled=true;document.getElementById("readOut").style.cursor="none";document.getElementById("clip").disabled=true;document.getElementById("clip").style.cursor="none";document.getElementById("VUrl").disabled=true;document.getElementById("VUrl").style.cursor="none"}catch(A){}}function HidBlurb(){try{document.getElementById("Blurb2").style.visibility="hidden";document.getElementById("Blurb").style.visibility="hidden"}catch(A){}}function fadeoutclose(){try{if(!curGlideLyr){if(Ex1.isHalted){Ex1.fader.fadeOut();Ex1.isHalted=false}}if(Ex2.isHalted){Ex2.fader.fadeOut();Ex2.isHalted=false}if(Ex3.isHalted){Ex3.fader.fadeOut();Ex3.isHalted=false}if(Ex4.isHalted){Ex4.fader.fadeOut();Ex4.isHalted=false}}catch(A){}}function VisitURL(){try{if(currentURL!==""){if(chck=="False"){if(confirm("You need to Register/Login to access this feature")){window.location.href=LoginPageURL}return false}if(ZoomStatus!=1){window.open(currentURL,"VisitUrl","left=200,top=200,width=650,height=500,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes")}}}catch(A){}}function showpodcast(){document.getElementById("divPgSrc").style.cursor="pointer";setDblclick=0;DisRtclickopt();setCropsState();fadeoutclose();url="podcast.aspx?dayName="+sCurrentPage;displayLoading();jsRemoteCall(url)}var DispPodcast;function ShowPodcastLinks(A){document.getElementById("divPgSrc").style.cursor="pointer";setDblclick=0;DisRtclickopt();setCropsState();fadeoutclose();DispPodcast=window.open(A,"art","left=220,top=120,width=550,height=550,toolbar=no,menubar=no,status=no,address=no,scrollbars=yes,resizable=yes,titlebar=no");DispPodcast.focus()}function EmailAdvertiser(){try{var B=1;var A;var C;if(CurrentAdvertiser!=""){if(chck=="False"){if(confirm("You need to Register/Login to access this feature")){window.location.href="Login.aspx"}return false}if(ZoomStatus!=1){C="MailTo.aspx?toadd="+CurrentAdvertiser+"&typ="+B;window.open(C,"AdvMail","width=580,height=350,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes")}}}catch(D){}}function MM_preloadImages(){try{var E=document;if(E.images){if(!E.MM_p){E.MM_p=new Array()}var C,B=E.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){E.MM_p[B]=new Image;E.MM_p[B++].src=A[C]}}}}catch(D){}}function MM_findObj(F,E){try{var D,B,A;if(!E){E=document}if((D=F.indexOf("?"))>0&&parent.frames.length){E=parent.frames[F.substring(D+1)].document;F=F.substring(0,D)}if(!(A=E[F])&&E.all){A=E.all[F]}for(B=0;!A&&B<E.forms.length;B++){A=E.forms[B][F]}for(B=0;!A&&E.layers&&B<E.layers.length;B++){A=MM_findObj(F,E.layers[B].document)}if(!A&&E.getElementById){A=E.getElementById(F)}return A}catch(C){}}function MM_swapImgRestore(){try{var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}catch(D){}}function MM_swapImage(){try{var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}catch(E){}}function DisableLink(A){try{if(A==1){var C=document.getElementById("aPrev");var D=document.getElementById("aPrev1")}else{var C=document.getElementById("aNext");var D=document.getElementById("aNext1");blNextpg=0}C.style.cursor="default";D.style.cursor="default"}catch(B){}}function EnableLink(C,A,H,F,B){try{if(B==1){var E=document.getElementById("aPrev");var G=document.getElementById("aPrev1")}else{var E=document.getElementById("aNext");var G=document.getElementById("aNext1")}if(window.XMLHttpRequest){E.style.cursor="pointer";G.style.cursor="pointer"}else{E.style.cursor="hand";G.style.cursor="hand"}}catch(D){}}function funcFirst(){try{if(aPrevPg){setCropsState();func2(gDid,sCurrentPage,gS)}}catch(A){}}function funcPrev(){try{if(aPrevPg){setCropsState();func2(gDid,aPrevPg,gS)}else{if(strPrevpg){document.getElementById("aPrev").style.cursor="hand";setCropsState();func2(gDid,strPrevpg,gS)}}}catch(A){}}function funcLast(){try{setCropsState();func2(gDid,lPg,gS)}catch(A){}}function ArticleRating(A){try{document.getElementById("divPgSrc").style.cursor="pointer";if(setDblclick==1){setDblclick=0}DisRtclickopt();if(chck=="False"){window.location.href="Login.aspx";return false}if(document.getElementById("divZoom").style.display=="block"){document.getElementById("divZoom").style.display="none";ZoomStatus=0}if(chck=="False"){if(confirm("You need to Register/Login to access this feature")){window.location.href="Login.aspx"}return false}displayLoading();jsRemoteCall(A)}catch(B){}}function AdGallerySearch(A,B,D){try{setDblclick=0;document.getElementById("divPgSrc").style.cursor="none";DisRtclickopt();if(isLoginRequired){if(chck=="False"){window.location.href="Login.aspx";return false}}Ex4.handleClick();setCropsState()}catch(C){}}function adGallery(A,B,D){try{document.getElementById("divPgSrc").style.cursor="auto";DisRtclickopt();jsSearch(A,B,D);fadeoutclose();if(document.getElementById("divZoom").style.display=="block"){document.getElementById("divZoom").style.display="none";ZoomStatus=0}return false}catch(C){}}function advncSearch(){document.getElementById("divPgSrc").style.cursor="auto";setDblclick=0;fadeoutclose();if(document.getElementById("divZoom").style.display=="block"){document.getElementById("divZoom").style.display="none";ZoomStatus=0}jsASSearch("article");return false}function DisplayArchives(){try{if(chck=="False"){window.location.href="Login.aspx";return false}var A;A="DispSearchArchives.aspx";displayLoading();jsRemoteCall(A)}catch(B){}}function showMyClippings(){try{document.getElementById("divPgSrc").style.cursor="pointer";setDblclick=0;DisRtclickopt();setCropsState();fadeoutclose();if(BrwsrName.substring(0,2)=="Ne"){if(document.getElementById("e_content").style.overflow=="auto"){if(navigator.userAgent.indexOf("Safari")==-1){document.getElementById("e_content").style.overflow="hidden"}}}var A;A=0;while(A<=document.getElementsByName("x_imp").length-1){document.getElementsByName("x_imp").item(A).style.overflow="hidden";A=A+1}if(chck=="False"){window.location.href="Login.aspx";return false}if(document.getElementById("divZoom").style.display=="block"){document.getElementById("divZoom").style.display="none";ZoomStatus=0}var B;B="ShowMyClippings.aspx?mode=1&t="+Math.random();displayLoading();jsRemoteCall(B);onOffIcons(2)}catch(C){}}function DeleteMyClippings(F){try{document.getElementById("divPgSrc").style.cursor="pointer";var C=document.getElementById("hClipCount").value;var G;G=false;for(var B=1;B<=C;B++){if(document.getElementById("chk"+B).checked){G=true}}if(G){if(confirm("Are you sure want to delete the selected Clippings?")){var A;A="";for(var B=1;B<=C;B++){if(document.getElementById("chk"+B).checked){if(A==""){A=A+document.getElementById("chk"+B).value}else{A=A+"__"+document.getElementById("chk"+B).value}}}var D;D="ShowMyClippings.aspx?strDelList="+A+"&mode=1";displayLoading();jsRemoteCall(D)}}else{alert("Please select atleast one item.")}}catch(E){}}function ShowHideLeftLinks(E,A,D){try{var F=document.getElementById(E);var C=document.getElementById(A);if(F.style.display=="none"){F.style.display="block"}else{F.style.display="none"}}catch(B){}}function HideLeftLinks(E,A,D){try{var F=document.getElementById(E);var C=document.getElementById(A);if(F.style.display=="block"){F.style.display="none"}}catch(B){}}function ShowLeftLinks(E,A,D){try{var F=document.getElementById(E);var C=document.getElementById(A);if(F.style.display=="none"){F.style.display="block"}}catch(B){}}function ShowHideLeftLinks1(F,B,E){try{var G=document.getElementsByName(F);var D=document.getElementById(B);for(var A=0;A<G.length;A++){if(G[A].style.display=="none"){G[A].style.display="block"}else{G[A].style.display="none"}}}catch(C){}}function onOffIcons(A){}function showPref(){try{isOther=true;HidBlurb();var A=AjaxUtilsMethods.CheckUserLoginStatus();var B=A.value;if(B=="Valid"){var C;C=VirtualPath+"/Profile.html";DisplayProfile(C)}else{document.getElementById("Profile").style.display="none";if(confirm("You need to Register/Login to access this feature")){window.location.href=LoginSPageURL}return false}}catch(D){}}function DisplayRSS(){try{document.getElementById("divPgSrc").style.cursor="auto";setDblclick=0;DisRtclickopt();url="ShowRSSLinks.aspx?dayName="+sCurrentPage;displayLoading();jsRemoteCall(url)}catch(A){}}function register(B){try{if(chck=="False"){if(confirm(B)){window.location.href="Login.aspx"}}}catch(A){}}function oPgAftLog(E,A,D,C,B){if(chck=="False"){if(confirm(E)){window.location.href="Login.aspx?selPg="+A+"&page="+D+"&ed="+C+"&artHigh="+B}}}function mulOnLoad(){try{if(document.getElementById("pgFlash")){var C=document.getElementById("pgFlash").innerHTML;openFlash(C)}if(chck!="False"){if(document.getElementById("pgAudio")){var A=document.getElementById("pgAudio").innerHTML;playAudio(A)}}}catch(B){}}function enablezoom(){try{if(BrwsrName.substring(0,2)=="Ne"){if(zoomenable=="true"){document.getElementById("divPgSrc").setAttribute("style","Z-INDEX: 1; LEFT: 0px; OVERFLOW: hidden; WIDTH: 596px; CURSOR: url(images/zoomin_icon.ico),auto; POSITION: relative; TOP: 0px; HEIGHT: 996px")}else{document.getElementById("divPgSrc").setAttribute("style","Z-INDEX: 1; LEFT: 0px; OVERFLOW: hidden; WIDTH: 596px; CURSOR:pointer; POSITION: relative; TOP: 0px; HEIGHT: 996px")}}else{if(zoomenable=="true"){document.getElementById("divPgSrc").style.cursor="images/zoomin_icon.ico"}else{document.getElementById("divPgSrc").style.cursor="pointer"}}}catch(A){}}function setimgsrc(A){try{var D=navigator.appName;var C;if(document.getElementById("pgWThmb"+A)){for(C=1;C<=parseFloat(document.getElementById("pgWThmb"+(A)).getAttribute("pgcount"));C++){if(document.getElementById("pgWThmb"+A+C)){if(D.substring(0,2)!="Ne"){var B=document.getElementById("pgWThmb"+A+C);B.src=document.getElementById("pgWThmb"+A+C).actimgsrc}else{document.getElementById("pgWThmb"+A+C).setAttribute("src",document.getElementById("pgWThmb"+A+C).getAttribute("actimgsrc"))}}}}}catch(E){}}function setCropsState(){try{if(BrwsrName.substring(0,2)!="Ne"){document.getElementById("divPgSrc").style.cursor="hand"}if(ZoomStatus!=0){ZoomStatus=0;document.getElementById("divPgSrc").style.width=596;document.getElementById("myScrollContainer").style.display="block";document.getElementById("divZoom").style.display="none";document.getElementById("divPgSrc").style.cursor="hand"}}catch(A){}}function DisplaySearch(){try{if(isLoginRequired){var C=AjaxUtilsMethods.CheckUserLoginStatus();var A=C.value;if(A=="InValid"){fired=true;if(confirm("You need to Register/Login to access this feature")){window.location.href=LoginPageURL;return false}else{return false}}}else{fired=true}selType.style.display="block";topMenuInit();moveTopMenu(1);Ex3.handleClick();Ex2.handleClick();setCropsState()}catch(B){}}function selPagesShow(B){try{if(B.value==1){document.getElementById("trSel").style.display="block"}else{document.getElementById("trSel").style.display="none"}}catch(A){}}function cropsview(A,B){try{var C;C="zoomhandler.ashx?p1= "+A+"&p2="+B+"&t="+Math.random();jsRemoteCall2(C)}catch(D){}}function checkSession(){if(document.getElementById("sVal").value=="1"){window.location.href="Login.aspx"}}function setstylecontext(){try{if(setDblclick==1){document.getElementById("EmailAdv").disabled=true;document.getElementById("EmailAdv").style.cursor="none";document.getElementById("readOut").disabled=true;document.getElementById("readOut").style.cursor="none";document.getElementById("clip").disabled=true;document.getElementById("clip").style.cursor="none";document.getElementById("VUrl").disabled=true;document.getElementById("VUrl").style.cursor="none"}else{document.getElementById("EmailAdv").disabled=false;document.getElementById("EmailAdv").style.cursor="hand";document.getElementById("readOut").disabled=false;document.getElementById("readOut").style.cursor="hand";document.getElementById("clip").disabled=false;document.getElementById("clip").style.cursor="hand";document.getElementById("VUrl").disabled=false;document.getElementById("VUrl").style.cursor="hand"}}catch(A){}}function getcor(){try{window.captureEvents(Event.CLICK);window.onclick=getMouseXY;releaseWindowCapture()}catch(A){}}function getMouseXY(A){try{if(A.pageY<100){gEveX=A.pageX}gEveY=A.pageY}catch(A){}}function LoadImages(){try{var B=document.frm1.WPath1.value;var A=new Array();var C;C=document.frm1.IHid.value;A=C.split("_");cropsview(B,C)}catch(D){}}function displayLoading(){try{var B=document.getElementById("loading");B.style.display="block";B.style.visibility="visible";var A=(document.body.offsetWidth)/2+document.body.scrollLeft;var D=(document.body.offsetHeight)/2+document.body.scrollTop;B.style.left=A-30;B.style.top=D}catch(C){}}function checkArtHigh(){try{if(g_artHigh!=""){if(window.ActiveXObject){glowArticle("article"+g_artHigh,"ie")}else{glowArticle("article"+g_artHigh,"ns")}g_artHigh=""}}catch(A){}}function pgNavArtHigh(A,B,E,D){try{g_artHigh=D;func2(A,B,E)}catch(C){}}function prefSelected(cnt,mnPg,supPg){try{var strPref="";var mnPgList="";var supPgList="";var preUrl;var i;i=0;for(i=0;i<cnt;i++){if(eval("document.getElementById('frm1').radio"+i+"[0].checked")){if(strPref==""){strPref=eval("document.getElementById('frm1').radio"+i+"[0].value")}else{strPref=strPref+","+eval("document.getElementById('frm1').radio"+i+"[0].value")}}else{if(eval("document.getElementById('frm1').radio"+i+"[1].checked")){if(strPref==""){strPref=eval("document.getElementById('frm1').radio"+i+"[1].value")}else{strPref=strPref+","+eval("document.getElementById('frm1').radio"+i+"[1].value")}}else{if(eval("document.getElementById('frm1').radio"+i+"[2].checked")){if(strPref==""){strPref=eval("document.getElementById('frm1').radio"+i+"[2].value")}else{strPref=strPref+","+eval("document.getElementById('frm1').radio"+i+"[2].value")}}else{if(eval("document.getElementById('frm1').radio"+i+"[3].checked")){if(strPref==""){strPref=eval("document.getElementById('frm1').radio"+i+"[3].value")}else{strPref=strPref+","+eval("document.getElementById('frm1').radio"+i+"[3].value")}}else{if(strPref==""){strPref=eval("document.getElementById('frm1').radio"+i+"[4].value")}else{strPref=strPref+","+eval("document.getElementById('frm1').radio"+i+"[4].value")}}}}}}for(i=0;i<mnPg;i++){if(eval("document.getElementById('frm1').radio1[1].checked")){if(eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".checked")){if(mnPgList==""){mnPgList=eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".value")}else{mnPgList=mnPgList+","+eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".value")}}}}if(eval("document.getElementById('frm1').radio1[1].checked")){if(mnPgList==""){alert("Please select a category");return }}for(i=0;i<supPg;i++){if(eval("document.getElementById('frm1').radio1[1].checked")){if(eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".checked")){if(supPgList==""){supPgList=eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".value")}else{supPgList=supPgList+","+eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".value")}}}}preUrl="Preferences.aspx?prf="+strPref+"&main="+mnPgList+"&t="+Math.random();displayLoading();jsRemoteCall(preUrl);onOffIcons(3)}catch(e){}}function cmgsoonalert(){alert("coming soon.")}function ChangePub(){try{if(document.frm1.selPub.selectedIndex!=0){document.frm1.method="post";document.frm1.action="ChangePub.aspx";document.frm1.submit()}}catch(A){}}function more_click(){try{moveTopMenu(0);if(BrwsrName.substring(0,2)=="Ne"){myowndiv.innerHTML=divMenu0.innerHTML;if(myowndiv.style.visibility=="visible"){myowndiv.style.visibility="hidden";document.getElementById("More_Div").style.overflow="hidden";document.getElementById("iLatMore").src="images/more_btn.gif"}else{myowndiv.style.visibility="visible";document.getElementById("More_Div").style.overflow="auto";document.getElementById("iLatMore").src="images/close_btn.gif"}}else{if(BrwsrName.substring(0,2)=="Mi"){moveTopMenu(0)}}}catch(A){}}function AddClippings(){try{var A=AjaxUtilsMethods.CheckUserLoginStatus();var D=A.value;if(D=="Valid"){strPublicationID=strmyEdition_Id();var C=document.getElementById(currentArticle).getAttribute("ArticleName");var F=document.getElementById("pageSourceImage").src.split("/");var G;G=F[9]+"_"+F[8]+"_"+F[7]+"_"+C;var B=AjaxUtilsMethods.ArticleClippingInsertD(strPublicationID,gMode,gTtitle,G);var H=B.value;if(H=="50001"){alert("Inserted Successfully");window.open(VirtualPath+"/ViewClippings.htm","Clippings","width=470,height=325,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes")}else{if(H=="50005"){alert("This article is already clipped.");window.open(VirtualPath+"/ViewClippings.htm","Clippings","width=470,height=325,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes")}else{alert("Problem occurred. Please try after some time.")}}}else{if(D=="InValid"){if(confirm("You need to Register/Login to access this feature")){window.location.href=LoginPageURL;return false}else{return false}}}}catch(E){}}function chgpswd(){window.open(VirtualPath+"/manageprofile.shtml","myRSSWin","left=0,top=0,width=580,height=640,toolbar=no,menubar=no,status=no,address=no,scrollbars=no,resizable=no,titlebar=no")}function UpdateAricleView(){var A="0",D="0",C="0";if(document.getElementById("DAVradio0").checked==true){A="0"}else{A="1"}var B=AjaxUtilsMethods.UpdateUserPreferences(A,0,0,0);if(B.value=="success"){alert("updated successfully");DAV=A;LoadMe(0,ImageArray[0])}}function AddArticleView(){var C=AjaxUtilsMethods.GetUserPreferences();if(C.value!="Fail"){var A=C.value;var B=A.split(",");if(TextVer=="0"){B[0]="1";document.getElementById("DAVradio0").disabled="disabled"}if(B[0]=="0"){document.getElementById("DAVradio0").checked=true}else{document.getElementById("DAVradio1").checked=true}}};