/* http://static.cdn.ocregister.com/common/loader/?js=/share/js/json,/share/js/pork-iframe,/share/js/requestbatch,/share/js/requesttypes,/share/js/sitelife-proxy3,/share/js/sitelife3 */ var JSON=function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={"boolean":function(x){return String(x)},number:function(x){return isFinite(x)?String(x):"null"},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+x+'"'},object:function(x){if(x){var a=[],b,f,i,l,v;if(x instanceof Array){a[0]="[";l=x.length;for(i=0;i="0"&&ch<="9"){n+=ch;next()}if(ch=="."){n+=".";while(next()&&ch>="0"&&ch<="9"){n+=ch}}if(ch=="e"||ch=="E"){n+="e";next();if(ch=="-"||ch=="+"){n+=ch;next()}while(ch>="0"&&ch<="9"){n+=ch;next()}}v=+n;if(!isFinite(v)){}else{return v}}function word(){switch(ch){case"t":if(next()=="r"&&next()=="u"&&next()=="e"){next();return true}break;case"f":if(next()=="a"&&next()=="l"&&next()=="s"&&next()=="e"){next();return false}break;case"n":if(next()=="u"&&next()=="l"&&next()=="l"){next();return null}break}error("Syntax error")}function value(){white();switch(ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&ch<="9"?number():word()}}return value()}}}();document.iframeLoaders={};iframe=function(){this.initialize.apply(this,arguments)};iframe.prototype={initialize:function(D,B,C){if(!B){B={}}this.form=D;this.uniqueId=C;document.iframeLoaders[this.uniqueId]=this;this.transport=this.getTransport();this.onComplete=B.onComplete||null;this.update=this.$(B.update)||null;this.updateMultiple=B.multiple||false;if(((navigator.vendor&&(navigator.vendor.indexOf("Apple"))>-1)||window.opera)&&(/\/Direct\/Process(\?|$)/.test(D.action))&&D.elements&&(D.elements.length==1)){var A=D.action+"?jsonRequest="+escape(D.elements[0].value),F=this.transport.contentWindow||this.transport.contentDocument;if(A.length<80000){if(F.document){F=F.document}try{F.location.replace(A);return }catch(E){}}}D.target="frame_"+this.uniqueId;D.setAttribute("target","frame_"+this.uniqueId);D.submit()},onStateChange:function(){this.transport=this.$("frame_"+this.uniqueId);try{var doc=this.transport.contentDocument.document.body.innerHTML;this.transport.contentDocument.document.close()}catch(e){try{var doc=this.transport.contentWindow.document.body.innerHTML;this.transport.contentWindow.document.close()}catch(e){try{var doc=this.transport.document.body.innerHTML;this.transport.document.body.close()}catch(e){try{var doc=window.frames["frame_"+this.uniqueId].document.body.innerText}catch(e){}}}}this.transport.responseText=doc;if(this.onComplete){setTimeout(this.bind(function(){this.onComplete(this.transport)},this),10)}if(this.update){setTimeout(this.bind(function(){this.update.innerHTML=this.transport.responseText},this),10)}if(this.updateMultiple){setTimeout(this.bind(function(){try{var hasscript=false;eval("var inputObject = "+this.transport.responseText);for(var i in inputObject){if(i=="script"){hasscript=true}else{if(elm=this.$(i)){elm.innerHTML=inputObject[i]}else{}}}if(hasscript){eval(inputObject.script)}}catch(e){}},this),10)}},getTransport:function(){var A=document.createElement("DIV"),B;A.setAttribute("style","width: 0; height: 0; margin: 0; padding: 0; visibility: hidden; overflow: hidden");if(navigator.userAgent.indexOf("MSIE")>0&&navigator.userAgent.indexOf("Opera")==-1){A.style.width=0;A.style.height=0;A.style.margin=0;A.style.padding=0;A.style.visibility="hidden";A.style.overflow="hidden";A.innerHTML=''}else{B=document.createElement("iframe");B.setAttribute("name","frame_"+this.uniqueId);B.setAttribute("id","frame_"+this.uniqueId);B.addEventListener("load",this.bind(function(){this.onStateChange()},this),false);A.appendChild(B)}document.body.appendChild(A);return B},bind:function(A,B){return function(){return A.apply(B,arguments)}},"$":function(A){return document.getElementById(A)}};RequestBatch=function(){this.initialize.apply(this,arguments)};var counter=0;var pendingRequests=0;function DirectAccessErrorHandler(B,A){}RequestBatch.prototype={initialize:function(){this.UniqueId=counter++;this.Requests=new Array()},AddToRequest:function(A){this.Requests[this.Requests.length]=A},BeginRequest:function(A,D){pendingRequests++;var B=JSON.stringify(this);var C=generateForm(this.UniqueId,A,B);new iframe(C,{onComplete:function(E){processResponse(D,E)}},this.UniqueId);this.UniqueId=counter++}};function generateForm(K,E,A){var D=document.createElement("form");D.name="f"+K;D.id="f"+K;D.action=E;var I=document.createElement("input");I.name="jsonRequest";I.type="hidden";I.value=A;D.appendChild(I);D.method="post";if(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1){var G=E.indexOf("?")==-1?"?":"&";var H=E+G+"jsonRequest="+escape(A);if(H.length<15000){var J=E.indexOf("sid=");if(J!=-1){var C=E.indexOf("&",J);var B=E.substring(J+"sid=".length,C==-1?E.length:C);var F=document.createElement("input");F.name="sid";F.type="hidden";F.value=B;D.appendChild(F);D.action=E.substring(0,J-1)}D.method="get"}}document.body.appendChild(D);return D}function processResponse(E,C){pendingRequests--;try{var B=unescape(C.responseText);var A=JSON.parse(B);try{E(A.ResponseBatch)}catch(D){DirectAccessErrorHandler("exception during client callback",D)}}catch(D){DirectAccessErrorHandler("exception during processResponse",D)}}function getPendingRequestCount(){return pendingRequests}(function(){var A=function(){return function(){this.initialize.apply(this,arguments)}};UserKey=A();UserKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.UserKey=C}};CommentKey=A();CommentKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.CommentKey=C}};ArticleKey=A();ArticleKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.ArticleKey=C}};PersonaMessageKey=A();PersonaMessageKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.PersonaMessageKey=C}};ReviewKey=A();ReviewKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.ReviewKey=C}};GalleryKey=A();GalleryKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.GalleryKey=C}};PhotoKey=A();PhotoKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.PhotoKey=C}};VideoKey=A();VideoKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.VideoKey=C}};CommentPage=A();CommentPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.ArticleKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.CommentPage=E}};PersonaMessagePage=A();PersonaMessagePage.prototype={initialize:function(F,B,D,C){var E=new Object();E.UserKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.PersonaMessagePage=E}};ReviewPage=A();ReviewPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.ArticleKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.ReviewPage=E}};MediaType=A();MediaType.prototype={initialize:function(B){var C=new Object();C.Name=B;this.MediaType=C}};PublicGalleryPage=A();PublicGalleryPage.prototype={initialize:function(C,D,B){var E=new Object();E.NumberPerPage=C;E.OnPage=D;E.MediaType=B;this.PublicGalleryPage=E}};UserGalleryPage=A();UserGalleryPage.prototype={initialize:function(F,C,D,B){var E=new Object();E.UserKey=F;E.NumberPerPage=C;E.OnPage=D;E.MediaType=B;this.UserGalleryPage=E}};PhotoPage=A();PhotoPage.prototype={initialize:function(E,B,C){var D=new Object();D.GalleryKey=E;D.NumberPerPage=B;D.OnPage=C;this.PhotoPage=D}};VideoPage=A();VideoPage.prototype={initialize:function(E,B,C){var D=new Object();D.GalleryKey=E;D.NumberPerPage=B;D.OnPage=C;this.VideoPage=D}};CommentAction=A();CommentAction.prototype={initialize:function(C,F,B,E){var D=new Object();D.CommentOnKey=C;D.OnPageUrl=F;D.OnPageTitle=B;D.CommentBody=E;this.CommentAction=D}};ReviewAction=A();ReviewAction.prototype={initialize:function(H,B,I,G,C,J,D,F){var E=new Object();E.ReviewOnKey=H;E.OnPageUrl=B;E.OnPageTitle=I;E.ReviewTitle=G;E.ReviewRating=C;E.ReviewBody=J;E.ReviewPros=D;E.ReviewCons=F;this.ReviewAction=E}};RecommendAction=A();RecommendAction.prototype={initialize:function(C){var B=new Object();B.RecommendThisKey=C;this.RecommendAction=B}};RateAction=A();RateAction.prototype={initialize:function(B,C){var D=new Object();D.RateThisKey=B;D.Rating=C;this.RateAction=D}};DeleteContentAction=A();DeleteContentAction.prototype={initialize:function(C){var B=new Object();B.DeleteThisContent=C;this.DeleteContentAction=B}};EmailContentAction=A();EmailContentAction.prototype={initialize:function(E,C,B){var D=new Object();D.ToAddress=E;D.Subject=C;D.Body=B;this.EmailContentAction=D}};ReportAbuseAction=A();ReportAbuseAction.prototype={initialize:function(C,E,D){var B=new Object();B.ReportThisKey=C;B.AbuseReason=E;B.AbuseDescription=D;this.ReportAbuseAction=B}};Category=A();Category.prototype={initialize:function(B){var C=new Object();C.Name=B;this.Category=C}};Section=A();Section.prototype={initialize:function(B){var C=new Object();C.Name=B;this.Section=C}};UpdateArticleAction=A();UpdateArticleAction.prototype={initialize:function(F,G,C,E,B){var D=new Object();D.UpdateArticle=F;D.OnPageUrl=G;D.OnPageTitle=C;D.Section=E;D.Categories=B;this.UpdateArticleAction=D}};UpdateGalleryAction=A();UpdateGalleryAction.prototype={initialize:function(E,C,I,F,H,J,G,B){var D=new Object();D.UpdateGallery=E;D.GalleryType=C;D.MediaType=I;D.Title=F;D.Description=H;D.Tags=J;D.Section=G;D.GalleryPromo=B;this.UpdateGalleryAction=D}};UpdatePhotoAction=A();UpdatePhotoAction.prototype={initialize:function(F,G,C,B,E){var D=new Object();D.UpdatePhoto=F;D.Title=G;D.Description=C;D.Tags=B;D.Section=E;this.UpdatePhotoAction=D}};UpdateVideoAction=A();UpdateVideoAction.prototype={initialize:function(B,G,D,C,F){var E=new Object();E.UpdateVideo=B;E.Title=G;E.Description=D;E.Tags=C;E.Section=F;this.UpdateVideoAction=E}};GalleryType=A();GalleryType.prototype={initialize:function(B){var C=new Object();C.Name=B;this.GalleryType=C}};GalleryPromo=A();GalleryPromo.prototype={initialize:function(E,C,B){var D=new Object();D.Title=E;D.Body=C;D.PhotoKey=B}};UserTier=A();UserTier.prototype={initialize:function(B){var C=new Object();C.Name=B;this.UserTier=C}};Activity=A();Activity.prototype={initialize:function(B){var C=new Object();C.Name=B;this.Activity=C}};DiscoverArticlesAction=A();DiscoverArticlesAction.prototype={initialize:function(F,E,C,H,B,D){var G=new Object();G.SearchSections=F;G.SearchCategories=E;G.LimitToContributors=C;G.Activity=H;G.Age=B;G.MaximumNumberOfDiscoveries=D;this.DiscoverArticlesAction=G}};AddFriendAction=A();AddFriendAction.prototype={initialize:function(C){var B=new Object();B.FriendUserKey=C;this.AddFriendAction=B}};AddPersonaMessageAction=A();AddPersonaMessageAction.prototype={initialize:function(D,B){var C=new Object();C.ToUserKey=D;C.Body=B;this.AddPersonaMessageAction=C}};RemovePersonaMessageAction=A();RemovePersonaMessageAction.prototype={initialize:function(C){var B=new Object();B.PersonaMessageKey=C;this.RemovePersonaMessageAction=B}};ApproveFriendAction=A();ApproveFriendAction.prototype={initialize:function(D,B){var C=new Object();C.FriendUserKey=D;C.IsApproved=B;this.ApproveFriendAction=C}};RemoveFriendAction=A();RemoveFriendAction.prototype={initialize:function(C){var B=new Object();B.FriendUserKey=C;this.RemoveFriendAction=B}};FriendPage=A();FriendPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.UserKey=F;E.NumberPerPage=B;E.OnPage=D;E.IsPendingList=C;this.FriendPage=E}};IsFriend=A();IsFriend.prototype={initialize:function(D,C){var B=new Object();B.FriendUserKey=D;B.UserKey=C;this.IsFriend=B}};DiscoverContentAction=A();DiscoverContentAction.prototype={initialize:function(F,E,C,H,I,B,D){var G=new Object();G.SearchSections=F;G.SearchCategories=E;G.LimitToContributors=C;G.Activity=H;G.ContentType=I;G.Age=B;G.MaximumNumberOfDiscoveries=D;this.DiscoverContentAction=G}};ContentType=A();ContentType.prototype={initialize:function(B){var C=new Object();C.Name=B;this.ContentType=C}};UpdateUserProfileAction=A();UpdateUserProfileAction.prototype={initialize:function(B,I,O,D,J,L,P,M,C,E,H,K,N,F){var G=new Object();G.UserKey=B;G.AboutMe=I;G.Location=O;G.Signature=D;G.DateOfBirth=J;G.Sex=L;G.PersonaPrivacyMode=P;G.CommentsTabVisible=M;G.PhotosTabVisible=C;G.MessagesOpenToEveryone=E;G.IsEmailNotificationsEnabled=H;G.SelectedStyleId=K;G.CustomAnswers=N;G.ExtendedProfile=F;this.UpdateUserProfileAction=G}};SearchAction=A();SearchAction.prototype={initialize:function(D,C,B,E){var F=new Object();F.SearchType=D;F.SearchString=C;F.NumberPerPage=B;F.OnPage=E;this.SearchAction=F}};WatchItemPage=A();WatchItemPage.prototype={initialize:function(E,B,C){var D=new Object();D.UserKey=E;D.NumberPerPage=B;D.OnPage=C;this.WatchItemPage=D}};AddWatchItemAction=A();AddWatchItemAction.prototype={initialize:function(E,C,F,B){var D=new Object();D.UserKey=E;D.WatchTargetKey=C;D.WatchItemTitle=F;D.WatchItemUrl=B;this.AddWatchItemAction=D}};DeleteWatchItemAction=A();DeleteWatchItemAction.prototype={initialize:function(D,B){var C=new Object();C.UserKey=D;C.WatchTargetKey=B;this.DeleteWatchItemAction=C}};BlogKey=A();BlogKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.BlogKey=C}};BlogPostKey=A();BlogPostKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.BlogPostKey=C}};BlogPostPage=A();BlogPostPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.BlogKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.BlogPostPage=E}};BlogPostArchiveCount=A();BlogPostArchiveCount.prototype={initialize:function(C){var B=new Object();B.BlogKey=C;this.BlogPostArchiveCount=B}};BlogPostArchiveContentPage=A();BlogPostArchiveContentPage.prototype={initialize:function(G,F,B,D,C){var E=new Object();E.BlogKey=G;E.Month=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.BlogPostArchiveContentPage=E}};UserCommentPage=A();UserCommentPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.UserKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.UserCommentPage=E}};RecentBlogTag=A();RecentBlogTag.prototype={initialize:function(C){var B=new Object();B.BlogKey=C;this.RecentBlogTag=B}};RecentUserPhotoPage=A();RecentUserPhotoPage.prototype={initialize:function(E,B,C){var D=new Object();D.UserKey=E;D.NumberPerPage=B;D.OnPage=C;this.RecentUserPhotoPage=D}};RecentUserVideoPage=A();RecentUserVideoPage.prototype={initialize:function(E,B,C){var D=new Object();D.UserKey=E;D.NumberPerPage=B;D.OnPage=C;this.RecentUserVideoPage=D}};RecentPublicGalleryPage=A();RecentPublicGalleryPage.prototype={initialize:function(E,B,C){var D=new Object();D.UserKey=E;D.NumberPerPage=B;D.OnPage=C;this.RecentPublicGalleryPage=D}};RecentUserActivity=A();RecentUserActivity.prototype={initialize:function(C){var B=new Object();B.UserKey=C;this.RecentUserActivity=B}};RecentForumDiscussionPage=A();RecentForumDiscussionPage.prototype={initialize:function(E,B,C){var D=new Object();D.UserKey=E;D.NumberPerPage=B;D.OnPage=C;this.RecentForumDiscussionPage=D}};UserGroupForumPage=A();UserGroupForumPage.prototype={initialize:function(F,B,D,C){var E=new Object();E.UserKey=F;E.NumberPerPage=B;E.OnPage=D;E.Sort=C;this.UserGroupForumPage=E}};BlogRollEntry=A();BlogRollEntry.prototype={initialize:function(C,B){var D=new Object();D.Name=C;D.Url=B;this.BlogRollEntry=D}};UpdateBlogAction=A();UpdateBlogAction.prototype={initialize:function(C,F,D,B){var E=new Object();E.BlogKey=C;E.Title=F;E.Tagline=D;E.BlogRollEntries=B;this.UpdateBlogAction=E}};DiscussionKey=A();DiscussionKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.DiscussionKey=C}};CustomItemKey=A();CustomItemKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.CustomItemKey=C}};CustomCollectionKey=A();CustomCollectionKey.prototype={initialize:function(B){var C=new Object();C.Key=B;this.CustomCollectionKey=C}};UpdateCustomItemAction=A();UpdateCustomItemAction.prototype={initialize:function(G,B,F,E,C){var D=new Object();D.CustomItemKey=G;D.Name=B;D.MimeType=F;D.DisplayText=E;D.Content=C;this.UpdateCustomItemAction=D}};AddCustomCollectionAction=A();AddCustomCollectionAction.prototype={initialize:function(B,D){var C=new Object();C.CustomCollectionKey=B;C.CustomCollectionName=D;this.AddCustomCollectionAction=C}};InsertIntoCollectionAction=A();InsertIntoCollectionAction.prototype={initialize:function(C,E,B){var D=new Object();D.CustomCollectionKey=C;D.InsertThisKey=E;D.Position=B;this.InsertIntoCollectionAction=D}};RemoveFromCollectionAction=A();RemoveFromCollectionAction.prototype={initialize:function(D,C,B){var E=new Object();E.CustomCollectionKey=D;E.RemoveThisKey=C;E.Position=B;this.RemoveFromCollectionAction=E}};CustomCollectionPage=A();CustomCollectionPage.prototype={initialize:function(B,C,E,D){var F=new Object();F.CustomCollectionKey=B;F.NumberPerPage=C;F.OnPage=E;F.Sort=D;this.CustomCollectionPage=F}}})();var numUploads=1;var maxUploads=4;function VerifyTOS(){if(!document.getElementById("plckTermsOfPhotoService").checked){alert("Please agree to the terms of service before submitting.");return false}return true}function AddAnotherPhoto(B,A,C){divNode=document.createElement("div");divNode.id="PhotoUpload"+ ++numUploads;divNode.innerHTML="

";document.getElementById(B).appendChild(divNode);if(numUploads>maxUploads){document.getElementById(A).style.display="none"}setTimeout(function(){autofitIframe(C,true)},100);return false}function getCheckedValue(B){var C=B.length;if(C==undefined){if(B.checked){return B.value}else{return""}}for(var A=0;A0)&&(A.lastIndexOf(B)==(A.length-1))){if(A.length>1){A=A.substring(0,A.length-1)}else{return""}}return A}function FixSearchString(B){var A=B.replace(/[\%\&\/\<\>\\\|]+/g,"");A=A.replace(/[\.]{2,}/g,".");A=TrimEnd(A,".");if(A==""){return""}A=TrimEnd(A," ");if(A==""){return""}A=escape(A);A=A.replace(/\+/g,"%2B");return A}var nextGroupID=1;function autofitIframe(B,A){if(document.getElementById){if(this.document.body.scrollHeight==0||(!A&&this.document.body.scrollWidth==0)){setTimeout(function(){autofitIframe(B,A)},150);return }window.parent.document.getElementById(B).style.height=this.document.body.scrollHeight+"px";if(!A){window.parent.document.getElementById(B).style.width=this.document.body.scrollWidth+"px"}}}function isUrl(A){var B=/(ftp|https?|file):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return B.test(A)}function ValidateLogin(){function A(B){return document.getElementById(B)}if(A("plckUserName").value==""&&A("plckPassword").value==""){alert("You must provide a UserName and Password");return false}if(A("plckUserName").value==""){alert("You must provide a UserName");return false}if(A("plckPassword").value==""){alert("You must provide a Password");return false}}function onSearchSubmit(A){if($(A+"_Search").value==""){alert("You must provide some query text");return false}}function LimitLength(D,A){var E=D.value;if(!E||E.length==0){return false}var C=E.match(/\r|\n/g);if(!C){return false}var B=C.length;if(E.length>(A+B)){D.value=E.substring(0,A+B)}return false}function mouseX(A){if(A.pageX){return A.pageX}else{if(A.clientX){return A.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return null}}}function mouseY(A){if(A.pageY){return A.pageY}else{if(A.clientY){return A.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return null}}}function HideDiv(A){document.getElementById(A).style.display="none"}function ShowDivAtMouse(A,B){posx=mouseX(A)-170;posy=mouseY(A);if(posx<0){posx=10}if(posy<0){posy=10}document.getElementById(B).style.left=posx+"px";document.getElementById(B).style.top=posy+"px";document.getElementById(B).style.display="block"}function ShowReportAbuse(A,B,D){var C=document;C.getElementById("ReportAbuse_Url").value=B;C.getElementById("ReportAbuse_Command").value=D;C.getElementById("ReportAbuse_CommentText").value="";C.getElementById("ReportAbuse_Reason").selectedIndex=0;ShowDivAtMouse(A,"ReportAbuse_Menu");C.getElementById("ReportAbuse_CommentText").focus()}function ReportAbuse(){var B=document.getElementById("ReportAbuse_Url").value;var E=document.getElementById("ReportAbuse_Command").value;var D=document.getElementById("ReportAbuse_CommentText").value;var C=document.getElementById("ReportAbuse_Reason").value;document.getElementById("ReportAbuse_Menu").style.display="none";var A=E+"&plckReason="+gSiteLife.EscapeValue(C)+"&plckURL="+gSiteLife.EscapeValue(B);if(D){A+="&plckAbuseDetail="+gSiteLife.EscapeValue(D)}gSiteLife.__Send(A)}function SiteLifeShowHide(B,A){document.getElementById(B).style.display="none";document.getElementById(A).style.display="block";return false}function DebugShowInnerHTML(D,B){var C=document.getElementById(D);var A=document.createElement("div");A.style.position="absolute";A.style.zIndex="1000";A.innerHTML="[close]";A.innerHTML+="
"+B+"
";C.insertBefore(A,C.childNodes[0])}function ToggleState(){function B(E){return document.getElementById(E)}var D=B("plckCommentApprovalEveryOne");var C=B("plckCommentApprovalNoBody");var A=B("commentSettings");if(D.disabled==true){D.disabled=false;C.disabled=false;A.className=""}else{D.disabled=true;C.disabled=true;A.className="BlogSettings_Disabled"}}function SiteLifeProxy(A){this.apiKey=null;this.__isExplorer=navigator.userAgent.toLowerCase().indexOf("msie")!=-1;this.__isSafari=navigator.userAgent.toLowerCase().indexOf("safari")!=-1;this.__isMac=navigator.platform.toLowerCase().indexOf("mac")!=-1;this.__isMacIE=this.__isMac&&this.__isExplorer;this.debug=false;this.lastHandlerId="";this.__baseUrl=A;this.__sendInvokeCount=0;this.__eventHandlers=new Object()}SiteLifeProxy.prototype.AddEventHandler=function(A,B){this.__eventHandlers[A]=B};SiteLifeProxy.prototype.FireEvent=function(D){if(this.__eventHandlers[D]){var B=new Array();for(var C=1;C');return C};SiteLifeProxy.prototype.InnerHtmlWrite=function(A,E){var D=document.createElement("div");try{if(document.location.href.indexOf("debug=true")>-1){D.innerHTML+="
 ? 
"+E+"
"}else{D.innerHTML+=E;D.style.display="inline"}var C=document.getElementById(A);while(C.childNodes.length>=1){C.removeChild(C.childNodes[0])}C.appendChild(D)}catch(B){alert(A+" Error "+B.number+": "+B.description)}};SiteLifeProxy.prototype.SortTimeStampDescending="TimeStampDescending";SiteLifeProxy.prototype.SortTimeStampAscending="TimeStampAscending";SiteLifeProxy.prototype.SortRecommendationsDescending="RecommendationsDescending";SiteLifeProxy.prototype.SortRecommendationsAscending="RecommendationsAscending";SiteLifeProxy.prototype.SortRatingDescending="RatingDescending";SiteLifeProxy.prototype.SortRatingAscending="RatingAscending";SiteLifeProxy.prototype.KeyTypeExternalResource="ExternalResource";SiteLifeProxy.prototype.PersonaHeaderRequest=function(B){var A=this.__baseUrl+"/Persona/PersonaHeader?plckElementId=personaHDest&plckUserId="+B;this.__Send(A,"personaHeaderScript")};SiteLifeProxy.prototype.PersonaHeader=function(A){this.WriteDiv("personaHDest","Persona_Main");this.PersonaHeaderRequest(A)};SiteLifeProxy.prototype.Persona=function(A){this.WriteDiv("personaDest","Persona_Main");var B=this.GetParameter("plckPersonaPage");if(B&&(typeof this[B]=="function")){this[B](A)}else{this.PersonaHome(A)}};SiteLifeProxy.prototype.LoadPersonaPage=function(A,B){var C=new Object();C.plckPersonaPage=A;C.plckUserId=B;C.slid=B;for(ii=2;ii");this.numCommentsWidgets++;var E=window.onload;function B(){if(E!=null){E()}gSiteLife.GetComments(O,M,A,J,0,K,H,I,D,F,N,C,G,L)}window.onload=B;return false};SiteLifeProxy.prototype.GetComments=function(O,M,B,I,J,K,G,H,D,E,N,A,F,L){O=O||"ExternalResource";B=B||gSiteLife.__StripAnchorFromUrl(window.location.href);B=gSiteLife.EscapeValue(B);M=M||gSiteLife.__StripAnchorFromUrl(window.location.href);I=I||gSiteLife.EscapeValue(document.title);J=J||gSiteLife.GetParameter("plckCurrentPage")||0;K=K||10;G=G||"TimeStampAscending";H=H||false;D=D||"MostRecent";E=E||false;N=N||false;A=gSiteLife.EscapeValue(A)||"";F=F||false;var C=this.__baseUrl+"/Comment/GetPage.rails?plckTargetKeyType="+O+"&plckTargetKey="+escape(M)+"&plckCurrentPage="+J+"&plckItemsPerPage="+K+"&plckSort="+G+"&plckElementId="+L+"&plckTargetUrl="+B+"&plckTargetTitle="+I+"&plckHideView="+E+"&plckHideInput="+N+"&plckRefreshPage="+F+"&plckRedirectToUrl="+A;if(H){C=C+"&plckShowTabs=true&plckTab="+D}this.__Send(C);return false};SiteLifeProxy.prototype.Blog=function(B){this.WriteDiv("blogDest","Persona_Main");var C=this.GetParameter("plckBlogPage");if(C&&C!="Blog"&&(typeof this[C]=="function")){return this[C](B)}else{var A=this.GetParameter("plckCurrentPage")?"plckCurrentPage="+this.GetParameter("plckCurrentPage"):"";return this.BlogSend("Blog","Blog","blogDest","blogScript",B,A)}};SiteLifeProxy.prototype.LoadBlogPage=function(A,B){var C=new Object();C.plckBlogPage=A;C.plckBlogId=B;for(ii=2;ii=0){E=A}for(i=1;i<=B.length;i++){if(E>0&&i<=E){B[i-1].src=this.__baseUrl+"/Content/images/icons/fullstar.gif"}else{B[i-1].src=this.__baseUrl+"/Content/images/icons/emptystar.gif"}}switch(E){case 0:D.innerHTML="Not rated";break;case 1:D.innerHTML="Horrible!";break;case 2:D.innerHTML="Not for me.";break;case 3:D.innerHTML="It's alright.";break;case 4:D.innerHTML="I like it.";break;case 5:D.innerHTML="I love it!";break;default:D.innerHTML="Not rated"}};SiteLifeProxy.prototype.Review=function(F,D,A,H,C,E,G){var B="Reviews_Container";this.WriteDiv(B);return this.GetReviews(F,D,A,H,C,E,G)};SiteLifeProxy.prototype.ReviewClickStar=function(B,A){document.getElementById(A+"Rating-value").value=B};SiteLifeProxy.prototype.GetReviews=function(F,D,A,H,B,E,G){F=F||"ExternalResource";D=gSiteLife.EscapeValue(D)||gSiteLife.EscapeValue(gSiteLife.__StripAnchorFromUrl(window.location.href));A=gSiteLife.EscapeValue(A)||gSiteLife.EscapeValue(document.title);reviewCateogry=H||"Uncategorized";B=B||10;E=E||"TimeStampAscending";G=G||0;var C=this.__baseUrl+"/Review/Reviews?plckElementId=Reviews_Container&plckTargetKey="+escape(D)+"&plckTargetKeyType="+F+"&plckReviewedTitle="+A+"&plckReviewCategory="+H+"&plckSort="+E+"&plckParentUrl="+gSiteLife.EscapeValue(gSiteLife.__StripAnchorFromUrl(window.location.href))+"&plckParentTitle="+gSiteLife.EscapeValue(document.title)+"&plckCurrentPage="+G+"&plckPageSize="+B;this.__Send(C);return false};SiteLifeProxy.prototype.SummaryArticlesMostCommented=function(A){return this.SummaryPanel("SummaryArticlesMostCommented",A)};SiteLifeProxy.prototype.SummaryArticlesMostRecommended=function(A){return this.SummaryPanel("SummaryArticlesMostRecommended",A)};SiteLifeProxy.prototype.SummaryPhotosRecentPhotosByTag=function(B,A,C){return this.SummaryPanel("SummaryPhotosRecentPhotosByTag",B,A,C)};SiteLifeProxy.prototype.SummaryPhotosRecentUserPhotos=function(B,A,C){return this.SummaryPanel("SummaryPhotosRecentUserPhotos",B,A,C)};SiteLifeProxy.prototype.SummaryPhotosRecentPhotos=function(B,A,C){return this.SummaryPanel("SummaryPhotosRecentPhotos",B,A,C)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedPhotos=function(A,B){return this.SummaryPanel("SummaryPhotosMostRecommendedPhotos",A,"",B)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedUserPhotos=function(A,B){return this.SummaryPanel("SummaryPhotosMostRecommendedUserPhotos",A,"",B)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedGalleries=function(A){return this.SummaryPanel("SummaryPhotosMostRecommendedGalleries",A)};SiteLifeProxy.prototype.SummaryForumsRecentDiscussions=function(A,B){return this.SummaryPanel("SummaryForumsRecentDiscussions",A,"",B)};SiteLifeProxy.prototype.SummaryBlogsRecent=function(B,A){return this.SummaryPanel("SummaryBlogsRecent",B,A)};SiteLifeProxy.prototype.SummaryBlogsRecentPostsByTag=function(B,A,C){return this.SummaryPanel("SummaryBlogsRecentPostsByTag",B,A,C)};SiteLifeProxy.prototype.SummaryBlogsRecentPosts=function(B,A,C){return this.SummaryPanel("SummaryBlogsRecentPosts",B,A,C)};SiteLifeProxy.prototype.SummaryBlogsMostRecommendedPosts=function(B,A,C){return this.SummaryPanel("SummaryBlogsMostRecommendedPosts",B,A,C)};SiteLifeProxy.prototype.SummaryPersonaProfileRecent=function(A){return this.SummaryPanel("SummaryPersonaProfileRecent",A)};SiteLifeProxy.prototype.SummaryPanel=function(C,D,B,E){var A="Summary_Container"+this.SID;if(this.numSummaryWidgets){A+=this.numSummaryWidgets++}else{this.numSummaryWidgets=1}this.WriteDiv(A,A);return this.SummarySend(C,A,A+"Script","plckCount",D,"plckTagFilter",B,"plckFilterBySiteOfOrigin",E)};SiteLifeProxy.prototype.SummarySend=function(A,B,D){var C=this.__baseUrl+"/Summary/"+A+"?plckElementId="+B;for(ii=3;ii")}function submitRequest(){pullCounts(articleid)}function pullCounts(A){var B=new ArticleKey(A);var C=new RequestBatch();C.AddToRequest(B);C.BeginRequest(serverUrl,renderArticle)}function renderArticle(B){if(B.Responses.length==0){var C=document.getElementById("articleCommentCount"+articleid);var E=document.getElementById("articleRecommendCount"+articleid);C.style.visibility="hidden";E.style.visibility="hidden";C.innerHTML=0;E.innerHTML=0}else{var D=B.Responses[0].Article;var C=document.getElementById("articleCommentCount"+D.ArticleKey.Key);var E=document.getElementById("articleRecommendCount"+D.ArticleKey.Key);C.innerHTML=D.Comments.NumberOfComments;E.innerHTML=D.Recommendations.NumberOfRecommendations;var F=D.Recommendations.CurrentUserHasRecommended;if(F=="True"){var A=document.getElementById("recommendlink"+D.ArticleKey.Key);A.innerHTML="Recommended"}C.style.visibility="visible";E.style.visibility="visible"}}function recommendReview(A){var D=new RequestBatch();var C=new ArticleKey(A);var B=new RecommendAction(C);D.AddToRequest(B);D.BeginRequest(serverUrl,recommendationComplete)}function recommendationComplete(A){if(A.Responses.length>0){submitRequest()}else{updateArticle()}}function updateArticle(){var E=new ArticleKey(articleid);var C=document.location.href;var D=new Section(sectionTitle);var A=new Array();var F=new RequestBatch();var B=new UpdateArticleAction(E,C,pageTitle,D);F.AddToRequest(B);F.BeginRequest(serverUrl,articleUpdated)}function articleUpdated(A){if(A.Messages[0].Message=="ok"){submitRequest()}}function recommendReviewAbox(A){var D=new RequestBatch();var C=new ArticleKey(A);var B=new RecommendAction(C);D.AddToRequest(B);D.BeginRequest(serverUrl,recommendationCompleteAbox)}function recommendationCompleteAbox(A){SubmitListRequest()}function recommendReviewList(A){var D=new RequestBatch();var C=new ArticleKey(A);var B=new RecommendAction(C);D.AddToRequest(B);D.BeginRequest(serverUrl,recommendationCompleteList)}function recommendationCompleteList(A){getRecentActivity()}function getRecentActivity(){var H=new Array(new Section("All"));var C=new Array(new Category("All"));var G=new Array(new UserTier("All"));var D=new Activity("Commented");var B=2;var A=5;if(cacheMostCommentedRecommended){renderRecentContent(cacheMostCommentedRecommended.ResponseBatch,5)}else{var F=new RequestBatch();var E=new DiscoverArticlesAction(H,C,G,D,B,A);F.AddToRequest(E);F.BeginRequest(serverUrl,renderRecentContent,5)}}function renderRecentContent(C,B){if(C.Responses.length>=1){var F=C.Responses[1].DiscoverArticlesAction;if(!B){B=F.DiscoveredArticles.length}else{if(B>F.DiscoveredArticles.length){B=F.DiscoveredArticles.length}}var E=document.getElementById("mostcommented_list");var A="
    ";for(var D=0;D";E.innerHTML=A}}function getArticleLink(B){var A="
  • "+unescape(B.PageTitle)+"
    ";A+="Comments "+B.Comments.NumberOfComments+" | ";if(B.Recommendations.CurrentUserHasRecommended=="True"){A+="Recommended"+B.Recommendations.NumberOfRecommendations+""}else{A+="Recommend "+B.Recommendations.NumberOfRecommendations+""}A+="
  • \n";return A}function getMostCommentedArticle(){var H=new Array(new Section("All"));var C=new Array(new Category("All"));var G=new Array(new UserTier("All"));var D=new Activity("Commented");var B=2;var A=5;var F=new RequestBatch();var E=new DiscoverArticlesAction(H,C,G,D,B,A);F.AddToRequest(E);F.BeginRequest(serverUrl,renderMostCommentedArticle)}function renderMostCommentedArticle(B){if(B.Responses.length==1){var E=B.Responses[0].DiscoverArticlesAction;var D=document.getElementById("mostcommented_list_article");if(D){var A="";for(var C=0;C"+A+"
"}}}function getArticleLinkArticle(B){var A="
  • "+unescape(B.PageTitle)+"";A+="
  • \n";return A}function getMostRecommendedArticle(){var H=new Array(new Section("All"));var C=new Array(new Category("All"));var G=new Array(new UserTier("All"));var D=new Activity("Recommended");var B=2;var A=5;var F=new RequestBatch();var E=new DiscoverArticlesAction(H,C,G,D,B,A);F.AddToRequest(E);F.BeginRequest(serverUrl,renderMostRecommendedArticle)}function renderMostRecommendedArticle(B){if(B.Responses.length==1){var E=B.Responses[0].DiscoverArticlesAction;var D=document.getElementById("mostrecommended_list_article");var A="";for(var C=0;C"+A+""}}var aboxMostCommented=new Array();var aboxMostRecommended=new Array();function getMostCommentedRecommendedArticleList(C){var J=new Array(new Section("All"));var F=new Array(new Category("All"));var G=new Array(new UserTier("All"));var E=new Activity("Commented");var A=new Activity("Recommended");var I=2;if(!C){C=3}if(cacheMostCommentedRecommended){renderMostCommentedArticle(cacheMostCommentedRecommended.ResponseBatch,C)}else{var H=new RequestBatch();var B=new DiscoverArticlesAction(J,F,G,E,I,C);var D=new DiscoverArticlesAction(J,F,G,A,I,C);H.AddToRequest(B);H.AddToRequest(D);H.BeginRequest(serverUrl,renderMostCommentedArticle)}}function getMostCommentedRecommendedArticleList2(C){var J=new Array(new Section("All"));var F=new Array(new Category("All"));var G=new Array(new UserTier("All"));var E=new Activity("Commented");var A=new Activity("Recommended");var I=2;if(!C){C=3}var H=new RequestBatch();var B=new DiscoverArticlesAction(J,F,G,E,I,C);var D=new DiscoverArticlesAction(J,F,G,A,I,C);H.AddToRequest(B);H.AddToRequest(D);H.BeginRequest(serverUrl,renderMostCommentedArticle)}function renderMostCommentedArticle(D,B){if(D.Responses.length>=1){var H=D.Responses[0].DiscoverArticlesAction;if(!B){B=5}if(B>H.DiscoveredArticles.length){B=H.DiscoveredArticles.length}if(aboxMostCommented.length>=1){for(var E=0;E"+A+""}}else{var G=document.getElementById("mostcommented_list_article");var A="";for(var E=0;E"+A+""}catch(F){}}}if(D.Responses.length>=2){var H=D.Responses[1].DiscoverArticlesAction;if(!B){B=5}if(B>H.DiscoveredArticles.length){B=H.DiscoveredArticles.length}if(aboxMostRecommended.length>=1){for(var E=0;E"+A+""}}else{var G=document.getElementById("mostrecommended_list_article");var A="";for(var E=0;E"+A+""}catch(F){}}}}function isLoggedIn(){var A=document.cookie.split(";");var B="";for(i=0;iLogin | Register";if(A){var F=A.contentWindow.document.getElementById("SiteLife_Login");if(F){F.innerHTML=D}}var B=document.getElementById("messagesiframe");if(B){var F=B.contentWindow.document.getElementById("Messages_NewMessageHead");if(F){F.innerHTML=D}}var E=document.getElementById("personaprofileiframe");if(E){var C=E.contentWindow.document.getElementById("ProfileEdit_SectionDescription_Link");C.style.display="none"}}function changeForumLinks(){if(!isLoggedIn()){var B=document.getElementById("CreateDiscussion1");var A=document.getElementById("CreateDiscussion2");var D=document.getElementById("A1");var C=document.getElementById("ForumDiscussionAddPost");if(B){B.href="javascript:scroll(0,0);show_login();"}if(A){A.href="javascript:scroll(0,0);show_login();"}if(D){D.href="javascript:scroll(0,0);show_registration();";reg_att=D.attributes;for(i=0;i=0){userkey=A[x];B=userkey.substring(2,userkey.length);break}}}if(B!=""){var C=new UserKey(B);var E=new RequestBatch();E.AddToRequest(C);E.BeginRequest(serverUrl,renderUserData)}}function getUserInfo_old(A){if(typeof (A)!="undefined"&&A!=""){var B=new UserKey(A);var C=new RequestBatch();C.AddToRequest(B);C.BeginRequest(serverUrl,renderUserData)}}function renderUserData(F){if(F.Responses.length!=0){var D=F.Responses[0].User;var M=document.getElementById("status_links");var E=document.getElementById("user_messages");var J=document.getElementById("status_avatar");var C=document.getElementById("you_image");var L=document.getElementById("status_box_logged_in");var K=document.getElementById("status_box_logged_out");var A=document.getElementById("SitelifeJoin");var B=document.getElementById("SitelifeLogin");var H=document.getElementById("BillboardButtons");K.style.display="none";L.style.display="block";if(A){A.style.display="none"}if(B){B.style.display="none"}if(H){H.style.display="none"}var G="Welcome, "+D.DisplayName+"
    ";G+="My Profile | Logout
    ";var I=D.NumberOfMessages+" messages";M.innerHTML=G;E.innerHTML=I;J.src=D.AvatarPhotoUrl;C.src=D.AvatarPhotoUrl}}function SubmitListRequest(){var B=new RequestBatch();for(var A=0;ARecommended"}A.style.visibility="visible";I.style.visibility="visible"}}for(var C=0;CRecommended"}D.style.visibility="visible";F.style.visibility="visible"}}}function popUp(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=300,left = 390,top = 312');")}function billboardNav(A){var B=document.getElementById(A);location.href=B.value}function getCookieUUID(){var A=document.cookie.split(";");var E="";var C="";var B="";var D="";for(i=0;i0)||!showRecommendedOnly){if((H.Comments[F].Author.IsBlocked=="False"&&H.Comments[F].AbuseReportCount<4)||(H.Comments[F].Author.IsBlocked=="True"&&H.Comments[F].Author.UserKey.Key==A)){J+=getCommentHtml(H.Comments[F])}}}J+="
    ";var B=Math.ceil(C/10);if(showRecommendedOnly){showRecommendedOnly=1}else{showRecommendedOnly=0}if(B>1&&oncommentsPage!=1){J+=" <<First |";J+=" <Prev |"}for(var E=1;E<=B;E++){if(E==oncommentsPage){J+=" "+E+" "}else{J+=" "+E+""}}if(B>1&&oncommentsPage!=B){J+=" | Next> |";J+=" Last>>"}J+="
    ";K.innerHTML=J}}function getCommentHtml(B){var A="";A+='';A+='';A+='';A+='";A+='
    '+B.CommentBody+"
    ";A+='
    '+B.PostedAtTime+"
    ";A+='';A+='
    ';if(B.CurrentUserHasRecommended=="True"){A+='
    ';A+='
    ';A+='Recommended ('+B.NumberOfRecommendations+")
    "}else{A+='
    ';A+='"}A+='
    ';if(B.CurrentUserHasReportedAbuse=="True"){A+='
    ';A+='Reported
    '}else{A+=''}A+="
    ";return A}function getMostRecentPhotos(C){if(!C){C=5}var A=document.getElementById("recent_list_photos");if(cacheMostRecentPhotos){var B='
    ';B+='';B+=createPhotoHtml(cacheMostRecentPhotos.ResponseBatch,C);B+="
    ";A.innerHTML=B}}function createPhotoHtml(C,D){discoveredContent=C.Responses[0].DiscoverContentAction.DiscoveredContent;if(D>discoveredContent.length){D=discoveredContent.length}var B="";for(var A=0;A';B+='';B+='';B+='';B+='";B+='"}else{D++}}return B}function getBillboardLinks(){var I=document.getElementById("photo1link");var F=document.getElementById("photo2link");var E=document.getElementById("photo3link");var K=document.getElementById("photo1img");var D=document.getElementById("photo2img");var B=document.getElementById("photo3img");if(cacheMostRecentPhotos){discoveredContent=cacheMostRecentPhotos.ResponseBatch.Responses[0].DiscoverContentAction.DiscoveredContent;var Q=0;for(var G=0;G=1){var F=document.getElementById("photo1link");var D=document.getElementById("photo2link");var C=document.getElementById("photo3link");var H=document.getElementById("photo1img");var B=document.getElementById("photo2img");var A=document.getElementById("photo3img");var I=G.Responses[0].DiscoverContentAction.DiscoveredContent;var J=0;for(var E=0;E";B.innerHTML=A}};