try{jkmegamenu.definemenu("lnkCommunities","divCommunities","mouseover","liCommunities");jkmegamenu.definemenu("lnkSearchTools","divSearchTools","mouseover","liSearchTools");jkmegamenu.definemenu("lnkProfDevelopment","divProfDevelopment","mouseover","liProfDevelopment");jkmegamenu.definemenu("lnkGetConnected","divGetConnected","mouseover","liGetConnected");rightmegamenu.definemenu("lnkFavorites","divFavorites","mouseover","liFavorites");rightmegamenu.definemenu("lnkInbox","divInbox","mouseover","liInbox")}catch(e){}function showLoadingMessage(b){if(b!=null){b.innerHTML='Loading... <img src="/Utility/spinner.gif" />'}}function switchImage(c,b){c.src=b}function switchClass(c,b){if(c.className!=b){c.className=b}}function checkMask(c,b){if(c.valueOf==b){c.valueOf="";c.style="color: #333333"}}function closeInlineMessage(b){document.getElementById(b).className="no-display"}function ssTab(b,c){switch(b){case"1":document.getElementById("ss-people").className="ss-people-on";document.getElementById("ss-org").className="ss-tab-off-no-line";document.getElementById("ss-groups").className="ss-tab-off";document.getElementById("ss-jobs").className="ss-tab-off";document.getElementById("SearchType").value="1";break;case"2":document.getElementById("ss-people").className="ss-tab-off-no-line";document.getElementById("ss-org").className="ss-org-on";document.getElementById("ss-groups").className="ss-tab-off-no-line";document.getElementById("ss-jobs").className="ss-tab-off";document.getElementById("SearchType").value="2";break;case"3":document.getElementById("ss-people").className="ss-tab-off-no-line";document.getElementById("ss-org").className="ss-tab-off";document.getElementById("ss-groups").className="ss-groups-on";document.getElementById("ss-jobs").className="ss-tab-off-no-line";document.getElementById("SearchType").value="3";break;case"4":document.getElementById("ss-people").className="ss-tab-off-no-line";document.getElementById("ss-org").className="ss-tab-off";document.getElementById("ss-groups").className="ss-tab-off";document.getElementById("ss-jobs").className="ss-jobs-on";document.getElementById("SearchType").value="4";break;default:alert("default")}ChangeMaskText()}function mo(b){b.className="select-over"}function mot(b){b.className="select"}function tabClick(b){var f=b.substring(0,b.length-1);var d=b.substring(b.length-1,b.length);var c=1;while(document.getElementById("tab"+f+c)){if(c==(d)){if(c==1){document.getElementById("tab"+f+c).className="tab-selected"}else{document.getElementById("tab"+f+c).className="tab-selected-inner"}}else{document.getElementById("tab"+f+c).className="tab-option"}document.getElementById("tab"+f+c).focus();if(document.getElementById("div"+f+c)){if(c==(d)){document.getElementById("div"+f+c).className="display"}else{document.getElementById("div"+f+c).className="no-display"}}c++}}function randomTab(b,c){var d=Math.floor(Math.random()*c);tabClick(b+(d+1))}function tab2Click(b){var f=b.substring(0,b.length-1);var d=b.substring(b.length-1,b.length);var c=1;while(document.getElementById("tab2"+f+c)){if(c==(d)){document.getElementById("tab2"+f+c).className="tab2-selected"}else{document.getElementById("tab2"+f+c).className="tab2-option"}document.getElementById("tab2"+f+c).focus();if(document.getElementById("div2"+f+c)){if(c==(d)){document.getElementById("div2"+f+c).className="display"}else{document.getElementById("div2"+f+c).className="no-display"}}c++}}function tab3Click(b){var f=b.substring(0,b.length-1);var d=b.substring(b.length-1,b.length);var c=1;while(document.getElementById("tab3"+f+c)){if(c==(d)){document.getElementById("tab3"+f+c).className="tab3-selected"}else{document.getElementById("tab3"+f+c).className="tab3-option"}document.getElementById("tab3"+f+c).focus();if(document.getElementById("div3"+f+c)){if(c==(d)){document.getElementById("div3"+f+c).className="display"}else{document.getElementById("div3"+f+c).className="no-display"}}c++}}function tab4Click(b){var f=b.substring(0,b.length-1);var d=b.substring(b.length-1,b.length);var c=1;while(document.getElementById("tab4"+f+c)){if(c==(d)){document.getElementById("tab4"+f+c).className="tab4-selected"}else{document.getElementById("tab4"+f+c).className="tab4-option"}document.getElementById("tab4"+f+c).focus();if(document.getElementById("div4"+f+c)){if(c==(d)){document.getElementById("div4"+f+c).className="display"}else{document.getElementById("div4"+f+c).className="no-display"}}c++}}function pageClick(b){var f=b.substring(0,b.length-1);var c=b.substring(b.length-1,b.length);var d=1;while(document.getElementById("page"+f+d)){if(d==(c)){document.getElementById("page"+f+d).className="fl-left page-on"}else{document.getElementById("page"+f+d).className="fl-left page-off"}document.getElementById("page"+f+d).focus();if(document.getElementById("div"+f+d)){if(d==(c)){document.getElementById("div"+f+d).className="display"}else{document.getElementById("div"+f+d).className="no-display"}}d++}clearInterval(pageIntervalId)}function randomPage(b,c){var d=Math.floor(Math.random()*c);pageClick(b+(d+1))}var pageIntervalId=0;function autoPage(b,f,c){var d=c*1000;pageIntervalId=setInterval(("doAutoPage('"+b+"', "+f+")"),d)}function doAutoPage(c,g){var h=c;var d=1;for(var b=0;b<g;b++){if((document.getElementById("page"+h+(b+1)).className).indexOf("page-on")!=-1){if((b+1)==g){d=1}else{d=(b+2)}break}}var f=1;while(document.getElementById("page"+h+f)){if(f==(d)){document.getElementById("page"+h+f).className="fl-left page-on"}else{document.getElementById("page"+h+f).className="fl-left page-off"}document.getElementById("page"+h+f).focus();if(document.getElementById("div"+h+f)){if(f==(d)){document.getElementById("div"+h+f).className="display"}else{document.getElementById("div"+h+f).className="no-display"}}f++}}function checkRadio(b){if(document.getElementById("rad1").checked){document.getElementById("divPopulateFavorite").innerHTML='<div align="center"><img src="/Themes/mhc/images/spinner.gif" alt="Loading..." /></div>';showCSFavorite()}else{document.getElementById("divPopulateFavorite").innerHTML='<div align="center"><img src="/Themes/mhc/images/spinner.gif" alt="Loading..." /></div>';showWatchList(b)}}function showWatchList(b){$.ajax({type:"POST",url:"/MHCServices/WatchListService.asmx/GetWatchList",contentType:"application/json; charset=utf-8",data:'{"nCurrentUserID":"'+b+'"}',dataType:"json",success:getWatchListSucceeded,error:getWatchListFailed})}function getWatchListSucceeded(c){var f=c.d;if(f.length>0){var d="";d='<table id="tblFavorites" width="100%" cellpadding="3" cellspacing="" border="0">';$.each(f,function(){if((this.Imode).toUpperCase()=="A"){d+="<tr>";d+='<td><a href="'+this.StaticUrl+'" ><img src="/Themes/mhc/images/banners/lawyer_24.png" alt="Lawyer" title="Lawyer" border="0" /></a></td>';d+='<td class="b"><a href="'+this.StaticUrl+'" >'+this.Name+"</a></td>";d+="</tr>"}if((this.Imode).toUpperCase()=="F"){d+="<tr>";d+='<td><a href="'+this.StaticUrl+'" ><img src="/Themes/mhc/images/banners/firm_24.png" alt="Law Firms" title="Law Firms" border="0" /></a></td>';d+='<td class="b"><a href="'+this.StaticUrl+'" >'+this.Name+"</a></td>";d+="</tr>"}});d+="</table>";document.getElementById("divPopulateFavorite").innerHTML=d;$("#tblFavorites tr:odd").addClass("alt-color")}else{var b='<table width="100%" cellpadding="5" cellspacing="" border="0"><tr><td><img src="/Themes/mhc/images/banners/info_32.png" alt=" " border="0" /></td><td><div class="p-t-5"></div><b>No favorites available.</b><br/>You have not added any items to your favorite list.</td></tr></table>';document.getElementById("divPopulateFavorite").innerHTML=b}}function getWatchListFailed(b){}function showCSFavorite(){$.ajax({type:"POST",url:"/Utility/HeaderFragments/Core/FavoritePlacesAjax.asmx/PopulateFavoritePlaces",contentType:"application/json; charset=utf-8",data:"{}",dataType:"json",success:getFavoriteSucceeded,error:getFavoriteFailed})}function getFavoriteSucceeded(c){var f=c.d;var d="";if(f.FavoriteTypes.length>0){d='<table id="tblFavorites" width="100%" cellpadding="3" cellspacing="" border="0">';$.each(f.FavoriteTypes,function(){if((this.Name).toUpperCase()=="BLOGS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/blog_24.png" alt="BLOGS" title="Blogs" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="FORUMS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/forum_24.png" alt="Forums" title="Forums" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="GROUPS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/group_24.png" alt="Groups" title="Groups" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="GALLERIES"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/groupfiles_24.png" alt="Group Files" title="Group Files" border="0"/></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="FORUMS POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/post_24.png" alt="Forums Post" title="Forums Post" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="BLOGS POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/blogpost_24.png" alt="Blogs Post" title="Blogs Post" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="MEDIAGALLERY POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" >'+this.Icon+"</a></td>";d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}});d+="</table>";document.getElementById("divPopulateFavorite").innerHTML=d;var g='<a href="'+f.ViewAll.Url+'" title="Manage my favorites">Manage my favorites</a>';document.getElementById("divManageMyfav").innerHTML=g;$("#tblFavorites tr:odd").addClass("alt-color")}else{var b='<table width="100%" cellpadding="5" cellspacing="" border="0"><tr><td><img src="/Themes/mhc/images/banners/info_32.png" alt=" " border="0" /></td><td class="p-t-5"><b>No favorites available.</b><br/>You have not added any items to your favorites list.</td></tr></table>';document.getElementById("divPopulateFavorite").innerHTML=b;var g='<a href="'+f.ViewAll.Url+'" title="Manage my favorites">Manage my favorites</a>';document.getElementById("divManageMyfav").innerHTML=g}}function getFavoriteFailed(b){return}function launchMHCwin(k,f,g){var d=600;var b=800;var j=(screen.width-b)/2;var c=(screen.height-d)/2;if(f==""){f="help"}if(g==""){g="height="+d+",width="+b+",resizable=yes,scrollbars=no,toolbar=no,left="+j+", top="+c}newwin=window.open(k,f,g)}function hideSignInSection(){$("#divSignIn").slideUp("slow")}function ValidateSignInForm(c,b){var f=true;var d=/^[a-z0-9!$'*+\-_]+(\.[a-z0-9!$'*+\-_]+)*@([a-z0-9_]+(-+[a-z0-9]+)*\.)+([a-z]{2}|aero|arpa|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|msp|name|net|org|pro|travel)$/;if(!d.test(c.toLowerCase())){f=false;document.getElementById("tdSignInEmail").className="c-red b"}else{document.getElementById("tdSignInEmail").className="label"}if(checkPassword(b)){document.getElementById("tdSignInPassword").className="p-t-5 label"}else{f=false;document.getElementById("tdSignInPassword").className="p-t-5 c-red b"}if(!f){$("#divSignInError").show("fast")}else{$("#divSignInError").hide("fast")}return f}function checkPassword(c){var b=/^[a-zA-Z0-9\(]+$/;if((c.length<=5||c.length>=21)){return false}else{if(!(b.test(c))){return false}}return true}function findPosX(b){var c=0;if(b.offsetParent){while(1){c+=b.offsetLeft;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.x){c+=b.x}}return c}function findPosY(c){var b=0;if(c.offsetParent){while(1){b+=c.offsetTop;if(!c.offsetParent){break}c=c.offsetParent}}else{if(c.y){b+=c.y}}return b}function btnSignIn_ClientClick(){var c=document.getElementById(txtEmail).value.trim();var b=document.getElementById(txtWrd).value.trim();return ValidateSignInForm(c,b)}function showSignInFlyOut(b){document.getElementById("divSignIn").style.top=findPosY(document.getElementById("lnkSignInRegister"))+flyOutPaddingTop+"px";document.getElementById("divSignIn").style.left=findPosX(document.getElementById("lnkSignInRegister"))-flyOutPaddingLeft+"px";$("#divSignIn").slideDown("slow");if(b){$("#divSignInError").show("fast")}else{$("#divSignInError").hide("fast")}document.getElementById(txtEmail).focus()}function isMouseWithinSignInFlyOut(g){var c=g.pageX;var b=g.pageY;var j=$("#divSignIn").position().left;var f=$("#divSignIn").position().left+$("#divSignIn").width();var h=$("#divSignInContainer").position().top;var d=$("#divSignInContainer").position().top+$("#divSignIn").height()+flyOutPaddingTop;if(c>=j&&c<=f&&b>=h&&b<=d){return true}return false}function loginError(d,b,c){$("#divSignInError").show("fast")}function loginSuccess(b){var c=b.d;if(c.UserID>0){}else{$("#divSignInError").show("fast")}}function openwin(b){window.open(b,"New Window")}function getBloglinkForHeader(){}function getHeaderCategoryList(){$.ajax({type:"POST",url:"/MHCServices/JobTargetHeaderWebService.svc/GetAllCategories",contentType:"application/json; charset=utf-8",data:"{}",dataType:"json",processData:false,success:function(b){var c=b.d;document.getElementById("divCommunitiesLink1").innerHTML=c;document.getElementById("divCommunitiesLink2").innerHTML=c},error:function(b){}})}function getMHCInbox(b){$.ajax({type:"POST",contentType:"application/json",url:"/MHCServices/MDCHeaderService.svc/GetMHCInboxContent",dataType:"json",data:'{"nUserID":"'+b+'"}',processData:false,success:function(d){var f=d.d;var c=new Array();c=f.split("|");document.getElementById("spnMsgCnt").innerHTML="("+c[0]+")";document.getElementById("spnTotCnt").innerHTML=c[0];document.getElementById("divMessagesList").innerHTML=c[1]},error:getInboxFailed})}function getInboxFailed(b,d,c){}function getMHCLoadCategory(){$.ajax({type:"POST",contentType:"application/json",url:"/MHCServices/MDCHeaderService.svc/GetMHCLoadCategory",dataType:"json",processData:false,success:function(b){var c=b.d;if(document.getElementById("divCommunitiesCategoriesLink")){document.getElementById("divCommunitiesCategoriesLink").innerHTML=c}if(document.getElementById("divCommunitiesCategoriesInLink")){document.getElementById("divCommunitiesCategoriesInLink").innerHTML=c}},error:getLoadCategoryFailed})}function getLoadCategoryFailed(b,d,c){}function getMHCBlogURL(){$.ajax({type:"POST",contentType:"application/json",url:"/MHCServices/MDCHeaderService.svc/GetMHCBlogURL",dataType:"json",processData:false,success:function(b){var c=b.d;document.getElementById("divGetConnectedMyBlogLink").innerHTML=c},error:getMHCBlogURLFailed})}function getMHCBlogURLFailed(b,d,c){}function toggleDisplay(f){var c=document.getElementById(f).className;var b=f+"a";var d=f+"b";if(c=="no-display"){document.getElementById(f).className="display";document.getElementById(b).className="display";document.getElementById(d).className="no-display"}else{document.getElementById(f).className="no-display";document.getElementById(b).className="no-display";document.getElementById(d).className="display"}}function toggleCompareDisplay(d){var b=d+"a";var c=d+"b";if(document.getElementById(b).className=="no-display"){document.getElementById(b).className="";document.getElementById(c).className="no-display"}else{document.getElementById(b).className="no-display";document.getElementById(c).className=""}}function sbsAdd(j){ShowLoading();if(j!=""){var d="/members/compare.aspx";var g="";var b="";var c=location.search.substr(1).split("?");var h=c[0].split("&");var f="";for(a=0;a<h.length;a++){f=h[a].split("=");switch(f[0]){case"y":g=f[1];continue;case"z":b=f[1];continue;default:continue}}if(b==""){b=j}else{b+=","+j}document.body.style.cursor="wait";location.href=(d+"?y="+g+"&z="+b).replace(" ","")}}function sbsRemove(j){ShowLoading();if(j!=""){var d="/members/compare.aspx";var g="";var b="";var c=location.search.substr(1).split("?");var h=c[0].split("&");var f="";for(a=0;a<h.length;a++){f=h[a].split("=");switch(f[0]){case"y":g=f[1];continue;case"z":b=f[1];continue;default:continue}}if(b!=""){var k=b.split(",");b="";for(i=0;i<k.length;i++){if(k[i]!=j){b+=k[i]+","}}b=b.substring(0,b.length-1)}document.body.style.cursor="wait";location.href=(d+"?y="+g+"&z="+b).replace(" ","")}}function launchwin(d,b,c){if(b==null){b="print"}if(c==null){c="height=500,width=500,resizable=yes,scrollbars=yes,toolbar=yes"}newwin=window.open(d,b,c)}var cook=document.cookie;function getCookie(c){var b=cook.indexOf(c+"=");if(b==-1){return null}b=cook.indexOf("=",b)+1;var d=cook.indexOf(";",b);if(d==-1){d=cook.length}return unescape(cook.substring(b,d))}var today=new Date();var expiry=new Date(today.getTime()+30*60*1000);function setCookie(b,c){if(c!=null&&c!=""){document.cookie=b+"="+escape(c)+"; expires="+expiry.toGMTString()}cook=document.cookie}function deleteCookie(b,f,c){var d="/";if(getCookie(b)){document.cookie=b+"="+((d)?";path="+d:"")+((c)?";domain="+c:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}var allow=true;function noCopy(b){b.galleryimg="no";b.onmouseup=function(){coverIt(b)}}function coverIt(c){if(!allow){var b=document.images.imgShield;if(b){b.width=c.width;b.height=c.height;b.style.left=el_L(c);b.style.top=el_T(c)}}}function el_L(b){var c=b.offsetLeft;var d=b.offsetParent;while(d!=null){c+=d.offsetLeft;d=d.offsetParent}return c}function el_T(b){var d=b.offsetTop;var c=b.offsetParent;while(c!=null){d+=c.offsetTop;c=c.offsetParent}return d}function clickIE(){allowClick();if(event.button!=1){allow=false}else{allow=true}}function clickNS(b){allowClick();if(b.which!=1){allow=false}else{allow=true}}function allowClick(){var b=document.images.imgShield;if(b){b.width=0;b.height=0}}if(document.all){document.onmousedown=clickIE}else{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS}function checkTextMaster(c,b){if(c.value==b){c.value="";c.style.color="#333333"}}function validateSizeMaster(c,b){var d=trimSSString(c.value);if(d.length>b){alert("You have exceeded the field limit of "+b+" characters.");c.value=d.substring(0,b)}}function trimStringMaster(b){if(!(b=="")){while(""+b.charAt(0)==" "){b=b.substring(1,b.length)}}if(!(b=="")){while(b.charAt(b.length-1)==" "){b=b.substring(0,b.length-1)}}return b}function getMDCCategorylist(){$.ajax({type:"POST",url:"/HeaderService.svc/GetCategories",contentType:"application/json; charset=utf-8",data:"{}",dataType:"json",processData:false,success:function(b){var c=b.d;document.getElementById("divCategories1").innerHTML=c;document.getElementById("divCategories2").innerHTML=c},error:function(b){}})}function getInbox(b){$.ajax({type:"POST",url:"/HeaderService.svc/GetInbox",contentType:"application/json; charset=utf-8",data:'{"nUserID":"'+b+'"}',dataType:"json",processData:false,success:function(d){var f=d.d;var c=new Array();c=f.split("|");document.getElementById("spnMsgCnt").innerHTML="("+c[0]+")";document.getElementById("divMessagesList").innerHTML=c[1]},error:function(c){}})}function GetBlogLink(b){$.ajax({type:"POST",url:"/HeaderService.svc/GetBlogLink",contentType:"application/json; charset=utf-8",data:'{"nUserID":"'+b+'"}',dataType:"json",processData:false,success:function(c){var d=c.d;document.getElementById("divBlogLink").innerHTML=d},error:function(c){}})}function checkMDCRadio(b){if(document.getElementById("mdcRad1").checked){document.getElementById("divPopulateFavorite").innerHTML='<div align="center"><img src="/Themes/mhc/images/spinner.gif" alt="Loading..." /></div>';showMDCCSFavorite(b)}else{if(document.getElementById("mdcRad2").checked){document.getElementById("divPopulateFavorite").innerHTML='<div align="center"><img src="/Themes/mhc/images/spinner.gif" alt="Loading..." /></div>';showMDCWatchList(mdcUserID)}else{document.getElementById("mdcRad1").checked="checked"}}}function showMDCWatchList(b){$.ajax({type:"POST",url:"/HeaderService.svc/GetWatchList",contentType:"application/json; charset=utf-8",data:'{"nCurrentUserID":"'+b+'"}',dataType:"json",success:getMDCWatchListSucceeded,error:getMDCWatchListFailed})}function getMDCWatchListSucceeded(c){var f=c.d;if(f.length>0){var d="";d='<table id="tblFavorites" width="100%" cellpadding="3" cellspacing="" border="0">';$.each(f,function(){if((this.Imode).toUpperCase()=="A"){d+="<tr>";d+='<td><a href="'+this.StaticUrl+'" ><img src="/Themes/mhc/images/banners/lawyer_24.png" alt="Lawyer" title="Lawyer" border="0" /></a></td>';d+='<td class="b"><a href="'+this.StaticUrl+'" >'+this.Name+"</a></td>";d+="</tr>"}if((this.Imode).toUpperCase()=="F"){d+="<tr>";d+='<td><a href="'+this.StaticUrl+'" ><img src="/Themes/mhc/images/banners/firm_24.png" alt="Law Firms" title="Law Firms" border="0" /></a></td>';d+='<td class="b"><a href="'+this.StaticUrl+'" >'+this.Name+"</a></td>";d+="</tr>"}});d+="</table>";document.getElementById("divPopulateFavorite").innerHTML=d;$("#tblFavorites tr:odd").addClass("alt-color")}else{var b='<table width="100%" cellpadding="5" cellspacing="" border="0"><tr><td><img src="/Themes/mhc/images/banners/info_32.png" alt=" " border="0" /></td><td><div class="p-t-5"></div><b>No favorites available.</b><br/>You have not added any items to your favorite list.</td></tr></table>';document.getElementById("divPopulateFavorite").innerHTML=b}}function getMDCWatchListFailed(b){}function showMDCCSFavorite(b){$.ajax({type:"POST",url:"/HeaderService.svc/GetCSFavorite",contentType:"application/json; charset=utf-8",data:'{"nUserID":"'+b+'"}',dataType:"json",success:getMDCFavoriteSucceeded,error:getMDCFavoriteFailed})}function getMDCFavoriteSucceeded(c){var f=c.d;var d="";if(f.FavoriteTypes.length>0){d='<table id="tblFavorites" width="100%" cellpadding="3" cellspacing="" border="0">';$.each(f.FavoriteTypes,function(){if((this.Name).toUpperCase()=="BLOGS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/blog_24.png" alt="BLOGS" title="Blogs" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="FORUMS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/forum_24.png" alt="Forums" title="Forums" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="GROUPS"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/group_24.png" alt="Groups" title="Groups" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="GALLERIES"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/groupfiles_24.png" alt="Group Files" title="Group Files" border="0"/></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="FORUMS POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/post_24.png" alt="Forums Post" title="Forums Post" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="BLOGS POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" ><img src="/Themes/mhc/images/banners/blogpost_24.png" alt="Blogs Post" title="Blogs Post" border="0" /></a></td>';d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}if((this.Name).toUpperCase()=="MEDIAGALLERY POST"){$.each(this.Favorites,function(){d+="<tr>";d+='<td><a href="'+this.Url+'" >'+this.Icon+"</a></td>";d+='<td class="b"><a href="'+this.Url+'" >'+this.Name+"</a></td>";d+="</tr>"})}});d+="</table>";document.getElementById("divPopulateFavorite").innerHTML=d;var g='<a href="'+f.ViewAll.Url+'" title="Manage my favorites">Manage my favorites</a>';document.getElementById("divManageMyfav").innerHTML=g;$("#tblFavorites tr:odd").addClass("alt-color")}else{var b='<table width="100%" cellpadding="5" cellspacing="" border="0"><tr><td><img src="/Themes/mhc/images/banners/info_32.png" alt=" " border="0" /></td><td class="p-t-5"><b>No favorites available.</b><br/>You have not added any items to your favorites list.</td></tr></table>';document.getElementById("divPopulateFavorite").innerHTML=b;var g='<a href="'+f.ViewAll.Url+'" title="Manage my favorites">Manage my favorites</a>';document.getElementById("divManageMyfav").innerHTML=g}}function getMDCFavoriteFailed(b){return}function StatCollection(c,d,b){$.ajax({type:"POST",url:"/StatsCollection.asmx/CollectStats",contentType:"application/json; charset=utf-8",data:'{"lId":"'+d+'","cType":"'+c+'","Url":"'+b+'"}',dataType:"json",processData:false,success:StatsSucceeded,error:StatsFailed})}function StatsSucceeded(){}function StatsFailed(){};
