if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e=e+1){f=b[e].split(".");g=YAHOO;for(c=(f[0]=="YAHOO")?1:0;c<f.length;c=c+1){g[f[c]]=g[f[c]]||{};g=g[f[c]]}}return g};YAHOO.log=function(d,a,c){var b=YAHOO.widget.Logger;if(b&&b.log){return b.log(d,a,c)}else{return false}};YAHOO.register=function(a,f,e){var k=YAHOO.env.modules;if(!k[a]){k[a]={versions:[],builds:[]}}var c=k[a],j=e.version,h=e.build,g=YAHOO.env.listeners;c.name=a;c.version=j;c.build=h;c.versions.push(j);c.builds.push(h);c.mainClass=f;for(var d=0;d<g.length;d=d+1){g[d](c)}if(f){f.VERSION=j;f.BUILD=h}else{YAHOO.log("mainClass is undefined for module "+a,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null};YAHOO.env.ua=function(){var c={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};var b=navigator.userAgent,a;if((/KHTML/).test(b)){c.webkit=1}a=b.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){c.webkit=parseFloat(a[1]);if(/ Mobile\//.test(b)){c.mobile="Apple"}else{a=b.match(/NokiaN[^\/]*/);if(a){c.mobile=a[0]}}a=b.match(/AdobeAIR\/([^\s]*)/);if(a){c.air=a[0]}}if(!c.webkit){a=b.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){c.opera=parseFloat(a[1]);a=b.match(/Opera Mini[^;]*/);if(a){c.mobile=a[0]}}else{a=b.match(/MSIE\s([^;]*)/);if(a&&a[1]){c.ie=parseFloat(a[1])}else{a=b.match(/Gecko\/([^\s]*)/);if(a){c.gecko=1;a=b.match(/rv:([^\s\)]*)/);if(a&&a[1]){c.gecko=parseFloat(a[1])}}}}}return c}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var b=YAHOO_config.listener,a=YAHOO.env.listeners,d=true,c;if(b){for(c=0;c<a.length;c=c+1){if(a[c]==b){d=false;break}}if(d){a.push(b)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var a=YAHOO.lang,c=["toString","valueOf"],b={isArray:function(d){if(d){return a.isNumber(d.length)&&a.isFunction(d.splice)}return false},isBoolean:function(d){return typeof d==="boolean"},isFunction:function(d){return typeof d==="function"},isNull:function(d){return d===null},isNumber:function(d){return typeof d==="number"&&isFinite(d)},isObject:function(d){return(d&&(typeof d==="object"||a.isFunction(d)))||false},isString:function(d){return typeof d==="string"},isUndefined:function(d){return typeof d==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(g,e){for(var d=0;d<c.length;d=d+1){var j=c[d],h=e[j];if(a.isFunction(h)&&h!=Object.prototype[j]){g[j]=h}}}:function(){},extend:function(g,h,f){if(!h||!g){throw new Error("extend failed, please check that all dependencies are included.")}var e=function(){};e.prototype=h.prototype;g.prototype=new e();g.prototype.constructor=g;g.superclass=h.prototype;if(h.prototype.constructor==Object.prototype.constructor){h.prototype.constructor=h}if(f){for(var d in f){if(a.hasOwnProperty(f,d)){g.prototype[d]=f[d]}}a._IEEnumFix(g.prototype,f)}},augmentObject:function(h,g){if(!g||!h){throw new Error("Absorb failed, verify dependencies.")}var d=arguments,f,j,e=d[2];if(e&&e!==true){for(f=2;f<d.length;f=f+1){h[d[f]]=g[d[f]]}}else{for(j in g){if(e||!(j in h)){h[j]=g[j]}}a._IEEnumFix(h,g)}},augmentProto:function(g,f){if(!f||!g){throw new Error("Augment failed, verify dependencies.")}var d=[g.prototype,f.prototype];for(var e=2;e<arguments.length;e=e+1){d.push(arguments[e])}a.augmentObject.apply(this,d)},dump:function(e,k){var g,j,m=[],n="{...}",f="f(){...}",l=", ",h=" => ";if(!a.isObject(e)){return e+""}else{if(e instanceof Date||("nodeType" in e&&"tagName" in e)){return e}else{if(a.isFunction(e)){return f}}}k=(a.isNumber(k))?k:3;if(a.isArray(e)){m.push("[");for(g=0,j=e.length;g<j;g=g+1){if(a.isObject(e[g])){m.push((k>0)?a.dump(e[g],k-1):n)}else{m.push(e[g])}m.push(l)}if(m.length>1){m.pop()}m.push("]")}else{m.push("{");for(g in e){if(a.hasOwnProperty(e,g)){m.push(g+h);if(a.isObject(e[g])){m.push((k>0)?a.dump(e[g],k-1):n)}else{m.push(e[g])}m.push(l)}}if(m.length>1){m.pop()}m.push("}")}return m.join("")},substitute:function(z,e,q){var m,l,h,u,w,y,t=[],g,n="dump",r=" ",d="{",x="}";for(;;){m=z.lastIndexOf(d);if(m<0){break}l=z.indexOf(x,m);if(m+1>=l){break}g=z.substring(m+1,l);u=g;y=null;h=u.indexOf(r);if(h>-1){y=u.substring(h+1);u=u.substring(0,h)}w=e[u];if(q){w=q(u,w,y)}if(a.isObject(w)){if(a.isArray(w)){w=a.dump(w,parseInt(y,10))}else{y=y||"";var p=y.indexOf(n);if(p>-1){y=y.substring(4)}if(w.toString===Object.prototype.toString||p>-1){w=a.dump(w,parseInt(y,10))}else{w=w.toString()}}}else{if(!a.isString(w)&&!a.isNumber(w)){w="~-"+t.length+"-~";t[t.length]=g}}z=z.substring(0,m)+w+z.substring(l+1)}for(m=t.length-1;m>=0;m=m-1){z=z.replace(new RegExp("~-"+m+"-~"),"{"+t[m]+"}","g")}return z},trim:function(d){try{return d.replace(/^\s+|\s+$/g,"")}catch(f){return d}},merge:function(){var g={},e=arguments;for(var f=0,d=e.length;f<d;f=f+1){a.augmentObject(g,e[f],true)}return g},later:function(n,g,p,i,j){n=n||0;g=g||{};var h=p,l=i,k,e;if(a.isString(p)){h=g[p]}if(!h){throw new TypeError("method undefined")}if(!a.isArray(l)){l=[i]}k=function(){h.apply(g,l)};e=(j)?setInterval(k,n):setTimeout(k,n);return{interval:j,cancel:function(){if(this.interval){clearInterval(e)}else{clearTimeout(e)}}}},isValue:function(d){return(a.isObject(d)||a.isString(d)||a.isNumber(d)||a.isBoolean(d))}};a.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(d,e){return d&&d.hasOwnProperty(e)}:function(d,e){return !a.isUndefined(d[e])&&d.constructor.prototype[e]!==d[e]};b.augmentObject(a,b,true);YAHOO.util.Lang=a;a.augment=a.augmentProto;YAHOO.augment=a.augmentProto;YAHOO.extend=a.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.6.0",build:"1321"});YAHOO.lang.JSON=(function(){var l=YAHOO.lang,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_INVALID=/^[\],:{}\s]*$/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k]}else{value[k]=v}}}}return reviver.call(o,key,value)};return typeof reviver==="function"?walk({"":data},""):data}function _char(c){if(!_CHARS[c]){_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4)}return _CHARS[c]}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char)}function _isValid(str){return l.isString(str)&&_INVALID.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""))}function _string(s){return'"'+s.replace(_SPECIAL_CHARS,_char)+'"'}function _stringify(h,key,d,w,pstack){var o=typeof w==="function"?w.call(h,key,h[key]):h[key],i,len,j,k,v,isArray,a;if(o instanceof Date){o=l.JSON.dateToString(o)}else{if(o instanceof String||o instanceof Boolean||o instanceof Number){o=o.valueOf()}}switch(typeof o){case"string":return _string(o);case"number":return isFinite(o)?String(o):"null";case"boolean":return String(o);case"object":if(o===null){return"null"}for(i=pstack.length-1;i>=0;--i){if(pstack[i]===o){return"null"}}pstack[pstack.length]=o;a=[];isArray=l.isArray(o);if(d>0){if(isArray){for(i=o.length-1;i>=0;--i){a[i]=_stringify(o,i,d-1,w,pstack)||"null"}}else{j=0;if(l.isArray(w)){for(i=0,len=w.length;i<len;++i){k=w[i];v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}else{for(k in o){if(typeof k==="string"&&l.hasOwnProperty(o,k)){v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}}a.sort()}}pstack.pop();return isArray?"["+a.join(",")+"]":"{"+a.join(",")+"}"}return undefined}return{isValid:function(s){return _isValid(_prepare(s))},parse:function(s,reviver){s=_prepare(s);if(_isValid(s)){return _revive(eval("("+s+")"),reviver)}throw new SyntaxError("parseJSON")},stringify:function(o,w,d){if(o!==undefined){if(l.isArray(w)){w=(function(a){var uniq=[],map={},v,i,j,len;for(i=0,j=0,len=a.length;i<len;++i){v=a[i];if(typeof v==="string"&&map[v]===undefined){uniq[(map[v]=j++)]=v}}return uniq})(w)}d=d>=0?d:1/0;return _stringify({"":o},"",d,w,[])}return undefined},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+":"+_zeroPad(d.getUTCMinutes())+":"+_zeroPad(d.getUTCSeconds())+"Z"},stringToDate:function(str){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/.test(str)){var d=new Date();d.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);d.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return d}return str}}})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.6.0",build:"1321"});document.iframeLoaders={};iframe=function(){this.initialize.apply(this,arguments)};iframe.prototype={initialize:function(f,c,d){d=d||(new Date()*1);if(!c){c={}}this.form=f;this.uniqueId=d;document.iframeLoaders[this.uniqueId]=this;var b=f.action+"?jsonRequest="+escape(f.elements[0].value);var a=b.indexOf("/",b.indexOf("//")+2);this.transport=this.getTransport((a>0)?b.substring(0,a):"");this.onComplete=c.onComplete||null;this.update=this.$(c.update)||null;this.updateMultiple=c.multiple||false;if(((navigator.vendor&&(navigator.vendor.indexOf("Apple"))>-1)||window.opera)&&(/\/Direct\/Process(\?|$)/.test(f.action))&&f.elements&&(f.elements.length==1)){var h=this.transport.contentWindow||this.transport.contentDocument;if(b.length<80000){if(h.document){h=h.document}try{h.location.replace(b);return}catch(g){}}}f.target="frame_"+this.uniqueId;f.setAttribute("target","frame_"+this.uniqueId);f.submit()},onStateChange:function(){this.transport=this.$("frame_"+this.uniqueId);try{var doc=this.transport.contentDocument.body.innerHTML;this.transport.contentDocument.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(a){var b=document.createElement("DIV"),c;b.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){b.style.width=0;b.style.height=0;b.style.margin=0;b.style.padding=0;b.style.visibility="hidden";b.style.overflow="hidden";b.innerHTML='<iframe name="frame_'+this.uniqueId+'" id="frame_'+this.uniqueId+'" src="'+a+'/ver1.0/Content/blank.html" onload="setTimeout(function(){document.iframeLoaders['+this.uniqueId+'].onStateChange()},20);"></iframe>'}else{c=document.createElement("iframe");c.setAttribute("name","frame_"+this.uniqueId);c.setAttribute("id","frame_"+this.uniqueId);c.addEventListener("load",this.bind(function(){this.onStateChange()},this),false);b.appendChild(c)}(RequestBatch.container||document.body).appendChild(b);return c},bind:function(a,b){return function(){return a.apply(b,arguments)}},"$":function(a){return document.getElementById(a)}};if(typeof(RequestBatch)==="undefined"){RequestBatch=function(){this.initialize.apply(this,arguments)};var counter=0;var pendingRequests=0;function DirectAccessErrorHandler(b,a){}(function(){function buildJsonpUrl(serverUrl,jsonString,callbackName){var separator=serverUrl.indexOf("?")==-1?"?":"&";serverUrl=serverUrl.replace("/Process","/Jsonp");return serverUrl+separator+"r="+encodeURIComponent(jsonString)+"&cb="+callbackName}function useJsonp(serverUrl,jsonString,callbackName){serverUrl=buildJsonpUrl(serverUrl,jsonString,callbackName);var isIE=
/*@cc_on!@*/
false;if((isIE&&serverUrl.length<2083)||(!isIE&&serverUrl.length<4000)){return serverUrl}return false}function getCurrentUserFromCookie(){var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===" "){c=c.substring(1,c.length)}var eqIndex=c.indexOf("=");if(eqIndex>0){name=c.substring(0,eqIndex);value=c.substring(eqIndex+1);if(name.toLowerCase()=="hd"){value=unescape(value);value=value.split("|");return value[0]}}}return null}function createSrcUrl(baseUrl,url,userId,gcid,currentTime){var regexstring=/\DDirect\/Process\?\w\S*/;myregexp=new RegExp(regexstring);baseUrl=baseUrl.indexOf("?")==-1?baseUrl.replace("/Direct/Process","/Stats/Tracker.gif"):baseUrl.replace(myregexp,"/Stats/Tracker.gif");return srcUrl=baseUrl+"?plckUrl="+encodeURIComponent(url)+"&plckUserId="+userId+"&plckGcid="+gcid+"&plckCurrentTime="+currentTime}RequestBatch.prototype={initialize:function(){this.UniqueId=counter++;this.Requests=new Array()},gcid:"daapiCall",InsertTrackerNode:function(serverUrl,requestUrl,userIdTrckr,gcid,currentTime){if(document.getElementById("slImgNodeTrckr")===null){var trackImgNode=document.createElement("img");trackImgNode.setAttribute("id","slImgNodeTrckr");trackImgNode.src=createSrcUrl(serverUrl,requestUrl,userIdTrckr,gcid,currentTime);if(trackImgNode.style.setAttribute){trackImgNode.style.setAttribute("display","none")}else{trackImgNode.setAttribute("style","display:none")}document.getElementsByTagName("body")[0].appendChild(trackImgNode)}},InitializeTracking:function(serverUrl){var requestUrl=location.href;var userId=getCurrentUserFromCookie();var d=new Date();var me=this;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);me.InsertTrackerNode(serverUrl,requestUrl,userId,me.gcid,d.getTime())},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);me.InsertTrackerNode(serverUrl,requestUrl,userId,me.gcid,d.getTime())}});if(document.documentElement.doScroll&&window==window.top){(function(){try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}me.InsertTrackerNode(serverUrl,requestUrl,userId,me.gcid,d.getTime())})()}}}},HasTemplate:function(){return typeof(this["Template"])!="undefined"},AddToRequest:function(requestThis){this.Requests[this.Requests.length]=requestThis},BeginRequest:function(serverUrl,callback){pendingRequests++;if(!RequestBatch.callbacks){RequestBatch.callbacks={}}var jsonString=YAHOO.lang.JSON.stringify(this),ie=
/*@cc_on!@*/
false;if(ie&&!RequestBatch.container){var body=document.body,div;RequestBatch.container=div=body.insertBefore(document.createElement("div"),body.firstChild);div.style.height=div.style.width=div.style.margin=div.style.padding=0;div.style.visibility=div.style.overflow="hidden";div.style.display="none"}var daapiCallbackName="daapiCallback"+this.UniqueId;var thisRequest=this;if(jsonpServerUrl=useJsonp(serverUrl,jsonString,"RequestBatch.callbacks."+daapiCallbackName)){var jsonpScriptNode=document.createElement("script");jsonpScriptNode.type="text/javascript";jsonpScriptNode.src=jsonpServerUrl;var headElem=document.getElementsByTagName("head")[0];RequestBatch.callbacks[daapiCallbackName]=(function(userCallback,headElem,scriptNode){return function(responses){if(thisRequest.HasTemplate()){userCallback(responses)}else{userCallback(responses.ResponseBatch);userCallback=headElem=scriptNode=null}}})(callback,headElem,jsonpScriptNode);headElem.appendChild(jsonpScriptNode)}else{var form=generateForm(this.UniqueId,serverUrl,jsonString);new iframe(form,{onComplete:function(request){processResponse(callback,request,thisRequest.HasTemplate())}},this.UniqueId)}thisRequest.InitializeTracking(serverUrl);this.UniqueId=counter++}}})()}function generateForm(k,e,a){var d=document.createElement("form");d.acceptCharset="UTF-8";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<4000){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"}}(RequestBatch.container||document.body).appendChild(d);return d}function processResponse(g,d,a){pendingRequests--;try{if(a){g(d.ResponseText)}else{var c=unescape(d.responseText);c=c.replace(/\\\>/g,">");var b=YAHOO.lang.JSON.parse(c);try{g(b.ResponseBatch)}catch(f){DirectAccessErrorHandler("exception during client callback",f)}}}catch(f){DirectAccessErrorHandler("exception during processResponse",f)}}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}};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}};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}};ForumCategoryKey=a();ForumCategoryKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.ForumCategoryKey=c}};ForumKey=a();ForumKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.ForumKey=c}};DiscussionKey=a();DiscussionKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.DiscussionKey=c}};ForumPostKey=a();ForumPostKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.ForumPostKey=c}};EventKey=a();EventKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.EventKey=c}};EventSetKey=a();EventSetKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.EventSetKey=c}};CommunityGroupKey=a();CommunityGroupKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.CommunityGroupKey=c}};CommunityGroupMembershipKey=a();CommunityGroupMembershipKey.prototype={initialize:function(b,d){var c=new Object();c.CommunityGroupKey=b;c.UserKey=d;this.CommunityGroupMembershipKey=c}};CommunityGroupInvitationKey=a();CommunityGroupInvitationKey.prototype={initialize:function(b,d){var c=new Object();c.CommunityGroupKey=b;c.UserKey=d;this.CommunityGroupInvitationKey=c}};CommunityGroupRegistrantKey=a();CommunityGroupRegistrantKey.prototype={initialize:function(b,d){var c=new Object();c.CommunityGroupKey=b;c.UserKey=d;this.CommunityGroupRegistrantKey=c}};CommunityGroupBannedUserKey=a();CommunityGroupBannedUserKey.prototype={initialize:function(b,d){var c=new Object();c.CommunityGroupKey=b;c.UserKey=d;this.CommunityGroupBannedUserKey=c}};PollKey=a();PollKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.PollKey=c}};BadgeFamilyKey=a();BadgeFamilyKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.BadgeFamilyKey=c}};LeaderboardKey=a();LeaderboardKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.LeaderboardKey=c}};FeedActivityKey=a();FeedActivityKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.FeedActivityKey=c}};RatingsReferenceKey=a();RatingsReferenceKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.RatingsReferenceKey=c}};CommentPage=a();CommentPage.prototype={initialize:function(f,b,d,c,g){var e=new Object();e.ArticleKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;e.FindCommentKey=g;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}};UserReviewPage=a();UserReviewPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.UserReviewPage=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(f,b,d,c){var e=new Object();e.GalleryKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.PhotoPage=e}};VideoPage=a();VideoPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.GalleryKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.VideoPage=e}};CommentAction=a();CommentAction.prototype={initialize:function(d,g,c,f,b){var e=new Object();e.CommentOnKey=d;e.OnPageUrl=g;e.OnPageTitle=c;e.CommentBody=f;e.PostedOnDate=b;this.CommentAction=e}};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(d,b){var c=new Object();c.RecommendThisKey=d;if(b){c.OnPageTitle=b}this.RecommendAction=c}};RateAction=a();RateAction.prototype={initialize:function(c,e,b,d){var f=new Object();f.RateThisKey=c;f.Rating=e;if(typeof(b)!="undefined"){f.MultiRate=b}if(typeof(d)!=="undefined"){f.RatingsReferenceKey=d}this.RateAction=f}};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}};EmailContentWithUserIDAction=a();EmailContentWithUserIDAction.prototype={initialize:function(e,c,b){var d=new Object();d.UserKey=e;d.Subject=c;d.Body=b;this.EmailContentWithUserIDAction=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;this.GalleryPromo=d}};UserTier=a();UserTier.prototype={initialize:function(b){var c=new Object();c.Name=b;this.UserTier=c}};MembershipTier=a();MembershipTier.prototype={initialize:function(b){var c=new Object();c.Name=b;this.MembershipTier=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}};AddEnemyAction=a();AddEnemyAction.prototype={initialize:function(b){var c=new Object();c.EnemyUserKey=b;this.AddEnemyAction=c}};RemoveEnemyAction=a();RemoveEnemyAction.prototype={initialize:function(b){var c=new Object();c.EnemyUserKey=b;this.RemoveEnemyAction=c}};FriendPage=a();FriendPage.prototype={initialize:function(g,b,e,c,d,h){var f=new Object();f.UserKey=g;f.NumberPerPage=b;f.OnPage=e;f.IsPendingList=c;f.FilterKey=d;f.FilterValue=h;this.FriendPage=f}};IsFriend=a();IsFriend.prototype={initialize:function(d,c){var b=new Object();b.FriendUserKey=d;b.UserKey=c;this.IsFriend=b}};EnemyPage=a();EnemyPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.EnemyPage=e}};DiscoverContentAction=a();DiscoverContentAction.prototype={initialize:function(k,c,b,e,i,j,h,f,d){var g=new Object();g.SearchSections=k;g.SearchCategories=c;g.LimitToContributors=b;g.Activity=e;g.ContentType=i;g.Age=j;g.MaximumNumberOfDiscoveries=h;g.FilterBySiteOfOrigin=f;if(d){g.ParentKeys=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}};UpdateUserBlockedSettingAction=a();UpdateUserBlockedSettingAction.prototype={initialize:function(d,c){var b=new Object;b.UserKey=d;b.IsBlocked=c;this.UpdateUserBlockedSettingAction=b}};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}};BlogPostPage=a();BlogPostPage.prototype={initialize:function(i,c,f,e,b,g,d){var h=new Object();h.BlogKey=i;h.NumberPerPage=c;h.OnPage=f;h.Sort=e;h.BlogPostState=b;if((typeof(g)=="undefined")||(g==null)){g=false}h.RestrictToOwner=g.toString();if((typeof(d)=="undefined")||(d==null)){d=false}h.IncludeFuturePosts=d.toString();this.BlogPostPage=h}};BlogPostsByTagPage=a();BlogPostsByTagPage.prototype={initialize:function(g,b,c,e,d){var f=new Object();f.BlogKey=g;f.Tag=b;f.NumberPerPage=c;f.OnPage=e;f.Sort=d;this.BlogPostsByTagPage=f}};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(g,c,e,d,b){var f=new Object();f.UserKey=g;f.NumberPerPage=c;f.OnPage=e;f.Sort=d;f.CommentsOnly=b;this.UserCommentPage=f}};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}};UserMediaSubmissionsCountPage=a();UserMediaSubmissionsCountPage.prototype={initialize:function(f,b,c,d){var e=new Object();e.UserKey=f;e.MediaType=b;e.NumberPerPage=c;e.OnPage=d;this.UserMediaSubmissionsCountPage=e}};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}};UpdateBlogAction=a();UpdateBlogAction.prototype={initialize:function(d,h,e,c,g,b){var f=new Object();f.BlogKey=d;f.Title=h;f.Tagline=e;f.BlogRollEntries=c;f.BlogType=g;if((typeof(b)=="undefined"||(b==null))){b="NoChange"}f.CommentApproval=b;this.UpdateBlogAction=f}};BlogRollEntry=a();BlogRollEntry.prototype={initialize:function(c,b){var d=new Object();d.Name=c;d.Url=b;this.BlogRollEntry=d}};Bookmark=a();Bookmark.prototype={initialize:function(d,b){var c=new Object();c.Title=d;c.Link=b;this.Bookmark=c}};CommunityGroupVisibility=a();CommunityGroupVisibility.prototype={initialize:function(b){var c=new Object();c.Name=b;this.CommunityGroupVisibility=c}};UpdateBlogPostAction=a();UpdateBlogPostAction.prototype={initialize:function(e,h,b,d,c,g){var f=new Object();f.TargetThis=e;f.Title=h;f.Body=b;f.Tags=d;f.Date=c;f.Published=g;this.UpdateBlogPostAction=f}};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(h,b,g,f,d,c){var e=new Object();e.CustomItemKey=h;e.Name=b;e.MimeType=g;e.DisplayText=f;e.Content=d;if((typeof(c)=="undefined")||(c==null)){c=true}e.IncludeInRecentActivity=c;this.UpdateCustomItemAction=e}};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}};EditorMessageRequest=a();EditorMessageRequest.prototype={initialize:function(){this.EditorMessageRequest=new Object()}};UserTags=a();UserTags.prototype={initialize:function(c,d){var b=new Object();b.UserKey=c;b.ContentType=d;this.UserTags=b}};GetContentPolicyAction=a();GetContentPolicyAction.prototype={initialize:function(b,c,e){var d=new Object();d.TargetKey=b;d.UserTier=c;d.ContentPolicyActionType=e;this.GetContentPolicyAction=d}};SetContentPolicyAction=a();SetContentPolicyAction.prototype={initialize:function(b,c,e,f){var d=new Object();d.TargetKey=b;d.UserTier=c;d.ContentPolicyActionType=e;d.ContentPolicy=f;this.SetContentPolicyAction=d}};ContentPolicy=a();ContentPolicy.prototype={initialize:function(b){var c=new Object();c.Name=b;this.ContentPolicy=c}};ContentPolicyActionType=a();ContentPolicyActionType.prototype={initialize:function(b){var c=new Object();c.Name=b;this.ContentPolicyActionType=c}};UpdateForumAction=a();UpdateForumAction.prototype={initialize:function(b,e,c){var d=new Object();d.ForumKey=b;d.Title=e;d.Description=c;this.UpdateForumAction=d}};UpdateForumDiscussionAction=a();UpdateForumDiscussionAction.prototype={initialize:function(e,h,c,b,i,g,d){var f=new Object();f.TargetThis=e;f.Title=h;f.Body=c;f.IsQuestion=typeof(b)=="string"?b:(b?"true":"false");f.IsPoll=typeof(i)=="string"?i:(i?"true":"false");if(typeof(g)!="undefined"){f.Section=g}if(typeof(d)!="undefined"){f.Categories=d}this.UpdateForumDiscussionAction=f}};UpdateForumPostAction=a();UpdateForumPostAction.prototype={initialize:function(d,f,c,b){var e=new Object();e.TargetThis=d;e.Title=f;e.Body=c;e.IsQuestion=b;this.UpdateForumPostAction=e}};ForumToggleDiscussionStickyAction=a();ForumToggleDiscussionStickyAction.prototype={initialize:function(b){var c=new Object();c.DiscussionKey=b;this.ForumToggleDiscussionStickyAction=c}};ForumToggleDiscussionClosedAction=a();ForumToggleDiscussionClosedAction.prototype={initialize:function(b){var c=new Object();c.DiscussionKey=b;this.ForumToggleDiscussionClosedAction=c}};ForumDiscussionsPage=a();ForumDiscussionsPage.prototype={initialize:function(b,c,f,d){var e=new Object();e.ForumKey=b;e.NumberPerPage=c;e.OnPage=f;e.Sort=d;this.ForumDiscussionsPage=e}};ForumPostsPage=a();ForumPostsPage.prototype={initialize:function(f,c,g,d,b){var e=new Object();e.DiscussionKey=f;e.NumberPerPage=c;e.OnPage=g;e.Sort=d;e.FindPostKey=b;this.ForumPostsPage=e}};ForumCategoriesPage=a();ForumCategoriesPage.prototype={initialize:function(b,d){var c=new Object();c.NumberPerPage=b;c.OnPage=d;this.ForumCategoriesPage=c}};ForumsPage=a();ForumsPage.prototype={initialize:function(c,b,f,d){var e=new Object();e.ForumCategoryKey=c;e.NumberPerPage=b;e.OnPage=f;e.Sort=d;this.ForumsPage=e}};ForumSearchAction=a();ForumSearchAction.prototype={initialize:function(f,c,b,d){var e=new Object();e.TargetThis=f;e.SearchString=c;e.NumberPerPage=b;e.OnPage=d;this.ForumSearchAction=e}};CommunityGroupPage=a();CommunityGroupPage.prototype={initialize:function(b,f,c,e){var d=new Object();d.NumberPerPage=b;d.OnPage=f;d.Sort=c;if((typeof(e)=="undefined")||(e==null)){e=new Section("All")}d.Section=e;this.CommunityGroupPage=d}};CommunityGroupMembership=a();CommunityGroupMembership.prototype={initialize:function(b,d){var c=new Object();c.CommunityGroupKey=b;c.UserKey=d;this.CommunityGroupMembership=c}};CommunityGroupMembershipPage=a();CommunityGroupMembershipPage.prototype={initialize:function(d,b,g,c,e){var f=new Object();f.Key=d;f.NumberPerPage=b;f.OnPage=g;f.Sort=c;f.MembershipFilter=e;this.CommunityGroupMembershipPage=f}};CommunityGroupRegistrantPage=a();CommunityGroupRegistrantPage.prototype={initialize:function(d,b,f,c){var e=new Object();e.CommunityGroupKey=d;e.NumberPerPage=b;e.OnPage=f;e.Sort=c;this.CommunityGroupRegistrantPage=e}};CommunityGroupBannedUserPage=a();CommunityGroupBannedUserPage.prototype={initialize:function(d,b,f,c){var e=new Object();e.CommunityGroupKey=d;e.NumberPerPage=b;e.OnPage=f;e.Sort=c;this.CommunityGroupBannedUserPage=e}};CommunityGroupInvitedUserPage=a();CommunityGroupInvitedUserPage.prototype={initialize:function(d,b,f,c){var e=new Object();e.CommunityGroupKey=d;e.NumberPerPage=b;e.OnPage=f;e.Sort=c;this.CommunityGroupInvitedUserPage=e}};UpdateCommunityGroupAction=a();UpdateCommunityGroupAction.prototype={initialize:function(j,g,i,f,b,c,h,d){var e=new Object();e.CommunityGroupKey=j;e.Title=g;e.Description=i;e.Categories=f;e.Visibility=b,e.Bookmarks=c;e.Section=h;e.PhotoKey=d;this.UpdateCommunityGroupAction=e}};UpdateCommunityGroupBookmarksAction=a();UpdateCommunityGroupBookmarksAction.prototype={initialize:function(b,c){var d=new Object();d.CommunityGroupKey=b;d.Bookmarks=c;this.UpdateCommunityGroupBookmarksAction=d}};UpdateCommunityGroupMembershipAction=a();UpdateCommunityGroupMembershipAction.prototype={initialize:function(b,g,d,c,f){var e=new Object();e.CommunityGroupKey=b;e.UserKey=g;e.MembershipTier=d;e.IsBanned=c;e.BanMessage=f;this.UpdateCommunityGroupMembershipAction=e}};RequestCommunityGroupMembershipAction=a();RequestCommunityGroupMembershipAction.prototype={initialize:function(b,e,c){var d=new Object();d.CommunityGroupKey=b;d.UserKey=e;d.Message=c;this.RequestCommunityGroupMembershipAction=d}};EventsPage=a();EventsPage.prototype={initialize:function(d,b,g,c,h,e){var f=new Object();f.EventSetKey=d;f.StartDate=b;f.EndDate=g;f.NumberPerPage=c;f.OnPage=h;f.Sort=e;this.EventsPage=f}};UpdateEventAction=a();UpdateEventAction.prototype={initialize:function(i,f,h,g,e,j,b,d,k){var c=new Object();c.TargetThis=i;c.Title=f;c.Description=h;c.Location=g;c.BookmarkName=e;c.BookmarkUrl=j;c.StartDate=b;c.EndDate=d;c.UtcOffset=k;this.UpdateEventAction=c}};RecentMiniFeedActivity=a();RecentMiniFeedActivity.prototype={initialize:function(b,d,c){var e=new Object();e.CommunityGroupKey=b;e.OnPage=d;e.NumberPerPage=c;this.RecentMiniFeedActivity=e}};CommunityGroupMostActiveMembers=a();CommunityGroupMostActiveMembers.prototype={initialize:function(b,c,d){var e=new Object();e.CommunityGroupKey=b;e.Age=c;e.MaximumNumberOfMembers=d;this.CommunityGroupMostActiveMembers=e}};CommunityGroupSearchAction=a();CommunityGroupSearchAction.prototype={initialize:function(b,e,d,c,f){var g=new Object();g.CommunityGroupKey=b;g.SearchType=e;g.SearchString=d;g.OnPage=f;g.NumberPerPage=c;this.CommunityGroupSearchAction=g}};RequestDeleteCommunityGroupAction=a();RequestDeleteCommunityGroupAction.prototype={initialize:function(b,c){var d=new Object();d.CommunityGroupKey=b;d.DeleteReason=c;this.RequestDeleteCommunityGroupAction=d}};CommunityGroupRecentForumDiscussions=a();CommunityGroupRecentForumDiscussions.prototype={initialize:function(b,c,e){var d=new Object();d.CommunityGroupKey=b;d.Age=c;d.MaximumNumberOfDiscussions=e;this.CommunityGroupRecentForumDiscussions=d}};SystemTimeInfo=a();SystemTimeInfo.prototype={initialize:function(){var b=new Object();this.SystemTimeInfo=b}};PrivateMessageFolderList=a();PrivateMessageFolderList.prototype={initialize:function(){var b=new Object();this.PrivateMessageFolderList=b}};PrivateMessage=a();PrivateMessage.prototype={initialize:function(b,c){var d=new Object();d.FolderID=b;d.MessageID=c;this.PrivateMessage=d}};PrivateMessagePage=a();PrivateMessagePage.prototype={initialize:function(b,c,e,d){var f=new Object();f.FolderID=b;f.NumberPerPage=c;f.OnPage=e;f.MessageReadState=d;this.PrivateMessagePage=f}};PrivateMessageSendAction=a();PrivateMessageSendAction.prototype={initialize:function(c,b,d){var e=new Object();e.Subject=c;e.Body=b;e.RecipientList=d;this.PrivateMessageSendAction=e}};PrivateMessageMoveMessageAction=a();PrivateMessageMoveMessageAction.prototype={initialize:function(c,e,b){var d=new Object();d.SourceFolderID=c;d.DestinationFolderID=e;d.MessageIDList=b;this.PrivateMessageMoveMessageAction=d}};PrivateMessageDeleteMessageAction=a();PrivateMessageDeleteMessageAction.prototype={initialize:function(c,b){var d=new Object();d.SourceFolderID=c;d.MessageIDList=b;this.PrivateMessageDeleteMessageAction=d}};PrivateMessageEmptyTrashAction=a();PrivateMessageEmptyTrashAction.prototype={initialize:function(){var b=new Object();this.PrivateMessageEmptyTrashAction=b}};PrivateMessageCreateFolderAction=a();PrivateMessageCreateFolderAction.prototype={initialize:function(){var b=new Object();b.FolderID="Inbox";this.PrivateMessageCreateFolderAction=b}};FirstUnreadPost=a();FirstUnreadPost.prototype={initialize:function(c,b,d){var e=new Object();e.DiscussionKey=c;e.NumberPerPage=b;e.Sort=d;this.FirstUnreadPost=e}};LatestPost=a();LatestPost.prototype={initialize:function(c,b,d){var e=new Object();e.DiscussionKey=c;e.NumberPerPage=b;e.Sort=d;this.LatestPost=e}};UpdateDiscussionLastReadAction=a();UpdateDiscussionLastReadAction.prototype={initialize:function(b,e,c){var d=new Object();d.DiscussionKey=b;if(e){d.ForumPostKey=e}if(c){d.ForceUpdate=true}else{d.ForceUpdate=false}this.UpdateDiscussionLastReadAction=d}};UpdateForumAllReadAction=a();UpdateForumAllReadAction.prototype={initialize:function(b){var c=new Object();c.ForumKey=b;this.UpdateForumAllReadAction=c}};UpdateCategoryAllReadAction=a();UpdateCategoryAllReadAction.prototype={initialize:function(b){var c=new Object();c.ForumCategoryKey=b;this.UpdateCategoryAllReadAction=c}};UpdateExternalUserIdAction=a();UpdateExternalUserIdAction.prototype={initialize:function(c,d,b){var e=new Object();e.ExternalSiteName=c;e.ExternalSiteUserId=d;e.ForUser=b;this.UpdateExternalUserIdAction=e}};UpdateSubscriptionAction=a();UpdateSubscriptionAction.prototype={initialize:function(c,b){var d=new Object();d.DiscussionKey=c;d.Subscribe=b;this.UpdateSubscriptionAction=d}};UpdatePollAction=a();UpdatePollAction.prototype={initialize:function(c,b,e){var d=new Object();d.PollOnKey=c;d.Question=b;d.Answers=e;this.UpdatePollAction=d}};TogglePollIsClosedAction=a();TogglePollIsClosedAction.prototype={initialize:function(b){var c=new Object();c.ToggleThisPoll=b;this.TogglePollIsClosedAction=c}};PostPollAnswerAction=a();PostPollAnswerAction.prototype={initialize:function(b,d){var c=new Object();c.PollToAnswer=b;c.IndexOfAnswer=d;this.PostPollAnswerAction=c}};PollPage=a();PollPage.prototype={initialize:function(d,b,e,c){var f=new Object();f.PollOnKey=d;f.NumberPerPage=b;f.OnPage=e;f.Sort=c;this.PollPage=f}};CheckFilteredWords=a();CheckFilteredWords.prototype={initialize:function(c){var b=new Object();b.WordDictionary=c;this.CheckFilteredWords=b}};AwardPointsAction=a();AwardPointsAction.prototype={initialize:function(e,c,b){var d=new Object();d.UserKey=e;d.Points=c;d.CurrencyType=b;this.AwardPointsAction=d}};BadgeFamily=a();BadgeFamily.prototype={initialize:function(b){var c=new Object();c.BadgeFamilyKey=b;this.BadgeFamily=c}};BadgeFamilies=a();BadgeFamilies.prototype={initialize:function(){var b=new Object();this.BadgeFamilies=b}};BadgingEventAction=a();BadgingEventAction.prototype={initialize:function(e,d,c){var b=new Object();b.ActivityName=e;b.ActivityTags=d;b.UserTags=c;this.BadgingEventAction=b}};GrantBadgeAction=a();GrantBadgeAction.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.BadgeFamilyKey=b;d.BadgeKey=c;this.GrantBadgeAction=d}};Leaderboard=a();Leaderboard.prototype={initialize:function(b){var c=new Object();c.LeaderboardKey=b;this.Leaderboard=c}};Leaderboards=a();Leaderboards.prototype={initialize:function(){var b=new Object();this.Leaderboards=b}};LeaderboardRankingsPage=a();LeaderboardRankingsPage.prototype={initialize:function(b,d){var c=new Object();c.LeaderboardKey=b;c.OnPage=d;this.LeaderboardRankingsPage=c}};RevokeBadgeAction=a();RevokeBadgeAction.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.BadgeFamilyKey=b;d.BadgeKey=c;this.RevokeBadgeAction=d}};PointsAndBadgingRuleValidationAction=a();PointsAndBadgingRuleValidationAction.prototype={initialize:function(c){var b=new Object();b.Rules=c;this.PointsAndBadgingRuleValidationAction=b}};AbuseItemPage=a();AbuseItemPage.prototype={initialize:function(b,c,f,e){var d=new Object();d.NumberPerPage=b;d.OnPage=c;d.Section=f;d.MaxReportsPerItem=e;this.AbuseItemPage=d}};AbuseItem=a();AbuseItem.prototype={initialize:function(b){var c=new Object();c.TargetKey=b;this.AbuseItem=c}};ClearAbuseAction=a();ClearAbuseAction.prototype={initialize:function(b){var c=new Object();c.TargetKey=b;this.ClearAbuseAction=c}};SetCommentBlockingStateAction=a();SetCommentBlockingStateAction.prototype={initialize:function(b,c){var d=new Object();d.CommentKey=b;d.CommentBlockingState=c;this.SetCommentBlockingStateAction=d}};CommunityFeedRequest=a();CommunityFeedRequest.prototype={initialize:function(d,b){var c=new Object();c.ActivityForTypes=d;c.Count=b;this.CommunityFeedRequest=c}};UpdateDiscoveryFilterFlagOnContentAction=a();UpdateDiscoveryFilterFlagOnContentAction.prototype={initialize:function(d,c,b){var e=new Object();e.DiscoveryFilterFlagExcludeThisContent=d;e.ExcludeContentFlag=c;e.SiteList=b;this.UpdateDiscoveryFilterFlagOnContentAction=e}};SendTwitterMessageAction=a();SendTwitterMessageAction.prototype={initialize:function(d,b,c){var e=new Object();e.Message=d;e.Url=b;e.Template=c;this.SendTwitterMessageAction=e}};UserTwitterStatus=a();UserTwitterStatus.prototype={initialize:function(c){var b=new Object();b.UserKey=c;this.UserTwitterStatus=b}};UserTwitterFriends=a();UserTwitterFriends.prototype={initialize:function(b,c){var d=new Object();d.NumberPerPage=b;d.OnPage=c;this.UserTwitterFriends=d}};UserExtendedPrefs=a();UserExtendedPrefs.prototype={initialize:function(c){var b=new Object();b.UserKey=c;this.UserExtendedPrefs=b}};FriendFeedRequest=a();FriendFeedRequest.prototype={initialize:function(c,b,e){var d=new Object();d.ForUserKey=c;d.PageNumber=b;d.IncludeTypes=e;this.FriendFeedRequest=d}};AddFriendFeedReactionRequest=a();AddFriendFeedReactionRequest.prototype={initialize:function(c,e,b){var d=new Object();d.ReactionOnKey=c;d.AuthorKey=e;d.Body=b;this.AddFriendFeedReactionRequest=d}};UpdateUserExtendedPrefAction=a();UpdateUserExtendedPrefAction.prototype={initialize:function(b,d){var c=new Object();c.PrefName=b;c.PrefValue=d;this.UpdateUserExtendedPrefAction=c}};UpdateUserPathRequest=a();UpdateUserPathRequest.prototype={initialize:function(d,c){var b=new Object();b.User=d;b.Path=c;this.UpdateUserPathRequest=b}};DeleteFriendFeedReactionRequest=a();DeleteFriendFeedReactionRequest.prototype={initialize:function(b,c){var d=new Object();d.ReactionOnKey=b;d.ReactionKey=c;this.DeleteFriendFeedReactionRequest=d}};UsersForPathRequest=a();UsersForPathRequest.prototype={initialize:function(d,b){var c=new Object();c.Path=d;c.IncludeSubPaths=b;this.UsersForPathRequest=c}};SetFriendFeedUserVisibilityRequest=a();SetFriendFeedUserVisibilityRequest.prototype={initialize:function(e,c,b){var d=new Object();d.FeedOwnerUserKey=e;d.ForUserKey=c;d.Visible=b;this.SetFriendFeedUserVisibilityRequest=d}};HiddenFriendFeedUsersRequest=a();HiddenFriendFeedUsersRequest.prototype={initialize:function(b){var c=new Object();c.ForUserKey=b;this.HiddenFriendFeedUsersRequest=c}};PathForUserRequest=a();PathForUserRequest.prototype={initialize:function(b){var c=Object();c.User=b;this.PathForUserRequest=c}};CommentRequest=a();CommentRequest.prototype={initialize:function(b,d){var c=Object();c.CommentKey=b;c.LookInModeration=d;this.CommentRequest=c}};SendYahooUpdateMessageAction=a();SendYahooUpdateMessageAction.prototype={initialize:function(d,b,c){var e=new Object();e.Message=d;e.Url=b;e.Template=c;this.SendYahooUpdateMessageAction=e}};SendLinkedInUpdateMessageAction=a();SendLinkedInUpdateMessageAction.prototype={initialize:function(d,b,c){var e=new Object();e.Message=d;e.Url=b;e.Template=c;this.SendLinkedInUpdateMessageAction=e}};SendLinkedInNetworkUpdateMessageAction=a();SendLinkedInNetworkUpdateMessageAction.prototype={initialize:function(d,b,c){var e=new Object();e.Message=d;e.Url=b;e.Template=c;this.SendLinkedInNetworkUpdateMessageAction=e}};UserLinkedInProfile=a();UserLinkedInProfile.prototype={initialize:function(c){var b=new Object();b.UserKey=c;this.UserLinkedInProfile=b}};UserLinkedInUniqueId=a();UserLinkedInUniqueId.prototype={initialize:function(c){var b=new Object();b.UserKey=c;this.UserLinkedInUniqueId=b}}})();function RegisteredGateway(b,e,c){var a=this,d='<a href="'+b+'" class="lnkLogin reglayer-login" title="Login">Log In</a> or <a href="'+e+'" class="lnkRegister reglayer-register" title="Register">register</a>';this.boxWidth="";this.aLoginMessages={log:d+" to log this tip.",rating:d+" to post your rating.",comment:d+" to post your comment.",favorites:d+" now to add this tip to your favorites.",favorites_generic:d+" to save this to your list of favorites.",product_page:"We can't save products to your list if we don't know who you are! "+d+" to save and share your favorite finds now.",recommendation:d+" to recommend this tip.",abuse:d+" to report this comment.","default":d+" to use this program."};this.signinUrl=b;this.gatewayUrl=e;RegisteredGateway.prototype.init=function(){a.createRegisterDiv()};RegisteredGateway.prototype.createRegisterDiv=function(){if(!jQuery("#reglayer").length){jQuery('<div id="reglayer"/>').addClass("regblurb").append(jQuery('<a href="#"/>').addClass("closebtn").html("&times;").bind("click",function(){jQuery(this).parent().hide();return false}),jQuery('<p id="regtxt"/>')).appendTo("body");jQuery(".closebtn").trigger("click")}CN.debug.info("firing CN.customEvents.pluckRegLayer event");jQuery(window).trigger("CN.customEvents.pluckRegLayer")};RegisteredGateway.prototype.getGatewayUrl=function(){return this.gatewayUrl};RegisteredGateway.prototype.setLoginText=function(f){return jQuery("#regtxt").html(f).length>0?true:false};RegisteredGateway.prototype.loginHandler=function(f,k){var k=jQuery(k),g=jQuery("#reglayer");var j=jQuery(window);jQuery(window).bind("resize",{layer:g,target:k},this.onResize);var i=k.offset().top,h=k.offset().left+(k.width()/2)-(g.width()/2);if(CN.site.mobilecompatible){if((CN.mobile.detectIPad()||CN.mobile.detectIPhone())){i=j.scrollTop()+(j.height()/4);h=j.width()/2-(jQuery("div.regblurb").width()*2)}}g.css({top:i,left:h}).find("#regtxt").html(this.aLoginMessages[f]).end().show();return false};RegisteredGateway.prototype.onResize=function(g){var f=jQuery(window);g.data.layer.css({top:f.scrollTop()+(f.height()/4),left:f.width()/2-(jQuery("div.regblurb").width()*2)})}}jQuery(window).bind("CN.customEvents.pluckRegLayerHide",function(){jQuery("#reglayer").hide()});window.CN=window.CN||{};CN.pluck=CN.pluck||{};CN.pluck.main=new (function(){var me=this;me.serverUrl={};me.photoUrl={};me.siteUrl={};me.loggedIn=LoggedIn();me.domain=setDomain();me.gatewayHandler=new RegisteredGateway("/user/login","/user/registration");me.out={};me.communityAdmin="community@self.com";me.mostpopularEntries=10;me.mostpopularAge=15;var jQDetected=(typeof window.jQuery=="undefined"?false:true);var permissionTiers={};permissionTiers.Editor=4;permissionTiers.GroupAdmin=3;permissionTiers.Manager=2;permissionTiers.Member=1;permissionTiers.NonMember=0;permissionTiers.Banned=0;me.toConsole=function(requestBatch){if(typeof requestBatch!="undefined"){if(window.console&&typeof platformEnvironment!="undefined"){if(platformEnvironment!="production"){try{console.dir(requestBatch)}catch(ex){console.log(JSON.stringify(requestBatch))}}}}};if(!jQDetected){jQuery=function(){me.toConsole("jQuery not found on page.\n\nSome functionality for pluckMain will not be availible.");try{}catch(ex){return false}}}me.loader=function(){me.loggedIn=LoggedIn();me.gatewayHandler.init()};jQuery(function(){me.loader()});me.bindRegGateway=function(selector){if(!me.loggedIn){jQuery(selector).each(function(){jQuery(this).attr("onclick","").unbind("click").click(function(){me.gatewayHandler.loginHandler("group",this);return false});return false})}};function pluckCookie(){try{var pluckUser=CN.utils.parseStr(CN.cookie.get("at"),"query")}catch(ex){var pluckUser=null}return pluckUser}var pluckUser=pluckCookie();if(pluckUser!=null){var userNameFirst=pluckUser.f;var userNameLast=pluckUser.l;var userId=pluckUser.u;var userDisplayName=pluckUser.a}else{var userNameFirst="";var userNameLast="";var userId="";var userDisplayName=""}me.userNameFirst=function(){return userNameFirst};me.userNameLast=function(){return userNameLast};me.userId=function(){return userId};me.userDisplayName=function(){return userDisplayName};me.permissions=function(outdex){return permissionTiers[outdex]};me.photoUploadForm=function(formId,gKey,userId){var form=document.getElementById(formId);form.action=me.photoUrl;if(typeof gKey!="undefined"){var inputElem=document.createElement("input");inputElem.name="galleryKey";inputElem.type="hidden";inputElem.value=gKey;form.appendChild(inputElem)}if(typeof userId!="undefined"){var inputElem=document.createElement("input");inputElem.name="userKey";inputElem.type="hidden";inputElem.value=CN.pluck.main.userId();form.appendChild(inputElem)}form.method="post";return form};me.crossConfirm=function(iAsk,iAnswer){if(iAnswer){eval(iAsk)}else{return false}};me.sendEmail=function(userKey,mSub,mBody,groupKey,callbackHandler){var batcher=new RequestBatch();if(typeof groupKey!="undefined"){batcher.AddToRequest(new CommunityGroupKey(groupKey))}batcher.AddToRequest(new UserKey(userKey));batcher.BeginRequest(CN.pluck.main.serverUrl,function(response){me.sendEmailWorker(response,mSub,mBody,callbackHandler)})};me.sendEmailDirect=function(userAdd,mSub,mBody,groupKey,userKey){var batcher=new RequestBatch();if(typeof groupKey!="undefined"&&typeof userKey!="undefined"){batcher.AddToRequest(new CommunityGroupKey(groupKey));batcher.AddToRequest(new UserKey(userKey))}batcher.BeginRequest(CN.pluck.main.serverUrl,function(response){me.sendEmailDirectWorker(response,userAdd,mSub,mBody)})};me.sendEmailDirectWorker=function(responseBatch,userAdd,mSub,mBody){me.toConsole(responseBatch);var group={};var user={};var matchGroup=/(\${groupTitle})/g;var matchUser=/(\${userName})/g;for(var li=0;li<responseBatch.Responses.length;li++){if(responseBatch.Responses[li].CommunityGroup!=null){group=responseBatch.Responses[li].CommunityGroup}if(responseBatch.Responses[li].User!=null){user=responseBatch.Responses[li].User}}if(group!={}){mBody=mBody.replace(matchGroup,group.Title);mSub=mSub.replace(matchGroup,group.Title)}mBody=mBody.replace(matchUser,user.DisplayName);mSub=mSub.replace(matchUser,user.DisplayName);var batcher=new RequestBatch;batcher.AddToRequest(new EmailContentAction(userAdd,mSub,mBody));batcher.BeginRequest(CN.pluck.main.serverUrl,me.toConsole)};me.sendEmailWorker=function(responseBatch,mSub,mBody,callbackHandler){me.toConsole(responseBatch);var group={};var user={};var matchGroup=/(\${groupTitle})/g;var matchUser=/(\${userName})/g;for(var li=0;li<responseBatch.Responses.length;li++){if(responseBatch.Responses[li].CommunityGroup!=null){group=responseBatch.Responses[li].CommunityGroup}if(responseBatch.Responses[li].User!=null){user=responseBatch.Responses[li].User}}if(user.IsEmailNotificationsEnabled!="False"){if(group!={}){mBody=mBody.replace(matchGroup,group.Title);mSub=mSub.replace(matchGroup,group.Title)}mBody=mBody.replace(matchUser,user.DisplayName);mSub=mSub.replace(matchUser,user.DisplayName);var batcher=new RequestBatch;batcher.AddToRequest(new EmailContentWithUserIDAction(new UserKey(user.UserKey.Key),mSub,mBody));batcher.BeginRequest(CN.pluck.main.serverUrl,me.toConsole)}me.sendJiveMessage(user.UserKey.Key,mSub,mBody,callbackHandler)};me.sendJiveMessage=function(userKey,mSub,mBody,callbackHandler){var jsonString={recipient:userKey,subject:mSub,body:mBody};jQuery.ajax({url:"/services/forums/privatemessage",type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(jsonString),complete:function(response){me.toConsole({status:response.status,statusText:response.statusText});if(typeof callbackHandler!="undefined"){callbackHandler}}})};me.DOMCleaner=function(fId){try{var cleaner=document.getElementById("f"+fId);cleaner.parentNode.removeChild(cleaner);cleaner=document.getElementById("frame_"+fId).parentNode;cleaner.parentNode.removeChild(cleaner)}catch(ex){}};function LoggedIn(){var cookie_name="amg_user";var nameEQ=cookie_name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(nameEQ)==0){return true}}return false}function setDomain(){return CN.url.domain()}function extend(subc,superc,overrides){if(!superc||!subc){throw new Error("extend failed, please check that all dependencies are included.")}var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i]}}}if(!jQDetected){delete jQuery}});function Rating(a,b){this.ratingDiv=document.getElementById(a);this.rating="";this.id=b;this.aAnchors=[];Rating.init=function(c){Rating.numberItems=c};Rating.addSubmitListener=function(c){Rating.submitHandler=c};Rating.prototype.initRating=function(){if(this.ratingDiv==null){return false}var e=this.ratingDiv.getElementsByTagName("a");var d=0;for(var c=0;c<e.length;c++){if(e[c].nodeType==1){this.aAnchors.push(e[c].id);this.attachMouseEvents(e[c].id,d);d++}}};Rating.prototype.setRating=function(d){this.rating=d;if(isNaN(this.rating)){this.rating=0}if(this.rating>Rating.numberItems){this.rating=0}for(var c=0;c<Rating.numberItems;c++){if(c+1<=d){jQuery("#"+this.aAnchors[c]).removeClass("inactive").addClass("active")}else{jQuery("#"+this.aAnchors[c]).removeClass("active").addClass("inactive")}}};Rating.prototype.fillRatings=function(d){for(var c=0;c<Rating.numberItems;c++){if(d>=c){jQuery("#"+this.aAnchors[c]).removeClass("inactive").removeClass("active").addClass("hover")}else{jQuery("#"+this.aAnchors[c]).removeClass("hover").removeClass("active").addClass("inactive")}}};Rating.prototype.resetRatings=function(){var d=this.rating-1;for(var c=0;c<Rating.numberItems;c++){if(d>=0&&c<=d){jQuery("#"+this.aAnchors[c]).removeClass("inactive").removeClass("hover").addClass("active")}else{jQuery("#"+this.aAnchors[c]).removeClass("active").removeClass("hover").addClass("inactive")}}};Rating.prototype.attachMouseEvents=function(e,d){var c=document.getElementById(e);var f=this;c.onclick=function(){Rating.submitHandler.submitRating(d+1,f.id,this);return false};c.onmouseout=function(){f.resetRatings()};c.onmouseover=function(){f.fillRatings(d)}}}if(typeof CN=="undefined"){var CN={}}CN.pluck=CN.pluck||{};function Pluck(a){var e=this;e.callbackHandler=(a||PluckMarkupGenerator);e.serverUrl="";e.commentForm={};e.crLogicHelper={};e.crLookUp={};e.crMetaData={};e.programUrl="";e.artId="";e.pluckBatchSize=10;e.currentPage={};e.numberPerPage="";e.currentRating=-1;e.isLoggedIn="";e.loginUrl="";e.pluckActive=true;e.requestBatch="";e.gatewayHandler;e.callbackHandler.parentHandler=e;e.filter={enable:false,tags:[]};function c(j){return document.getElementById(j)||false}function f(k,j){if(!j){return e.crLogicHelper[k]?true:false}return(e.crLogicHelper[k]&&e.crLogicHelper[k].indexOf(j)!==-1)?true:false}function h(j){if(e.filter.enable){var l=jQuery("<div>").html(j),k=e.filter.tags.join(",");jQuery(jQuery.makeArray(l.find("*").not(k)).reverse()).each(function(){var m=jQuery(this);m.not(k).replaceWith(m.html())});return l.html()}return j}function g(k){if(typeof k==="string"){k=k.split(",")}var m=0,j=k.length,l=[];for(;m<j;m++){if(k[m]!==""){l.push(k[m] instanceof Category?k[m]:new Category(k[m]))}}return l}function i(j){return j.charAt(0).toUpperCase()+j.substr(1)}function d(l,k,j){if(!j){return(e.crMetaData[l]&&e.crMetaData[l][k]?e.crMetaData[l][k]:false)||(c("commentPage"+i(k)+"_"+l)?c("commentPage"+i(k)+"_"+l).value:"")}e.crMetaData[l][k]=j}function b(k,p,n){var l=CN.utils.trim(jQuery("#commentText_"+k).val()),k=String(k),t=new ArticleKey(k),o=CN.url.section(),u=d(k,"type"),r=d(k,"kw"),j=d(k,"title"),q=location.protocol+"//"+location.host+(u==="blog"||d(k,"url")?location.pathname:"/services/lookup/"+k.substr(k.indexOf("_")+1)),m=0;if(!l){alert("You must enter comment text.");return false}l=h(l);if(n==="review"&&f(k,"R")){m=e.callbackHandler.articleRating;if(e.currentRating!=m&&e.currentRating!=-1){m=e.currentRating}}if(n==="comment"){jQuery(window).trigger("CN.customEvents.pluckCommentSubmitted",[j,q,u+"/"+o,l]);CN.debug.info("firing CN.customEvents.pluckCommentSubmitted event")}if(typeof CN!==undefined&&CN.stats&&CN.stats.omniture){CN.stats.omniture.trackAction("comment",e.commentForm[k][0])}e.currentPage[k]=1;e.requestBatch=new RequestBatch();e.requestBatch.AddToRequest(new UpdateArticleAction(t,q,j,new Section(o),g(u+","+r)));e.requestBatch.AddToRequest((n==="comment"?new CommentAction(t,q,j,l):new ReviewAction(t,q,j,j,m,l,"","")));e.addToRequest(k,n).submitRequest();jQuery("#commentText_"+k).val("");return false}Pluck.prototype.init=function(j,k,l){e.numberPerPage=k;e.loginUrl=l;e.isLoggedIn=e.LoggedIn();e.serverUrl=j};Pluck.prototype.LoggedIn=function(){return CN.user.isLoggedIn()};Pluck.prototype.addGatewayListener=function(j){e.gatewayHandler=j};Pluck.prototype.initCommentForm=function(j,n,o,k){var l="comment",k=k||l;try{e.requestBatch=new RequestBatch()}catch(m){e.pluckActive=false;CN.debug.user(m)}e.commentForm[n]=jQuery("#"+j);if(e.commentForm[n].length&&e.pluckActive){jQuery(e.commentForm[n]).attr({name:j}).unbind("submit");jQuery(e.commentForm[n]).attr({name:j}).unbind("submit").bind("submit",{type:k},function(p){return(p.data.type==="comment")?e.submitComment(n):e.submitReview(n)});jQuery("#frmPostBtn_"+n).bind("click",function(){if(!e.LoggedIn()){return false}});jQuery("#commentText_"+n).bind("blur",function(){if(!e.LoggedIn()){this.value=""}}).one("focus",function(){if(CN.stats&&CN.stats.omniture){CN.stats.omniture.trackActionEvar("commentFocus",this,"eVar39","comment on focus")}}).bind("focus",function(){if(!e.LoggedIn()){e.gatewayHandler.loginHandler("comment",this);jQuery(this).blur()}})}else{jQuery("#"+o).hide()}};Pluck.prototype.initPrivateCommentForm=function(k,j,n,m){if(document.getElementById(k)){this.privateCommentForm=document.getElementById(k);this.programUrl=m;if(this.privateCommentForm==null){return false}if(this.pluckActive){var l=this;this.privateCommentForm.onsubmit=function(){return l.submitPrivateComment(j)}}else{document.getElementById(n).style.display="none"}}};Pluck.prototype.doMultArticleRequest=function(l){for(var k=0,j=l.length;k<j;k++){Pluck.prototype.doArticleRequest(l[k])}};Pluck.prototype.doArticleRequest=function(j){if(e.pluckActive){e.requestBatch=new RequestBatch();if(f(j,"R")||f(j,"A")){e.addToRequest(j,"article").submitRequest();if(f(j,"R")){e.callbackHandler.initRatings(j,e.LoggedIn())}}if(f(j,"V")){e.addToRequest(j,"review").submitRequest()}if(f(j,"C")){e.addToRequest(j,"comment").submitRequest()}}else{e.callbackHandler.suppressPluck(j)}};Pluck.prototype.updateMultReviews=function(n,m){var o,l=0,k;if(e.pluckActive){e.requestBatch=new RequestBatch();for(;l<aIdslength;l++){e.artId=o=n[l];e.addToRequest(o,"review");if(l%10===0&&l>0){e.submitRequest()}if(e.commentForm[o]){e.commentForm[o].onsubmit=function(){return e.submitComment(o)}}}e.submitRequest();e.callbackHandler.setViewType(m)}else{e.callbackHandler.suppressPluck(n)}};Pluck.prototype.updateReviews=function(k,j){Pluck.prototype.updateMultReviews([k],j)};Pluck.prototype.getNextPage=function(j){e.currentPage[j]=(e.currentPage[j]||1)+1;e.doArticleRequest(j)};Pluck.prototype.getPrevPage=function(j){e.currentPage[j]=(e.currentPage[j]>0?e.currentPage[j]-1:0);e.doArticleRequest(j)};Pluck.prototype.getPage=function(k,j){e.currentPage[k]=j;e.doArticleRequest(k)};Pluck.prototype.addToRequest=function(n,j,k){var m=new ArticleKey(n),o=jQuery("#frmSortComments_"+n),l=o.length?o.find(':select[name="sort_select"]').val():"TimeStampDescending",k=k||e.requestBatch;switch(j){case"article":k.AddToRequest(m);break;case"comment":k.AddToRequest(new CommentPage(m,e.numberPerPage,(e.currentPage[n]||1),l));break;case"review":k.AddToRequest(new ReviewPage(m,e.numberPerPage,(e.currentPage[n]||1),l));break}return e};Pluck.prototype.submitRequest=function(j){(j||e.requestBatch).BeginRequest(e.serverUrl,e.callbackHandler.renderReviewPage);if(!j){e.requestBatch=new RequestBatch()}return e};Pluck.prototype.submitRating=function(l,k,m){var k=k+"",q=new ArticleKey(k),n=CN.url.section(),r=d(k,"type"),p=d(k,"kw"),j=d(k,"title"),o=location.protocol+"//"+location.host+(r==="blog"||d(k,"url")?location.pathname:"/services/lookup/"+k.substr(k.indexOf("_")+1));if(e.LoggedIn()){if(typeof CN!=="undefined"&&CN.stats&&CN.stats.omniture){CN.stats.omniture.trackAction("rating",m)}e.currentRating=l;e.requestBatch=new RequestBatch();e.requestBatch.AddToRequest(new UpdateArticleAction(q,o,j,new Section(n),g(r+","+p)));e.requestBatch.AddToRequest(new RateAction(q,l));e.addToRequest(k,"article").submitRequest()}else{e.loginHandler(m,"rating")}};Pluck.prototype.loginHandler=function(k,j){if(e.gatewayHandler){e.gatewayHandler.loginHandler(j,k)}};Pluck.prototype.submitReview=function(k,j){return b(k,j,"review")};Pluck.prototype.submitComment=function(k,j){return b(k,j,"comment")};Pluck.prototype.metaDataHelper=function(l,k,j){if(!(l&&k)){return{}}return d(l,k,j)};Pluck.prototype.crLogic=function(k,j){if(!k){return false}return f(k,j)};Pluck.prototype.ReviewPageHandler=function(j){e.callbackHandler.drawReview(j)};Pluck.prototype.submitRecommendation=function(l,k,j){j=j||"review";if(!e.isLoggedIn){e.loginHandler(k,"recommendation");return false}e.requestBatch=new RequestBatch();e.requestBatch.AddToRequest(new RecommendAction((j==="comment"?new CommentKey(l):new ReviewKey(l))));e.callbackHandler.setLastRecommendation(l);e.requestBatch.BeginRequest(e.serverUrl,e.callbackHandler.updateRecommendation)};Pluck.prototype.submitReportAbuse=function(m,k,l,j){j=j||"review";e.requestBatch=new RequestBatch();e.requestBatch.AddToRequest(new ReportAbuseAction((j==="comment"?new CommentKey(m):new ReviewKey(m)),k,l));e.requestBatch.BeginRequest(e.serverUrl,e.callbackHandler.updateAbuse)}}var pluckUser=CN.utils.parseStr(CN.cookie.get("at"),"query");function PluckMarkupGenerator(){}PluckMarkupGenerator.ratings="";PluckMarkupGenerator.currentView="";PluckMarkupGenerator.abuseThreshold=3;PluckMarkupGenerator.numberOfComments=0;PluckMarkupGenerator.userId=pluckUser.u;PluckMarkupGenerator.parentHandler="";PluckMarkupGenerator.boxPosition=10;function elmbyid(a){return document.getElementById(a)||false}PluckMarkupGenerator.setViewType=function(a){PluckMarkupGenerator.currentView=a};PluckMarkupGenerator.initRatings=function(c,a){PluckMarkupGenerator.isLoggedIn=a;PluckMarkupGenerator.articleRating=0;if(typeof c!="object"){c=[c]}PluckMarkupGenerator.aRatings=PluckMarkupGenerator.aRatings||[];for(var b=0;b<c.length;b++){PluckMarkupGenerator.aRatings[c[b]]=new Rating("ratingGroup_"+c[b],c[b]);PluckMarkupGenerator.aRatings[c[b]].initRating()}};PluckMarkupGenerator.pluralize=function(c,a,b){return(a>1?c+(b||s):c)};PluckMarkupGenerator.suppressPluck=function(c){if(typeof c!="object"){var a=c;c=[];c.push(a)}try{for(b=0;b<c.length;b++){elmbyid("totalComments_"+c[b]).style.display="none"}}catch(d){}try{for(var b=0;b<c.length;b++){elmbyid("rating_"+c[b]).style.display="none"}}catch(d){}};PluckMarkupGenerator.drawArticle=function(b){var c=b.ArticleKey.Key;if(PluckMarkupGenerator.parentHandler.crLogicHelper[c].indexOf("R")!="-1"){var a=(b.Ratings.AverageRating!=null?Math.round(b.Ratings.AverageRating*10)/10:0);if(a>=0){if(elmbyid("ratingAverageTxtshort_"+c)){elmbyid("ratingAverageTxtshort_"+c).innerHTML="<span>(Average rating <span>"+a+"</span> stars)</span>"}if(elmbyid("ratingAverageTxt_"+c)){elmbyid("ratingAverageTxt_"+c).innerHTML="(Average rating ";elmbyid("ratingAverage_"+c).innerHTML=a+" stars)"}if(elmbyid("coursePluckRating")){elmbyid("coursePluckRating").innerHTML="Avg. User Rating "+a+" Stars"}jQuery("#videoPluckRating").html('<a href="#comments_'+c+'">Avg. User Rating '+a+" Stars / <span>Rate this video</span></a>").click(function(){CN.brightcove.getMyApp("cplayer").pauseVideo()})}PluckMarkupGenerator.articleRating=a;if(b.Ratings.CurrentUserRating!=null){PluckMarkupGenerator.articleRating=b.Ratings.CurrentUserRating;PluckMarkupGenerator.aRatings[c].setRating(b.Ratings.CurrentUserRating)}else{PluckMarkupGenerator.aRatings[c].setRating(a)}}};PluckMarkupGenerator.drawSearchComments=function(b){var d=b.ArticleKey.Key;var a=b.Comments.NumberOfComments;if(a===undefined){a=0}var c=jQuery("#numComments_"+d+" a").attr("href");elmbyid("numComments_"+d).innerHTML='<span class="label">'+PluckMarkupGenerator.pluralize("Comment",a)+' <a href="'+c+'">('+a+")</a></span>"};PluckMarkupGenerator.drawComments=function(c){PluckMarkupGenerator.aData=[];PluckMarkupGenerator.aLookup=new Array();PluckMarkupGenerator.numberOfComments=0;if(PluckMarkupGenerator.parentHandler.crLogicHelper[c.ArticleKey.Key].indexOf("C")!="-1"){if(c.NumberOfComments!=null&&elmbyid("commentAnchor_"+c.ArticleKey.Key)){var e=elmbyid("commentAnchor_"+c.ArticleKey.Key);e.innerHTML="";for(var b=0;b<c.Comments.length;b++){var f=c.Comments[b];if(PluckMarkupGenerator.isUnderAbuseCount(f)){PluckMarkupGenerator.aLookup[f.CommentKey.Key]=b;PluckMarkupGenerator.aData[b]=f;e.appendChild(PluckMarkupGenerator.getCommentDiv(f,b,c.ArticleKey.Key));PluckMarkupGenerator.numberOfComments++}}if(c.NumberOfComments==0&&elmbyid("rating_comment")){elmbyid("rating_comment").innerHTML="Comment About this Course"}else{elmbyid("rating_comment").innerHTML="Comment on this Course"}e.appendChild(PluckMarkupGenerator.getAbuseDiv(c.ArticleKey.Key,"comment"));if(c.NumberOfComments>(c.NumberPerPage*c.OnPage)){var d=PluckMarkupGenerator.createButton("next_ten_"+c.ArticleKey.Key,"/css/i/pluck/next_ten.gif",c.ArticleKey.Key);d.onclick=function(){return pluckHandler.getNextPage(c.ArticleKey.Key)};d.className="next";if(c.OnPage>1){d.className+=(d.className==""?"":" ")+"moreLink"}e.appendChild(d)}if(c.OnPage>1){var d=PluckMarkupGenerator.createButton("prev_ten_ "+c.ArticleKey.Key,"/css/i/pluck/prev_ten.gif",c.ArticleKey.Key);d.onclick=function(){return pluckHandler.getPrevPage(c.ArticleKey.Key)};d.className="previous";e.appendChild(d)}}if(PluckMarkupGenerator.parentHandler.crLogicHelper[c.ArticleKey.Key].indexOf("S")!="-1"){var a='<a href="#" onclick="return PluckMarkupGenerator.toggleComments(\'comments_'+c.ArticleKey.Key+"')\">Comments ("+c.NumberOfComments+")<span></span></a>"}else{if(c.NumberOfComments===0){var a="Comments (0)<span></span>"}else{var a="Comments ("+c.NumberOfComments+")<span></span>"}}if(elmbyid("totalCommentsshort_"+c.ArticleKey.Key)){elmbyid("totalCommentsshort_"+c.ArticleKey.Key).innerHTML=a;elmbyid("totalCommentsshort_"+c.ArticleKey.Key).style.display="block"}if(elmbyid("totalComments_"+c.ArticleKey.Key)){var a="<span>("+c.NumberOfComments+" comment"+(c.NumberOfComments!="1"?"s)":")")+'</span> <span class="sepr">/</span> <a href="#frmSubmitComment_'+c.ArticleKey.Key+'" class="add">Add your comments</a>';elmbyid("totalComments_"+c.ArticleKey.Key).innerHTML=a;elmbyid("totalComments_"+c.ArticleKey.Key).style.display=""}jQuery("#videoPluckComments").html('<a href="#frmPostBtn_'+c.ArticleKey.Key+'">Comments ('+c.NumberOfComments+") / <span>Add your comments</span></a>").click(function(){CN.brightcove.getMyApp("cplayer").pauseVideo()})}};PluckMarkupGenerator.toggleComments=function(a,b){jQuery("div#"+a).slideToggle("fast");return false};PluckMarkupGenerator.isUnderAbuseCount=function(a){if((parseInt(a.AbuseReportCount)>0)&&(a.Author.UserKey.Key!=PluckMarkupGenerator.userId)){return false}else{if((a.Author.IsBlocked=="True")&&(a.Author.UserKey.Key!=PluckMarkupGenerator.userId)){return false}else{return true}}};PluckMarkupGenerator.getCommentDiv=function(g,c,f){var b="";if(g.CommentRating>0){b='<div class="commented">';for(var d=0;d<g.CommentRating;d++){b+='<img class="commentRating" src="/css/i/pluck/star_b.gif" alt="" />'}b+="</div>"}var e=document.createElement("div");e.id="commentContainer_"+f+"_"+c;e.className="entry";if(PluckMarkupGenerator.currentView=="privatecomments"){e.className+=" private"}var a="";if(typeof(g.Author)!="undefined"){a=" "+g.Author.DisplayName}e.innerHTML='<div class="body">'+g.CommentBody+'</div><div class="dated">Posted '+PluckMarkupGenerator.formatTimeString(g.PostedAtTime.toLowerCase())+'</div><div class="author">by'+a+'</div><div class="report">'+PluckMarkupGenerator.getAbuseHTML(g,c,f)+"</div>";return e};PluckMarkupGenerator.formatTimeString=function(a){var b=a.split(" ");return b[0]+" "+b[1]+b[2]};PluckMarkupGenerator.getAbuseDiv=function(c,b){var a=document.createElement("div");a.id="abuseForm_"+c;a.className="aform";a.style.display="none";a.innerHTML='<form id="reportAbuseForm_'+c+'"><input type="hidden" id="ReportAbuseKey_'+c+'" value="" /><input type="hidden" id="ReportAbuseReason_'+c+'" value="Report Abuse on Gourmet"/><div class="row"><a href="#" class="closebtn" onclick="return PluckMarkupGenerator.hideAbuseForm(\''+c+'\')">&times;</a></div><div class="row"><label>Comment</label><span class="formw"><textarea id="ReportAbuseCommentText_'+c+'" cols=16 rows=4></textarea></span></div><input class="report-btn" type="image" src="/css/i/pluck/report_btn.gif" value="Report" onclick="return PluckMarkupGenerator.errCheckAbuseForm(\''+c+"','"+b+'\')" value="Report" /></form>';return a};PluckMarkupGenerator.getAbuseHTML=function(e,d,b){var c=e.CommentKey.Key;if(PluckMarkupGenerator.parentHandler.isLoggedIn){fCall="PluckMarkupGenerator.showAbuseForm('"+d+"','"+c+"','"+b+"'); return false    "}else{fCall="PluckMarkupGenerator.parentHandler.gatewayHandler.loginHandler('abuse', jQuery('#report_"+b+"_"+d+"'));return false;"}var a='<span id="report_'+b+"_"+d+'"><a class="reportlink" href="#" onclick="'+fCall+'">Report abuse</a></span>';return a};PluckMarkupGenerator.getRecommendationHTML=function(c,b){if(c.CurrentUserHasRecommended=="False"){var a='<span id="commentRecommendation_'+b+'" class="commend">('+c.NumberOfRecommendations+") ";a+='<a href="#" onclick="return pluckHandler.submitRecommendation(\''+c.CommentKey.Key+"', this)\">recommend this comment</a></span>"}else{var a='<span id="commentRecommendation_'+b+'" class="commended">('+c.NumberOfRecommendations+") ";a+="recommended</span>"}return a};PluckMarkupGenerator.setLastRecommendation=function(a){PluckMarkupGenerator.lastItem=a};PluckMarkupGenerator.updateRecommendation=function(c){if(c.Messages[0].Message=="ok"){var b=PluckMarkupGenerator.aLookup[PluckMarkupGenerator.lastItem];divId="commentRecommendation_"+b;var e=PluckMarkupGenerator.aData[b];var a=parseInt(e.NumberOfRecommendations)+1;var d="("+a+") recommended</span>";elmbyid(divId).innerHTML=d;elmbyid(divId).className="commended"}};PluckMarkupGenerator.setComment=function(a){PluckMarkupGenerator.lastComment=a};PluckMarkupGenerator.showAbuseForm=function(id,key,artId){var cmd=eval("elmbyid('reportAbuseForm_"+artId+"').ReportAbuseKey_"+artId);cmd.value=key;var newTop=elmbyid("commentContainer_"+artId+"_"+id).offsetTop+elmbyid("commentContainer_"+artId+"_"+id).offsetHeight;elmbyid("abuseForm_"+artId).style.top=newTop+"px";jQuery("div#abuseForm_"+artId).show("fast");return false};PluckMarkupGenerator.hideAbuseForm=function(a){jQuery("div#abuseForm_"+a).hide("fast");jQuery("div#abuseForm_"+a+" :input").val("");elmbyid("ReportAbuseReason_"+a).selectedIndex=0;return false};PluckMarkupGenerator.errCheckAbuseForm=function(b,a){pluckHandler.submitReportAbuse(jQuery("#ReportAbuseKey_"+b).val(),jQuery("#ReportAbuseReason_"+b).val(),jQuery("#ReportAbuseCommentText_"+b).val(),a);PluckMarkupGenerator.hideAbuseForm(b);return false};PluckMarkupGenerator.drawNotes=function(){var h=10;var g=PluckMarkupGenerator.aNotes;if(PluckMarkupGenerator.currentNotesPage<=0){PluckMarkupGenerator.currentNotesPage=1}elmbyid("totalComments").style.display="none";insertPoint=elmbyid("commentAnchor");insertPoint.innerHTML="";var b=h*(PluckMarkupGenerator.currentNotesPage-1);var a=(h*PluckMarkupGenerator.currentNotesPage)-1;if(a>=g.length){a=g.length-1}for(var e=b;e<=a;e++){var f=new Object();f.CommentBody=g[e].note;var j=new Date();j.setTime(Date.parse(g[e].creationDate));var c=PluckMarkupGenerator.formatTime(j);f.PostedAtTime=j.getMonth()+1+"/"+j.getDate()+"/"+j.getFullYear();insertPoint.appendChild(PluckMarkupGenerator.getCommentDiv(f,e));PluckMarkupGenerator.aData[e]=f}if(PluckMarkupGenerator.currentNotesPage>1){var d=PluckMarkupGenerator.createButton("prev_ten","/css/tipsy/i/prev_ten.gif");d.onclick=function(){PluckMarkupGenerator.currentNotesPage--;PluckMarkupGenerator.drawNotes();return false};insertPoint.appendChild(d)}if(PluckMarkupGenerator.aNotes.length>(h*PluckMarkupGenerator.currentNotesPage)){var d=PluckMarkupGenerator.createButton("next_ten","/css/tipsy/i/next_ten.gif");d.onclick=function(){PluckMarkupGenerator.currentNotesPage++;PluckMarkupGenerator.drawNotes();return false};insertPoint.appendChild(d)}};PluckMarkupGenerator.createButton=function(b,e,d){var c=document.createElement("a");c.href="#commentAnchor_"+d;var a=document.createElement("img");a.id=b;a.className="pageButton";a.src=e;c.appendChild(a);return c};PluckMarkupGenerator.formatTime=function(d){var a=d.getHours();var b=d.getMinutes();var e=d.getSeconds();var c=""+((a>12)?a-12:a);if(c=="0"){c=12}c+=((b<10)?":0":":")+b;c+=((e<10)?":0":":")+e;c+=(a>=12)?"PM":"AM";return c};PluckMarkupGenerator.updateAbuse=function(a){if(a.Messages[0].Message=="ok"){}};PluckMarkupGenerator.renderReviewPage=function(b){for(var c=0;c<b.Responses.length;c++){var a=b.Responses[c];if(a.Article!=null&&PluckMarkupGenerator.parentHandler.crLogicHelper[a.Article.ArticleKey.Key].indexOf("A")!="-1"){PluckMarkupGenerator.drawSearchComments(a.Article)}else{if(a.Article!=null&&PluckMarkupGenerator.parentHandler.crLogicHelper[a.Article.ArticleKey.Key].indexOf("R")!="-1"){PluckMarkupGenerator.drawArticle(a.Article)}else{if(a.CommentPage!=null&&PluckMarkupGenerator.parentHandler.crLogicHelper[a.CommentPage.ArticleKey.Key].indexOf("C")!="-1"){PluckMarkupGenerator.drawComments(a.CommentPage)}else{if(a.User!=null){PluckMarkupGenerator.userId=a.User.UserKey.Key}}}}}};PluckMarkupGenerator.renderNotes=function(b){PluckMarkupGenerator.aNotes=b;PluckMarkupGenerator.currentNotesPage=1;if(b.length==1){var a=b.length+" comment"}else{var a=b.length+" comments"}elmbyid("totalComments").innerHTML=a;PluckMarkupGenerator.drawNotes()};
