var PodTrimPath;(function(){if(PodTrimPath==null){PodTrimPath=new Object()}if(PodTrimPath.evalEx==null){PodTrimPath.evalEx=function(src){return eval(src)}}var UNDEFINED;if(Array.prototype.pop==null){Array.prototype.pop=function(){if(this.length===0){return UNDEFINED}return this[--this.length]}}if(Array.prototype.push==null){Array.prototype.push=function(){for(var i=0;i<arguments.length;++i){this[this.length]=arguments[i]}return this.length}}PodTrimPath.parseTemplate=function(tmplContent,optTmplName,optEtc){if(optEtc==null){optEtc=PodTrimPath.parseTemplate_etc}var funcSrc=parse(tmplContent,optTmplName,optEtc);var func=PodTrimPath.evalEx(funcSrc,optTmplName,1);if(func!=null){return new optEtc.Template(optTmplName,tmplContent,funcSrc,func,optEtc)}return null};try{String.prototype.process=function(context,optFlags){var template=PodTrimPath.parseTemplate(this,null);if(template!=null){return template.process(context,optFlags)}return this}}catch(e){}PodTrimPath.parseTemplate_etc={};PodTrimPath.parseTemplate_etc.statementTag="forelse|for|if|elseif|else|var|macro";PodTrimPath.parseTemplate_etc.statementDef={"if":{delta:1,prefix:"if (",suffix:") {",paramMin:1},"else":{delta:0,prefix:"} else {"},"elseif":{delta:0,prefix:"} else if (",suffix:") {",paramDefault:"true"},"/if":{delta:-1,prefix:"}"},"for":{delta:1,paramMin:3,prefixFunc:function(stmtParts,state,tmplName,etc){if(stmtParts[2]!="in"){throw new etc.ParseError(tmplName,state.line,"bad for loop statement: "+stmtParts.join(" "))}var iterVar=stmtParts[1];var listVar="__LIST__"+iterVar;return["var ",listVar," = ",stmtParts[3],";","var __LENGTH_STACK__;","if (typeof(__LENGTH_STACK__) == 'undefined' || !__LENGTH_STACK__.length) __LENGTH_STACK__ = new Array();","__LENGTH_STACK__[__LENGTH_STACK__.length] = 0;","if ((",listVar,") != null) { ","var ",iterVar,"_ct = 0;","for (var ",iterVar,"_index in ",listVar,") { ",iterVar,"_ct++;","if (typeof(",listVar,"[",iterVar,"_index]) == 'function') {continue;}","__LENGTH_STACK__[__LENGTH_STACK__.length - 1]++;","var ",iterVar," = ",listVar,"[",iterVar,"_index];"].join("")}},"forelse":{delta:0,prefix:"} } if (__LENGTH_STACK__[__LENGTH_STACK__.length - 1] == 0) { if (",suffix:") {",paramDefault:"true"},"/for":{delta:-1,prefix:"} }; delete __LENGTH_STACK__[__LENGTH_STACK__.length - 1];"},"var":{delta:0,prefix:"var ",suffix:";"},"macro":{delta:1,prefixFunc:function(stmtParts,state,tmplName,etc){var macroName=stmtParts[1].split("(")[0];return["var ",macroName," = function",stmtParts.slice(1).join(" ").substring(macroName.length),"{ var _OUT_arr = []; var _OUT = { write: function(m) { if (m) _OUT_arr.push(m); } }; "].join("")}},"/macro":{delta:-1,prefix:" return _OUT_arr.join(''); };"}};PodTrimPath.parseTemplate_etc.modifierDef={"eat":function(v){return""},"escape":function(s){return String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},"capitalize":function(s){return String(s).toUpperCase()},"default":function(s,d){return s!=null?s:d}};PodTrimPath.parseTemplate_etc.modifierDef.h=PodTrimPath.parseTemplate_etc.modifierDef.escape;PodTrimPath.parseTemplate_etc.Template=function(tmplName,tmplContent,funcSrc,func,etc){this.process=function(context,flags){if(context==null){context={}}if(context._MODIFIERS==null){context._MODIFIERS={}}if(context.defined==null){context.defined=function(str){return(context[str]!=undefined)}}for(var k in etc.modifierDef){if(context._MODIFIERS[k]==null){context._MODIFIERS[k]=etc.modifierDef[k]}}if(flags==null){flags={}}var resultArr=[];var resultOut={write:function(m){resultArr.push(m)}};try{func(resultOut,context,flags)}catch(e){if(flags.throwExceptions==true){throw e}var result=new String(resultArr.join("")+"[ERROR: "+e.toString()+(e.message?"; "+e.message:"")+"]");result["exception"]=e;return result}return resultArr.join("")};this.name=tmplName;this.source=tmplContent;this.sourceFunc=funcSrc;this.toString=function(){return"PodTrimPath.Template ["+tmplName+"]"}};PodTrimPath.parseTemplate_etc.ParseError=function(name,line,message){this.name=name;this.line=line;this.message=message};PodTrimPath.parseTemplate_etc.ParseError.prototype.toString=function(){return("PodTrimPath template ParseError in "+this.name+": line "+this.line+", "+this.message)};var parse=function(body,tmplName,etc){body=cleanWhiteSpace(body);var funcText=["var PodTrimPath_Template_TEMP = function(_OUT, _CONTEXT, _FLAGS) { with (_CONTEXT) {"];var state={stack:[],line:1};var endStmtPrev=-1;while(endStmtPrev+1<body.length){var begStmt=endStmtPrev;begStmt=body.indexOf("{",begStmt+1);while(begStmt>=0){var endStmt=body.indexOf("}",begStmt+1);var stmt=body.substring(begStmt,endStmt);var blockrx=stmt.match(/^\{(cdata|minify|eval)/);if(blockrx){var blockType=blockrx[1];var blockMarkerBeg=begStmt+blockType.length+1;var blockMarkerEnd=body.indexOf("}",blockMarkerBeg);if(blockMarkerEnd>=0){var blockMarker;if(blockMarkerEnd-blockMarkerBeg<=0){blockMarker="{/"+blockType+"}"}else{blockMarker=body.substring(blockMarkerBeg+1,blockMarkerEnd)}var blockEnd=body.indexOf(blockMarker,blockMarkerEnd+1);if(blockEnd>=0){emitSectionText(body.substring(endStmtPrev+1,begStmt),funcText);var blockText=body.substring(blockMarkerEnd+1,blockEnd);if(blockType=="cdata"){emitText(blockText,funcText)}else{if(blockType=="minify"){emitText(scrubWhiteSpace(blockText),funcText)}else{if(blockType=="eval"){if(blockText!=null&&blockText.length>0){funcText.push("_OUT.write( (function() { "+blockText+" })() );")}}}}begStmt=endStmtPrev=blockEnd+blockMarker.length-1}}}else{if(body.charAt(begStmt-1)!="$"&&body.charAt(begStmt-1)!="\\"){var offset=(body.charAt(begStmt+1)=="/"?2:1);if(body.substring(begStmt+offset,begStmt+10+offset).search(PodTrimPath.parseTemplate_etc.statementTag)==0){break}}}begStmt=body.indexOf("{",begStmt+1)}if(begStmt<0){break}var endStmt=body.indexOf("}",begStmt+1);if(endStmt<0){break}emitSectionText(body.substring(endStmtPrev+1,begStmt),funcText);emitStatement(body.substring(begStmt,endStmt+1),state,funcText,tmplName,etc);endStmtPrev=endStmt}emitSectionText(body.substring(endStmtPrev+1),funcText);if(state.stack.length!=0){throw new etc.ParseError(tmplName,state.line,"unclosed, unmatched statement(s): "+state.stack.join(","))}funcText.push("}}; PodTrimPath_Template_TEMP");return funcText.join("")};var emitStatement=function(stmtStr,state,funcText,tmplName,etc){var parts=stmtStr.slice(1,-1).split(" ");var stmt=etc.statementDef[parts[0]];if(stmt==null){emitSectionText(stmtStr,funcText);return}if(stmt.delta<0){if(state.stack.length<=0){throw new etc.ParseError(tmplName,state.line,"close tag does not match any previous statement: "+stmtStr)}state.stack.pop()}if(stmt.delta>0){state.stack.push(stmtStr)}if(stmt.paramMin!=null&&stmt.paramMin>=parts.length){throw new etc.ParseError(tmplName,state.line,"statement needs more parameters: "+stmtStr)}if(stmt.prefixFunc!=null){funcText.push(stmt.prefixFunc(parts,state,tmplName,etc))}else{funcText.push(stmt.prefix)}if(stmt.suffix!=null){if(parts.length<=1){if(stmt.paramDefault!=null){funcText.push(stmt.paramDefault)}}else{for(var i=1;i<parts.length;i++){if(i>1){funcText.push(" ")}funcText.push(parts[i])}}funcText.push(stmt.suffix)}};var emitSectionText=function(text,funcText){if(text.length<=0){return}var nlPrefix=0;var nlSuffix=text.length-1;while(nlPrefix<text.length&&(text.charAt(nlPrefix)=="\n")){nlPrefix++}while(nlSuffix>=0&&(text.charAt(nlSuffix)==" "||text.charAt(nlSuffix)=="\t")){nlSuffix--}if(nlSuffix<nlPrefix){nlSuffix=nlPrefix}if(nlPrefix>0){funcText.push('if (_FLAGS.keepWhitespace == true) _OUT.write("');var s=text.substring(0,nlPrefix).replace("\n","\\n");if(s.charAt(s.length-1)=="\n"){s=s.substring(0,s.length-1)}funcText.push(s);funcText.push('");')}var lines=text.substring(nlPrefix,nlSuffix+1).split("\n");for(var i=0;i<lines.length;i++){emitSectionTextLine(lines[i],funcText);if(i<lines.length-1){funcText.push('_OUT.write("\\n");\n')}}if(nlSuffix+1<text.length){funcText.push('if (_FLAGS.keepWhitespace == true) _OUT.write("');var s=text.substring(nlSuffix+1).replace("\n","\\n");if(s.charAt(s.length-1)=="\n"){s=s.substring(0,s.length-1)}funcText.push(s);funcText.push('");')}};var emitSectionTextLine=function(line,funcText){var endMarkPrev="}";var endExprPrev=-1;while(endExprPrev+endMarkPrev.length<line.length){var begMark="${",endMark="}";var begExpr=line.indexOf(begMark,endExprPrev+endMarkPrev.length);if(begExpr<0){break}if(line.charAt(begExpr+2)=="%"){begMark="${%";endMark="%}"}var endExpr=line.indexOf(endMark,begExpr+begMark.length);if(endExpr<0){break}emitText(line.substring(endExprPrev+endMarkPrev.length,begExpr),funcText);var exprArr=line.substring(begExpr+begMark.length,endExpr).replace(/\|\|/g,"#@@#").split("|");for(var k in exprArr){if(exprArr[k].replace){exprArr[k]=exprArr[k].replace(/#@@#/g,"||")}}funcText.push("_OUT.write(");emitExpression(exprArr,exprArr.length-1,funcText);funcText.push(");");endExprPrev=endExpr;endMarkPrev=endMark}emitText(line.substring(endExprPrev+endMarkPrev.length),funcText)};var emitText=function(text,funcText){if(text==null||text.length<=0){return}text=text.replace(/\\/g,"\\\\");text=text.replace(/\n/g,"\\n");text=text.replace(/"/g,'\\"');funcText.push('_OUT.write("');funcText.push(text);funcText.push('");')};var emitExpression=function(exprArr,index,funcText){var expr=exprArr[index];if(index<=0){funcText.push(expr);return}var parts=expr.split(":");funcText.push('_MODIFIERS["');funcText.push(parts[0]);funcText.push('"](');emitExpression(exprArr,index-1,funcText);if(parts.length>1){funcText.push(",");funcText.push(parts[1])}funcText.push(")")};var cleanWhiteSpace=function(result){result=result.replace(/\t/g,"    ");result=result.replace(/\r\n/g,"\n");result=result.replace(/\r/g,"\n");result=result.replace(/^(\s*\S*(\s+\S+)*)\s*$/,"$1");return result};var scrubWhiteSpace=function(result){result=result.replace(/^\s+/g,"");result=result.replace(/\s+$/g,"");result=result.replace(/\s+/g," ");result=result.replace(/^(\s*\S*(\s+\S+)*)\s*$/,"$1");return result};PodTrimPath.parseDOMTemplate=function(elementId,optDocument,optEtc){if(optDocument==null){optDocument=document}var element=optDocument.getElementById(elementId);var content=element.value;if(content==null){content=element.innerHTML}content=content.replace(/&lt;/g,"<").replace(/&gt;/g,">");return PodTrimPath.parseTemplate(content,elementId,optEtc)};PodTrimPath.processDOMTemplate=function(elementId,context,optFlags,optDocument,optEtc){return PodTrimPath.parseDOMTemplate(elementId,optDocument,optEtc).process(context,optFlags)}})();(function(){if(typeof dmpod==="undefined"){dmpod={};dmpod.extendObject=function(obj,source){for(var _var in source){obj[_var]=source[_var]}};dmpod.extend=function(source){dmpod.extendObject(dmpod,source)}}if(typeof dmpod.serviceFramework==="undefined"){dmpod.serviceFramework=1;dmpod.createPODRequestService=function(apiKey){return new PluckItService(apiKey)};dmpod.createRequestService=function(apiKey){return dmpod.createPODRequestService(apiKey)};dmpod.RequestServiceInstances={};var PluckItService=function(){var debugging=0;var match=location.search.match(new RegExp("[?&]PLUCK_DEBUG=([^&]+)"));if(match){debugging=match[1]}else{if(typeof(_DEBUG)!=="undefined"){debugging=_DEBUG}}if(debugging!=false&&debugging!="false"){if(debugging==true||debugging=="true"){debugging=1}}else{debugging=0}this.debugging={level:debugging,on:debugging>0,alerts:debugging>1,firebug:false};if(this.debugging.on){if(typeof(window.console)!=="undefined"&&typeof(window.console.firebug)!=="undefined"){try{if(parseFloat(window.console.firebug)>=1.05&&document.location.toString().toLowerCase().indexOf("firebug=false")<0){this.debugging.firebug=true}}catch(e){}}}this.bodyLoadCompleted=false;this.init.apply(this,arguments)};PluckItService.prototype=(function(){function $(id){if(document.getElementById){return document.getElementById(id)}if(document.all){return document.all[id]}}var isIE=(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1);var flashVersion=(function(){var versionNumber=0;try{if(isIE){try{activeXObject=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");versionVariable=activeXObject.GetVariable("$version");versionNumber=versionVariable.match(/win[^\d]+?(\d+)[^\d].*/i)[1]}catch(e){}}for(var i=0;i<navigator.plugins.length;i++){var match=navigator.plugins[i].description.match(/shockwave flash.*?(\d+)[^\d].*/i);if(match!=null&&match.length==2){var version=parseInt(match[1]);if(version>versionNumber){versionNumber=version}}}}catch(e){}return versionNumber})();var transport="flash";if(typeof(PLUCKIT_TRANSPORT)!=="undefined"){transport=PLUCKIT_TRANSPORT.toLowerCase()}var lowerurl=document.location.toString().toLowerCase();var m=lowerurl.match(/pluckit_transport=([a-z]+)/);if(m&&m.length>0){transport=m[1]}var jsonpmax=4000;if(typeof(PLUCKIT_JSONPMAX)!=="undefined"){jsonpmax=PLUCKIT_JSONPMAX}m=lowerurl.match(/pluckit_jsonpmax=([0-9]+)/);if(m&&m.length>0){jsonpmax=m[1]}var flashNeeded=false;if(transport=="flashonly"){flashNeeded=flashVersion<9}return{constructor:PluckItService,FLASHONLY:"flashonly",JSONPONLY:"jsonponly",FLASH:"flash",JSONP:"jsonp",flashReady:false,jsonpReady:false,transport:transport,jsonpmax:jsonpmax,isIE:isIE,flashVersion:flashVersion,flashNeeded:flashNeeded,getHost:function(){var where=document.location.toString();if(where.match(/https/i)){return"https://pluckit.demandmedia.com/"}else{return"http://pluckit.demandmedia.com/"}},getAssetsHost:function(){var where=document.location.toString();if(where.match(/https/i)){return"https://pluckit.demandmedia.com/"}else{return"http://cdn-docs.pluckit.pluck.com/"}},getServerUrl:function(apiKey,authToken){var url=this.getHost()+"requests?apiKey="+apiKey;if(typeof(authToken)!=="undefined"&&authToken!=null){url+="&at="+escape(authToken)}return url},getFlashTunnelUrl:function(apiKey){return this.getHost()+"assets/v1/PluckFlashDAPIService.swf?apiKey="+apiKey},getFlashExpressInstallUrl:function(apiKey){return this.getHost()+"assets/v1/expressinstall.swf?apiKey="+apiKey},getFlashFileUploaderUrl:function(apiKey){return this.getHost()+"assets/v1/PluckItUploader.swf?apiKey="+apiKey},getFlashClipboardCopierUrl:function(apiKey){return this.getHost()+"assets/v1/PluckItClipboard.swf?apiKey="+apiKey},JSON:(function(isIE){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<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a[a.length]=v;b=true}}}a[a.length]="]"}else{if(x instanceof Object){a[0]="{";for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a.push(s.string(i));a.push(":");a.push(v);b=true}}}a[a.length]="}"}else{return}}return a.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(v){var f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){return v}}return null},eval:function(text){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+text+")")}catch(e){return false}},parse:function(text){var at=0;var ch=" ";function error(m){throw {name:"JSONError",message:m,at:at-1,text:text}}function next(){ch=text.charAt(at);at+=1;return ch}function white(){while(ch){if(ch<=" "){next()}else{if(ch=="/"){switch(next()){case"/":while(next()&&ch!="\n"&&ch!="\r"){}break;case"*":next();for(;;){if(ch){if(ch=="*"){if(next()=="/"){next();break}}else{next()}}else{error("Unterminated comment")}}break;default:error("Syntax error")}}else{break}}}}function string(){var i,s="",t,u;if(ch=='"'){outer:while(next()){if(ch=='"'){next();return s}else{if(ch=="\\"){switch(next()){case"b":s+="\b";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"u":u=0;for(i=0;i<4;i+=1){t=parseInt(next(),16);if(!isFinite(t)){break outer}u=u*16+t}s+=String.fromCharCode(u);break;default:s+=ch}}else{s+=ch}}}}error("Bad string")}function array(){var a=[];if(ch=="["){next();white();if(ch=="]"){next();return a}while(ch){a.push(value());white();if(ch=="]"){next();return a}else{if(ch!=","){break}}next();white()}}error("Bad array")}function object(){var k,o={};if(ch=="{"){next();white();if(ch=="}"){next();return o}while(ch){k=string();white();if(ch!=":"){break}next();o[k]=value();white();if(ch=="}"){next();return o}else{if(ch!=","){break}}next();white()}}error("Bad object")}function number(){var n="",v;if(ch=="-"){n="-";next()}while(ch>="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()}}}();if(isIE){json.parse=function(jsonstring){return eval("("+jsonstring+")")}}return json})(isIE),init:function(apiKey){this.apiKey=apiKey;this.requestQueue=[];this.instanceID="pluckit_"+this.uniqueID();this.jsonpCounter=Math.floor(Math.random()*2147483647);this.callbackContexts={};var my=this;this.initProxy=(function(my){return function(){my.bodyLoadCompleted=true;var flashObject=document.body.appendChild(document.createElement("div"));flashObject.id="flashProxy_"+my.instanceID+"_DIV";if(my.transport==my.JSONPONLY){flashObject.innerHTML="&nbsp;";return}var swfUrl=my.getFlashTunnelUrl(my.apiKey);var swfId="flashProxy_"+my.instanceID;var swfWidth="0";var swfHeight="0";var swfVersion="9.0.0";var params={autostart:"true",width:swfWidth,height:swfHeight,allowfullscreen:"false",allowscriptaccess:"always"};var attributes={};window[my.instanceID+"flashready"]=function(){my.flashReadyCallback()};window[my.instanceID+"flashstatus"]=function(status){my.flashReadyCallback(status)};var podRevisionNumber="7238";var fvars="onLoadCallbackName="+my.instanceID+"flashready&onStatusCallbackName="+my.instanceID+"flashstatus&podRevisionNumber="+podRevisionNumber;my.loadFlashCount=0;my.loadFlash=function(){if(my.loadFlashCount<=1){my.loadFlashCount++;my.flashReady=false;my.safeEmbedSWF(flashObject,swfId,swfUrl,swfWidth,swfHeight,fvars,swfVersion,my.getFlashExpressInstallUrl(my.apiKey))}};my.loadFlash()}})(my);this.serverUrl=my.getServerUrl(my.apiKey,my.getUserAuthToken());dmpod.RequestServiceInstances[this.instanceID]=this;if(this.transport!=my.FLASHONLY){this.jsonpReady=true;this.processQueue()}if(document.body&&((typeof document.readyState=="undefined")||/loaded|complete/.test(document.readyState))){this.initProxy()}else{this.addLoadEvent(this.initProxy)}},debug:function(data){if(this.debugging.on){if(window.opera){opera.postError(data)}else{if(window.console){console.log(data)}else{if(this.debugging.alerts){alert(data)}}}}},getSafeEmbedSWFHTML:function(swfId,swfUrl,width,height,flashvars,version,expressInstallUrl){var ie=(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1);if(ie){return"<OBJECT id="+swfId+" height="+height+" width="+width+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>               <PARAM NAME="FlashVars" VALUE="'+flashvars+'">              <PARAM NAME="Movie" VALUE="'+swfUrl+"&"+flashvars+'">              <PARAM NAME="Src" VALUE="'+swfUrl+"&"+flashvars+'">              <PARAM NAME="AllowScriptAccess" VALUE="always">              <PARAM NAME="AllowNetworking" VALUE="all">              <PARAM NAME="AllowFullScreen" VALUE="false">              <PARAM NAME="wmode" VALUE="window">              <PARAM NAME="Width" VALUE="'+width+'">              <PARAM NAME="Height" VALUE="'+height+'">              </OBJECT>'}else{return'<object id="'+swfId+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" data="'+swfUrl+'" style="visibility: visible;">              <param name="autostart" value="true"/>              <param name="width" value="'+width+'"/>              <param name="height" value="'+height+'"/>              <param name="allowfullscreen" value="false"/>              <param name="allowscriptaccess" value="always"/>              <param name="wmode" value="window"/>              <param name="flashvars" value="'+flashvars+'"/>              </object>'}},safeEmbedSWF:function(hostObj,swfId,swfUrl,width,height,flashvars,version,expressInstallUrl){hostObj.innerHTML=this.getSafeEmbedSWFHTML(swfId,swfUrl,width,height,flashvars,version,expressInstallUrl)},processQueue:function(){if(this.requestQueue.length>0){var func=this.requestQueue.pop();if(!func()){this.requestQueue.push(func);var self=this;setTimeout(function(){self.processQueue()},1000)}}},registerCallbackContext:function(context){var asyncToken="request_"+this.uniqueID();this.callbackContexts[asyncToken]=context;return asyncToken},uniqueID:function(){var seed=(new Date()).getTime();return Math.floor(Math.random()*seed)},DownloadUrl:function(serverUrl,queryString,callback){var me=this;this.requestQueue.push(function(){return me.doDownload(serverUrl,queryString,callback)});this.debug("[DownloadUrl/id:"+this.instanceID+"] queuing request -- total: "+this.requestQueue.length);this.processQueue()},doDownload:function(serverUrl,queryString,callback){if(this.flashReady){var asyncToken=this.registerCallbackContext({callback:callback});if(queryString){queryString=escape(queryString)}this.flashProxy.DownloadUrl(serverUrl,queryString,"dmpod.RequestServiceInstances['"+this.instanceID+"'].flashRequestCallback",asyncToken);return true}return false},PostForm:function(serverUrl,queryString,callback){var me=this;this.requestQueue.push(function(){return me.doPost(serverUrl,queryString,callback)});this.debug("[PostForm/id:"+this.instanceID+"] queuing request -- total: "+this.requestQueue.length);this.processQueue()},doPost:function(serverUrl,queryString,callback){if(this.flashReady){var asyncToken=this.registerCallbackContext({callback:callback});if(queryString){queryString=escape(queryString)}this.flashProxy.PostForm(serverUrl,queryString,"dmpod.RequestServiceInstances['"+this.instanceID+"'].flashRequestCallback",asyncToken,document.location.toString());return true}return false},SendRequests:function(requests,callback){if(requests){if(requests.constructor!=Array){requests=[requests]}if(requests.length>0){var me=this;var context={isBatchResponse:1,callback:callback,requests:[]};var map=[];var envelopes=[];for(var i=0,request;request=requests[i];i++){var requestedBy=request.requestedBy;delete request.requestedBy;var payloadType=request.objectType;var payload=this.JSON.stringify(request);for(var j=0;j<envelopes.length;j++){if(envelopes[j].payloadType==payloadType&&envelopes[j].payload==payload){break}}if(j<envelopes.length){map.push({pos:j,requestedBy:requestedBy})}else{map.push({pos:envelopes.length,requestedBy:requestedBy});var envelope=new dmpod.RequestEnvelope();envelope.payloadType=payloadType;envelope.payload=payload;envelopes.push(envelope);context.requests.push(request)}request.requestedBy=requestedBy}context.batchRequest={Envelopes:envelopes,returnDiagnostics:(this.debugging.firebug),executeMethod:requests.hasOwnProperty("executeMethod")?requests.executeMethod:"ExecuteAll",callerSDK:"js:7238"};context.responseMap=map;context.asyncToken=this.registerCallbackContext(context);this.requestQueue.push(function(){return me.transmitRequests(context.asyncToken)});this.processQueue();return}}this.debug("asked to send 0 requests")},transmitRequests:function(asyncToken){var context=this.callbackContexts[asyncToken];var method=null;var flash=this.flashReady?(typeof(this.flashProxy.CallDAPI)!=="undefined"):false;var jsonp=this.jsonpReady;if(this.transport==this.JSONPONLY){method=jsonp?this.JSONP:null}else{if(this.transport==this.FLASHONLY){method=flash?this.FLASH:null}else{if(this.transport==this.FLASH){if(flash){method=this.FLASH}else{if(jsonp){method=this.JSONP}}}else{if(jsonp){method=this.JSONP}else{if(flash){method=flash}}}}}if(method==null){return false}context.method=method;if(this.debugging.firebug){console.group("CLIENT Request [%s] %s ==>",context.asyncToken.replace(/request_/,""),method);for(var i=0;i<context.requests.length;i++){console.group(context.requests[i].objectType);console.dir(context.requests[i]);console.group("from widgets:");for(var j=0;j<context.responseMap.length;j++){if(context.responseMap[j].pos==i){console.log(context.responseMap[j].requestedBy)}}console.groupEnd();console.groupEnd()}console.groupEnd();console.time(context.asyncToken)}if(method==this.FLASH){var jsonRequest=this.JSON.stringify(context.batchRequest);this.flashProxy.CallDAPI(this.serverUrl,jsonRequest,"dmpod.RequestServiceInstances['"+this.instanceID+"'].flashRequestCallback",context.asyncToken,document.location.toString())}else{this.sendJsonpRequest(context)}return true},sendJsonpRequest:function(context){var envelopes=context.batchRequest.Envelopes;var split=1;var pos=envelopes.length/split;var set=envelopes;var maxurl=this.isIE?1500:this.jsonpmax;do{context.batchRequest.Envelopes=set;context.jsonRequest=this.JSON.stringify(context.batchRequest);if(set.length>1){if(escape(context.jsonRequest).length>maxurl&&pos>0){split++;pos=envelopes.length/split;set=envelopes.slice(0,pos);context.moreEnvelopes=envelopes.slice(pos)}else{break}}else{break}}while(true);var elem=document.getElementsByTagName("head")[0];var scriptNode=document.createElement("script");scriptNode.type="text/javascript";scriptNode.src=this.serverUrl+"&jsonpCallback=dmpod.RequestServiceInstances['"+this.instanceID+"'].jsonpCallback&jsonpContext="+context.asyncToken+"&jsonRequest="+escape(context.jsonRequest);elem.appendChild(scriptNode)},flashReadyCallback:function(){var proxy=$("flashProxy_"+this.instanceID);if(proxy!=null&&typeof(proxy.CallDAPI)!=="undefined"){this.debug("flash is ready");this.flashProxy=proxy;this.flashReady=true;this.processQueue()}else{this.debug("Flash ready failed!")}},flashStatusCallback:function(status){this.debug("flash proxy status: "+status)},flashRequestCallback:function(successful,response,asyncToken){this.processRequestResponse(this.FLASH,successful,response,asyncToken)},extractBatchResponse:function(transport,context,response){if(typeof(response)=="string"){if(response.indexOf("Envelopes")>=0||response.indexOf("envelopes")>=0){response=this.JSON.parse(response)}else{return response}}else{if(!response.hasOwnProperty("Envelopes")){return response}}var responses=[];for(var i=0;i<response.Envelopes.length;i++){response.Envelopes[i]=this.JSON.parse(response.Envelopes[i].payload)}if(this.debugging.firebug){console.group("SERVER Response [%s] ==>",context.asyncToken.replace(/request_/,""));if(response.hasOwnProperty("diagnostics")&&response.diagnostics!=null){console.group("Diagnostics");console.dir(response.diagnostics);console.groupEnd()}for(var i=0;i<response.Envelopes.length;i++){console.group(response.Envelopes[i].objectType);console.dir(response.Envelopes[i]);console.group("to widgets:");for(var j=0;j<context.responseMap.length;j++){if(context.responseMap[j].pos==i){console.log(context.responseMap[j].requestedBy)}}console.groupEnd();console.groupEnd()}}var map=context.responseMap;for(var i=0;i<map.length;i++){if(map[i].pos>=response.Envelopes.length){break}else{var r=response.Envelopes[map[i].pos];r.requestedBy=map[i].requestedBy;responses.push(r)}}if(this.debugging.firebug){console.groupEnd()}return{Responses:responses,ContentTrackingJavaScript:response.ContentTrackingJavaScript,ContentTrackingSrc:response.ContentTrackingSrc}},jsonpCallback:function(response,asyncToken){var context=this.callbackContexts[asyncToken];delete context.elem;delete context.scriptNode;if(context.hasOwnProperty("response")){context.response.isError=context.response.isError||response.isError;context.response.Envelopes=context.response.Envelopes.concat(response.Envelopes)}else{context.response=response}if(context.hasOwnProperty("moreEnvelopes")){context.batchRequest.Envelopes=context.moreEnvelopes;delete context.moreEnvelopes;this.sendJsonpRequest(context)}else{this.processRequestResponse(this.JSONP,true,context.response,asyncToken)}},processRequestResponse:function(transport,successful,response,asyncToken){if(this.debugging.firebug){console.timeEnd(asyncToken)}try{if(!successful){this.onError("Communication error: "+response);return}var context=this.callbackContexts[asyncToken];if(typeof(response)=="string"){response=unescape(response)}if(context.hasOwnProperty("isBatchResponse")){response=this.extractBatchResponse(transport,context,response)}else{this.debug(transport+": RECEIVED DATA FROM SERVER - ",asyncToken)}context.callback(response);delete this.callbackContexts[asyncToken]}catch(e){this.onError(e);this.debug("exception: ",e.toString())}},addLoadEvent:function(func){if(window.addEventListener){window.addEventListener("load",func,false)}else{if(window.attachEvent){window.attachEvent("onload",func)}else{}}},getClipboardCopierHTML:function(flashId,getClipboardTextCallback,width,height,buttonUrl){var swfUrl=this.getFlashClipboardCopierUrl(this.apiKey);var flashvars="getClipboardTextCallback="+getClipboardTextCallback+"&buttonUrl="+encodeURIComponent(buttonUrl);return this.getSafeEmbedSWFHTML(flashId,swfUrl,width,height,flashvars,"9.0.0",this.getFlashExpressInstallUrl(this.apiKey))},getFileUploaderHTML:function(flashId,onLoadCallbackName,width,height,buttonUrl){var swfUrl=this.getFlashFileUploaderUrl(this.apiKey);var flashvars="onLoadCallbackName="+onLoadCallbackName+"&buttonUrl="+encodeURIComponent(buttonUrl);return this.getSafeEmbedSWFHTML(flashId,swfUrl,width,height,flashvars,"9.0.0",this.getFlashExpressInstallUrl(this.apiKey))},uploadFile:function(flashId,serverUrl,mediaTypesPrompt,mediaTypesFilter,callerThis,responseCallback,progressCallback){var response="callback"+this.uniqueID();var progress="callback"+this.uniqueID();window[response]=function(success,data){responseCallback.apply(callerThis,arguments)};window[progress]=function(percent){progressCallback.apply(callerThis,arguments)};document.getElementById(flashId).PerformUpload(serverUrl,mediaTypesPrompt,mediaTypesFilter,response,progress)},JsonStringify:function(what){return this.JSON.stringify(what)},JsonParse:function(what){return this.JSON.parse(what)},getClientCookieName:function(){if(typeof PLUCKIT_CLIENTCOOKIENAME!="undefined"){return PLUCKIT_CLIENTCOOKIENAME}else{return"piat"}},isUserLoggedIn:function(){return typeof(this.getUserAuthToken())!=="undefined"},getUserAuthToken:function(){var cookies=document.cookie;if(cookies){cookies=";"+cookies+";";var matches=cookies.match(new RegExp(";\\s*"+this.getClientCookieName()+"=(.+?);"));if(matches&&matches.length>1){return matches[1]}}},setUserAuthToken:function(token){if(token){document.cookie=this.getClientCookieName()+"="+escape(token)+"; path=/;"}else{var d=new Date();d.setTime(d.getTime()-86400000);document.cookie=this.getClientCookieName()+"=; expires="+d.toGMTString()+"; path=/;"}this.serverUrl=this.getServerUrl(this.apiKey,escape(token))},getCookieValue:function(cookieName){var cookies=document.cookie;if(cookies){cookies=";"+cookies+";";var matches=cookies.match(new RegExp(";\\s*"+cookieName+"=(.+?);"));if(matches&&matches.length>1){return matches[1]}}},setCookieValue:function(cookieName,cookieValue,expiresDay){var d=new Date();d.setTime(d.getTime()+(expiresDay*86400000));document.cookie=cookieName+"="+cookieValue+"; expires="+d.toGMTString()},changeApiKey:function(apiKey){this.apiKey=apiKey;this.serverUrl=this.getServerUrl(this.apiKey,this.getUserAuthToken())},onError:function(e){this.debug("Error: "+e);if(this.debugging.firebug){console.trace()}}}})()}})();(function(){dmpod.extend({GetCaptchaInfoRequest:function(b,a){this.width=b;this.height=a;this.callerSDK="js:7238";this.objectType="Admin.GetCaptchaInfoRequest"},GenerateNewCustomerKeyRequest:function(){this.callerSDK="js:7238";this.objectType="Admin.GenerateNewCustomerKeyRequest"},GetLoginTokenRequest:function(b,a){this.userEmail=b;this.password=a;this.callerSDK="js:7238";this.objectType="Admin.GetLoginTokenRequest"},VerifyUsersPublisherNetworkRequest:function(a){this.network=a;this.callerSDK="js:7238";this.objectType="Admin.VerifyUsersPublisherNetworkRequest"},GetApiKeysRequest:function(){this.callerSDK="js:7238";this.objectType="Admin.GetApiKeysRequest"},GetAssociatedCustomersRequest:function(){this.callerSDK="js:7238";this.objectType="Admin.GetAssociatedCustomersRequest"},RegisterUserRequest:function(c,b,a){this.displayName=c;this.userEmail=b;this.password=a;this.callerSDK="js:7238";this.objectType="Admin.RegisterUserRequest"},ResetPasswordRequest:function(a){this.userEmail=a;this.callerSDK="js:7238";this.objectType="Admin.ResetPasswordRequest"},ChangePasswordRequest:function(b,a,c){this.userKey=b;this.oldPassword=a;this.newPassword=c;this.callerSDK="js:7238";this.objectType="Admin.ChangePasswordRequest"},GetEnabledDomainsForCustomerRequest:function(){this.callerSDK="js:7238";this.objectType="Admin.GetEnabledDomainsForCustomerRequest"},EnableDomainForCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7238";this.objectType="Admin.EnableDomainForCustomerRequest"},DisableDomainForCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7238";this.objectType="Admin.DisableDomainForCustomerRequest"},GetBundleRequest:function(a){this.bundleId=a;this.callerSDK="js:7238";this.objectType="Bundles.GetBundleRequest"},DeleteContentActionRequest:function(b){if(b.constructor!=dmpod.BaseKey){var a=(typeof b.objectType=="string")&&b.objectType.split(".")[1],b=new dmpod.BaseKey(b.key,a||null)}this.deleteThisContentKey=b;this.callerSDK="js:7238";this.objectType="Common.DeleteContentActionRequest"},GetArticlesRelatedToUrlRequest:function(a){this.url=a;this.callerSDK="js:7238";this.objectType="Content.GetArticlesRelatedToUrlRequest"},GetArticlesRelatedToArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7238";this.objectType="Content.GetArticlesRelatedToArticleRequest"},GetArticlesRelatedToTagRequest:function(a){this.tag=a;this.callerSDK="js:7238";this.objectType="Content.GetArticlesRelatedToTagRequest"},GetArticlesRelatedToTextRequest:function(a){this.text=a;this.callerSDK="js:7238";this.objectType="Content.GetArticlesRelatedToTextRequest"},GetTagsForUrlRequest:function(a){this.url=a;this.callerSDK="js:7238";this.objectType="Content.GetTagsForUrlRequest"},GetTagsForArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7238";this.objectType="Content.GetTagsForArticleRequest"},GetTagsForTagRequest:function(a){this.tag=a;this.callerSDK="js:7238";this.objectType="Content.GetTagsForTagRequest"},GetTagsForTextRequest:function(a){this.text=a;this.callerSDK="js:7238";this.objectType="Content.GetTagsForTextRequest"},GetPublisherLinksRelatedToUrlRequest:function(b,a){this.linkSource=b;this.url=a;this.callerSDK="js:7238";this.objectType="Content.GetPublisherLinksRelatedToUrlRequest"},GetPublisherLinksRelatedToArticleRequest:function(b,a){this.linkSource=b;this.articleId=a;this.callerSDK="js:7238";this.objectType="Content.GetPublisherLinksRelatedToArticleRequest"},GetPublisherLinksRelatedToTagRequest:function(b,a){this.linkSource=b;this.tag=a;this.callerSDK="js:7238";this.objectType="Content.GetPublisherLinksRelatedToTagRequest"},GetPublisherLinksRelatedToTextRequest:function(b,a){this.linkSource=b;this.text=a;this.callerSDK="js:7238";this.objectType="Content.GetPublisherLinksRelatedToTextRequest"},GetAdsForArticleRequest:function(a,b){this.articleId=a;this.adFormats=b;this.callerSDK="js:7238";this.objectType="Content.GetAdsForArticleRequest"},GetAdsRequest:function(a){this.adFormats=a;this.callerSDK="js:7238";this.objectType="Content.GetAdsRequest"},GetSponsoredLinksRequest:function(a){this.numberOfLinks=a;this.callerSDK="js:7238";this.objectType="Content.GetSponsoredLinksRequest"},GetRelatedAdLinksRequest:function(a){this.pageUrl=a;this.callerSDK="js:7238";this.objectType="Content.GetRelatedAdLinksRequest"},GetArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7238";this.objectType="Content.GetArticleRequest"},GetExternalUrlContentRequest:function(a,b){this.contentLabel=a;this.relativePath=b;this.callerSDK="js:7238";this.objectType="Content.GetExternalUrlContentRequest"},GetContentCategoriesRequest:function(){this.callerSDK="js:7238";this.objectType="Content.GetContentCategoriesRequest"},BlockArticleRequest:function(a){this.articleKey=a;this.callerSDK="js:7238";this.objectType="Content.BlockArticleRequest"},BlockPublisherLinkRequest:function(a){this.publisherLinkKey=a;this.callerSDK="js:7238";this.objectType="Content.BlockPublisherLinkRequest"},RegisterUsersCustomerAccountRequest:function(f,d,e,a,b,h,g,c,j){this.apiKey=f;this.domain=d;this.customerType=e;this.publisherNetwork=a;this.inlineTextAdsAllowed=b;this.userContentMode=h;this.mpaaRating=g;this.captchaId=c;this.captchaText=j;this.callerSDK="js:7238";this.objectType="Customers.RegisterUsersCustomerAccountRequest"},GetCustomerRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.GetCustomerRequest"},UpdateCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7238";this.objectType="Customers.UpdateCustomerRequest"},UpdateCustomerAdDetailsRequest:function(a,b){this.inlineTextAdsAllowed=a;this.sponsoredLinksAllowed=b;this.callerSDK="js:7238";this.objectType="Customers.UpdateCustomerAdDetailsRequest"},UpdateCustomerDeploymentDetailsRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.UpdateCustomerDeploymentDetailsRequest"},UpdateCustomerLandingPageUrlRequest:function(a,b){this.widgetLandingPageUrl=a;this.forDomain=b;this.callerSDK="js:7238";this.objectType="Customers.UpdateCustomerLandingPageUrlRequest"},ClearCustomerLandingPageUrlRequest:function(a){this.forDomain=a;this.callerSDK="js:7238";this.objectType="Customers.ClearCustomerLandingPageUrlRequest"},UseOverlayByDefaultRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.UseOverlayByDefaultRequest"},GetCustomerLandingPageUrlsRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.GetCustomerLandingPageUrlsRequest"},UpdateAdNetworksRequest:function(a,b){this.activeAdNetworks=a;this.adNetworkDetails=b;this.callerSDK="js:7238";this.objectType="Customers.UpdateAdNetworksRequest"},GetAdNetworksRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.GetAdNetworksRequest"},UpdatePaymentSystemsRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.UpdatePaymentSystemsRequest"},GetPaymentSystemsRequest:function(){this.callerSDK="js:7238";this.objectType="Customers.GetPaymentSystemsRequest"},GetUserRequest:function(){this.callerSDK="js:7238";this.objectType="Users.GetUserRequest"},HasAuthorizedExternalSiteRequest:function(a){this.externalSite=a;this.callerSDK="js:7238";this.objectType="Users.HasAuthorizedExternalSiteRequest"},UpdateUserRequest:function(a){this.displayName=a;this.callerSDK="js:7238";this.objectType="Users.UpdateUserRequest"},BlockUserRequest:function(a){this.userKey=a;this.callerSDK="js:7238";this.objectType="Users.BlockUserRequest"},BlockRelatedAdLinksRequest:function(a){this.pageUrl=a;this.callerSDK="js:7238";this.objectType="Content.BlockRelatedAdLinksRequest"},TweetArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7238";this.objectType="Reactions.TweetArticleRequest"},CommentOnRequest:function(c,b){if(c.constructor!=dmpod.BaseKey){var a=(typeof c.objectType=="string")&&c.objectType.split(".")[1],c=new dmpod.BaseKey(c.key,a||null)}this.reactionTargetKey=c;this.body=b;this.callerSDK="js:7238";this.objectType="Reactions.CommentOnRequest"},GetCommentPageRequest:function(e,c,d,b){if(e.constructor!=dmpod.BaseKey){var a=(typeof e.objectType=="string")&&e.objectType.split(".")[1],e=new dmpod.BaseKey(e.key,a||null)}this.reactionTargetKey=e;this.numberPerPage=c;this.onPage=d;this.sort=b;this.callerSDK="js:7238";this.objectType="Reactions.GetCommentPageRequest"},GetReactionSummaryRequest:function(b){if(b.constructor!=dmpod.BaseKey){var a=(typeof b.objectType=="string")&&b.objectType.split(".")[1],b=new dmpod.BaseKey(b.key,a||null)}this.reactionTargetKey=b;this.callerSDK="js:7238";this.objectType="Reactions.GetReactionSummaryRequest"},RecommendRequest:function(c,b){if(c.constructor!=dmpod.BaseKey){var a=(typeof c.objectType=="string")&&c.objectType.split(".")[1],c=new dmpod.BaseKey(c.key,a||null)}this.reactionTargetKey=c;this.recommendationCategory=(typeof b!="undefined"?b:"");this.callerSDK="js:7238";this.objectType="Reactions.RecommendRequest"},ReportAbuseOnRequest:function(c,b){if(c.constructor!=dmpod.BaseKey){var a=(typeof c.objectType=="string")&&c.objectType.split(".")[1],c=new dmpod.BaseKey(c.key,a||null)}this.reactionTargetKey=c;this.abuseReason=b;this.callerSDK="js:7238";this.objectType="Reactions.ReportAbuseOnRequest"},ClearAbuseReportRequest:function(b){if(b.constructor!=dmpod.BaseKey){var a=(typeof b.objectType=="string")&&b.objectType.split(".")[1],b=new dmpod.BaseKey(b.key,a||null)}this.reactionTargetKey=b;this.callerSDK="js:7238";this.objectType="Reactions.ClearAbuseReportRequest"},GetAbuseReportPageRequest:function(b,c,a){this.numberPerPage=b;this.onPage=c;this.maxReportersPerReport=a;this.callerSDK="js:7238";this.objectType="Reactions.GetAbuseReportPageRequest"},GetAbuseReportRequest:function(b,c){if(b.constructor!=dmpod.BaseKey){var a=(typeof b.objectType=="string")&&b.objectType.split(".")[1],b=new dmpod.BaseKey(b.key,a||null)}this.reactionTargetKey=b;this.maxReporters=c;this.callerSDK="js:7238";this.objectType="Reactions.GetAbuseReportRequest"},DiscoverArticlesRequest:function(a,b){this.activity=a;this.age=b;this.callerSDK="js:7238";this.objectType="Discovery.DiscoverArticlesRequest"},DiscoverUsersRequest:function(a,b){this.activity=a;this.age=b;this.callerSDK="js:7238";this.objectType="Discovery.DiscoverUsersRequest"},UserRecentActivityRequest:function(a){this.userKey=a;this.callerSDK="js:7238";this.objectType="Reactions.UserRecentActivityRequest"},GetPublisherMonthlyReportRequest:function(a,b,c){this.month=a;this.year=b;this.apiKey=c;this.callerSDK="js:7238";this.objectType="Reporting.GetPublisherMonthlyReportRequest"},EchoRequest:function(a){this.message=a;this.callerSDK="js:7238";this.objectType="Util.EchoRequest"},ErrorRequest:function(){this.callerSDK="js:7238";this.objectType="Util.ErrorRequest"},nocomma:function(){}})})();(function(){dmpod.extend({AdNetworkDetails:function(){this.callerSDK="js:7238";this.objectType="AdNetworks.AdNetworkDetails"},AdDescription:function(b,a){this.width=b;this.height=a;this.callerSDK="js:7238";this.objectType="AdNetworks.AdDescription"},Advertisement:function(b,a){this.adDescription=b;this.source=a;this.callerSDK="js:7238";this.objectType="AdNetworks.Advertisement"},SponsoredLink:function(d,c,b,a){this.title=d;this.description=c;this.url=b;this.clickUrl=a;this.callerSDK="js:7238";this.objectType="AdNetworks.SponsoredLink"},RelatedAdLink:function(a,b){this.searchTerm=a;this.returnQueryParams=b;this.callerSDK="js:7238";this.objectType="AdNetworks.RelatedAdLink"},RelatedAdResultLink:function(e,d,c,b,a){this.title=e;this.description=d;this.displayUrl=c;this.clickUrl=b;this.directToAdvertiser=a;this.callerSDK="js:7238";this.objectType="AdNetworks.RelatedAdResultLink"},Bundle:function(a){this.templateKey=a;this.callerSDK="js:7238";this.objectType="Bundles.Bundle"},Article:function(a,b){this.key=a;this.id=b;this.callerSDK="js:7238";this.objectType="Content.Article"},Tag:function(a){this.name=a;this.callerSDK="js:7238";this.objectType="Content.Tag"},ArticleKey:function(a){this.key=a;this.callerSDK="js:7238";this.objectType="Content.ArticleKey"},PublisherContentKey:function(a){this.key=a;this.callerSDK="js:7238";this.objectType="Content.PublisherContentKey"},ContentCategory:function(b,a){this.id=b;this.name=a;this.callerSDK="js:7238";this.objectType="Content.ContentCategory"},RelatedLink:function(c,b,a){this.title=c;this.url=b;this.key=a;this.callerSDK="js:7238";this.objectType="Content.RelatedLink"},RequestEnvelope:function(){this.callerSDK="js:7238";this.objectType="Core.RequestEnvelope"},ResponseEnvelope:function(){this.callerSDK="js:7238";this.objectType="Core.ResponseEnvelope"},ItemEnvelope:function(){this.callerSDK="js:7238";this.objectType="Core.ItemEnvelope"},BaseKey:function(a,b){this.key=a;this.keyType=b;this.callerSDK="js:7238";this.objectType="Core.BaseKey"},KeyValuePair:function(a,b){this.key=a;this.data=b;this.callerSDK="js:7238";this.objectType="Core.KeyValuePair"},Customer:function(t,r,k,m,e,d,l,o,h,a,c,s,f,q,u,n,j,b,g,p){this.domain=t;this.contactEmail=r;this.isInternalProperty=k;this.widgetLandingPageUrl=m;this.platform=e;this.enabledState=d;this.userContentMode=l;this.apiKey=o;this.publisherNetwork=h;this.publisherSubNetwork=a;this.resellerCustomerId=c;this.publisherNetworkCustomerId=s;this.publisherNetworkAccountId=f;this.inlineTextAdsAllowed=q;this.inlineImageAdsAllowed=u;this.sponsoredLinksAllowed=n;this.relatedAdLinksAllowed=j;this.sdkAccessAllowed=b;this.socialMediaEnabled=g;this.internalLinkTarget=p;this.callerSDK="js:7238";this.objectType="Customers.Customer"},ContentSourceKey:function(a){this.key=a;this.callerSDK="js:7238";this.objectType="Content.ContentSourceKey"},UserKey:function(a){this.key=a;this.callerSDK="js:7238";this.objectType="Users.UserKey"},User:function(a){this.userKey=a;this.callerSDK="js:7238";this.objectType="Users.User"},CustomerSearchRecord:function(b,d,e,c,a){this.apiKey=b;this.widgetLandingPageUrl=d;this.platform=e;this.publisherSubNetwork=c;this.resellerCustomerId=a;this.callerSDK="js:7238";this.objectType="Customers.CustomerSearchRecord"},PaymentSystemDetails:function(){this.callerSDK="js:7238";this.objectType="PaymentSystems.PaymentSystemDetails"},CommentKey:function(a){this.key=a;this.callerSDK="js:7238";this.objectType="Reactions.CommentKey"},ReactionSummary:function(){this.callerSDK="js:7238";this.objectType="Reactions.ReactionSummary"},Comment:function(){this.callerSDK="js:7238";this.objectType="Reactions.Comment"},CommentPage:function(){this.callerSDK="js:7238";this.objectType="Reactions.CommentPage"},AbuseReport:function(d,g,f,e,a,h,b){if(d.constructor!=dmpod.BaseKey){var c=(typeof d.objectType=="string")&&d.objectType.split(".")[1],d=new dmpod.BaseKey(d.key,c||null)}this.reactionTargetKey=d;this.reactionTargetType=g;this.url=f;this.title=e;this.abuseReportTotalCount=a;this.abuseReportDetail=h;this.abuseReporters=b;this.callerSDK="js:7238";this.objectType="Reactions.AbuseReport"},AbuseReportPage:function(){this.callerSDK="js:7238";this.objectType="Reactions.AbuseReportPage"},AbuseReportDetail:function(b,a){this.abuseReason=b;this.abuseReportCount=a;this.callerSDK="js:7238";this.objectType="Reactions.AbuseReportDetail"},RecommendationDetail:function(b,a){this.category=b;this.count=a;this.callerSDK="js:7238";this.objectType="Reactions.RecommendationDetail"},UserActivity:function(a,b){this.action=a;if(b.constructor!=dmpod.BaseKey){var c=(typeof b.objectType=="string")&&b.objectType.split(".")[1],b=new dmpod.BaseKey(b.key,c||null)}this.targetKey=b;this.callerSDK="js:7238";this.objectType="Reactions.UserActivity"},PublisherMonthlyReport:function(a,b,c){this.month=a;this.year=b;this.dailyReports=c;this.callerSDK="js:7238";this.objectType="Reporting.PublisherMonthlyReport"},nocomma:function(){}})})();var PLUCKIT_TRACKING_URL="http://pod.dmtracker.com/images/zig.gif";if(typeof(dmpod.service)==="undefined"){dmpod.service=dmpod.createPODRequestService(PLUCKIT_APIKEY)}(function(base){if(typeof(base.help)=="undefined"){base.help={};base.extendObject(base.help,{isArray:function(obj){if(obj.constructor.toString().indexOf("Array")==-1){return false}else{return true}},arrayContains:function(obj,value){for(var i=0;i<obj.length;i++){if(obj[i]==value){return true}}return false},createUniqueId:function(prefix){var seed=(new Date()).getTime();var id=Math.floor((Math.random()*seed));if(typeof prefix!=="undefined"){id=prefix+"_"+id}return id},makeErrorSpan:function(text){if(base.service.debugging.on){base.service.debug("WidgetError - "+text);return'<span style="display: block;">WidgetError - '+text+"</span>"}else{return'<span style="display: none;">WidgetError - '+text+"</span>"}},addWidgetStylesheet:function(url,global,append){if(typeof(url)!=="undefined"){if(!this.stylesheets.hasOwnProperty(url)){this.stylesheets[url]=true;var headElem=document.getElementsByTagName("head")[0];if(headElem!==null){var linkElem=this.os_createElement("link",{"rel":"stylesheet","type":"text/css","href":url},"");if(typeof(append)!=="undefined"&&append==true){headElem.appendChild(linkElem)}else{var first=headElem.firstChild;if(first==null){headElem.appendChild(linkElem)}else{if(typeof(global)!=="undefined"&&global==true){headElem.insertBefore(linkElem,first)}else{var second=first.nextSibling;if(second==null){headElem.appendChild(linkElem)}else{headElem.insertBefore(linkElem,second)}}}}}}}},isBasicType:function(varType){return":string:number:boolean:".indexOf(":"+varType+":")>-1},overrideOptions:function(from,to){for(var option in to){if(from.hasOwnProperty(option)){if(this.isBasicType(typeof(to[option]))){to[option]=from[option]}else{if(to[option]!=null&&typeof(to[option])=="object"){if(to[option].constructor.toString()!="Function"){this.overrideOptions(from[option],to[option])}}else{if(typeof(to[option])=="function"){to[option]=from[option]}}}}}},isOverridableOption:function(option){return option!="templateId"&&option!="layout"&&option!="remoteTemplateUrl"&&option!="customCss"},overrideSingleOptionRecursively:function(option,value,target,externalSource){if(this.isOverridableOption(option)){if(target.hasOwnProperty(option)){if(target[option]!="_"||externalSource){target[option]=value}}for(var o in target){if(o!=option&&target[o]!=null&&typeof(target[o])=="object"){this.overrideSingleOptionRecursively(option,value,target[o],externalSource)}}}},overrideOptionsRecursively:function(from,to){var externalSource=from!=to;for(var o in from){if(typeof(from[o])!="object"){for(oo in to){if(oo==o){to[o]=from[o]}else{if(to[oo]!=null&&typeof(to[oo])=="object"){this.overrideSingleOptionRecursively(o,from[o],to[oo],externalSource)}}}}else{if(!to.hasOwnProperty(o)){to[o]=new Object()}this.overrideOptionsRecursively(from[o],to[o])}}},resolveWidgetResource:function(widgetName,resource){return(base.service.getHost()+"Widgets/v1/"+widgetName+"/"+resource+"?apiKey="+PLUCKIT_APIKEY)},resolveAssetsResource:function(resource){return(base.service.getAssetsHost()+"assets/v1/"+resource+"?apiKey=00000000-0000-0000-0000-000000000000&vn=7238")},getTrimPathModifiers:function(){return{resolveWidgetResource:function(str){return dmpod.help.resolveWidgetResource(str)},resolveAssetsResource:function(str){return dmpod.help.resolveAssetsResource(str)},addQueryParam:function(str,name,value){return dmpod.help.addQueryParam(str,name,value)},addQueryParams:function(str,nameValuePairs){return dmpod.help.addQueryParams(str,nameValuePairs)},addPrefixedQueryParam:function(str,name,value){return dmpod.help.addPrefixedQueryParam(str,name,value)},addPrefixedQueryParams:function(str,nameValuePairs){return dmpod.help.addPrefixedQueryParams(str,nameValuePairs)},showPrettyDate:function(milliseconds){return dmpod.help.showPrettyDate(milliseconds)},showPrettyTime:function(milliseconds){return dmpod.help.showPrettyTime(milliseconds)},titleEncode:function(str){return escape(str.replace(/ /g,"_"))},urlEscape:function(str){return escape(str)}}},queryParamPrefix:"PLUCK",getPrefixedQueryParam:function(parameterName,substituteUrl){return this.getQueryParam(this.queryParamPrefix+parameterName,substituteUrl)},getQueryParam:function(parameterName,substituteUrl){var search=substituteUrl?substituteUrl:location.search;var match=search.match(new RegExp("[?&]"+parameterName+"=([^&]+)"));var value=match?match[1]:null;if(value==null){return null}value=value.replace(/\+/g,"%20");return unescape(value)},replaceQueryParams:function(url,newParams){if(url.indexOf("#")!=-1){url=url.substring(0,url.indexOf("#"))}var urlBase;var params=newParams;if(url.indexOf("?")!=-1){var urlParts=url.split("?");urlBase=urlParts[0];var search=urlParts[1];var paramArray=search.split("&");params={};for(var index=0;index<paramArray.length;index++){var keyVal=paramArray[index].split("=");params[keyVal[0]]=keyVal[1]}for(newParam in newParams){params[newParam]=newParams[newParam]}}else{urlBase=url}var urlParams="";for(param in params){if(urlParams!=""){urlParams+="&"}urlParams+=param+"="+params[param]}return urlBase+"?"+urlParams},ensureHostUrl:function(hostUrl,allowRelative){if(typeof(hostUrl)!="undefined"&&hostUrl!=null&&!allowRelative){var lower=hostUrl.toLowerCase();if(lower.indexOf("http")!=0){hostUrl=""}}if(typeof(hostUrl)=="undefined"||hostUrl==null||hostUrl==""){hostUrl=document.location.href;var stopChars="#";for(i=0;i<stopChars.length;++i){var index=hostUrl.indexOf(stopChars.charAt(i));if(index>0){hostUrl=hostUrl.substring(0,index)}}}return hostUrl},addPrefixedQueryParam:function(url,name,value){return this.addQueryParam(url,this.queryParamPrefix+name,value)},addPrefixedQueryParams:function(url,nameValuePairs){for(var name in nameValuePairs){url=this.addPrefixedQueryParam(url,name,nameValuePairs[name])}return url},addQueryParam:function(url,name,value){var regex=new RegExp("([\\?&])"+name+"=[^&;]+");var data=name+"="+value.replace(/\s/g,"_");if(regex.test(url)){return url.replace(regex,"$1"+data)}return url+(url.indexOf("?")>-1?"&":"?")+data},addQueryParams:function(url,nameValuePairs){for(var name in nameValuePairs){url=this.addQueryParam(url,name,nameValuePairs[name])}return url},showPrettyDate:function(milliseconds){var monthName=new Array();monthName[0]="January";monthName[1]="February";monthName[2]="March";monthName[3]="April";monthName[4]="May";monthName[5]="June";monthName[6]="July";monthName[7]="August";monthName[8]="September";monthName[9]="October";monthName[10]="November";monthName[11]="December";var daySuffix=new Array();daySuffix[0]="th";daySuffix[1]="st";daySuffix[2]="nd";daySuffix[3]="rd";var d=new Date();d.setTime(milliseconds);var month=monthName[d.getMonth()];var day=d.getDate();var suffix=daySuffix[0];if(day<21){if(day<4){suffix=daySuffix[day]}}else{if(day%10<4){suffix=daySuffix[day%10]}}var year=d.getFullYear();return month+" "+day+suffix+", "+year},showPrettyTime:function(milliseconds){var d=new Date();d.setTime(milliseconds);var hours=d.getHours();var amPm="AM";if(hours==0){hours=12}else{if(hours>12){hours=hours-12;amPm="PM"}}var minutes=d.getMinutes();if(minutes<10){minutes="0"+minutes}return hours+":"+minutes+" "+amPm},injectTrackingCode:function(trackingScript,trackingSrc){if(trackingScript.length>0){if(window.execScript){window.execScript(trackingScript)}else{eval(trackingScript)}}if(trackingSrc.length>0){this.os_addScriptSrcNode(trackingSrc)}},trackWidgetExecution:function(widgetType,widgetMode){var queryParams={"WidgetAction":"execute"};if(widgetMode!=null){queryParams.WidgetMode=widgetMode}this.trackGuiEvent(widgetType,queryParams)},trackGuiEvent:function(widgetType,queryParameters){var eventBeacon=new Image(1,1);var beaconUrl=PLUCKIT_TRACKING_URL+"?CustomerKey="+PLUCKIT_APIKEY+"&WidgetType="+widgetType;if(typeof queryParameters!=="undefined"){for(param in queryParameters){beaconUrl+="&"+param+"="+this.encodeTrackingParameter(queryParameters[param])}}beaconUrl+="&Log=1&v=JT01.02&lt=0&nocache="+this.createUniqueId("beacon");beaconUrl+="&t="+this.encodeTrackingParameter(document.title);beaconUrl+="&r="+this.encodeTrackingParameter(document.referrer);eventBeacon.src=beaconUrl},encodeTrackingParameter:function(str){return(typeof encodeURI!="undefined")?encodeURI(str):escape(str)},checkApiKey:function(widgetId,apiKey){var widget=document.getElementById(widgetId);if(apiKey=="00000000-0000-0000-0000-000000000000"&&!document.getElementById("podApiKeyWarning")){var apiWarningDiv=document.createElement("div");apiWarningDiv.className="podAlert podGlobal";apiWarningDiv.id="podApiKeyWarning";apiWarningDiv.style.marginTop="10px";apiWarningDiv.style.marginBottom="10px";apiWarningDiv.innerHTML="This sample Pluck On Demand widget contains an improper API key ("+apiKey+"). Please use your assigned API key to ensure complete functionality.";widget.insertBefore(apiWarningDiv,widget.firstChild)}},replaceHTMLDivIds:function(html,divId,newDivId){html=html.replace(/\r/gm,"---CR---");html=html.replace(/\n/gm,"---LF---");var m=html.match(new RegExp("^(.*<div.*\\sid\\s*=\\s*['\"])("+divId+")(['\"].*?>.*$)","i"));if(m!=null&&m.length==4){html=m[1]+newDivId+m[3]}html=html.replace(/---CR---/gm,"\r");html=html.replace(/---LF---/gm,"\n");return html},os_createElement:function(elementType,attributes,bodyText){var element=document.createElement(elementType);for(name in attributes){element.setAttribute(name,attributes[name])}if(bodyText.length>0){element.appendChild(document.createTextNode(bodyText))}return element},os_addToHead:function(elem){var head=document.getElementsByTagName("head")[0];head.appendChild(elem)},os_addScriptSrcNode:function(scriptSrc){var scriptElement=this.os_createElement("script",{"src":scriptSrc,"type":"text/javascript","charset":"utf-8"},"");this.os_addToHead(scriptElement)},displayElement:function(elem,mode,retry){if(retry&&retry<=1){return}if(document.getElementById(elem)){document.getElementById(elem).style.display=mode}else{var my=this;setTimeout(function(){my.displayElement(elem,mode,--retry)},500)}},swapElements:function(elemToHide,elemToShow,inline){var hideMe=(typeof elemToHide=="string"?document.getElementById(elemToHide):elemToHide),showMe=(typeof elemToShow=="string"?document.getElementById(elemToShow):elemToShow);hideMe.style.display="none";if(inline){showMe.style.display="inline"}else{showMe.style.display="block"}},addListener:function(element,type,expression,bubbling){bubbling=bubbling||false;if(window.addEventListener){element.addEventListener(type,expression,bubbling);return true}else{if(window.attachEvent){element.attachEvent("on"+type,expression);return true}else{return false}}},removeListener:function(element,type,expression,bubbling){bubbling=bubbling||false;if(window.removeEventListener){element.removeEventListener(type,expression,bubbling);return true}else{if(window.detachEvent){element.detachEvent("on"+type,expression);return true}else{return false}}},moveElement:function(elem,startPos,endPos,steps,intervals,powr,callback){if(elem.posChangeMemInt){window.clearInterval(elem.posChangeMemInt)}var actStep=0;elem.posChangeMemInt=window.setInterval(function(){if(typeof(startPos[0])!=="undefined"&&typeof(startPos[1])!=="undefined"&&typeof(endPos[0])!=="undefined"&&typeof(endPos[1])!=="undefined"){elem.currentPos=[dmpod.help.easeInOut(startPos[0],endPos[0],steps,actStep,powr),dmpod.help.easeInOut(startPos[1],endPos[1],steps,actStep,powr)];elem.style.left=elem.currentPos[0]+"px";elem.style.top=elem.currentPos[1]+"px";actStep++;if(actStep>steps){window.clearInterval(elem.posChangeMemInt);if(callback){callback()}}}else{window.clearInterval(elem.posChangeMemInt);if(callback){callback()}}},intervals)},easeInOut:function(minValue,maxValue,totalSteps,actualStep,powr){var delta=maxValue-minValue;var stepp=minValue+(Math.pow(((1/totalSteps)*actualStep),powr)*delta);return Math.ceil(stepp)},changeOpacity:function(elem,startOpacity,endOpacity,steps,intervals,powr,callback){if(elem.opacityChangeMemInt){window.clearInterval(elem.opacityChangeMemInt)}var actStep=0;elem.opacityChangeMemInt=window.setInterval(function(){elem.currentOpacity=dmpod.help.easeInOut(startOpacity,endOpacity,steps,actStep,powr);elem.style.opacity=elem.currentOpacity/100;elem.style.filter="alpha(opacity="+elem.currentOpacity+");";actStep++;if(actStep>steps){if(elem.style.opacity=="0"){elem.style.display="none"}window.clearInterval(elem.opacityChangeMemInt);if(callback){callback()}}},intervals)},submitForm:function(name){var form=document.forms[name];if(form&&form.onsubmit()){form.submit()}return false},alert:function(msg){var doc=document,div=doc.body.appendChild(document.createElement("div"));div.className="podStatusAlert";div.appendChild(doc.createTextNode(msg));setTimeout(function(){dmpod.help.changeOpacity(div,100,0,20,30,1);setTimeout(function(){doc.body.removeChild(div)},3000)},3000)},showError:function(elementId,errorMessage){var elem=document.getElementById(elementId);if(elem){elem.innerHTML="<a href=\"javascript:dmpod.help.hideError('"+elementId+'\');" class="podClose">close</a>';elem.innerHTML+=errorMessage;elem.style.display="block"}else{alert(errorMessage)}},hideError:function(elementId){var elem=document.getElementById(elementId);if(elem){elem.innerHTML="";elem.style.display="none"}},extractDomain:function(domainOrUrl){domainOrUrl=domainOrUrl.replace(/^\s*/,"");domainOrUrl=domainOrUrl.replace(/^https?:\/\//i,"");domainOrUrl=domainOrUrl.replace(/^(www\.)?/i,"");domainOrUrl=domainOrUrl.replace(/\/.*/,"");return domainOrUrl},convertUrlToPublisherKeyString:function(url){url=url.replace(/https:\/\//i,"");url=url.replace(/http:\/\//i,"");url=url.replace(/www\./i,"");url=url.replace(/#.*/i,"");return url},grabOption:function(widget,optionName,substituteUrl){var optionSetting=widget.optionSpecified(optionName);if(!optionSetting){optionSetting=this.getPrefixedQueryParam(optionName,substituteUrl)}if(!optionSetting){optionSetting=""}return optionSetting},submitEnter:function(inputField,e){var keycode;if(window.event){keycode=window.event.keyCode}else{if(e){keycode=e.which}else{return true}}if(keycode==13){inputField.form.submit();return false}else{return true}},cleanInput:function(str){str=str.replace(/</g,"&lt;");str=str.replace(/>/g,"&gt;");return str},truncateOnBadChar:function(str){var newStr="";var goodChars="01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";for(var i=0;i<str.length;i++){if(goodChars.indexOf(str.charAt(i))==-1){return newStr+"_..."}newStr+=str.charAt(i)}return newStr},addAnchor:function(url,anchor){url=url.replace(/#.*/i,"");url=url+"#"+anchor;return url},getElementsByClassName:function(className){if(document.getElementsByClassName){return document.getElementsByClassName(className)}var nodes=[];var regex=new RegExp("(^| )"+className+"( |$)");for(var i=0,elems=document.getElementsByTagName("*"),elem;elem=elems[i];i++){if(regex.test(elem.className)){nodes.push(elem)}}return nodes},getErrorMessageFromResponses:function(responses){for(var i=0;i<responses.length;i++){if(responses[i].isError){return responses[i].message}}return""},isIE:base.service.isIE,flashVersion:base.service.flashVersion,isValidUrl:function(url){var isValid=false;var regex=/^(http|https):\/\/.+/;if(regex.test(url)){isValid=true}return isValid},isEmptyOrNull:function(item){var isEON=false;if(item==""||item==null){isEON=true}return isEON},eatBlanks:function(str){return str.replace(/^\s*|\s*$/g,"")},stylesheets:{},showMessage:this.showError,hideMessage:this.hideError,isAncestor:function(childWidget,possibleAncestorClassName){if(childWidget.parent){if(childWidget.parent.classname==possibleAncestorClassName){return true}else{return this.isAncestor(childWidget.parent,possibleAncestorClassName)}}return false},getTopLevelWidget:function(widget){if(widget.parent){return this.getTopLevelWidget(widget.parent)}else{return widget}},getLocationUrl:function(widget){var locationUrl=location.search;var topLevelWidget=this.getTopLevelWidget(widget);if(topLevelWidget.internalLinkTarget&&topLevelWidget.internalLinkTarget=="Overlay"){if(topLevelWidget.locationUrl){locationUrl=topLevelWidget.locationUrl}}return locationUrl},setLocationUrl:function(widget,locationUrl){var topLevelWidget=this.getTopLevelWidget(widget);topLevelWidget.locationUrl=locationUrl;return true},buildALinkWorkshop:function(widget,optionUrl,landingPageUrl,queryParams){var newLink={url:"",target:""};var topLevelWidget=this.getTopLevelWidget(widget);if(!this.isEmptyOrNull(optionUrl)){newLink.url=this.addPrefixedQueryParams(optionUrl,queryParams)}else{if(!this.isEmptyOrNull(landingPageUrl)){newLink.url=this.addPrefixedQueryParams(landingPageUrl,queryParams)}else{if(topLevelWidget.classname=="PluckItRelatedWidget"){if(topLevelWidget.internalLinkTarget&&topLevelWidget.internalLinkTarget=="Overlay"){newLink.url="javascript:"+topLevelWidget.classname+"_"+topLevelWidget.divSuffix+".overlayMe('"+this.addPrefixedQueryParams(document.location.href,queryParams)+"');"}else{if(topLevelWidget.internalLinkTarget&&topLevelWidget.internalLinkTarget=="Popup"){newLink.url=this.addPrefixedQueryParams(topLevelWidget.globalLandingPageUrl,queryParams);newLink.target=' target="_dmpodWindow" '}else{newLink.url=this.addPrefixedQueryParams(document.location.href,queryParams)}}}else{if(topLevelWidget.classname=="PluckItRelatedContentWidget"||topLevelWidget.classname=="PluckItArticleDiscoveryWidget"){newLink.url=this.addPrefixedQueryParams(topLevelWidget.globalLandingPageUrl,queryParams);newLink.target=' target="_dmpodWindow" '}else{newLink.url=this.addPrefixedQueryParams(document.location.href.split("?")[0],queryParams)}}}}return newLink},getAncestorWidgetByClass:function(childWidget,possibleAncestorClassName){if(childWidget.parent){if(childWidget.parent.classname==possibleAncestorClassName){return childWidget.parent}else{return this.getAncestorWidgetByClass(childWidget.parent,possibleAncestorClassName)}}return null}})}})(dmpod);(function(b){if(typeof(b.widget)=="undefined"){var a=function(){};a.runWidget=function(c){var l=b.help.createUniqueId();var f=null;if(typeof(PLUCKIT_WIDGET_DIVID)!=="undefined"){f=PLUCKIT_WIDGET_DIVID;delete PLUCKIT_WIDGET_DIVID}if(b.service.flashNeeded){var h='<div id="'+l+'" class="podWidget"><p>The Adobe Flash Player installed in this browser is out of date. <a href="http://www.adobe.com/go/getflashplayer/" target="_blank">Please upgrade Adobe Flash Player.</a></p></div>';if(f!=null){var m=function(){if(document.getElementById(f)!=null){document.getElementById(f).innerHTML=h}else{setTimeout(m,3000)}};setTimeout(m,3000)}else{document.write(h)}return}try{var g={};if(typeof(PLUCKIT_WIDGET_OPTIONS_DEFAULT)!=="undefined"){g=PLUCKIT_WIDGET_OPTIONS_DEFAULT;PLUCKIT_WIDGET_OPTIONS_DEFAULT=null}var o={};if(typeof(PLUCKIT_WIDGET_EVENTS)!=="undefined"){o=PLUCKIT_WIDGET_EVENTS;PLUCKIT_WIDGET_EVENTS=null}if(typeof(PLUCKIT_WIDGET_OPTIONS)!="undefined"&&PLUCKIT_WIDGET_OPTIONS!=null){b.help.overrideOptionsRecursively(PLUCKIT_WIDGET_OPTIONS,g);PLUCKIT_WIDGET_OPTIONS=null}if(b.service.debugging.firebug){window.console.group("Creating widget "+c+" with these options:");window.console.dir(g);window.console.groupEnd()}var k=a.createWidget(null,c,c,l,g,o);if(f!=null){k.divId=f}else{document.write('<div id="'+c+"_"+l+'" class="podWidget">'+k.getPreloadHtml()+"</div>")}if(k.preloadImageUrls.length>0){for(var j=0;j<k.preloadImageUrls.length;j++){var p=document.createElement("img");p.src=b.help.resolveAssetsResource("images/"+k.preloadImageUrls[j])}}k.execute();k.help.trackWidgetExecution(c,k.help.getPrefixedQueryParam("whichPage"))}catch(n){var d='<div id="'+l+'" class="podWidget">'+b.help.makeErrorSpan("["+c+"] "+n.name+": "+n.message)+"</div>";if(f!=null){var e=function(){if(document.getElementById(f)!=null){document.getElementById(f).innerHTML=d}else{setTimeout(e,3000)}};setTimeout(e,3000)}else{document.write(d)}}};a.createWidget=function(g,h,j,c,d,f){if(g==null){b.help.addWidgetStylesheet(b.help.resolveAssetsResource("stylesheets/pod.css"),true)}var e=new window[h];e.service=b.service;e.init(g,h,j,c,d,f);e.widgetinstanceReplacementId=e.divId;window[e.widgetinstanceReplacementId]=e;return e};b.widget=a;a.prototype=(function(){return{constructor:a,createWidget:a.createWidget,init:function(g,c,k,h,f,j){var d=this;this.help=b.help;this.eventInfo={};this.parent=g;this.classname=c;this.instanceName=k;this.divSuffix=h;this.divId=this.instanceName+"_"+h;this.context={};this.context._MODIFIERS=this.help.getTrimPathModifiers();this.context.options=f;this.context.apiKey=PLUCKIT_APIKEY;this.context.konteraAds=false;this.madeAnyRequests=false;this.processedAnyResponses=false;this.requests=[];this.subWidgets=[];this.child={};this.autoRender=true;this.currentResponses=[];this.content="";this.contentTime=new Date().getTime();this.renderedTime=this.contentTime-1000;this.errorText="";this.events=j||{};this.globalLandingPageUrl="http://www.moreonthistopic.com/index.html";for(var e in this.events){if(this.events.hasOwnProperty(e)){this.addEventCallback(e,this.events[e])}}if(this.optionSpecified("customCss")){b.help.addWidgetStylesheet(this.context.options.customCss,false,true)}this.addChildWidgets();if(this.optionSpecified("remoteTemplateUrl")){this.template=null;this.downloadUrl(this.context.options.remoteTemplateUrl,null,function(l){d.template=l})}else{if(this.optionSpecified("templateId")){this.template=document.getElementById(this.context.options.templateId).value}else{if(this.optionSpecified("layout")&&(typeof(this.layouts)!=="undefined")){this.template=this.layouts[this.context.options.layout]}}}this.postInit();this.fireEventOnce("onLoaded")},downloadUrl:function(d,f,c){var g=this;var e=function(h){c.call(g,h)};this.service.DownloadUrl(d,f,e)},postForm:function(d,f,c){var g=this;var e=function(h){c.call(g,h)};this.service.PostForm(d,f,e)},sendRequests:function(d,c){if(d.constructor!=Array){d=[d]}if(this.service.debugging.on){for(var e=0;e<d.length;e++){if(!d[e].hasOwnProperty("requestedBy")){d[e].requestedBy=this.instanceName+"["+this.classname+"]"}}}var f=this;this.service.SendRequests(d,function(g){if(g.hasOwnProperty("ContentTrackingJavaScript")){b.help.injectTrackingCode(g.ContentTrackingJavaScript,g.ContentTrackingSrc)}c.call(f,g)})},showHtmlException:function(e){var c=this;var d=document.getElementById(this.divId);if(d==null){setTimeout(function(){c.showHtmlException(e)},3000);return}d.innerHTML=this.help.makeErrorSpan("["+this.classname+":"+this.instanceName+"] "+e.name+": "+e.message)},execute:function(c,d){var g=this;try{if(typeof(d)!=="undefined"){this.help.overrideOptions(this.context.options,d)}var f=this.getRequests();if(f!=null&&f.length>0){this.sendRequests(f,function(h){try{g.waitForAllTemplates(function(k){if(k){g.replaceChildDivIds();var l=h.Responses;g.processResponses(l);if(g.autoRender){g.processTemplates()}if(typeof c!=="undefined"){c(g)}else{if(g.autoRender){g.render()}}}else{g.showHtmlException({name:"Remote Templates",message:"Not all remote templates could be downloaded"})}})}catch(j){g.showHtmlException(j)}})}else{this.waitForAllTemplates(function(h){if(h){g.replaceChildDivIds();if(g.autoRender){g.processTemplates()}if(typeof c!=="undefined"){c(g)}else{if(g.autoRender){g.render()}}}else{g.showHtmlException({name:"Remote Templates",message:"Not all remote templates could be downloaded"})}})}}catch(e){this.showHtmlException(e)}},hasAllTemplates:function(){if(this.template){if(this.subWidgets.length>0){for(var c=0;c<this.subWidgets.length;c++){if(!this.subWidgets[c].hasAllTemplates()){return false}}}return true}return false},waitForAllTemplates:function(c,d){var f=this.hasAllTemplates();if(f){c(true)}else{var d=d||0;if(d++<40){var e=this;setTimeout(function(){e.waitForAllTemplates(c,d)},250*d)}else{c(false)}}},replaceChildDivIds:function(){if(this.hasOwnProperty("widgetinstanceReplacementId")){this.template=this.template.replace(/WIDGETINSTANCE/gm,"window['"+this.widgetinstanceReplacementId+"']")}if(this.subWidgets.length>0){for(var c=0;c<this.subWidgets.length;c++){var d=this.subWidgets[c];this.template=this.help.replaceHTMLDivIds(this.template,d.instanceName,d.divId);d.replaceChildDivIds()}}},render:function(f){if(this.renderedTime<this.contentTime){f=f||0;var c=function(j,k){if(k++<20){setTimeout(function(){j.render(f)},100*k)}};if(!this.service.bodyLoadCompleted){c(this,f);return}if(document.getElementById(this.divId)==null){c(this,f);return}var h=this.context.hasOwnProperty("splitRenderResults");if(h){for(var d=0;d<this.context.splitRenderResults.areas.length;d++){if(document.getElementById(this.context.splitRenderResults.areas[d][0])==null){c(this,f);return}}}if(!h){document.getElementById(this.divId).innerHTML=this.content}else{var g=this.context.splitRenderResults;for(var d=0;d<g.areas.length;d++){if(g.results.length>0){this.context[g.data]=this.multipleShift(g.results,g.areas[d][1]);var e=this.processTemplateData(this.template,this.context);if(e){document.getElementById(g.areas[d][0]).innerHTML=e}}}}if(this.parent==null){this.help.checkApiKey(this.divId,PLUCKIT_APIKEY)}this.processPostRender(this.contentTime)}},processPostRender:function(c){this.renderedTime=c;if(this.subWidgets.length>0){for(var d=0;d<this.subWidgets.length;d++){if(this.subWidgets[d].autoRender){this.subWidgets[d].processPostRender(c)}}}if(typeof(this.postRender)==="function"){this.postRender()}this.fireEvent("onRendered");if(this.madeAnyRequests){if(this.processedAnyResponses){this.fireEventOnceAfterChildren("onCompleted",5000)}}else{this.fireEventOnceAfterChildren("onCompleted",5000)}if(this.context.konteraAds&&typeof(PLUCKIT_INLINETEXTADS_CALLED)==="undefined"&&typeof(startKonaFlow)!=="undefined"){startKonaFlow();PLUCKIT_INLINETEXTADS_CALLED=true}},addChildWidget:function(d,e){var c=this.createWidget(this,d,e,this.divSuffix,this.context.options[e],this.events[e]);this.subWidgets.push(c);this.child[c.instanceName]=c;if(this.template!=null){this.template=this.help.replaceHTMLDivIds(this.template,e,c.divId)}},getRequests:function(){this.askedForRequests=true;this.requests=[];this.addRequests();this.madeAnyRequests=this.requests.length>0;this.processedAnyRequests=false;var c=this.requests;if(this.subWidgets.length>0){for(var d=0;d<this.subWidgets.length;d++){c=c.concat(this.subWidgets[d].getRequests())}}return c},addRequest:function(c){if(typeof c!="undefined"){if(this.service.debugging.on){c.requestedBy=this.instanceName+"["+this.classname+"]";var d=this.parent;while(d!=null){c.requestedBy=d.instanceName+":"+c.requestedBy;d=d.parent}}this.requests.push(c)}},getEventInfo:function(c){if(!this.eventInfo.hasOwnProperty(c)){this.eventInfo[c]={widget:this,name:c,callbacks:[],fired:0,enabled:true,waitingForChildren:false}}return this.eventInfo[c]},addEventCallback:function(d,c){this.getEventInfo(d).callbacks.push(c)},eventFired:function(c){return this.getEventInfo(c).fired},fireEvent:function(d){var e=this.getEventInfo(d);if(e.enabled){e.fired++;if(this.service.debugging.on){this.service.debug("event: "+e.name+":"+e.fired+" "+this.instanceName)}if(e.callbacks!==null){for(var c=0;c<e.callbacks.length;c++){e.callbacks[c](e)}}}},fireEventOnce:function(c){if(this.eventFired(c)==0){this.fireEvent(c)}},fireEventAfterChildren:function(d,c){var e=this.getEventInfo(d);if(!e.waitingOnChildren){e.waitingOnChildren=true;var c=c||0;var g=(new Date()).getTime()+c;var h=this;var f=function(){for(var j=0;j<h.subWidgets.length;j++){if(0==h.subWidgets[j].eventFired(d)){if(c&&((new Date()).getTime()>=g)){break}setTimeout(f,100);return}}h.fireEvent(d);e.waitingOnChildren=false;return};setTimeout(f,100)}},fireEventOnceAfterChildren:function(d,c){if(this.eventFired(d)==0){this.fireEventAfterChildren(d,c)}},setEventEnabled:function(c,e){var d=this.getEventInfo(c);d.enabled=e},processTemplate:function(){this.replaceChildDivIds();var c="";if(this.errorText>""){c=this.help.makeErrorSpan(this.errorText)}else{try{c=this.processTemplateData(this.template,this.context)}catch(d){c=this.help.makeErrorSpan("["+this.classname+":"+this.instanceName+"] "+d.name+": "+d.message)}}this.contentTime=new Date().getTime();return c},processTemplateData:function(d,f){var e=PodTrimPath.parseTemplate(d);if(e!=null){var c={};c.throwExceptions=true;return html=e.process(f,c)}return""},multipleShift:function(c,f){var e=[];f=Math.min(f,c.length);for(var d=0;d<f;d++){e.push(c.shift())}return e},getRequestsTreeLength:function(){var c=this.requests.length;for(var d=0;d<this.subWidgets.length;d++){c+=this.subWidgets[d].getRequestsTreeLength()}return c},processChildResponses:function(e){if(this.subWidgets.length>0){for(var c=0;c<this.subWidgets.length;c++){if(this.subWidgets[c].getRequestsTreeLength()>0){var d=this.multipleShift(e,this.subWidgets[c].getRequestsTreeLength());if(!this.help.isArray(d)){d=[d]}this.subWidgets[c].processResponses(d)}}}},processResponses:function(d){this.currentResponses=d;var c=null;if(this.requests.length>0){var c=this.multipleShift(d,this.requests.length);if(!this.help.isArray(c)){c=[c]}}this.processChildResponses(d);if(c!=null){this.buildContextFromResponses(c);this.processedAnyResponses=true}this.finalizeContext()},processTemplates:function(){if(this.subWidgets.length>0){for(var c=0;c<this.subWidgets.length;c++){var d="";if(this.subWidgets[c].autoRender){d=this.subWidgets[c].processTemplates()}this.context[this.subWidgets[c].instanceName]=d}}this.content=this.processTemplate();return this.content},optionSpecified:function(c){return(this.context.options.hasOwnProperty(c)&&this.context.options[c])},setRequestOption:function(d,c){if(this.optionSpecified(c)){d[c]=this.context.options[c]}},setErrorText:function(c){this.errorText="["+this.classname+":"+this.instanceName+"] "+c},appendErrorText:function(c){this.errorText="  "+c},getResponseByType:function(e,f,d){if(typeof(f)==="undefined"){f=0;d=false}else{if(typeof(d)==="undefined"){d=false}}if(this.currentResponses.length>0){for(var c=0;c<this.currentResponses;c++){if(this.currentResponses[c].indexOf(e)>=0){if(f==0){return this.currentResponses[c]}else{f--;d=false}}}}if(typeof(d)!=="undefined"){if(parent!=null&&d){return parent.getResponseByType(e,d)}}return null},splitRenderResults:function(d){if(this.optionSpecified("splitRenderResults")){var e=this.context.options.splitRenderResults.split(",");if(e.length==0){return}var k=isNaN(parseInt(e[0]))?1:2;if(k==1){e[0]=this.divId}else{e.unshift(this.divId)}var f=[];var l=9999;while(e.length>0){var c=this.multipleShift(e,2);if(c[1]=="*"){c[1]=l}else{c[1]=parseInt(c[1]);if(c[1]==0&&k==1){c[1]=l}}f.push(c)}if(f.length>0){var h=0;for(var g=0;g<f.length;g++){h+=f[g][1]}var j=Math.max(d.results.length-h,0);if(j>0){for(var g=0;g<f.length;g++){if(f[g][1]==l){f[g][1]=j;break}}}d["areas"]=f;this.context["splitRenderResults"]=d}}},setTimeout:function(d,e){var f=this;var c=function(){d.call(f)};setTimeout(c,e)},getPreloadHtml:function(){return""},postInit:function(){},addChildWidgets:function(){},addRequests:function(){},buildContextFromResponses:function(c){},finalizeContext:function(){}}})()}})(dmpod);var PLUCKIT_WIDGET_OPTIONS_DEFAULT={"customCss":"","layout":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"relatedRelatedContent":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"all","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"5","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"relatedRelatedTags":{"articleId":"","customCss":"","direction":"vertical","layout":"","linkResultsType":"topicPage","numberOfTags":"5","remoteTemplateUrl":"","showBottomBorder":"false","showRelatedTags":"true","splitRenderResults":"","stringRelatedTagsSectionTitleHorizontal":"Related:","stringRelatedTagsSectionTitleVertical":"Related Key Words","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","topicPageUrl":"","url":""},"remoteTemplateUrl":"","showRelated":"true","smartWidget":{"articlePage":{"articleComments":{"abuseReportWidget":{"commentId":"","customCss":"","layout":"","maxReportersPerReport":"5","remoteTemplateUrl":"","templateId":""},"articleId":"","articlePageUrl":"","commentNumberPerPage":"10","commentOnPage":"0","commentSort":"TimeStampDescending","customCss":"","layout":"","loginSignup":{"customCss":"","layout":"","profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","showHeadings":"false","showSignupButton":"true","successPageUrl":"","templateId":""},"pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"publisherContentId":"","recommendComment":{"articleId":"","commentId":"","customCss":"","layout":"","publisherContentId":"","remoteTemplateUrl":"","showRecommendations":"true","templateId":""},"remoteTemplateUrl":"","showAbuse":"true","showAvatar":"true","showComments":"true","showProfile":"true","templateId":""},"articleId":"","customCss":"","featuredArticle":{"adWidth":"narrow","articleComments":{"abuseReportWidget":{"commentId":"","customCss":"","layout":"","maxReportersPerReport":"5","remoteTemplateUrl":"","templateId":""},"articleId":"","articlePageUrl":"","commentNumberPerPage":"10","commentOnPage":"0","commentSort":"TimeStampDescending","customCss":"","layout":"","loginSignup":{"customCss":"","layout":"","profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","showHeadings":"false","showSignupButton":"true","successPageUrl":"","templateId":""},"pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"publisherContentId":"","recommendComment":{"articleId":"","commentId":"","customCss":"","layout":"","publisherContentId":"","remoteTemplateUrl":"","showRecommendations":"true","templateId":""},"remoteTemplateUrl":"","showAbuse":"true","showAvatar":"true","showComments":"true","showProfile":"true","templateId":""},"articleId":"","articleLength":"full","articlePageUrl":"","customCss":"","layout":"","recommendArticle":{"articleId":"","commentId":"","customCss":"","layout":"","publisherContentId":"","remoteTemplateUrl":"","showRecommendations":"true","templateId":""},"relatedTags":{"articleId":"","customCss":"","direction":"horizontal","layout":"","linkResultsType":"topicPage","numberOfTags":"5","remoteTemplateUrl":"","showBottomBorder":"false","showRelatedTags":"true","splitRenderResults":"","stringRelatedTagsSectionTitleHorizontal":"Related:","stringRelatedTagsSectionTitleVertical":"Related Key Words","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","topicPageUrl":"","url":""},"remoteTemplateUrl":"","showComments":"true","showReadCommentsLink":"false","showRecommendations":"true","templateId":""},"layout":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"relatedArticles":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"all","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"5","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"relatedArticlesOnly":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"all","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"5","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"relatedTextArticles":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"text","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"5","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"relatedVideoArticles":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"video","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"5","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"remoteTemplateUrl":"","templateId":"","userDiscovery":{"age":"15","customCss":"","defaultTab":"RecentCommenters","layout":"","numberOfUsers":"5","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","showProfile":"true","showRecentCommentersTab":"false","showRecentRecommendersTab":"false","showTabs":"false","showUserDiscovery":"true","templateId":""}},"contentWidget":{"adminRequired":"true","contentFile":"index.aspx","contentPath":"wizard/","cssUrl":"","customCss":"","layout":"","loginRequired":"true","remoteTemplateUrl":"","templateId":""},"customCss":"","footerWidget":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"true","showLogo":"true","templateId":""},"layout":"","profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"false","showProfile":"true","showUsername":"true","templateId":"","userKey":""},"publisherAccount":{"customCss":"","customerType":"RevenueShare","domainList":{"customCss":"","layout":"","remoteTemplateUrl":"","showPublisherDomainList":"true","templateId":""},"layout":"","partnerMode":"default","privacyPolicyUrl":"","remoteTemplateUrl":"","successPageUrl":"","templateId":"","termsOfServiceUrl":""},"publisherReport":{"customCss":"","layout":"","remoteTemplateUrl":"","templateId":""},"relatedAdLinks":{"articlesTaken":"10","articlesThreshold":"5","customCss":"","layout":"","linkResultsPageUrl":"","matchMethod":"smoothedkeywords","numberOfResultLinks":"10","numberOfSearchLinks":"5","pageRelatedAdLinksLabel":"Related Searches","relatedAdLinkNewWindow":"true","relatedAdLinksLabel":"Sponsored Links","relatedAdPageLabel":"top results >>>","relatedAdPageSublabel":"sponsored listings","remoteTemplateUrl":"","showRelatedAdLinksWidget":"true","showRelatedSearches":"true","showSearchBox":"false","splitRenderResults":"","tagsProvider":"","templateId":""},"remoteTemplateUrl":"","showSmart":"true","smartLoginSignup":{"customCss":"","layout":"","profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","templateId":""},"templateId":"","topicPage":{"customCss":"","featuredArticle":{"adWidth":"narrow","articleComments":{"abuseReportWidget":{"commentId":"","customCss":"","layout":"","maxReportersPerReport":"5","remoteTemplateUrl":"","templateId":""},"articleId":"","articlePageUrl":"","commentNumberPerPage":"10","commentOnPage":"0","commentSort":"TimeStampDescending","customCss":"","layout":"","loginSignup":{"customCss":"","layout":"","profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","showHeadings":"false","showSignupButton":"true","successPageUrl":"","templateId":""},"pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"publisherContentId":"","recommendComment":{"articleId":"","commentId":"","customCss":"","layout":"","publisherContentId":"","remoteTemplateUrl":"","showRecommendations":"true","templateId":""},"remoteTemplateUrl":"","showAbuse":"true","showAvatar":"true","showComments":"true","showProfile":"true","templateId":""},"articleId":"","articleLength":"summary","articlePageUrl":"","customCss":"","layout":"","recommendArticle":{"articleId":"","commentId":"","customCss":"","layout":"","publisherContentId":"","remoteTemplateUrl":"","showRecommendations":"true","templateId":""},"relatedTags":{"articleId":"","customCss":"","direction":"horizontal","layout":"","linkResultsType":"topicPage","numberOfTags":"5","remoteTemplateUrl":"","showBottomBorder":"false","showRelatedTags":"true","splitRenderResults":"","stringRelatedTagsSectionTitleHorizontal":"Related:","stringRelatedTagsSectionTitleVertical":"Related Key Words","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","topicPageUrl":"","url":""},"remoteTemplateUrl":"","showComments":"true","showReadCommentsLink":"true","showRecommendations":"true","templateId":""},"latestComments":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","showLatestComments":"true","templateId":""},"layout":"","maxResults":"8","numberOfRelatedVideos":"6","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"true","showLogo":"true","templateId":""},"publisherRelatedLinks":{"articleId":"","customCss":"","excludeFromDomains":"","layout":"","linkSource":"MyContent","numberOfPublisherLinks":"3","remoteTemplateUrl":"","showPublisherRelatedLinks":"true","showThumbnail":"false","showTitle":"false","stringPublisherRelatedLinksSelfReference":"from this site","stringPublisherRelatedLinksTitle":"Related Articles","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","url":""},"relatedArticles":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"all","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"true","includeSources":"","layout":"","matchCategories":"","maxResults":"8","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""},"relatedTags":{"articleId":"","customCss":"","direction":"horizontal","layout":"","linkResultsType":"topicPage","numberOfTags":"5","remoteTemplateUrl":"","showBottomBorder":"true","showRelatedTags":"true","splitRenderResults":"","stringRelatedTagsSectionTitleHorizontal":"Related:","stringRelatedTagsSectionTitleVertical":"Related Key Words","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","topicPageUrl":"","url":""},"remoteTemplateUrl":"","searchWidget":{"customCss":"","layout":"","remoteTemplateUrl":"","showSearch":"true","templateId":""},"stringTopicPagePageTitle":"All about %1","stringTopicPagePageTitleText":"Related Articles","templateId":"","userDiscovery":{"age":"15","customCss":"","defaultTab":"RecentCommenters","layout":"","numberOfUsers":"5","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"profileWidget":{"articlePageUrl":"","customCss":"","layout":"","remoteTemplateUrl":"","reportAbuse":{"customCss":"","layout":"","reactionTargetId":"","reactionTargetType":"userKey","remoteTemplateUrl":"","templateId":"","userHasReportedAbuse":"false"},"showAbuse":"true","showAvatar":"true","showProfile":"true","showUsername":"false","templateId":"","userKey":""},"remoteTemplateUrl":"","showFooter":"false","showProfile":"true","showRecentCommentersTab":"false","showRecentRecommendersTab":"false","showTabs":"false","showUserDiscovery":"true","templateId":""},"videoThumbstrip":{"articleId":"","articlePageUrl":"","bundleId":"","contentType":"all","customCss":"","excludeFromDomain":"","excludeSources":"","favorTagBundleAlias":"false","includeSources":"","layout":"","matchCategories":"","maxResults":"8","noResultsMessage":"","pluckFooter":{"customCss":"","layout":"","remoteTemplateUrl":"","showFooter":"true","showLegalPrivacyLink":"false","showLogo":"true","templateId":""},"remoteTemplateUrl":"","retryAttempts":"6","retryInterval":"2","showAbstract":"true","showComments":"true","showFooter":"true","showMediaIcons":"true","showRecommendations":"true","showRelatedContent":"true","showThumbnail":"true","showTitle":"true","splitRenderResults":"","stringRelatedContentPageTitle":"More On This Topic","stringRelatedContentPageTitleText":"Related Articles","stringRelatedContentPageTitleVideo":"Related Videos","tag":"","templateId":"","textClass":"","textId":"","textKeywords":"","timeliness":"All","url":""}},"whichPage":"","wizardFaq":{"adminRequired":"true","contentFile":"faqSmartWidget.aspx","contentPath":"wizard/","cssUrl":"","customCss":"","layout":"","loginRequired":"true","remoteTemplateUrl":"","templateId":""}},"templateId":"","whichPage":""};(function(){var a=function(){};window["PluckItFooterWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Footer Widget\r\n{/eval}\r\n\r\n{if options.showFooter == \'true\'}\r\n<div class="podFooter podFLC podGlobal">\r\n  {if options.showLegalPrivacyLink != \'false\'}\r\n  <a class="podLegalAndPrivacyLink" href="{if customer.publisherNetwork != \'eNom\'}http://ondemand.pluck.com/legal.aspx{else}http://www.richcontentwidget.com/legal.aspx{/if}" target="termsofuse">{if customer.publisherNetwork != \'eNom\'}Pluck{/if} Legal and Privacy</a>\r\n  {/if}\r\n  <div class="podFooterRight">\r\n    {if showLoginLink}\r\n    <a class="podLoginLink" href="${podLoginLink}">Login</a>\r\n    {/if}\r\n    {if customer.publisherNetwork != \'eNom\' && options.showLogo != \'false\' }\r\n    <a href="http://ondemand.pluck.com/" class="podPluck" target="podPluckOnDemand"><img class="podLogo" \r\n      src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/pluck_white_distro.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238" alt="Powered by Pluck" width="72" height="26" /></a>\r\n    {/if}\r\n  </div>\r\n</div>\r\n{/if}\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.context.showLoginLink=false;if(this.help.isAncestor(this,"PluckItSmartWidget")){this.context.showLoginLink=true;this.context.locationUrl=this.help.getLocationUrl(this)}this.context.podLoginLink=""};a.prototype.addRequests=function(){request=new dmpod.GetCustomerRequest();this.addRequest(request)};a.prototype.buildContextFromResponses=function(e){var d=this.help.getErrorMessageFromResponses(e);if(d.length>0){this.setErrorText(d)}else{this.context.customer=e[0].customer;var b={whichPage:"loginSignup",apiKey:this.context.apiKey};var c=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,b);this.context.podLoginLink=c.url}}})();(function(){var a=function(){};window["PluckItRelatedContentWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// RelatedContent Widget\r\n{/eval}\r\n\r\n<div class="podHeadlineWidget">\r\n{if contentMatched}\r\n  {if options.showTitle == \'true\'}\r\n  <div class="podPageTitle">\r\n    {if options.contentType == "video"}\r\n      ${options.stringRelatedContentPageTitleVideo}\r\n    {elseif options.contentType == "text"}\r\n      ${options.stringRelatedContentPageTitleText}\r\n    {else}\r\n      ${options.stringRelatedContentPageTitle}\r\n    {/if}\r\n  </div>\r\n  {/if}\r\n  <div class="podBasicList">\r\n    {for article in articles} \r\n    <div class="podArticleSummary">\r\n      <div class="podArticleInfo podFLC">\r\n        {if options.showThumbnail == "true"}\r\n          <a href="${article.articleUrl}" title="{if article.mediaType == \'Video\'}Video{else}Article{/if}: ${article.title}" ${linkTarget}>\r\n            <img alt="${article.title}" src="${article.thumbnailUrl}"/>\r\n          </a>\r\n        {/if}\r\n        <div class="podInfoText {if options.showThumbnail == \'true\'} podInfoTextAndAvatar {/if}">\r\n          <a href="${article.articleUrl}" title="{if article.mediaType == \'Video\'}Video{else}Article{/if}: ${article.title}"\r\n            class="podHeadline {if options.showMediaIcons == \'true\'}{if article.mediaType == \'Video\'} podIconVideo{else} podIconArticle{/if}{/if}" ${linkTarget}\r\n            >${article.title}{if options.showMediaIcons != \'true\' && article.mediaType == \'Video\'} (video){/if}</a>\r\n          <span>by ${article.author}</span>\r\n        </div>\r\n      </div>\r\n      {if options.showAbstract == \'true\'}\r\n      <p {if (konteraAds && article.konteraAds)} class="KonaBody" {/if} >\r\n        ${article.content}\r\n        <a href="${article.articleUrl}" class="podReadMore" ${linkTarget}>Read More &raquo;</a>\r\n      </p>\r\n      {/if}\r\n      {if customer.socialMediaEnabled && article.reactionSummary}\r\n        {if options.showComments == "true" || options.showRecommendations == "true"}\r\n        <div class="podArticleStats podFLC">\r\n          {if options.showComments == "true"}\r\n          <a href="${article.articleUrl}#PluckComment" class="podIconComments" ${linkTarget}>${article.reactionSummary.commentCount} Comments</a>\r\n          {/if}\r\n          {if options.showRecommendations == "true"}\r\n          <div class="podArticleRecommendationCount" \r\n            ><span>${article.recommendationCount}</span> Recommendations</div>\r\n          {/if}\r\n        </div>\r\n        {/if}\r\n      {/if}\r\n    </div>\r\n  {/for}\r\n    <div id="${sponsoredLinkId}"><!-- Sponsored Link --></div>\r\n  </div>\r\n  ${pluckFooter}\r\n{else}\r\n  ${options.noResultsMessage}\r\n{/if}\r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.layouts=[];a.prototype.layouts["thumbTitleSummary"]='{eval}\r\n// RelatedContent Widget - thumbTitleSummary\r\n{/eval}\r\n\r\n<div class="podLayoutThumbTitleSummary">\r\n  <div class="podHeadlineWidget">\r\n  {if contentMatched}\r\n    {if options.showTitle == \'true\'}\r\n    <div class="podPageTitle">${options.stringRelatedContentPageTitleText}</div>\r\n    {/if}\r\n    <div class="podBasicList">\r\n      {for article in articles} \r\n      <div class="podArticleSummary2">\r\n        <div class="podArticleInfo podFLC">\r\n          {if options.showThumbnail == "true"}\r\n          <a class="podThumbnail" href="${article.articleUrl}" title="Article: ${article.title}" ${linkTarget}>\r\n            <img alt="${article.title}" class="podArticleThumbnail" src="${article.thumbnailUrl}"/>\r\n          </a>\r\n          {/if}\r\n          <div class="podInfoText {if (konteraAds)} KonaBody {/if} ">\r\n            <a href="${article.articleUrl}" title="Article: ${article.title}"\r\n              class="podHeadline" ${linkTarget}>${article.title}</a>\r\n            <span>${article.content} <a class="podReadMore" href="${article.articleUrl}" ${linkTarget}>Read More &raquo;</a></span>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    {/for}\r\n      <div id="${sponsoredLinkId}"><!-- Sponsored Link --></div>\r\n    </div>\r\n    ${pluckFooter}\r\n  {else}\r\n    ${options.noResultsMessage}\r\n  {/if}\r\n  </div>\r\n</div>\r\n';a.prototype.layouts["videoThumbstrip"]='{eval}\r\n// RelatedContent Widget - videoThumbstrip\r\n{/eval}\r\n\r\n<div class="podLayoutVideoThumbstrip">\r\n  <div class="podHeadlineWidget">\r\n  {if contentMatched}\r\n    {if options.showTitle == \'true\'}\r\n    <div class="podPageTitle">${options.stringRelatedContentPageTitleVideo}</div>\r\n    {/if}\r\n    <div class="podFLC">\r\n    {for article in articles}\r\n      <div class="podThumbnail">\r\n        <a href="${article.articleUrl}" title="Video: ${article.title}" ${linkTarget}><img \r\n          alt="${article.title}" src="${article.thumbnailUrl}" /><img \r\n          class="podVideoPlay" alt="${article.title}" src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/videoPlay.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238" \r\n          /></a>\r\n        <div class="podCallout">${article.shortTitle}</div>\r\n      </div>\r\n    {/for}\r\n    </div>\r\n    ${pluckFooter}\r\n  {else}\r\n    ${options.noResultsMessage}\r\n  {/if}\r\n  </div>\r\n</div>\r\n';a.prototype.addChildWidgets=function(){this.autoRender=false;if(this.optionSpecified("showRelatedContent")!="true"){this.dontShowThisWidget=true;return}this.isOnATopicPage=false;if(this.parent){this.isOnATopicPage=(this.parent.classname=="PluckItTopicPageWidget")}this.featureArticleRequired=false;if(this.isOnATopicPage){this.featureArticleRequired=(this.instanceName=="relatedArticles")}this.setEventEnabled("onCompleted",false);this.addChildWidget("PluckItFooterWidget","pluckFooter")};a.prototype.postInit=function(){this.context.contentMatched=false;this.context.sponsoredLinkId="podSponsoredLink_"+this.divSuffix;this.maxTries=parseInt(this.optionSpecified("retryAttempts"))+1;this.retryInterval=parseInt(this.optionSpecified("retryInterval"))*1000;this.context.options.contentType=this.optionSpecified("contentType").toLowerCase()};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var l;l=new dmpod.GetCustomerRequest();this.addRequest(l);function f(n){var m=[],o=n.split(",");for(var j=0;j<o.length;j++){m.push(new dmpod.ContentSourceKey(o[j]))}return m}this.context.locationUrl=this.help.getLocationUrl(this);this.context.bundleId=this.optionSpecified("bundleId");this.context.articleId=this.optionSpecified("articleId");this.context.tag=this.optionSpecified("tag");this.context.url=this.help.ensureHostUrl(this.optionSpecified("url"),false);if(!this.optionSpecified("bundleId")&&!this.optionSpecified("articleId")&&!this.optionSpecified("tag")&&!this.optionSpecified("url")){this.context.bundleId=this.help.getPrefixedQueryParam("bundleId",this.context.locationUrl);if(!this.optionSpecified("bundleId")){this.context.articleId=this.help.getPrefixedQueryParam("articleId",this.context.locationUrl);if(!this.optionSpecified("articleId")){this.context.tag=this.help.getPrefixedQueryParam("tag",this.context.locationUrl);if(!this.optionSpecified("tag")){this.context.url=this.help.ensureHostUrl(this.help.getPrefixedQueryParam("url",this.context.locationUrl),false)}}}}if(this.context.bundleId){l=new dmpod.GetBundleRequest(this.context.bundleId)}else{if(this.context.articleId){l=new dmpod.GetArticlesRelatedToArticleRequest(this.context.articleId)}else{if(this.context.tag){l=new dmpod.GetArticlesRelatedToTagRequest(this.context.tag)}else{if(this.optionSpecified("textId")){var d=this.optionSpecified("textId").split(/,/g);var h="";for(var g=0,c;g<d.length;g++){if(c=document.getElementById(d[g])){h+=c.innerHTML+" "}}h=h.replace(/\n/g," ");l=new dmpod.GetArticlesRelatedToTextRequest(h)}else{if(this.optionSpecified("textClass")){var d=this.optionSpecified("textClass").split(/,/g);var h="";for(var g=0;g<d.length;g++){for(var e=0,k=this.help.getElementsByClassName(d[g]);e<k.length;e++){h+=k[e].innerHTML+" "}}h=h.replace(/\n/g," ");l=new dmpod.GetArticlesRelatedToTextRequest(h)}else{if(this.optionSpecified("textKeywords")){l=new dmpod.GetArticlesRelatedToTextRequest(this.optionSpecified("textKeywords"))}else{l=new dmpod.GetArticlesRelatedToUrlRequest(this.context.url)}}}}}}this.setRequestOption(l,"contentType");this.setRequestOption(l,"maxResults");if(this.context.options.includeSources){this.context.options.includeSources=f(this.context.options.includeSources);this.setRequestOption(l,"includeSources")}if(this.context.options.excludeSources){this.context.options.excludeSources=f(this.context.options.excludeSources);this.setRequestOption(l,"excludeSources")}if(this.context.options.matchCategories){this.context.options.matchCategories=this.context.options.matchCategories.split(",");var b=this.context.options.matchCategories;for(var g=0;g<b.length;g++){b[g]=parseFloat(b[g])}}this.setRequestOption(l,"matchCategories");this.setRequestOption(l,"excludeFromDomain");this.setRequestOption(l,"timeliness");this.deferredRelatedContentRequest=l};a.prototype.buildContextFromResponses=function(b){if(b[0].isError){this.setErrorText(b[0].message);this.dontShowThisWidget=true;this.autoRender=true}else{this.context.customer=b[0].customer;this.getRelatedContent(this.maxTries)}};a.prototype.getRelatedContent=function(c){c--;if(c<0){this.deferredRender();return}var b=[];b.push(this.deferredRelatedContentRequest);if(this.optionSpecified("favorTagBundleAlias")=="true"){if(b[0].objectType=="Content.GetArticlesRelatedToTagRequest"){var d=new dmpod.GetBundleRequest("tag:"+b[0].tag);d.maxResults=b[0].maxResults;d.timeliness=b[0].timeliness;b.unshift(d);b.executeMethod="ExecuteToFirstSuccess"}}this.sendRequests(b,function(r){var s=r.Responses[0];if(s.isError&&r.Responses.length==2){s=r.Responses[1]}if(s.hasOwnProperty("bundle")){s.relatedContent=s.bundle.relatedContent;s.contentMatched=s.bundle.contentMatched}if(s.isError){this.setErrorText(s.message)}else{if(s.relatedContent.length==0){this.setTimeout(function(){this.getRelatedContent(c)},this.retryInterval)}else{this.context.articles=s.relatedContent;this.context.contentMatched=s.contentMatched;var n=21;for(var o=0,f;o<this.context.articles.length,f=this.context.articles[o];o++){f.shortTitle=f.title;if(f.shortTitle.length>n){f.shortTitle=f.shortTitle.substring(0,n);f.shortTitle=f.shortTitle.substring(0,f.shortTitle.lastIndexOf(" "));f.shortTitle+=" ..."}var m={articleId:f.id,title:this.help.truncateOnBadChar(f.title),mediaType:f.mediaType,author:escape(f.author),apiKey:this.context.apiKey,whichPage:"articlePage"};var e=this.help.buildALinkWorkshop(this,this.optionSpecified("articlePageUrl"),this.context.customer.widgetLandingPageUrl,m);f.articleUrl=e.url;this.context.linkTarget=e.target;var l=0;var h=0;if(this.context.customer.socialMediaEnabled&&f.reactionSummary){var p=f.reactionSummary;var g=p.recommendationDetails;for(var k=0,q;q=g[k];k++){if(q.category=="Positive"){l=q.count}else{if(q.category=="Negative"){h=q.count}}}f.recommendationCount=l-h;f.konteraAds=f.sourceAllowsInlineTextAds;this.context.userHasRecommended=p.userHasRecommended}}if(this.featureArticleRequired){this.featuredArticle=this.context.articles.pop()}this.deferredRender()}}})};a.prototype.deferredRender=function(){var b=[].concat(this.context.articles);this.context.pluckFooter=this.child.pluckFooter.processTemplates();this.splitRenderResults({"data":"articles","results":b});this.processTemplates();this.setEventEnabled("onCompleted",true);this.fireEventOnce("onCompleted");this.render()};a.prototype.postRender=function(){if(this.dontShowThisWidget){return}if(this.featureArticleRequired&&this.featuredArticle){document.getElementById(this.parent.context.podFeaturedArticleImgId).src=this.featuredArticle.thumbnailUrl;document.getElementById(this.parent.context.podFeaturedArticleImgId).alt=this.featuredArticle.title;document.getElementById(this.parent.context.podFeaturedArticleImgLinkId).href=this.featuredArticle.articleUrl;document.getElementById(this.parent.context.podFeaturedArticleImgLinkId).title="Article: "+this.featuredArticle.title;document.getElementById(this.parent.context.podFeaturedArticleTitleId).href=this.featuredArticle.articleUrl;document.getElementById(this.parent.context.podFeaturedArticleTitleId).title="Article: "+this.featuredArticle.title;document.getElementById(this.parent.context.podFeaturedArticleTitleId).innerHTML=this.featuredArticle.title;document.getElementById(this.parent.context.podFeaturedArticleSummaryId).innerHTML=this.featuredArticle.summary+" ";document.getElementById(this.parent.context.podFeaturedArticleReadMoreId).href=this.featuredArticle.articleUrl;document.getElementById(this.parent.context.podFeaturedArticleId).style.display="block"}if(document.getElementById(this.context.sponsoredLinkId)&&!this.isOnATopicPage&&this.optionSpecified("layout")!="videoThumbstrip"){if(this.context.customer.sponsoredLinksAllowed&&this.context.customer.customerType=="RevenueShare"){var b=new dmpod.GetSponsoredLinksRequest("1");this.sendRequests(b,function(d){var d=d.Responses[0];if(d.isError){this.setErrorText(responses.message)}else{link=d.links[0];var c="";c+='<div class="podSponsoredLink">';c+='  <div class="podSponsoredLinkHeader">SPONSORED LINK</div>';c+='  <div class="podSponsoredLinkInfo podFLC">';if(this.optionSpecified("showThumbnail")=="true"){c+='    <a class="podSponsoredLinkTitle podHeadline" href="'+link.clickUrl+'" target="podSponsoredLink" title="'+link.title+'">';c+='      <img src="'+link.imageUrl+'" alt="'+link.title+'" />';c+="    </a>"}c+='    <div class="podSponsoredLinkText">';c+='      <a class="podSponsoredLinkTitle podHeadline" href="'+link.clickUrl+'" target="podSponsoredLink">'+link.title+"</a>";c+='      <div class="podSponsoredLinkDescription">'+link.description+"</div>";c+='      <a class="podSponsoredLinkLink podHeadline" href="'+link.clickUrl+'" target="podSponsoredLink">'+link.url+"</a>";c+="    <div>";c+="  <div>";c+="<div> <!-- podSponsoredLink -->";document.getElementById(this.context.sponsoredLinkId).innerHTML=c}})}}}})();(function(){var a=function(){};window["PluckItRelatedTagsWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Related Tags Widget\r\n{/eval}\r\n\r\n{if options.showRelatedTags == \'true\'}\r\n{if contentMatched}\r\n<div class="podRelatedKeywordsWidget"> \r\n  {if (options.direction == \'horizontal\') }\r\n    <span class="podRelatedTagsLabel">${options.stringRelatedTagsSectionTitleHorizontal}</span>\r\n    {for tag in tags}{if (tag_index > 0) },{/if} <a href="${tag.topicPageUrl}" ${linkTarget} >${tag.name}</a>{/for} \r\n  {else}\r\n  <div class="podSectionTitle">${options.stringRelatedTagsSectionTitleVertical}</div> \r\n  <ul>\r\n    {for tag in tags} \r\n      <li><a href="${tag.topicPageUrl}" ${linkTarget} >${tag.name}</a></li>\r\n    {/for}\r\n  </ul> \r\n  {/if}\r\n</div>\r\n{else}\r\n<!-- No Content Matched -->\r\n{/if}\r\n\r\n{if (options.showBottomBorder == \'true\' && contentMatched) }\r\n<hr />\r\n{/if}\r\n{/if}\r\n';a.prototype.preloadImageUrls=[];a.prototype.addRequests=function(){this.autoRender=false;if((this.parent!=null)&&((this.optionSpecified("showRelatedTags")!="true"))){this.dontShowThisWidget=true;return}this.setEventEnabled("onCompleted",false);var d=new dmpod.GetCustomerRequest();this.addRequest(d);this.context.locationUrl=this.help.getLocationUrl(this);var d=null;this.context.articleId=this.optionSpecified("articleId");this.context.tag=this.optionSpecified("tag");this.context.url=this.help.ensureHostUrl(this.optionSpecified("url"),false);if(!this.optionSpecified("articleId")&&!this.optionSpecified("tag")&&!this.optionSpecified("url")){this.context.articleId=this.help.getPrefixedQueryParam("articleId",this.context.locationUrl);if(!this.optionSpecified("articleId")){this.context.tag=this.help.getPrefixedQueryParam("tag",this.context.locationUrl);if(!this.optionSpecified("tag")){this.context.url=this.help.ensureHostUrl(this.help.getPrefixedQueryParam("url",this.context.locationUrl),false)}}}this.maxTries=4;if(this.context.articleId){d=new dmpod.GetTagsForArticleRequest(this.context.articleId)}else{if(this.context.tag){d=new dmpod.GetTagsForTagRequest(this.context.tag);this.maxTries=1}else{if(this.optionSpecified("textId")){var g=this.optionSpecified("textId").split(/,/g);var f="";for(var c=0,e;c<g.length;c++){if(e=document.getElementById(g[c])){f+=e.innerHTML+" "}}f=f.replace(/\n/g," ");d=new dmpod.GetTagsForTextRequest(f)}else{if(this.optionSpecified("textClass")){var g=this.optionSpecified("textClass").split(/,/g);var f="";for(var c=0;c<g.length;c++){for(var h=0,b=this.help.getElementsByClassName(g[c]);h<b.length;h++){f+=b[h].innerHTML+" "}}f=f.replace(/\n/g," ");d=new dmpod.GetTagsForTextRequest(f)}else{if(this.optionSpecified("textKeywords")){d=new dmpod.GetTagsForTextRequest(this.optionSpecified("textKeywords"))}else{d=new dmpod.GetTagsForUrlRequest(this.context.url)}}}}}d.maxResults=this.context.options.numberOfTags;this.deferredRelatedTagsRequest=d};a.prototype.buildContextFromResponses=function(c){if(this.dontShowThisWidget){return}var b=this.help.getErrorMessageFromResponses(c);if(b.length>0){this.setErrorText(b);this.autoRender=true}else{this.context.customer=c[0].customer;this.getRelatedTags(this.maxTries)}};a.prototype.getRelatedTags=function(c,b){c--;if(c<0){if(b){b()}return}this.sendRequests(this.deferredRelatedTagsRequest,function(m){var k=m.Responses[0];if(k.isError){this.setErrorText(k.message)}else{if(k.tags.length==0){this.setTimeout(function(){this.getRelatedTags(c,b)},2000)}else{this.context.contentMatched=k.contentMatched;for(var h=0;h<k.tags.length;h++){var e=k.tags[h];var g={apiKey:this.context.apiKey};if(this.optionSpecified("linkResultsType")=="relatedAdLinks"){g.searchTerm=escape(e.name);g.whichPage="relatedAdLinks"}else{g.tag=escape(e.name);g.whichPage="topicPage"}var d=this.help.buildALinkWorkshop(this,this.optionSpecified("topicPageUrl"),this.context.customer.widgetLandingPageUrl,g);var j=d.url;this.context.linkTarget=d.target;k.tags[h]={"name":e.name,"topicPageUrl":j}}this.context.tags=k.tags;this.splitRenderResults({"data":"tags","results":k.tags});this.processTemplates();this.setEventEnabled("onCompleted",true);this.render(b);if(this.context.splitResults){var f=this.context.tags;this.context.tags=this.context.splitResults;var l=this.processTemplateData(this.template,this.context);if(l){document.getElementById(this.context.options.splitResultsDiv).innerHTML=l}this.context.tags=f}}}})}})();(function(){var a=function(){};window["PluckItRecommendWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Recommend Widget\r\n{/eval}\r\n\r\n<div class="podPropsWidget podButton2"><span class="podButton2_Right">\r\n  {if userHasRecommended == "None"}\r\n  <a href="javascript:WIDGETINSTANCE.recommend(\'positive\')" class="podIconRecommendUp">${positive}</a>\r\n  <a href="javascript:WIDGETINSTANCE.recommend(\'negative\')" class="podIconRecommendDown">${negative}</a>\r\n  {else}\r\n  <span class="podIconRecommendUp">${positive}</span>\r\n  <span class="podIconRecommendDown">${negative}</span>\r\n  {/if}\r\n</span></div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){if((this.parent!=null)&&((this.optionSpecified("showRecommendations")!="true"))){this.dontShowThisWidget=true;this.autoRender=false;return}this.key=new dmpod.PublisherContentKey(this.help.convertUrlToPublisherKeyString(document.location.href));if(this.optionSpecified("commentId")){this.key=new dmpod.CommentKey(this.optionSpecified("commentId"))}else{if(this.optionSpecified("publisherContentId")){this.key=new dmpod.PublisherContentKey(this.optionSpecified("publisherContentId"))}else{if(this.optionSpecified("articleId")){this.key=new dmpod.ArticleKey(this.optionSpecified("articleId"))}else{if(this.help.getPrefixedQueryParam("articleId")){this.key=new dmpod.ArticleKey(this.help.getPrefixedQueryParam("articleId"))}}}}};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var b=new dmpod.GetCustomerRequest();this.addRequest(b);var b=new dmpod.GetReactionSummaryRequest(this.key);this.addRequest(b)};a.prototype.buildContextFromResponses=function(c){var b=this.help.getErrorMessageFromResponses(c);if(b.length>0){this.setErrorText(b)}else{this.setTemplateVars(c[1].reactionSummary)}};a.prototype.setTemplateVars=function(c){this.context.positive=0;this.context.negative=0;for(var b=0,d;d=c.recommendationDetails[b];b++){if(d.category=="Positive"){this.context.positive=d.count}else{if(d.category=="Negative"){this.context.negative=d.count}}}this.context.userHasRecommended=c.userHasRecommended};a.prototype.recommend=function(c,b){request=new dmpod.RecommendRequest(this.key,c);this.sendRequests(request,function(d){d=d.Responses[0];if(d.isError){alert("fail: "+d.message)}else{this.execute();if(typeof(b)!=="undefined"){b()}}})}})();(function(){var a=function(){};window["PluckItReportAbuseWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// ReportAbuse Widget\r\n{/eval}\r\n\r\n<div class="podReportAbuse">\r\n  <a id="${reportAbuseLinkId}" href="javascript:;" {if userHasReportedAbuse} style="display: none"{/if}\r\n    onclick="javascript:WIDGETINSTANCE.displayForm();" class="podIconAbuse">Report Abuse</a>\r\n  <form id="${reportAbuseFormId}" name="${reportAbuseFormId}" class="podReportAbuseForm" style="display: none;" \r\n    action="javascript:WIDGETINSTANCE.reportAbuse(document.forms[\'${reportAbuseFormId}\'].elements[\'abuseReason\'].value);">\r\n    <select name="abuseReason" class="podAbuseReason">\r\n      <option value="ObsceneOrVulgar">Obscene or vulgar</option>\r\n      <option value="HateSpeech">Hate speech</option>\r\n      <option value="PersonalAttack">Personal attack</option>\r\n      <option value="AdvertisingSpam">Advertising spam</option>\r\n      <option value="CopyrightOrPlagiarism">Copyright/plagiarism</option>\r\n      <option value="Other">Other</option>\r\n    </select>\r\n    <a class="podButton2 podSendButton" href="javascript:document.forms[\'${reportAbuseFormId}\'].submit(); "><span class="podButton2_Right">Send</span></a>\r\n    <a class="podButtonCancel" href="javascript:;" onclick="javascript:WIDGETINSTANCE.cancelForm();">Cancel</a>\r\n  </form>\r\n  <div id="${sendingReportId}" class="podWaiting" style="display: none">Sending ...</div>\r\n  <div id="${abuseReportedId}" class="podIconAbuse"{if !userHasReportedAbuse} style="display: none"{/if}>Abuse Reported</div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.context.userHasReportedAbuse=false;if(this.optionSpecified("userHasReportedAbuse")){if(this.context.options.userHasReportedAbuse=="true"){this.context.userHasReportedAbuse=true}}if(!this.optionSpecified("reactionTargetId")){this.autoRender=false}if(!this.optionSpecified("reactionTargetType")){this.autoRender=false}if(this.optionSpecified("reactionTargetType")=="userKey"){this.reactionTargetKey=new dmpod.UserKey(this.context.options.reactionTargetId)}else{this.reactionTargetKey=new dmpod.CommentKey(this.context.options.reactionTargetId)}this.context.reportAbuseFormId="podReportAbuseFormId_"+this.optionSpecified("reactionTargetId")+"_"+this.divSuffix;this.context.reportAbuseLinkId="podReportAbuseLinkId_"+this.optionSpecified("reactionTargetId")+"_"+this.divSuffix;this.context.abuseReportedId="podReportAbuseReportedId_"+this.optionSpecified("reactionTargetId")+"_"+this.divSuffix;this.context.sendingReportId="podSendingReportId_"+this.optionSpecified("reactionTargetId")+"_"+this.divSuffix};a.prototype.reportAbuse=function(d,b){this.help.displayElement(this.context.reportAbuseFormId,"none");this.help.displayElement(this.context.sendingReportId,"block");var c=new dmpod.ReportAbuseOnRequest(this.reactionTargetKey,d);this.sendRequests(c,function(e){e=e.Responses[0];if(e.isError){alert("fail: "+e.message);this.help.swapElements(this.context.sendingReportId,this.context.reportAbuseFormId)}else{this.help.swapElements(this.context.sendingReportId,this.context.abuseReportedId);if(b){b()}}})};a.prototype.displayForm=function(b){this.help.swapElements(this.context.reportAbuseLinkId,this.context.reportAbuseFormId);if(b){b()}};a.prototype.cancelForm=function(b){this.help.swapElements(this.context.reportAbuseFormId,this.context.reportAbuseLinkId);if(b){b()}}})();(function(){var a=function(){};window["PluckItProfileWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Profile Widget\r\n{/eval}\r\n\r\n{if options.showProfile == \'true\'}\r\n<span class="podPersonaWidgetWrapper podGlobal">\r\n\r\n  <div id="${profileId}" class="podPersonaWidget podPersonaRoundedContainer" style="visibility: hidden">\r\n    <a class="podIconClose" href="javascript:WIDGETINSTANCE.resetProfile();"></a>\r\n    <div class="podPersonaBgTL"><div class="podPersonaBgTR"></div></div>\r\n    <div class="podPersonaContent">\r\n      {if user.isOwner}\r\n      <div class="podHorizontalList podButtons podFLC">\r\n        <div class="podItem"><a id="${viewLinkId}" href="javascript:;" onclick="javascript:WIDGETINSTANCE.showContent(\'${viewContentId}\');" class="podButton1Selected podBtnViewProfile"><span class="podButton1_Right">View Profile</span></a></div>\r\n        <div class="podItem"><a id="${editLinkId}" href="javascript:;" onclick="javascript:WIDGETINSTANCE.showContent(\'${editContentId}\');" class="podButton1 podBtnEditProfile"><span class="podButton1_Right">Edit Profile</span></a></div>\r\n        <div class="podItem"><a id="${passLinkId}" href="javascript:;" onclick="javascript:WIDGETINSTANCE.showContent(\'${passContentId}\');" class="podButton1 podBtnPassword " style="display: none"><span class="podButton1_Right">Change Password</span></a></div>\r\n      </div>\r\n      {/if}\r\n\r\n      <div id="${messageBoxId}" class="podMessage" style="display:none"></div>\r\n      \r\n      <div class="podPersonaView" id="${viewContentId}">\r\n      {if user.profileState == \'Blocked\'}\r\n        <div class="podAlert">\r\n        {if user.isOwner}\r\n        Your profile has been blocked by moderators due to objectionable content. \r\n        Please update your personal information and avatar in accordance with the \r\n        acceptable use policy so that your profile can be reactivated.\r\n        {else}\r\n        This profile has been blocked by moderators.\r\n        {/if}\r\n        </div>\r\n      {/if}\r\n        <div class="podPersonaInfo">\r\n          <div class="podPersonaContentBlock">\r\n            {if (options.showAbuse == \'true\') && !user.isOwner}\r\n            <div class="podAbuseContainer" id="reportAbuse">${reportAbuse}</div>\r\n            {/if}\r\n            <div class="podFieldAvatar">\r\n              <img id="${avatarViewImgId}" src="${user.avatarPhotoUrl}" alt="${user.name}" class="podAvatarMedium"/>\r\n            </div>\r\n            <div class="podPersonaData">\r\n              <div id="${viewDisplayNameId}" class="podPageTitle">${user.name}</div>\r\n              {if user.isOwner || user.site}\r\n                <p id="${viewSiteId}" class="podWebsiteUrl">\r\n                  {if user.isOwner && !user.site}\r\n                  <a href="javascript:WIDGETINSTANCE.showContent(\'${editContentId}\');">Add your website here.</a>\r\n                  {else}\r\n                  <a href="${user.site}" rel="external" target="_blank">${user.site}</a>\r\n                  {/if}\r\n                </p>\r\n              {/if}\r\n              {if user.isOwner || user.bio}\r\n              <p id="${viewBioId}" class="podAboutMe">\r\n                {if user.isOwner && !user.bio}\r\n                <a href="javascript:WIDGETINSTANCE.showContent(\'${editContentId}\');">Provide a description of yourself.</a>\r\n                {else}\r\n                ${user.bio}\r\n                {/if}\r\n              </p>\r\n              {/if}\r\n            </div>\r\n            <div class="podActivity podClear">\r\n              <div class="podActivitySummary">\r\n                <div class="podHeadline">Activity Summary</div>\r\n                <div class="podBasicList">\r\n                  <div class="podItem"><span class="podCallout" id="${commentCountId}">{if userSummary.totalComments}${userSummary.totalComments}{else}0{/if}</span> Comments</div>\r\n                  <div class="podItem"><span class="podCallout" id="${recommendationCountId}">{if userSummary.totalRecommendations}${userSummary.totalRecommendations}{else}0{/if}</span> Recommendations</div>\r\n                </div>\r\n              </div>\r\n              <div class="podActivityRecent">\r\n                <div class="podHeadline">Most Recent Activity</div>\r\n                <div class="podBasicList" id="${recentActivityId}">\r\n                  {if userSummary.recentActivities}\r\n                    ${userSummary.recentActivities}\r\n                  {else}\r\n                    <div class="podItem">No recent activity.</div>\r\n                  {/if}\r\n                </div>\r\n              </div>\r\n              <div class="podClear"></div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class="podFormButtons podFLC">\r\n          <div class="podPluck" id="${viewPluckLogo}" style="display: none">\r\n            <a href="http://ondemand.pluck.com/" target="podPluckOnDemand"><img class="podLogo" \r\n              src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/pluck_lightgrey.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238" \r\n              alt="Powered by Pluck" width="72" height="16" /></a>\r\n          </div>\r\n          <a href="javascript:WIDGETINSTANCE.resetProfile();" class="podButton2"><span class="podButton2_Right">Close</span></a>\r\n        </div>\r\n      </div>\r\n      {if user.isOwner}\r\n      <div class="podPersonaEdit" id="${editContentId}" style="display: none;">\r\n        <form class="podForm" name="${editFormName}" action="javascript:WIDGETINSTANCE.editProfile(document.forms[\'${editFormName}\'])">\r\n          <div class="podPersonaContentBlock podFLC">\r\n            <div class="podFormField podFieldAvatar">\r\n              <img src="${user.avatarPhotoUrl}" class="podAvatarMedium" id="${avatarImgId}"/>\r\n              <div class="podAvatarMedium" id="${avatarLoadingId}" style="display: none;">\r\n                <div class="podAvatarLoading">\r\n                  <img src="${avatarLoadingUrl}" />\r\n                </div>\r\n              </div>\r\n              <label>Change Avatar</label>\r\n              <div>${avatarUploaderFlashHTML}</div>\r\n              <div class="podErrorMessage" id="${changeAvatarError}" style="display:none"></div>\r\n            </div>\r\n            <div class="podPersonaData">\r\n              <div class="podFormField">\r\n                <label>My Name <span class="podNote">* Required Field</span></label>\r\n                <input type="text" class="podFormInputText" name="EditProfileDisplayName" value="${user.name}" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                <div class="podErrorMessage" id="${editProfileDisplayNameError}" style="display:none"></div>\r\n              </div>\r\n              <div class="podFormField">\r\n                <label>My Website</label>\r\n                <input type="text" class="podFormInputText" name="EditProfileSite" value="${user.site}" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                <div class="podErrorMessage" id="${editProfileSiteError}" style="display:none"></div>\r\n              </div>\r\n              <div class="podFormField podAboutMe">\r\n                <label>About Me</label>\r\n                <textarea class="podFormInputText" name="EditProfileBio">${user.bio}</textarea>\r\n                <div class="podErrorMessage" id="${editProfileBioError}" style="display:none"></div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class="podFormButtons podFLC">\r\n            <div class="podPluck" id="${editPluckLogo}" style="display: none">\r\n              <a href="http://ondemand.pluck.com/" target="podPluckOnDemand"><img src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/clear.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238"/></a>\r\n            </div>\r\n            <a href="javascript:WIDGETINSTANCE.editProfile(document.forms[\'${editFormName}\']);" class="podButton1"><span class="podButton1_Right">Save Changes</span></a>\r\n            <a href="javascript:WIDGETINSTANCE.resetProfile();" class="podButtonCancel" >Cancel</a>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      <div class="podPersonaChangePassword" id="${passContentId}" style="display: none">\r\n        <form class="podForm" name="${passFormName}" action="javascript:WIDGETINSTANCE.changePassword(document.forms[\'${passFormName}\'])">\r\n          <div class="podPersonaContentBlock podFLC">\r\n            <div class="podFieldAvatar">\r\n              <img id="${avatarChangePasswordImgId}" src="${user.avatarPhotoUrl}" alt="${user.name}" class="podAvatarMedium"/>\r\n            </div>\r\n            <input type="hidden" name="EditProfileUserKey" value="${user.userKey.key}" />\r\n            <div class="podPersonaData">\r\n              <div class="podFormField">\r\n                <label>Current Password</label>\r\n                <input type="password" class="podFormInputText" name="EditProfileOldPassword" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                <div class="podErrorMessage" id="${editCurrentPasswordError}" style="display:none"></div>\r\n              </div>\r\n              <div class="podFormField">\r\n                <label>New Password</label>\r\n                <input type="password" class="podFormInputText" name="EditProfileNewPassword" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                <div class="podErrorMessage" id="${editNewPasswordError}" style="display:none"></div>\r\n              </div>\r\n              <div class="podFormField">\r\n                <label>Verify Password</label>\r\n                <input type="password" class="podFormInputText" name="EditProfilePasswordConfirmation" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                <div class="podErrorMessage" id="${editNewPasswordConfirmError}" style="display:none"></div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class="podFormButtons podFLC">\r\n            <div class="podPluck" id="${passPluckLogo}" style="display: none">\r\n              <a href="http://ondemand.pluck.com/" target="podPluckOnDemand"><img src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/clear.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238"/></a>\r\n            </div>\r\n            <a href="javascript:WIDGETINSTANCE.changePassword(document.forms[\'${passFormName}\']);" class="podButton1"><span class="podButton1_Right">Save Changes</span></a>\r\n            <a href="javascript:WIDGETINSTANCE.resetProfile();" class="podButtonCancel" onclick="">Cancel</a>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      {/if}\r\n    </div>\r\n    <div class="podPersonaBgBL"><div class="podPersonaBgBR"></div></div>\r\n  </div>\r\n\r\n</span>\r\n{/if}\r\n\r\n{if options.showProfile == \'true\'}\r\n<a {if options.showAvatar == \'true\'} class="podAvatarSmallBg podPersonaTrigger" {/if} onclick="javascript:WIDGETINSTANCE.showProfile(0,0);" \r\n  href="javascript:;">\r\n  {if options.showAvatar == \'true\'}\r\n    <img id="${targetId}" src="${user.avatarPhotoUrl}" alt="${user.name}" class="podAvatarSmall"/></a>\r\n  {/if}\r\n  {if options.showUsername == \'true\'}<span id="${targetId}">${user.name}</span></a>{/if}\r\n{else}\r\n<div {if options.showAvatar == \'true\'} class="podAvatarSmallBg" {/if} href="javascript:;">\r\n  {if options.showAvatar == \'true\'}\r\n  <img id="${targetId}" src="${user.avatarPhotoUrl}" alt="${user.name}" class="podAvatarSmall"/></div>\r\n  {/if}\r\n  {if options.showUsername == \'true\'}<span id="${targetId}">${user.name}</span></div>{/if}\r\n{/if}';a.prototype.preloadImageUrls=[];if(typeof PluckItProfileWidgetHander=="undefined"){PluckItProfileWidgetHandler={profileWidgets:new Array()}}a.prototype.nextUploaderId=0;a.prototype.postInit=function(){this.context.activeTab="view";this.context.profileId="podProfile_"+this.divSuffix;this.context.targetId="podTarget_"+this.divSuffix;this.context.viewLinkId="podViewLink_"+this.divSuffix;this.context.editLinkId="podEditLink_"+this.divSuffix;this.context.passLinkId="podPassLink_"+this.divSuffix;this.context.viewContentId="podViewContent_"+this.divSuffix;this.context.editContentId="podEditContent_"+this.divSuffix;this.context.passContentId="podPasswordContent_"+this.divSuffix;this.context.editFormName="podEditForm_"+this.divSuffix;this.context.passFormName="podPassForm_"+this.divSuffix;this.context.viewDisplayNameId="podViewDisplayName_"+this.divSuffix;this.context.viewSiteId="podViewSite_"+this.divSuffix;this.context.viewBioId="podViewBio_"+this.divSuffix;this.context.editProfileDisplayNameError="podEditProfileDisplayNameError_"+this.divSuffix;this.context.editProfileSiteError="podEditProfileSiteError_"+this.divSuffix;this.context.editProfileBioError="podEditProfileBioError_"+this.divSuffix;this.context.editCurrentPasswordError="podEditCurrentPasswordError_"+this.divSuffix;this.context.editNewPasswordError="podEditNewPasswordError_"+this.divSuffix;this.context.editNewPasswordConfirmError="podEditNewPasswordConfirmError_"+this.divSuffix;this.context.avatarViewImgId="podAvatarViewId_"+this.divSuffix;this.context.avatarImgId="podAvatarEditId_"+this.divSuffix;this.context.avatarLoadingId="podAvatarLoadingId_"+this.divSuffix;this.context.avatarChangePasswordImgId="podAvatarChangePasswordId_"+this.divSuffix;this.context.changeAvatarError="podAvatarErrorId_"+this.divSuffix;this.context.avatarUploaderFlashId="podUploadAvatarFlash_"+this.divSuffix;this.context.messageBoxId="podMessageId_"+this.divSuffix;this.context.viewPluckLogo="podViewPluckLogo_"+this.divSuffix;this.context.editPluckLogo="podEditPluckLogo_"+this.divSuffix;this.context.passPluckLogo="podPassPluckLogo_"+this.divSuffix;this.context.avatarLoadingUrl=this.help.resolveAssetsResource("images/spinner_large.gif");this.uploaderId="podAvatarFlashUploader_"+a.prototype.nextUploaderId++;this.context.avatarUploaderFlashHTML=this.service.getFileUploaderHTML(this.context.avatarUploaderFlashId,this.uploaderId,74,34,this.help.resolveAssetsResource("images/podUpload.png"));this.context.commentCountId="podCommentCount_"+this.divSuffix;this.context.recommendationCountId="podRecommendCount_"+this.divSuffix;this.context.recentActivityId="podActivity_"+this.divSuffix;this.uploaderAdded=false;this.context.profileDataHasBeenAltered=false;this.userRecentActivityRequested=false;this.moveSteps=10;this.moveIntervals=10;this.movePower=0.5;this.opacitySteps=10;this.opacityIntervals=30;this.opacityPower=0.5;PluckItProfileWidgetHandler.profileWidgets.push(this);if(typeof PluckItProfileWidgetHandler.profileResponseCallback=="function"){PluckItProfileWidgetHandler.profileResponseCallback()}};a.prototype.addRequests=function(){var b=new dmpod.GetUserRequest();this.addRequest(b);b=new dmpod.GetCustomerRequest();this.addRequest(b)};a.prototype.setUsers=function(c){this.context.loggedInUser=c.loggedInUser;this.context.loggedInUser.isAnonymous=(this.context.loggedInUser.userKey.key=="anonymous");this.context.user=c.targetUser;this.context.user.isAnonymous=(this.context.user.userKey.key=="anonymous");this.context.user.isOwner=(this.context.loggedInUser.userKey.key==this.context.user.userKey.key);if(!this.context.userSummary){this.context.userSummary={}}if(c.recentActivity){var b=new dmpod.UserRecentActivityRequest(new dmpod.UserKey(this.context.user.userKey.key));this.sendRequests(b,function(f){var e=this.help.getErrorMessageFromResponses(f);if(e.length>0){this.setErrorText(e)}else{this.displayActivity(f.Responses[0])}})}var b=new dmpod.VerifyUsersPublisherNetworkRequest("eNom");this.sendRequests(b,function(f){var e=this.help.getErrorMessageFromResponses(f);if(e.length>0){this.setErrorText(e)}else{if(!f.Responses[0].isMember){this.help.displayElement(this.context.passLinkId,"block",3);this.help.displayElement(this.context.viewPluckLogo,"block",3);this.help.displayElement(this.context.editPluckLogo,"block",3);this.help.displayElement(this.context.passPluckLogo,"block",3)}}});if(this.context.loggedInUser.userKey.key==this.context.user.userKey.key){this.context.reportAbuse="<!-- No reporting abuse. -->"}else{var d=this.createWidget(null,"PluckItReportAbuseWidget","reportAbuse","reportAbuse_"+this.divSuffix,{reactionTargetId:this.context.user.userKey.key,reactionTargetType:"userKey",userHasReportedAbuse:"false"});this.context.reportAbuse=d.processTemplate()}this.uploadFile=(function(f,e){return function(){f.service.uploadFile(f.context.avatarUploaderFlashId,"http://pluckit.demandmedia.com/UploadUserAvatar?apiKey=00000000-0000-0000-0000-000000000000&mimetype=image%2fpng&userKey="+e,"Images (*.jpg, *.jpeg, *.gif, *.png, *.bmp)","*.jpg; *.jpeg; *.gif; *.png; *.bmp",f,function(g,j){if(!g){this.help.showError(this.context.changeAvatarError,"There was an error uploading your avatar.")}else{this.help.hideError(this.context.changeAvatarError);this.context.profileDataHasBeenAltered=true;var h=new dmpod.UpdateUserRequest(this.context.loggedInUser.name);h.site=this.context.loggedInUser.site;h.bio=this.context.loggedInUser.bio;this.sendRequests(h,function(k){k=k.Responses[0];if(k.isError){alert("Error updating user: "+k.message)}else{f.sendRequests(new dmpod.GetUserRequest(),function(l){document.getElementById(this.context.avatarLoadingId).style.display="none";document.getElementById(this.context.avatarImgId).style.display="block";k=l.Responses[0];if(k.isError){alert("fail: "+k.message)}else{document.getElementById(this.context.avatarImgId).src=k.user.avatarPhotoUrl;document.getElementById(this.context.avatarViewImgId).src=k.user.avatarPhotoUrl;document.getElementById(this.context.avatarChangePasswordImgId).src=k.user.avatarPhotoUrl;if(document.getElementById(this.context.targetId).tagName.toLowerCase()=="img"){document.getElementById(this.context.targetId).src=k.user.avatarPhotoUrl}this.postMessage("Your avatar has been changed.")}})}})}},function(g){document.getElementById(this.context.avatarLoadingId).style.display="block";document.getElementById(this.context.avatarImgId).style.display="none"})}})(this,this.context.loggedInUser.userKey.key);window[this.uploaderId]=this.uploadFile};a.prototype.buildContextFromResponses=function(c){var b=this.help.getErrorMessageFromResponses(c);if(b.length>0){this.setErrorText(b)}else{if(!c[1].customer.socialMediaEnabled){this.setErrorText("Customer account '"+this.context.apiKey+"' is not enabled for social-media API calls.")}else{this.context.customer=c[1].customer;this.setUsers({loggedInUser:c[0].user,targetUser:c[0].user,recentActivity:true})}}};a.prototype.displayActivity=function(l){var k="";for(var e=0,g=l.recentActivities,f,b;f=g[e];e++){b=f.targetArticle;if(b){var d="";var j="";var h={articleId:b.id,title:b.title,mediaType:b.mediaType};k+='<div class="podItem"><span class="podCallout">'+f.action+"</span> ";if(f.targetUrl!=""){d=this.help.addPrefixedQueryParams(f.targetUrl,h)}else{if(this.optionSpecified("articlePageUrl")!=""){d=this.help.addPrefixedQueryParams(this.optionSpecified("articlePageUrl"),h)}}if(d!=""){k+='<a href="'+d+'" target="PluckPublisher_'+b.publisherId+'">'+b.title+"</a>"}else{k+=b.title}k+="</div>"}}var c;if(c=document.getElementById(this.context.commentCountId)){c.innerHTML=l.totalComments}if(c=document.getElementById(this.context.recommendationCountId)){c.innerHTML=l.totalRecommendations}if(k&&(c=document.getElementById(this.context.recentActivityId))){c.innerHTML=k}this.context.userSummary={recentActivities:k,totalComments:l.totalComments,totalRecommendations:l.totalRecommendations}};a.prototype.showProfile=function(e,t,c){this.profileElement=document.getElementById(this.context.profileId);this.targetElement=document.getElementById(this.context.targetId);if(this.profileElement.style.visibility=="hidden"){this.xOffset=e;this.yOffset=t;this.hideAllProfiles();this.profileElement.style.opacity="0";this.profileElement.style.filter="alpha(opacity=0);";this.profileElement.style.visibility="visible";if(this.context.activeTab=="view"){this.showContent(this.context.viewContentId)}else{if(this.context.activeTab=="edit"){this.showContent(this.context.editContentId)}else{this.showContent(this.context.passContentId)}}var p=this.getPosition(this.targetElement);var h=40;var s=-10+this.xOffset;var n=-50+this.yOffset;var m=20;var f=20;var b=0;var v=0;var q=window.innerWidth;var l=window.innerHeight;if(typeof l==="undefined"){var q=document.documentElement.clientWidth;var l=document.documentElement.clientHeight;if(typeof l==="undefined"){q=0;l=0}}if(q>0){var u=window.pageXOffset||document.documentElement.scrollLeft;var j=p.x-u+this.profileElement.clientWidth;if(j>q){var d=j-q+h+s;b=0-d}else{b=0}}b=b+s;var k=b+m;if(l>0){var r=window.pageYOffset||document.documentElement.scrollTop;var o=p.y-r+this.profileElement.clientHeight;if(o>l){var d=o-l+h+n;v=0-d}else{v=0}}v=v+n;var g=v+f;this.startArray=[b,v];this.endArray=[k,g];this.help.moveElement(this.profileElement,this.startArray,this.endArray,this.moveSteps,this.moveIntervals,this.movePower);this.help.changeOpacity(this.profileElement,0,100,this.opacitySteps,this.opacityIntervals,this.opacityPower);this.help.trackGuiEvent("UserProfile",{"UserKey":this.context.user.userKey.key})}if(c){c()}};a.prototype.hideProfile=function(b){var c=document.getElementById(this.context.profileId);if(!c){return}c.style.visibility="hidden";if(this.context.profileDataHasBeenAltered&&typeof this.help.externalCallback=="function"){this.help.externalCallback();this.context.profileDataHasBeenAltered=false}if(b){b()}};a.prototype.hideAllProfiles=function(b){for(var c=0;c<PluckItProfileWidgetHandler.profileWidgets.length;c++){PluckItProfileWidgetHandler.profileWidgets[c].hideProfile()}if(b){b()}};a.prototype.getPosition=function(c){var d=0,e=0;try{do{d+=c.offsetLeft;e+=c.offsetTop;c=c.offsetParent}while(c)}catch(b){}return{x:d,y:e}};a.prototype.showContent=function(c){var g=document.getElementById(this.context.viewLinkId);var h=document.getElementById(this.context.viewContentId);if(this.context.user.isOwner){var b=document.getElementById(this.context.editLinkId);var f=document.getElementById(this.context.editContentId);var e=document.getElementById(this.context.passLinkId);var d=document.getElementById(this.context.passContentId);g.className="podButton1 podBtnViewProfile";b.className="podButton1 podBtnEditProfile";e.className="podButton1 podBtnPassword"}if(this.context.user.isOwner){h.style.display="none";f.style.display="none";d.style.display="none";if(c==this.context.viewContentId){this.context.activeTab="view";g.className="podButton1Selected podBtnViewProfile"}else{if(c==this.context.editContentId){b.className="podButton1Selected podBtnEditProfile";this.context.activeTab="edit"}else{e.className="podButton1Selected podBtnPassword";this.context.activeTab="pass"}}}this.clearMessage();document.getElementById(c).style.display="block"};a.prototype.editProfile=function(c,b){if(this.validateEditProfile(c)){var d=new dmpod.UpdateUserRequest(c.elements["EditProfileDisplayName"].value);d.site=c.elements["EditProfileSite"].value;d.bio=c.elements["EditProfileBio"].value;this.sendRequests(d,function(e){e=e.Responses[0];if(e.isError){alert("Error updating profile:\n"+e.message)}else{this.postMessage("Your profile has been updated.");this.context.profileDataHasBeenAltered=true;document.getElementById(this.context.viewDisplayNameId).innerHTML=c.elements["EditProfileDisplayName"].value;document.getElementById(this.context.viewSiteId).innerHTML=c.elements["EditProfileSite"].value;this.context.loggedInUser.site=c.elements["EditProfileSite"].value;document.getElementById(this.context.viewBioId).innerHTML=c.elements["EditProfileBio"].value;this.context.loggedInUser.bio=c.elements["EditProfileBio"].value;if(b){b()}}})}};a.prototype.validateEditProfile=function(b){var d=true;var f=b.name.replace(/^[^_]+_/,"");var c=document.getElementById(this.context.editProfileSiteError);var e=b.elements["EditProfileSite"].value;if(e.length&&!/^https?:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_~%&\?\/.=]+$/i.test(e)){this.help.showError(this.context.editProfileSiteError,'Use "http://www.yoursite.com" as your website format.');d=false}else{this.help.hideError(this.context.editProfileSiteError)}var e=b.elements["EditProfileDisplayName"].value;if(!e.length){this.help.showError(this.context.editProfileDisplayNameError,"Please provide a valid name.");d=false}else{if(/[<>]/.test(e)){this.help.showError(this.context.editProfileDisplayNameError,'"<" and ">" characters are not allowed.');d=false}else{this.help.hideError(this.context.editProfileDisplayNameError)}}var e=b.elements["EditProfileBio"].value;if(/[<>]/.test(e)){this.help.showError(this.context.editProfileBioError,'"<" and ">" characters are not allowed.');d=false}else{this.help.hideError(this.context.editProfileBioError)}return d};a.prototype.changePassword=function(b){if(this.validateChangePassword(b)){var c=new dmpod.ChangePasswordRequest(new dmpod.UserKey(b.elements["EditProfileUserKey"].value),b.elements["EditProfileOldPassword"].value,b.elements["EditProfileNewPassword"].value);this.sendRequests(c,function(d){d=d.Responses[0];if(d.isError){if(d.message=="newPassword cannot be null or empty"){this.help.showError(this.context.editNewPasswordError,"Password can not be blank.")}else{this.help.showError(this.context.editCurrentPasswordError,"Your password is not valid.")}}else{this.postMessage("Your password has been changed.");b.elements["EditProfileOldPassword"].value="";b.elements["EditProfileNewPassword"].value="";b.elements["EditProfilePasswordConfirmation"].value=""}})}};a.prototype.validateChangePassword=function(b){var c=true;var d=b.name.replace(/^[^_]+_/,"");if(b.elements["EditProfileOldPassword"].value.length<6){this.help.showError(this.context.editCurrentPasswordError,"Password must be at least 6 characters.");c=false}else{this.help.hideError(this.context.editCurrentPasswordError)}if(b.elements["EditProfileNewPassword"].value.length<6){this.help.showError(this.context.editNewPasswordError,"Password must be at least 6 characters.");c=false}else{if(/[<>]/.test(b.elements["EditProfileNewPassword"].value)){this.help.showError(this.context.editNewPasswordError,'"<" and ">" characters are not allowed.');c=false}else{this.help.hideError(this.context.editNewPasswordError)}}if(b.elements["EditProfileNewPassword"].value!=b.elements["EditProfilePasswordConfirmation"].value){this.help.showError(this.context.editNewPasswordConfirmError,"Passwords do not match");c=false}else{this.help.hideError(this.context.editNewPasswordConfirmError)}return c};a.prototype.resetProfile=function(){this.hideProfile();if(this.context.user.isOwner){this.showContent(this.context.viewContentId)}};a.prototype.clearMessage=function(){var b=document.getElementById(this.context.messageBoxId);b.style.display="none"};a.prototype.postMessage=function(c){var b=document.getElementById(this.context.messageBoxId);b.innerHTML=c;b.style.display="block"}})();(function(){var a=function(){};window["PluckItLoginWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Login Widget\r\n{/eval}\r\n\r\n<div id="PluckLogin" class="podSignupWidget">\r\n  <div class="podRoundedContainer podGlobal {if showLoginOnly} podLoginOnly {/if}">\r\n    <a name="topOfLogin"></a>\r\n    {if user.isAnonymous}\r\n    <div class="podRoundedContainer">\r\n      <div class="podBgTL"><div class="podBgTR"></div></div>\r\n      <div class="podContent">\r\n        {if !showLoginOnly}\r\n        <div class="podPageTitle"><span class="podSignUpTitle">Sign Up / </span>Login</div>\r\n        {/if}\r\n        <div class="podContentBlock">\r\n          <div class="podFLC">\r\n            {if !showLoginOnly}\r\n            <div class="podSignup" id="PluckRegisterForm_${divSuffix}">\r\n              <div class="podSectionTitle">${signupTitleText} &nbsp; \r\n                <span class="podNote">\r\n                  * Required Fields\r\n                </span>\r\n              </div>\r\n              <form class="podForm" name="PluckRegisterForm" action="javascript:WIDGETINSTANCE.register(document.forms[\'PluckRegisterForm\']);">\r\n                <div class="podAlert" id="RegisterError" style="display:none"></div>\r\n                <div class="podFormField">\r\n                  <label>Your Email <span class="podNote">*</span></label>\r\n                  <input type="text" class="podFormInputText" name="Email" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="RegisterEmailError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <label>Your Name <span class="podNote">*</span></label>\r\n                  <input type="text" class="podFormInputText" name="Username" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="RegisterUsernameError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <label>Password <span class="podNote">*</span></label>\r\n                  <input type="password" class="podFormInputText" name="Password" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="RegisterPasswordError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <label>Confirm Password <span class="podNote">*</span></label>\r\n                  <input type="password" class="podFormInputText" name="PasswordConfirm" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="RegisterPasswordConfirmError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <label>Your Birthday <span class="podNote">*</span></label>\r\n                  <div class="podBirtdateContainer">\r\n                    <select name="BirthMonth" onchange="WIDGETINSTANCE.setDays()">\r\n                      <option value="0">01</option>\r\n                      <option value="1">02</option>\r\n                      <option value="2">03</option>\r\n                      <option value="3">04</option>\r\n                      <option value="4">05</option>\r\n                      <option value="5">06</option>\r\n                      <option value="6">07</option>\r\n                      <option value="7">08</option>\r\n                      <option value="8">09</option>\r\n                      <option value="9">10</option>\r\n                      <option value="10">11</option>\r\n                      <option value="11">12</option>\r\n                    </select> /\r\n                    <select name="BirthDay">\r\n                      <option value="1">01</option>\r\n                      <option value="2">02</option>\r\n                      <option value="3">03</option>\r\n                      <option value="4">04</option>\r\n                      <option value="5">05</option>\r\n                      <option value="6">06</option>\r\n                      <option value="7">07</option>\r\n                      <option value="8">08</option>\r\n                      <option value="9">09</option>\r\n                      <option value="10">10</option>\r\n                      <option value="11">11</option>\r\n                      <option value="12">12</option>\r\n                      <option value="13">13</option>\r\n                      <option value="14">14</option>\r\n                      <option value="15">15</option>\r\n                      <option value="16">16</option>\r\n                      <option value="17">17</option>\r\n                      <option value="18">18</option>\r\n                      <option value="19">19</option>\r\n                      <option value="20">20</option>\r\n                      <option value="21">21</option>\r\n                      <option value="22">22</option>\r\n                      <option value="23">23</option>\r\n                      <option value="24">24</option>\r\n                      <option value="25">25</option>\r\n                      <option value="26">26</option>\r\n                      <option value="27">27</option>\r\n                      <option value="28">28</option>\r\n                      <option value="29">29</option>\r\n                      <option value="30">30</option>\r\n                      <option value="31">31</option>\r\n                    </select> /\r\n                    <select name="BirthYear" onchange="WIDGETINSTANCE.setDays()">${yearOptions}</select>\r\n                  </div>\r\n                  <div class="podErrorMessage" id="PluckBirtdateError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <div class="podRegisterCheckbox"><input type="checkbox" name="RegisterTOS" />I agree to the Pluck <a href="http://ondemand.pluck.com/end-user-terms-of-use.aspx" target="termsofuse">terms of use</a> and <a href="http://ondemand.pluck.com/end-user-privacy-policy.aspx" target="privacypolicy">privacy policy</a>.&nbsp;<span class="podNote">*</span></div>\r\n                  <div class="podErrorMessage" id="RegisterTOSError" style="display: none"></div>\r\n                </div>\r\n                <p class="podSignupInstructions">By posting a comment, you are establishing an account with the Pluck on Demand network of websites. Your comment may appear across the network.</p>\r\n                <div class="podFormButtons">\r\n                  <a href="javascript:;" onclick="javascript:WIDGETINSTANCE.register(document.forms[\'PluckRegisterForm\']);"\r\n                    class="podButton1 podBtnSignup"><span class="podButton1_Right">${signupButtonText}</span></a>\r\n                </div>\r\n              </form>\r\n            </div>\r\n            <div class="podLine"></div>\r\n            {/if}\r\n            <div class="podLogin">\r\n              {if !showLoginOnly}\r\n              <div class="podSectionTitle">${loginTitleText}</div>\r\n              {/if}\r\n              <form class="podForm" name="PluckLoginForm" action="javascript:WIDGETINSTANCE.login(document.forms[\'PluckLoginForm\']);">\r\n                <div class="podAlert" id="LoginError" style="display:none"></div>\r\n                <div class="podMessage" id="PluckMessage" style="display:none"></div>\r\n                <div class="podFormField">\r\n                  <label>Email</label>\r\n                  <input type="text" class="podFormInputText" name="Email" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="LoginEmailError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormField">\r\n                  <label>Password</label>\r\n                  <input type="password" class="podFormInputText" name="Password" onKeyPress="return WIDGETINSTANCE.help.submitEnter(this,event)" />\r\n                  <div class="podErrorMessage" id="LoginPasswordError" style="display: none"></div>\r\n                </div>\r\n                <div class="podFormButtons">\r\n                  <a href="javascript:;" onclick="javascript:WIDGETINSTANCE.login(document.forms[\'PluckLoginForm\']);" \r\n                    class="podButton1 podBtnSignup"><span class="podButton1_Right">${loginButtonText}</span></a>\r\n                  <a id="${podForgotPasswordLink}" class="podButtonCancel" \r\n                    href="javascript:WIDGETINSTANCE.resetPassword(document.forms[\'PluckLoginForm\'])" >forgot password?</a>\r\n                  <div id="${podForgotPasswordLinkWaiting}" class="podWaiting" style="display: none;">Creating new password ...</div>\r\n                </div>\r\n              </form>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class="podBgBL"><div class="podBgBR"></div></div>\r\n    </div>\r\n    {else}\r\n    <div class="podLoggedInUser">You are logged in as ${profileUsername}. <a href="javascript:WIDGETINSTANCE.logout();">Logout</a>.</div>\r\n    {/if}\r\n  </div>\r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){};a.prototype.postInit=function(){this.context.podForgotPasswordLink="podForgotPasswordLink_"+this.divSuffix;this.context.podForgotPasswordLinkWaiting="podForgotPasswordLinkWaiting_"+this.divSuffix;this.context.signupTitleText="Want to sign up?";this.context.signupButtonText="Sign Up Now";this.context.loginTitleText="Already have an account?";this.context.loginButtonText="Log In Now";if(this.instanceName=="smartLoginSignup"){this.context.showLoginOnly=true}else{this.context.showLoginOnly=false}};a.prototype.addRequests=function(){var c=new dmpod.GetUserRequest("");this.addRequest(c);var f=new Date(),e=f.getFullYear()-110,d=[];for(var b=f.getFullYear();b>e;b--){if(b==f.getFullYear()-30){d.push('<option value="'+b+'"  selected>'+b+"</option>")}else{d.push('<option value="'+b+'">'+b+"</option>")}}this.context.yearOptions=d.join("\n")};a.prototype.buildContextFromResponses=function(d){var c=this.help.getErrorMessageFromResponses(d);if(c.length>0){this.setErrorText(c)}else{this.context.user=d[0].user;if(this.context.user.userKey.key=="anonymous"){this.context.user.isAnonymous=true}else{this.context.user.isAnonymous=false}if(this.context.options.profileWidget.showProfile=="true"){var b=this.createWidget(null,"PluckItProfileWidget","profileUsername",this.divSuffix,{"showUsername":"true","showProfile":"true"});b.setUsers({loggedInUser:d[0].user,targetUser:d[0].user,recentActivity:true});this.context.profileUsername=b.processTemplate()}else{this.context.profileUsername=this.context.user.name}this.context.divSuffix=this.divSuffix}};a.prototype.setLoginCallback=function(b){this.loginCallback=b};a.prototype.setSignupCallback=function(b){this.signupCallback=b};a.prototype.setLogoutCallback=function(b){this.logoutCallback=b};a.prototype.logout=function(b){this.service.setUserAuthToken(null);if(typeof(this.logoutCallback)!=="undefined"){this.logoutCallback()}else{this.execute(b)}};a.prototype.login=function(c,b){if(this.validateLogin(c)){var d=new dmpod.GetLoginTokenRequest();d.userEmail=c.elements["Email"].value;d.password=c.elements["Password"].value;this.sendRequests([d],function(e){var e=e.Responses[0];if(e.isError){if(e.message=="This account has been locked due to too many failed login attempts."){this.help.showError("LoginError",e.message)}else{this.help.showError("LoginError","The email/password provided are not valid.")}}else{this.service.setUserAuthToken(e.loginToken);if(typeof(this.loginCallback)!=="undefined"){this.loginCallback()}else{this.execute(b)}}})}};a.prototype.validateLogin=function(b){this.help.hideError("LoginError");this.hideMessage();var c=true;if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(b.elements["Email"].value)){this.help.showError("LoginEmailError","Please provide a valid email address.");c=false}else{this.help.hideError("LoginEmailError")}if(b.elements["Password"].value.length<6){this.help.showError("LoginPasswordError","Password must be at least 6 characters.");c=false}else{if(/[<>]/.test(b.elements["Password"].value)){this.help.showError("LoginPasswordError",'"<" and ">" characters are not allowed.');valid=false}else{this.help.hideError("LoginPasswordError")}}if(!c){this.help.showError("LoginError","Please correct the issues noted.")}return c};a.prototype.resetPassword=function(c,b){if(this.validateResetPassword(c)){var d=new dmpod.ResetPasswordRequest();d.userEmail=c.elements["Email"].value;if(document.getElementById(this.context.podForgotPasswordLink)&&document.getElementById(this.context.podForgotPasswordLinkWaiting)){document.getElementById(this.context.podForgotPasswordLink).style.display="none";document.getElementById(this.context.podForgotPasswordLinkWaiting).style.display="block"}this.sendRequests([d],function(e){if(document.getElementById(this.context.podForgotPasswordLink)&&document.getElementById(this.context.podForgotPasswordLinkWaiting)){document.getElementById(this.context.podForgotPasswordLink).style.display="block";document.getElementById(this.context.podForgotPasswordLinkWaiting).style.display="none"}if(e.Responses[0].isError){if(e.Responses[0].message=="Missing or invalid email\r\nParameter name: userEmail"){this.help.showError("LoginError","Please provide your email address.");this.help.showError("LoginEmailError","The email provided cannot be found.")}else{alert(e.Responses[0].message)}}else{this.postMessage("Your password has been reset. Shortly, you will receive your new password at your email address: "+d.userEmail);if(typeof(b)!=="undefined"){b()}}})}};a.prototype.validateResetPassword=function(b){this.help.hideError("LoginError");this.hideMessage();var c=true;if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(b.elements["Email"].value)){this.help.showError("LoginEmailError","To reset your password, we need your valid email address. A password is not required.");c=false}else{this.help.hideError("LoginEmailError")}if(!c){this.help.showError("LoginError","Please provide your email address.")}this.help.hideError("LoginPasswordError");return c};a.prototype.register=function(e,b){if(this.validateRegistration(e)){var f=e.elements["Username"].value,c=e.elements["Email"].value,d=e.elements["Password"].value,g=new Date(e.elements["BirthYear"].value,e.elements["BirthMonth"].value,e.elements["BirthDay"].value).getTime();var h=new dmpod.RegisterUserRequest(f,c,d);h.birthdate=g;this.sendRequests([h],function(j){if(j.Responses[0].isError){alert("Error registering: \n"+j.Responses[0].message)}else{this.login(e,b);if(typeof(this.signupCallback)!=="undefined"){this.signupCallback()}else{this.execute(b)}}})}};a.prototype.validateRegistration=function(b){var c=true;var d=new Date(parseInt(b.elements["BirthYear"].value),parseInt(b.elements["BirthMonth"].value),parseInt(b.elements["BirthDay"].value));var e=new Date();var f=new Date(e.getFullYear()-13,e.getMonth(),e.getDate());if(this.service.getCookieValue("UATY")!=undefined||d>=f){this.service.setCookieValue("UATY","true",1);this.help.showError("RegisterError","We are sorry but you did not qualify to register.");return false}if(!b.elements["Username"].value.length){this.help.showError("RegisterUsernameError","Please provide a valid name for your account.");c=false}else{if(/[<>]/.test(b.elements["Username"].value)){this.help.showError("RegisterUsernameError",'"<" and ">" characters are not allowed.');c=false}else{this.help.hideError("RegisterUsernameError")}}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(b.elements["Email"].value)){this.help.showError("RegisterEmailError","Please provide a valid email address.");c=false}else{this.help.hideError("RegisterEmailError")}if(b.elements["Password"].value.length<6){this.help.showError("RegisterPasswordError","Password must be at least 6 characters.");c=false}else{if(/[<>]/.test(b.elements["Password"].value)){this.help.showError("RegisterPasswordError",'"<" and ">" characters are not allowed.');c=false}else{this.help.hideError("RegisterPasswordError")}}if(b.elements["Password"].value!=b.elements["PasswordConfirm"].value){this.help.showError("RegisterPasswordConfirmError","Passwords do not match.");c=false}else{this.help.hideError("RegisterPasswordConfirmError")}if(!b.elements["RegisterTOS"].checked){this.help.showError("RegisterTOSError","You must agree to the terms of use and privacy policy to register.");c=false}else{this.help.hideError("RegisterTOSError")}if(!c){this.help.showError("RegisterError","Please correct the issues noted.")}return c};a.prototype.setDays=function(){var c=document.forms["PluckRegisterForm"],g,f=c.elements["BirthDay"].value,d=c.elements["BirthMonth"].value,e=c.elements["BirthYear"].value;if(d=="0"||d=="2"||d=="4"||d=="6"||d=="7"||d=="9"||d=="11"){g=31}else{if(d=="3"||d=="5"||d=="8"||d=="10"){g=30}else{if(parseInt(e)%4==0){g=29}else{g=28}}}var b=c.elements["BirthDay"];b.innerHTML="";for(var h=1;h<=g;h++){var j=document.createElement("option");j.value=h;if(h<10){j.innerHTML="0"+h}else{j.innerHTML=h}if(h==f){j.selected=true}b.appendChild(j)}};a.prototype.showForm=function(){this.help.displayElement("PluckRegisterTeaser_"+this.divSuffix,"none");this.help.displayElement("PluckRegisterForm_"+this.divSuffix,"block")};a.prototype.postMessage=function(c){var b=document.getElementById("PluckMessage");if(b){b.innerHTML=c;b.style.display="block"}else{alert(c)}};a.prototype.hideMessage=function(){var b=document.getElementById("PluckMessage");if(b){b.innerHTML="";b.style.display="none"}}})();(function(){var a=function(){};window["PluckItAbuseReportWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Abuse Report Widget\r\n{/eval}\r\n<div class="podAbuseReportStats">\r\n  <table class="podAbuseReportReports" cellspacing="0">\r\n    <tr>\r\n      <th class="podAbuseReportReason">Total Abuse Reports</th>\r\n      <th class="podAbuseReportCount">${abuseReport.abuseReportTotalCount}</th>\r\n    </tr>\r\n    {for detail in abuseReport.abuseReportDetail}\r\n    <tr>\r\n      <td class="podAbuseReportReason">${detail.abuseReason}</td>\r\n      <td class="podAbuseReportCount">${detail.abuseReportCount}</td>\r\n    </tr>\r\n    {/for}\r\n  </table>\r\n  <div>\r\n    {for reporter in abuseReport.abuseReporters}\r\n      {if reporter_index == 0}Reported by: {else}, {/if}\r\n      ${reporter.name}\r\n    {/for}\r\n  </div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.context.abuseReport={abuseReportTotalCount:"Unknown"};if(this.optionSpecified("commentId")){this.context.targetId=this.context.options.commentId}else{this.context.targetId=false}};a.prototype.addRequests=function(){if(this.context.targetId){var b=new dmpod.GetAbuseReportRequest(new dmpod.BaseKey(this.context.targetId,"CommentKey"),this.context.options.maxReportersPerReport);this.addRequest(b)}};a.prototype.setAbuseReport=function(b){this.context.abuseReport=b};a.prototype.buildContextFromResponses=function(b){if(b[0].isError){this.setErrorText(b[0].message)}else{this.setAbuseReport(b[0].abuseReport)}}})();(function(){var a=function(){};window["PluckItCommentWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Comment Widget\r\n{/eval}\r\n\r\n<a name="PluckCommentList"></a>\r\n<div class="podCommentWidget podGlobal">\r\n  <div class="podSectionTitle podIconComments">${commentPage.totalNumberOfComments} Comments</div>\r\n  <div class="podAlert" id="${pluckCommentErrorId}" style="display:none"></div>\r\n  <div class="podCommentList" id="${pluckCommentListId}">\r\n    <div class="podComment" id="${pluckCommentLoadingId}" style="display: none">\r\n      <div>&nbsp;</div>\r\n      <div class="podRoundedContainer2">\r\n        <div class="podBgTL"><div class="podBgTR"></div></div>\r\n        <div class="podContent"><div class="podWaiting">Loading ...</div></div>\r\n        <div class="podBgBL"><div class="podBgBR"></div></div>\r\n      </div>\r\n    </div>\r\n    {for comment in commentPage.comments}\r\n    <div class="podComment">\r\n      <div class="podAvatar">\r\n        ${comment.userProfile}\r\n      </div>\r\n      <div class="podRoundedContainer2">\r\n        <div class="podBgTL"><div class="podBgTR"></div></div>\r\n        <div class="podContent">\r\n          <div id="recommendComment_${comment.recommendCommentUniqueString}">${comment.recommendComment}</div>\r\n          <span class="podHeadline">${comment.profileUsername}</span> \r\n          <span class="podCallout">${comment.postedAtTime|showPrettyDate} at ${comment.postedAtTime|showPrettyTime}</span>\r\n          <p>${comment.body}</p>\r\n          <div class="podCommentAdmin podFLC">\r\n           {if user.canModerate}\r\n            <div class="podCommentAbuseAdmin">\r\n                <a class="podButton2" href="javascript:WIDGETINSTANCE.deleteComment(\'${comment.commentKey.key}\');"><span class="podButton2_Right">Delete Comment</span></a>\r\n                {if comment.reactionSummary.abuseReportCount == \'0\'}\r\n                <span class="podCommentAbuseInfo">No abuse currently reported</span>\r\n                {else}\r\n                  <a class="podButton2" \r\n                  href="javascript:WIDGETINSTANCE.toggleAbuseReport(\'PluckCommentAbuseReportStats_${comment_index}_${divSuffix}\');"><span class="podButton2_Right">${comment.reactionSummary.abuseReportCount} Abuse Reports</span></a>\r\n                  <a class="podButton2" href="javascript:WIDGETINSTANCE.clearAbuse(\'${comment.commentKey.key}\');"><span class="podButton2_Right">Clear Abuse</span></a>\r\n                {/if}\r\n            </div>\r\n            {/if}\r\n            {if options.showAbuse == \'true\'}\r\n              <div id="${comment.reportAbuseId}" class="podReportAbuse" >${comment.reportAbuse}</div>\r\n            {/if}\r\n          </div>\r\n          <div class="podCommentAbuseReportStats" \r\n            id="PluckCommentAbuseReportStats_${comment_index}_${divSuffix}" style="display: none">\r\n            <!-- Abuse Report Stats -->\r\n          </div>\r\n        </div>\r\n        <div class="podBgBL"><div class="podBgBR"></div></div>\r\n      </div>\r\n    </div>\r\n    {/for}\r\n  </div>\r\n  \r\n  {if commentPage.totalNumberOfComments > 0}\r\n  <div class="podPaginiation podFLC">\r\n    {if commentPage.onPage != "0"}\r\n    <a class="podPaginiationPrevious" href="#PluckCommentList" onclick="javascript:WIDGETINSTANCE.showPage(${commentPage.onPage}-1);">&laquo; Newer comments</a>\r\n    {/if}\r\n    <span class="podPaginiationCount">${commentPage.firstItemNumber} - ${commentPage.lastItemNumber} of ${commentPage.totalNumberOfComments} comments</span>\r\n    {if commentPage.onPage != commentPage.lastPage}\r\n    <a class="podPaginiationNext" href="#PluckCommentList" onclick="javascript:WIDGETINSTANCE.showPage(${commentPage.onPage}+1);">Older comments &raquo;</a>\r\n    {/if}\r\n  </div>\r\n  {else}\r\n  <br />\r\n  {/if}\r\n\r\n  <a name="PluckCommentForm"></a>\r\n  <div class="podCommentAdd podRoundedContainer">\r\n    <div class="podBgTL"><div class="podBgTR"></div></div>\r\n    <div class="podContent">\r\n      <div class="podHeadline">\r\n        Your Comment\r\n        {if !user.isAnonymous}\r\n        &nbsp;<span class="podCallout">(You are logged in as ${profileUsername}. <a href="javascript:WIDGETINSTANCE.logout();">Logout</a>.)</span>\r\n        {/if}\r\n      </div>\r\n      <div class="podContentBlock">\r\n        <form action="javascript:WIDGETINSTANCE.comment(document.forms[\'PluckCommentForm\']);" name="PluckCommentForm" class="podCommentForm">\r\n          <textarea name="commentBody" class="podCommentArea"></textarea>\r\n          <input type="hidden" name="articleId" value="${options.articleId}" />\r\n        </form>\r\n      </div>\r\n      {if user.isAnonymous}\r\n      <div id="loginSignup">${loginSignup}</div>\r\n      {else}\r\n      <div class="podFLC">\r\n        <a href="javascript:;" onclick="javascript:WIDGETINSTANCE.comment(document.forms[\'PluckCommentForm\']);" \r\n          class="podButton1 podBtnPostComment"><span class="podButton1_Right">Post my comment</span></a>\r\n      </div>\r\n      {/if}\r\n    </div>\r\n    <div class="podBgBL"><div class="podBgBR"></div></div>\r\n  </div>\r\n  \r\n  ${pluckFooter}\r\n  \r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){if((this.parent!=null)&&((this.optionSpecified("showComments")!="true"))){this.dontShowThisWidget=true;this.autoRender=false;return}this.addChildWidget("PluckItLoginWidget","loginSignup");this.addChildWidget("PluckItRecommendWidget","recommendComment");this.addChildWidget("PluckItFooterWidget","pluckFooter")};a.prototype.postInit=function(){if(this.dontShowThisWidget){return}this.child["loginSignup"].context.signupTitleText="Join the conversation";this.child["loginSignup"].context.signupButtonText="Post my comment";this.child["loginSignup"].context.loginTitleText="Done this before?";this.child["loginSignup"].context.loginButtonText="Post my comment";var b=this;this.child["loginSignup"].setLoginCallback(function(){b.comment(document.forms["PluckCommentForm"])});this.child["loginSignup"].setLogoutCallback(function(){b.execute()});this.context.pluckCommentListId="PluckCommentList_"+this.divSuffix;this.context.pluckCommentErrorId="PluckCommentError_"+this.divSuffix;this.context.pluckCommentLoadingId="PluckCommentLoading_"+this.divSuffix;this.key=new dmpod.PublisherContentKey(this.help.convertUrlToPublisherKeyString(document.location.href));if(this.optionSpecified("publisherContentId")){this.key=new dmpod.PublisherContentKey(this.optionSpecified("publisherContentId"))}else{if(this.optionSpecified("articleId")){this.key=new dmpod.ArticleKey(this.optionSpecified("articleId"))}else{if(this.help.getPrefixedQueryParam("articleId")){this.key=new dmpod.ArticleKey(this.help.getPrefixedQueryParam("articleId"))}}}};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var b=new dmpod.GetUserRequest("");this.addRequest(b);b=new dmpod.GetCommentPageRequest(this.key,this.context.options.commentNumberPerPage,this.context.options.commentOnPage,this.context.options.commentSort);this.addRequest(b);b=new dmpod.GetCustomerRequest();this.addRequest(b)};a.prototype.buildContextFromResponses=function(p){var c=this.help.getErrorMessageFromResponses(p);if(c.length>0){this.setErrorText(c);this.dontShowThisWidget=true}else{this.context.user=p[0].user;if(this.context.user.userKey.key=="anonymous"){this.context.user.isAnonymous=true}else{this.context.user.isAnonymous=false}this.context.customer=p[2].customer;this.context.user.canModerate=false;if(this.context.user.userSecurityRole=="PluckAdmin"){this.context.user.canModerate=true}if(this.context.user.userSecurityRole=="CustomerAdmin"&&this.context.customer.userContentMode=="Local"){this.context.user.canModerate=true}this.context.commentPage=p[1].commentPage;var k=this.context.commentPage;this.context.commentPage.firstItemNumber=(k.onPage*k.numberPerPage)+1;if(k.totalNumberOfComments==0){this.context.commentPage.firstItemNumber=0}this.context.commentPage.lastItemNumber=(k.onPage*k.numberPerPage)+k.numberPerPage;if(this.context.commentPage.lastItemNumber>k.totalNumberOfComments){this.context.commentPage.lastItemNumber=k.totalNumberOfComments}this.context.commentPage.lastPage=Math.max(0,Math.ceil(k.totalNumberOfComments/k.numberPerPage)-1);if(!this.optionSpecified("showAvatar")){this.context.options.showAvatar="true"}if(!this.optionSpecified("showProfile")){this.context.options.showProfile="true"}if(this.context.options.profileWidget.showProfile=="true"){var l=this.createWidget(null,"PluckItProfileWidget","profileUsername",this.divSuffix,{"showUsername":"true","showProfile":"true"});l.setUsers({loggedInUser:p[0].user,targetUser:p[0].user,recentActivity:false});this.context.profileUsername=l.processTemplate()}else{this.context.profileUsername=this.context.user.name}this.context.divSuffix=this.divSuffix;var n=this.divSuffix+"_"+this.service.uniqueID()+"_";this.abuseReportElementIds=new Array();this.abuseReportRequests=new Array();var g=0;var h=new Array();var f=new Array();for(var m=0,e=p[1].commentPage.comments,o,b,l;o=e[m];m++){if(this.optionSpecified("showRecommendations")=="true"){o.recommendCommentUniqueString=n+m;recommendComment=this.createWidget(null,"PluckItRecommendWidget","recommendComment",o.recommendCommentUniqueString,{commentId:o.commentKey.key});recommendComment.setTemplateVars(o.reactionSummary);o.recommendComment=recommendComment.processTemplate()}else{o.recommendComment=""}if(this.optionSpecified("showProfile")=="true"){l=this.createWidget(null,"PluckItProfileWidget","profileUsername",n+"_"+m,{showProfile:this.optionSpecified("showProfile"),showUsername:"true",articlePageUrl:this.optionSpecified("articlePageUrl"),showAbuse:(this.optionSpecified("showAbuse")||"true")});l.setUsers({loggedInUser:p[0].user,targetUser:o.author,recentActivity:false});o.profileUsername=l.processTemplate();f.push(new dmpod.UserRecentActivityRequest(new dmpod.UserKey(o.author.userKey.key)))}else{o.profileUsername=o.author.name}h.push(l);if(this.optionSpecified("showAvatar")=="true"){o.userProfile='<img src="'+o.author.avatarPhotoUrl+'" alt="'+o.author.name+'" class="podAvatarSmall"/>';if(this.optionSpecified("showProfile")=="true"){o.userProfile='<a class="podAvatarSmallBg" href="javascript:;" onclick="javascript:window[\'profileUsername_'+n+"_"+m+"'].showProfile(-75,10);\">"+o.userProfile+"</a>"}else{o.userProfile='<div class="podAvatarSmallBg">'+o.userProfile+"</div>"}}else{o.userProfile="<!-- No avatar. -->"}o.reportAbuseId="podReportAbuse_"+this.divSuffix+o.commentKey.key;var r="false";if(o.reactionSummary.userHasReportedAbuse){r="true"}var q=this.createWidget(null,"PluckItReportAbuseWidget","reportAbuse",o.reportAbuseId,{reactionTargetId:o.commentKey.key,reactionTargetType:"commentKey",userHasReportedAbuse:r});q.onAbuseDisplay=function(){this.context.abuseVisible=true};q.onAbuseHide=function(){this.context.abuseVisible=false};o.reportAbuse=q.processTemplate();if(o.reactionSummary.abuseReportCount>0&&this.context.user.canModerate){var s=new dmpod.GetAbuseReportRequest(new dmpod.BaseKey(o.commentKey.key,"CommentKey"),"5");this.abuseReportRequests.push(s);this.abuseReportElementIds[g++]="PluckCommentAbuseReportStats_"+m+"_"+this.divSuffix}}if(this.optionSpecified("showProfile")=="true"){this.sendRequests(f,function(t){p=t.Responses;for(var j=0;j<p.length;j++){var t=p[j];if(t.isError){alert("fail: "+t.message)}else{h[j].displayActivity(t)}}})}}var d=this.help;this.help.externalCallback=(function(j){return function(){j.execute();d.externalCallback=null}})(this)};a.prototype.postRender=function(){if(this.dontShowThisWidget){return}if(this.abuseReportElementIds.length>0&&this.context.user.canModerate){this.sendRequests(this.abuseReportRequests,function(d){var e=d.Responses;for(var b=0;b<e.length;b++){var d=e[b];if(d.isError){alert("fail: "+d.message)}else{var c=this.createWidget(null,"PluckItAbuseReportWidget","abuseReportWidget",this.divSuffix,{});c.setAbuseReport(d.abuseReport);document.getElementById(this.abuseReportElementIds[b]).innerHTML=c.processTemplate()}}})}};a.prototype.comment=function(c){if(c.elements["commentBody"].value==""){this.execute()}else{document.location.href=this.help.addAnchor(document.location.href,"PluckCommentList");document.getElementById(this.context.pluckCommentLoadingId).style.display="block";var b=this.help.cleanInput(c.elements["commentBody"].value);var d=new dmpod.CommentOnRequest(this.key,b);this.sendRequests(d,function(e){e=e.Responses[0];if(e.isError){if(e.message=="Blocked by flood control"){document.getElementById(this.context.pluckCommentErrorId).innerHTML="To keep this site spam-free, comments may not be submitted more frequently than once every 30 seconds. Please wait a few more seconds before resubmitting your comment. Thanks.";document.getElementById(this.context.pluckCommentErrorId).style.display="block";document.getElementById(this.context.pluckCommentLoadingId).style.display="none"}else{if(e.message=="User is not authorized to perform this action"){}else{alert("fail: "+e.message)}}}else{this.execute()}})}};a.prototype.reportAbuse=function(b){var c=new dmpod.ReportAbuseOnRequest(new dmpod.CommentKey(b.elements["commentKey"].value),b.elements["abuseReason"].value);this.sendRequests(c,function(d){d=d.Responses[0];if(d.isError){alert("fail: "+d.message)}else{this.execute()}})};a.prototype.deleteComment=function(c,b){var d=window.confirm("Are you sure you want to delete this comment?");if(d){var e=new dmpod.DeleteContentActionRequest(new dmpod.CommentKey(c));this.sendRequests(e,function(f){f=f.Responses[0];if(f.isError){alert("fail: "+f.message)}else{this.execute(b)}})}};a.prototype.clearAbuse=function(b){if(window.confirm("Are you sure you want to remove abuse from this item?")){var c=new dmpod.ClearAbuseReportRequest(new dmpod.CommentKey(b));this.sendRequests(c,function(d){d=d.Responses[0];if(d.isError){alert("fail: "+d.message)}else{this.execute()}})}};a.prototype.showPage=function(c,b){this.context.options.commentOnPage=c;this.execute(b)};a.prototype.toggleAbuseReport=function(b){if(document.getElementById(b).style.display=="block"){this.help.displayElement(b,"none")}else{this.help.displayElement(b,"block")}};a.prototype.logout=function(b){this.child["loginSignup"].logout(b)}})();(function(){var a=function(){};window["PluckItArticleWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Article Widget\r\n{/eval}\r\n\r\n<div id="podArticleWidget_preloadHtml" style="display:none">\r\n  <div class="podArticleWidget">\r\n    <div class="podArticleInfo">\r\n      <div class="podPageTitle">${articleTitle}</div>\r\n    </div>\r\n    <div class="podLoadingMessage podGlobal">\r\n      <div class="podContent">\r\n        <div class="podWaitingMedium">Loading ...</div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div class="podArticleWidget">\r\n  <div class="podArticleInfo podFLC">\r\n    {if (article.mediaType != \'Video\') }\r\n    <img class="podArticleThumbnail" src="${article.thumbnailUrl}" alt="${article.title}" />\r\n    {/if}\r\n    <div class="podPageTitle">${article.title}</div>\r\n    {if (article.mediaType != \'Video\') }\r\n    <span class="podCallout">${article.byline}</span>\r\n    {/if}\r\n  </div>\r\n\r\n  {if (article.mediaType == \'Video\') }\r\n  <div class="podArticleVideo">\r\n    <div class="podMediaPlayer">\r\n      ${article.mediaPlayerHtml}\r\n    </div>\r\n  </div>\r\n  {/if}\r\n\r\n  <div>\r\n    {if ((options.articleLength == \'summary\') || (article.mediaType == \'Video\'))}\r\n      {if (konteraAds)}<div class="KonaBody">{/if}\r\n      ${article.summary}\r\n      {if (konteraAds)}</div>{/if} \r\n      {if (article.mediaType != \'Video\')}\r\n        <a href="${articlePageUrl}" class="podReadMore">Read More &raquo;</a>\r\n      {/if}\r\n    {else}\r\n      <div class="podAd300x250">\r\n        ${adSrc300x250}\r\n      </div>\r\n      {if (konteraAds)}<div class="KonaBody">{/if}\r\n      ${article.content}\r\n      {if (konteraAds)}</div>{/if}\r\n    {/if}\r\n  </div>\r\n  \r\n  <div class="podArticleAttribution">${article.footerAttribution}</div>\r\n  \r\n  <div id="relatedTags">\r\n    ${relatedTags}\r\n  </div>\r\n\r\n  {if (article.mediaType != \'Video\') }\r\n  {if options.adWidth == \'narrow\'}\r\n  <div class="podAd300x250b">\r\n    ${adSrc300x250b}\r\n  </div>\r\n  {else}\r\n  <div class="podAd728x90">\r\n    ${adSrc728x90}\r\n  </div>\r\n  {/if}\r\n  {/if}\r\n  {if options.showComments != \'false\' || options.showRecommendations != \'false\' || user.canBlockArticles || customer.publisherNetwork != \'eNom\'}\r\n  <div class="podArticleUtils podGlobal podFLC">\r\n  {/if}\r\n    {if options.showComments != \'false\'}\r\n    {if options.showReadCommentsLink != \'false\'}\r\n    <a href="#PluckComment" class="podIconComments">Read Comments</a>\r\n    {/if}\r\n    <a href="#PluckCommentForm" class="podIconAddComments">Add Comment</a>\r\n    {/if}\r\n    {if options.showRecommendations != \'false\'}\r\n    <div id="recommendArticle">\r\n      ${recommendArticle}\r\n    </div>\r\n    {/if}\r\n    {if user.canBlockArticles}\r\n    <div id="${podBlockArticleButtonId}" class="podButton2">\r\n      <a href="javascript:WIDGETINSTANCE.blockArticle(\'${article.id}\');"><span class="podButton2_Right">Block Article</span></a>\r\n    </div>\r\n    <div id="${podBlockArticleMessageId}" class="podMessage" style="display: none">Article blocked.</div>\r\n    {/if}\r\n    {if 999 < 0 && user.canBlockArticles}\r\n    <div class="podArticleTweet">\r\n      {if authorized}\r\n      <label>&nbsp;</label>\r\n      <select id="podArticleTweetTime">\r\n        <option value="0">immediately</option>\r\n        <option value="30000">in 30 seconds</option>\r\n        <option value="60000">in 1 minute</option>\r\n        <option value="300000">in 5 minutes</option>\r\n        <option value="600000">in 10 minutes</option>\r\n      </select>\r\n      <div class="podButton2"><a \r\n        href="javascript:WIDGETINSTANCE.tweetArticle(\'${article.id}\', document.getElementById(\'podArticleTweetTime\').value);"><span \r\n        class="podButton2_Right">Tweet Article</span></a></div>\r\n      {else}\r\n      <a class="podTwitterSignIn" href="${authorizeUrl}"></a>\r\n      {/if}\r\n    </div>\r\n    {/if}\r\n    {if customer.publisherNetwork != \'eNom\'}\r\n    <a href="http://ondemand.pluck.com/" class="podPluck" target="podPluckOnDemand"><img class="podLogo" \r\n      src="http://cdn-docs.pluckit.pluck.com/assets/v1/images/pluck_white_distro.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238" alt="Powered by Pluck" width="72" height="26" /></a>\r\n    {/if}\r\n  {if options.showComments == \'true\' || options.showRecommendations == \'true\' || user.canBlockArticles == \'true\' || customer.publisherNetwork != \'eNom\'}\r\n  </div>\r\n  {/if}\r\n</div>\r\n{if showLegalAndPrivacyLink }\r\n<a class="podLegalAndPrivacyLink" href="http://ondemand.pluck.com/legal.aspx{if customer.publisherNetwork == \'eNom\'}?partner=enom{/if}" target="termsofuse">{if customer.publisherNetwork != \'eNom\'}Pluck{/if} Legal and Privacy</a>\r\n{/if}\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){this.context.locationUrl=this.help.getLocationUrl(this);if(!this.optionSpecified("articleId")){this.context.articleId=this.help.getPrefixedQueryParam("articleId",this.context.locationUrl)}else{this.context.articleId=this.context.options.articleId}if(this.context.articleId==""){this.dontShowThisWidget=true;this.autoRender=false;return}this.context.articleTitle=this.help.getPrefixedQueryParam("title",this.context.locationUrl);if(this.context.options.relatedTags.showRelatedTags=="true"){this.addChildWidget("PluckItRelatedTagsWidget","relatedTags")}else{this.context.relatedTags=""}if(this.context.options.recommendArticle.showRecommendations=="true"){this.addChildWidget("PluckItRecommendWidget","recommendArticle")}else{this.context.recommendArticle=""}};a.prototype.postInit=function(){if(this.dontShowThisWidget){return}if(this.parent==null){this.context.showLegalAndPrivacyLink=true}else{this.context.showLegalAndPrivacyLink=false}this.context.podBlockArticleButtonId="podBlockArticleButtonId_"+this.divSuffix;this.context.podBlockArticleMessageId="podBlockArticleMessageId_"+this.divSuffix};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var c=new dmpod.GetArticleRequest(this.context.articleId);this.addRequest(c);var c=new dmpod.GetUserRequest("");this.addRequest(c);c=new dmpod.GetCustomerRequest();this.addRequest(c);var d;if(this.optionSpecified("adWidth")=="narrow"){d=new Array(new dmpod.AdDescription(300,250),new dmpod.AdDescription(300,250))}else{d=new Array(new dmpod.AdDescription(300,250),new dmpod.AdDescription(728,90))}var b=new dmpod.GetAdsForArticleRequest(this.context.articleId,d);this.addRequest(b);c=new dmpod.HasAuthorizedExternalSiteRequest("Twitter");c.redirectUrl=document.location.href;this.addRequest(c)};a.prototype.buildContextFromResponses=function(g){var d=this.help.getErrorMessageFromResponses(g);if(d.length>0){this.setErrorText(d)}else{this.context.article=g[0].article;article=this.context.article;this.context.customer=g[2].customer;var e="";if(article.sourceLogoUrl!=""){e+='<img src="'+article.sourceLogoUrl+'" alt="'+article.sourceName+'" class="podArticlePublisherLogo" />'}else{e+=article.author}if(article.sourceName=="BlogBurst.com"&&article.url!=""){e='<a target="PluckPublisher_'+article.publisherId+'" href="'+article.url+'">'+e+"</a>"}else{if(article.sourceLogoUrl!=""&&article.sourceUrl!=""){e='<a target="PluckPublisher_'+article.publisherId+'" href="'+article.sourceUrl+'">'+e+"</a>"}}this.context.article.byline=e;var c="";c+=article.title;if(article.url!=""){c='<a target="PluckPublisher_'+article.publisherId+'" href="'+article.url+'">'+c+"</a>"}if(article.sourceName=="BlogBurst.com"){c+=' syndicated by <a target="PluckPublisher_'+article.publisherId+'" href="http://www.blogburst.com/">BlogBurst</a>.'}else{if(article.mediaType=="Text"){c+=" article by "}else{c+=" video by "}c+=article.attributionFooter}this.context.article.footerAttribution=c;this.context.user=g[1].user;this.context.user.canModerate=false;this.context.user.canBlockArticles=false;if(this.context.user.userSecurityRole=="PluckAdmin"){this.context.user.canModerate=true;this.context.user.canBlockArticles=true}if(this.context.user.userSecurityRole=="CustomerAdmin"){this.context.user.canBlockArticles=true;if(g[2].customer.userContentMode=="Local"){this.context.user.canModerate=true}}if(!g[2].customer.socialMediaEnabled){this.context.options.showComments="false";this.context.options.showRecommendations="false"}this.context.konteraAds=g[2].customer.inlineTextAdsAllowed&&(g[2].customer.customerType=="RevenueShare")&&article.sourceAllowsInlineTextAds;var b={articleId:this.context.article.id};var f=this.help.buildALinkWorkshop(this,this.optionSpecified("articlePageUrl"),this.context.customer.widgetLandingPageUrl,b);this.context.articlePageUrl=f.url;this.context.adSrc300x250=g[3].advertisements[0].source;this.context.adSrc300x250b=g[3].advertisements[1].source;this.context.adSrc728x90=g[3].advertisements[1].source;this.context.authorized=g[4].authorized;this.context.authorizeUrl=g[4].authorizeUrl}};a.prototype.blockArticle=function(c,b){var e=window.confirm("Are you sure you want to block this article?");if(e){var d=new dmpod.BlockArticleRequest(new dmpod.ArticleKey(c));this.sendRequests(d,function(f){f=f.Responses[0];if(f.isError){alert("fail: "+f.message)}else{this.help.swapElements(this.context.podBlockArticleButtonId,this.context.podBlockArticleMessageId);if(b){b()}}})}};a.prototype.getPreloadHtml=function(){var d="";if(this.context.articleId!=""){var b=document.createElement("DIV");b.innerHTML=this.template;var e=b.getElementsByTagName("DIV");for(var c=0;c<e.length;c++){if(e[c].id=="podArticleWidget_preloadHtml"){d=e[c].innerHTML;break}}this.context.articleTitle=this.help.getPrefixedQueryParam("title",this.context.locationUrl);if(this.context.articleTitle==null){this.context.articleTitle="&nbsp;"}else{this.context.articleTitle=this.context.articleTitle.replace(/_/g," ")}d=PodTrimPath.parseTemplate(d).process(this.context,{throwExceptions:true})}return d};a.prototype.tweetArticle=function(e,b,f){var d=new dmpod.TweetArticleRequest(e);var g=parseInt(b);var c=(g==0)?g:new Date().getTime()+g;d.tweetSchedule=c;this.sendRequests(d,function(h){h=h.Responses[0];if(h.isError){alert("Error: "+h.message)}else{alert("Your tweet has been sent.");if(f){f()}}})}})();(function(){var a=function(){};window["PluckItUserDiscoveryWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Pluck User Discovery Widget\r\n{/eval}\r\n<div class="podRecentCommentersWidget podDiscoveryWidget podRoundedContainer2 podContainerHeader podGlobal">\r\n  <div class="podBgTL"><div class="podBgTR podSectionTitle">${sectionTitle}</div></div>\r\n  <div class="podContent">\r\n    {if showTabs}\r\n    <div class="podTabs podHorizontalList podFLC">\r\n      {if options.showRecentRecommendersTab == "true"}\r\n      <div class="pod${tabCount}Tab podTab{if currentTab == \'RecentRecommenders\'} podSelected{/if}">\r\n        <a class="podHeadline" href="javascript:WIDGETINSTANCE.discoverUsers(\'RecentRecommenders\');">Recommenders</a>\r\n      </div>\r\n      {/if}\r\n      {if options.showRecentCommentersTab == "true"}\r\n      <div class="pod${tabCount}Tab podTab{if currentTab == \'RecentCommenters\'} podSelected{/if}">\r\n        <a class="podHeadline" href="javascript:WIDGETINSTANCE.discoverUsers(\'RecentCommenters\');">Commenters</a>\r\n      </div>\r\n      {/if}\r\n    </div>\r\n    {/if}\r\n    <div class="podItems podHorizontalList podFLC">\r\n      {for user in users}\r\n      <div class="podItem">\r\n        ${user.avatar}\r\n      </div>\r\n      {/for}\r\n    </div>\r\n    ${pluckFooter}\r\n  </div>\r\n  <div class="podBgBL"><div class="podBgBR"></div></div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){if((this.parent!=null)&&(this.optionSpecified("showUserDiscovery")!="true")){this.dontShowThisWidget=true;this.autoRender=false;return}this.addChildWidget("PluckItFooterWidget","pluckFooter")};a.prototype.postInit=function(){if(this.dontShowThisWidget){return}if(this.optionSpecified("showProfile")=="false"){this.context.showProfile="false"}else{this.context.showProfile="true"}this.context.sectionTitle="User Activity";this.context.tabCount="0";if(this.optionSpecified("showRecentCommentersTab")=="true"){this.context.tabCount++}if(this.optionSpecified("showRecentRecommendersTab")=="true"){this.context.tabCount++}if(this.context.tabCount>1){this.context.showTabs=true}else{this.context.showTabs=false}if(typeof this.context.currentTab==="undefined"){this.context.currentTab=this.optionSpecified("defaultTab")}};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var c;switch(this.context.currentTab){case"RecentRecommenders":c="RecentlyAddedRecommendation";if(!this.context.showTabs){this.context.sectionTitle="Recent Recommenders"}break;case"RecentCommenters":c="RecentlyAddedComment";if(!this.context.showTabs){this.context.sectionTitle="Recent Commenters"}break;default:c="RecentlyAddedComment";if(!this.context.showTabs){this.context.sectionTitle="Recent Commenters"}break}var b=new dmpod.GetUserRequest("");this.addRequest(b);b=new dmpod.DiscoverUsersRequest(c,this.context.options.age);b.maxResults=this.context.options.numberOfUsers;this.addRequest(b)};a.prototype.buildContextFromResponses=function(h){var d=this.help.getErrorMessageFromResponses(h);if(d.length>0){this.setErrorText(d)}else{this.context.users=h[1].users;var e=this.divSuffix+"_"+this.service.uniqueID()+"_";var f=new Array();var c=new Array();for(var b=0,g;b<this.context.users.length;b++){g=this.createWidget(null,"PluckItProfileWidget","profile",e+b,{"showProfile":this.optionSpecified("showProfile"),"showAvatar":"true","showUsername":"false",showAbuse:"true"});g.setUsers({loggedInUser:h[0].user,targetUser:this.context.users[b],recentActivity:false});this.context.users[b].avatar=g.processTemplate();if(this.optionSpecified("showProfile")=="true"){c.push(new dmpod.UserRecentActivityRequest(new dmpod.UserKey(this.context.users[b].userKey.key)))}f.push(g)}if(this.optionSpecified("showProfile")=="true"){this.sendRequests(c,function(k){h=k.Responses;for(var j=0;j<h.length;j++){var k=h[j];if(k.isError){alert("fail: "+k.message)}else{f[j].displayActivity(k)}}})}}};a.prototype.discoverUsers=function(b){this.context.currentTab=b;this.execute()}})();(function(){var a=function(){};window["PluckItArticlePageWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Article Page Widget - One Column\r\n{/eval}\r\n\r\n<div class="podArticlePageWidget">\r\n  <div class="podPage">\r\n  {if options.articleId == \'\'}\r\n    <div id="relatedArticlesOnly">${relatedArticlesOnly}</div>\r\n  {else}\r\n    <div id="featuredArticle">${featuredArticle}</div>\r\n    <div id="articleComments">${articleComments}</div>\r\n    <hr>\r\n    <div id="relatedArticles">${relatedArticles}</div>\r\n  {/if}\r\n  </div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.layouts=[];a.prototype.layouts["multiColumn"]='{eval}\r\n// Article Page Widget - Multi-Column\r\n{/eval}\r\n\r\n<div class="podArticlePageWidget">\r\n  <div class="podPage podFLC">\r\n  {if options.articleId == \'\'}\r\n    <div id="relatedArticlesOnly">${relatedArticlesOnly}</div>\r\n  {else}\r\n    <div class="podMainContainer">\r\n      <div class="podMain">\r\n        <div id="featuredArticle">${featuredArticle}</div>\r\n        <div id="articleComments">\r\n          ${articleComments}\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <div class="podRight">\r\n      <div id="relatedArticles">${relatedArticles}</div> \r\n      {if userDiscovery != \'\'}\r\n      <hr>\r\n      {/if}\r\n      ${userDiscovery}\r\n    </div>\r\n  {/if}\r\n  </div>\r\n</div>\r\n';a.prototype.layouts["oneColumn"]='{eval}\r\n// Article Page Widget - One Column\r\n{/eval}\r\n\r\n<div class="podArticlePageWidget">\r\n  <div class="podPage">\r\n  {if options.articleId == \'\'}\r\n    <div id="relatedArticlesOnly">${relatedArticlesOnly}</div>\r\n  {else}\r\n    <div id="featuredArticle">${featuredArticle}</div>\r\n    <div id="articleComments">${articleComments}</div>\r\n    <hr>\r\n    <div id="relatedArticles">${relatedArticles}</div>\r\n  {/if}\r\n  </div>\r\n</div>\r\n';a.prototype.layouts["splitArticles"]='{eval}\r\n// Article Page Widget - Split Articles\r\n{/eval}\r\n\r\n<div class="podArticlePageWidget">\r\n  <div class="podPage">\r\n  {if options.articleId == \'\'}\r\n    <div id="relatedArticlesOnly">${relatedArticlesOnly}</div>\r\n  {else}\r\n    <div id="featuredArticle">${featuredArticle}</div>\r\n    <div id="articleComments">${articleComments}</div>\r\n    <div class="podFLC">\r\n      <div class="podLeftHalf">\r\n      <div id="relatedTextArticles">${relatedTextArticles}</div>\r\n      </div>\r\n      <div class="podRightHalf">\r\n      <div id="relatedVideoArticles">${relatedVideoArticles}</div>\r\n      </div>\r\n    </div>\r\n    ${pluckFooter}\r\n  {/if}\r\n  </div>\r\n</div>';a.prototype.addChildWidgets=function(){this.context.locationUrl=this.help.getLocationUrl(this);if(!this.optionSpecified("articleId")){this.context.options.articleId=this.help.getPrefixedQueryParam("articleId",this.context.locationUrl);if(!this.optionSpecified("articleId")){this.context.options.articleId=""}}if(this.context.options.articleId==""){this.addChildWidget("PluckItRelatedContentWidget","relatedArticlesOnly")}else{if(this.optionSpecified("layout")=="splitArticles"){this.context.options.relatedTextArticles.contentType="Text";this.addChildWidget("PluckItRelatedContentWidget","relatedTextArticles");this.context.options.relatedVideoArticles.contentType="Video";this.addChildWidget("PluckItRelatedContentWidget","relatedVideoArticles")}else{this.addChildWidget("PluckItRelatedContentWidget","relatedArticles")}this.addChildWidget("PluckItArticleWidget","featuredArticle");if(this.context.options.articleComments.showComments=="true"){this.context.options.articleComments.pluckFooter.showLogo="false";this.context.options.articleComments.pluckFooter.showLegalPrivacyLink="true";this.addChildWidget("PluckItCommentWidget","articleComments")}else{this.context.articleComments="<!-- no comments requested -->"}if(this.optionSpecified("layout")=="multiColumn"){this.context.options.userDiscovery.pluckFooter.showFooter="false";this.addChildWidget("PluckItUserDiscoveryWidget","userDiscovery")}if(this.optionSpecified("layout")=="splitArticles"){this.context.options.relatedTextArticles.pluckFooter.showFooter="false";this.context.options.relatedVideoArticles.pluckFooter.showFooter="false";this.context.options.articleComments.pluckFooter.showFooter="false";this.context.options.pluckFooter.showLegalPrivacyLink="true";this.context.options.pluckFooter.showLogo="false";this.addChildWidget("PluckItFooterWidget","pluckFooter")}else{if(this.optionSpecified("layout")=="multiColumn"){this.context.options.relatedArticles.pluckFooter.showFooter="false"}else{this.context.options.articleComments.pluckFooter.showFooter="false";this.context.options.relatedArticles.pluckFooter.showLegalPrivacyLink="true"}}}};a.prototype.postInit=function(){var b=this;if(this.child["articleComments"]!=null){this.child["articleComments"].child["loginSignup"].setLoginCallback(function(){b.child["featuredArticle"].execute();b.child["articleComments"].comment(document.forms["PluckCommentForm"])});this.child["articleComments"].child["loginSignup"].setLogoutCallback(function(){b.child["featuredArticle"].execute();b.child["articleComments"].execute()})}};a.prototype.getPreloadHtml=function(){var b="";if(this.child.featuredArticle){b=this.child.featuredArticle.getPreloadHtml()}return b};a.prototype.addRequests=function(){request=new dmpod.GetCustomerRequest();this.addRequest(request)};a.prototype.buildContextFromResponses=function(c){var b=this.help.getErrorMessageFromResponses(c);if(b.length>0){this.setErrorText(b)}else{this.context.customer=c[0].customer}}})();(function(){var widget=function(){};window["PluckItContentWidget"]=widget;widget.prototype=new dmpod.widget();widget.prototype.template='{eval}\r\n// Content Widget\r\n{/eval}\r\n\r\n<div class="podContentWidget">\r\n  ${htmlContent}\r\n</div>\r\n';widget.prototype.preloadImageUrls=[];widget.prototype.postInit=function(){this.autoRender=false;if(this.optionSpecified("cssUrl")){this.help.addWidgetStylesheet(this.optionSpecified("cssUrl"),true)}this.context.landingPageForm="<!-- No landing page form required -->";this.context.exceptionLandingPageForm="<!-- No exception landing page form required. -->"};widget.prototype.addRequests=function(){if(this.dontShowThisWidget){return}request=new dmpod.GetApiKeysRequest();this.addRequest(request)};widget.prototype.buildContextFromResponses=function(responses){var errorMessage=this.help.getErrorMessageFromResponses(responses);if(errorMessage.length>0){this.setErrorText(errorMessage)}else{this.context.apiKey=responses[0].associatedApiKeys[0];if(!this.context.apiKey){this.context.apiKey="00000000-0000-0000-0000-000000000000"}this.service.changeApiKey(this.context.apiKey);var requests=[];var request=new dmpod.GetUserRequest("");requests.push(request);var contentPathAndFile=this.optionSpecified("contentPath")+this.optionSpecified("contentFile");request=new dmpod.GetExternalUrlContentRequest("OnDemandContent",contentPathAndFile);requests.push(request);this.sendRequests(requests,function(response){var errorMessage=this.help.getErrorMessageFromResponses(response.Responses);if(errorMessage.length>0){this.setErrorText(errorMessage)}else{this.htmlContent=response.Responses[1].content;this.contentStylesheetUrl=response.Responses[1].stylesUrl;this.help.addWidgetStylesheet(this.contentStylesheetUrl,true);this.context.user=response.Responses[0].user;if((this.optionSpecified("loginRequired")=="true")){if((this.context.user.userKey.key=="anonymous")){this.displayContent("You must be logged in to view this.");return}}if((this.optionSpecified("adminRequired")=="true")){if((this.context.user.userSecurityRole!="PluckAdmin")&&(this.context.user.userSecurityRole!="CustomerAdmin")){this.displayContent("You must be logged in as an administrator to view this.");return}}if((this.context.user.userSecurityRole!="PluckAdmin")&&(this.context.user.userSecurityRole!="CustomerAdmin")){this.getPage()}else{var requests=[];var request=new dmpod.GetCustomerRequest();requests.push(request);request=new dmpod.GetCustomerLandingPageUrlsRequest();requests.push(request);request=new dmpod.GetEnabledDomainsForCustomerRequest();requests.push(request);this.sendRequests(requests,function(response){var errorMessage=this.help.getErrorMessageFromResponses(response.Responses);if(errorMessage.length>0){this.setErrorText(errorMessage)}else{this.context.customer=response.Responses[0].customer;this.context.customerLandingPageUrls=response.Responses[1];this.context.enabledDomains=response.Responses[2].enabledDomains;this.context.landingPageForm="                  <form action=\"javascript:window['"+this.divId+'\'].saveUrl(document.forms.podSaveLandingPageUrl.url.value, \'*\');"                     name="podSaveLandingPageUrl">                     <input type="text" name="url" value="'+this.context.customerLandingPageUrls.defaultWidgetLandingPageUrl+'" />                     <input type="submit" value="Save" />                   </form>';if(this.context.enabledDomains.length>0){var domainOptions=[];for(var i=0;i<this.context.enabledDomains.length;i++){domainOptions+='<option value="'+this.context.enabledDomains[i]+'">'+this.context.enabledDomains[i]+"</option>"}this.context.exceptionLandingPageForm="                    <form action=\"javascript:window['"+this.divId+'\'].saveUrl(document.forms.podSaveExceptionLandingPageUrl.url.value, document.forms.podSaveExceptionLandingPageUrl.forDomain.value);"                       name="podSaveExceptionLandingPageUrl">                       <select name="forDomain" onChange="javascript:window[\''+this.divId+"'].showCurrentUrl(document.forms.podSaveExceptionLandingPageUrl.url, document.forms.podSaveExceptionLandingPageUrl.forDomain.selectedIndex);\">                         "+domainOptions+'                       </select>                       <input type="text" name="url" value="'+this.lookUpUrl(this.context.enabledDomains[0])+'" />                       <input type="submit" value="Save" />                     </form>'}else{this.context.exceptionLandingPageForm="<!-- Exception form not needed -->"}this.getPage()}})}}})}};widget.prototype.showCurrentUrl=function(url,index){url.value=this.lookUpUrl(this.context.enabledDomains[index])};widget.prototype.lookUpUrl=function(domain){var domainUrlLookup=this.context.customerLandingPageUrls.domainWidgetLandingPageUrls;url="";for(var i=0;i<domainUrlLookup.length;i++){if(domainUrlLookup[i].key==domain){url=domainUrlLookup[i].data}}return url};widget.prototype.getPage=function(){var tmpl=PodTrimPath.parseTemplate(this.htmlContent);if(tmpl!=null){var flags={};flags.throwExceptions=true;try{html=tmpl.process(this.context,flags)}catch(ex){html=this.help.makeErrorSpan("["+this.classname+":"+this.instanceName+"] "+ex.name+": "+ex.message)}}else{html=this.help.makeErrorSpan("["+this.classname+":"+this.instanceName+"] parseTemplate returned null")}this.displayContent(html);var elem=document.createElement("DIV");html=html.replace(/<script/g,"<RUBY");html=html.replace(/script>/g,"RUBY>");elem.innerHTML=html;var scripts=elem.getElementsByTagName("RUBY");for(var i=0;i<scripts.length;i++){eval(scripts[i].innerHTML)}};widget.prototype.displayContent=function(htmlContent){this.context.htmlContent=htmlContent;this.processTemplates();this.render()};widget.prototype.saveUrl=function(widgetLandingPageUrl,forDomain,callback){this.service.changeApiKey(this.context.apiKey);widgetLandingPageUrl=this.help.eatBlanks(widgetLandingPageUrl);var successMessage;var request={};if(widgetLandingPageUrl==""){request=new dmpod.ClearCustomerLandingPageUrlRequest();successMessage="The URL for "+forDomain+" has been removed."}else{request=new dmpod.UpdateCustomerLandingPageUrlRequest();request.widgetLandingPageUrl=widgetLandingPageUrl;if(forDomain=="*"){successMessage="The URL has been updated to: \n\n"+widgetLandingPageUrl}else{successMessage="The URL for "+forDomain+" has been updated to: \n\n"+widgetLandingPageUrl}}request.forDomain=forDomain;this.sendRequests(request,function(response){response=response.Responses[0];if(response.isError){alert("fail: "+response.message)}else{alert(successMessage);if(typeof(callback)!=="undefined"){callback()}}})}})();(function(){var a=function(){};window["PluckItPublisherDomainListWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Publisher Domain List Widget\r\n{/eval}\r\n\r\n<div class="podPublisherDomainListWidget podGlobal podFLC">\r\n  <div class="podBasicList">\r\n    {for domain in enabledDomains} \r\n      <div class="podItem podFLC" \r\n        onmouseover="javascript:WIDGETINSTANCE.shineRemoveLink(\'${podListItemLinkId}_${domain_index}\');" \r\n        onmouseout="javascript:WIDGETINSTANCE.dimRemoveLink(\'${podListItemLinkId}_${domain_index}\');">\r\n        <span class="podDomain">${domain}</span> \r\n        <a class="podDim" id="${podListItemLinkId}_${domain_index}" href="javascript:WIDGETINSTANCE.removeDomain(\'${domain}\');">Remove</a>\r\n      </div>\r\n    {/for}\r\n  </div>\r\n  <div class="podFormField">\r\n    <input class="podFormInputText" id="${podAddDomainInputId}" type="text" />\r\n  </div>\r\n  <a class="podButton2" onclick="javascript:WIDGETINSTANCE.addDomain(document.getElementById(\'${podAddDomainInputId}\').value)"><span class="podButton2_Right">Add Domain</span></a>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.autoRender=false;if(this.optionSpecified("showPublisherDomainList")=="false"){this.dontShowThisWidget=true;return}this.context.podListItemLinkId=this.help.createUniqueId("podListItemLinkId");this.context.podAddDomainInputId=this.help.createUniqueId("podAddDomainInputId")};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var b=new dmpod.GetApiKeysRequest();this.addRequest(b);var b=new dmpod.GetUserRequest();this.addRequest(b)};a.prototype.buildContextFromResponses=function(e){var d=this.help.getErrorMessageFromResponses(e);if(d.length>0){this.setErrorText(d)}else{if(e[1].user.userKey.key=="anonymous"){this.autoRender=false;return}this.context.apiKey=e[0].associatedApiKeys[0];if(!this.context.apiKey){this.context.apiKey="00000000-0000-0000-0000-000000000000"}this.service.changeApiKey(this.context.apiKey);var c=new dmpod.GetEnabledDomainsForCustomerRequest();var b=[];b.push(c);this.sendRequests(c,function(f){f=f.Responses[0];if(f.isError){alert("fail: "+f.message)}else{this.context.enabledDomains=f.enabledDomains;this.processTemplates();this.render()}})}};a.prototype.addDomain=function(d,b){var c=new dmpod.EnableDomainForCustomerRequest();c.domain=this.help.eatBlanks(d);c.notify=true;this.sendRequests(c,function(e){e=e.Responses[0];if(e.isError){alert("fail: "+e.message)}else{this.execute();if(this.parent&&this.parent.classname=="PluckItPublisherAccountWidget"){this.parent.addToDomainList(d)}if(typeof(b)!=="undefined"){b()}}})};a.prototype.removeDomain=function(d,b){var c=new dmpod.DisableDomainForCustomerRequest();c.domain=this.help.eatBlanks(d);this.sendRequests(c,function(e){e=e.Responses[0];if(e.isError){alert("fail: "+e.message)}else{this.execute();if(this.parent&&this.parent.classname=="PluckItPublisherAccountWidget"){this.parent.removeFromDomainList(d)}if(typeof(b)!=="undefined"){b()}}})};a.prototype.shineRemoveLink=function(b){document.getElementById(b).className="podShine"};a.prototype.dimRemoveLink=function(b){document.getElementById(b).className="podDim"}})();(function(){var a=function(){};window["PluckItPublisherAccountWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Publisher Account Widget\r\n{/eval}\r\n\r\n<div class="podPublisherAccountWidget podGlobal podFLC">\r\n  {if user.isAnonymous && options.partnerMode != \'enom\'}\r\n  <form action="javascript:WIDGETINSTANCE.register(document.forms.signUpForm);" class="podForm" name="signUpForm">\r\n    <div class="podSiteSignupWidget">\r\n      <div class="podSectionTitle">Pluck On Demand Sign Up</div>\r\n      <div class="podNote">* Required Fields</div>\r\n      <div class="podAlert" id="SiteSignupError" style="display:none"></div>\r\n      <div class="podFormField">\r\n        <label>Display Name <span class="podNote">*</span></label>\r\n        <input type="text" class="podFormInputText" name="DisplayName"/>\r\n        <div class="podErrorMessage" id="RegisterDisplayNameError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Email <span class="podNote">*</span></label>\r\n        <input type="text" class="podFormInputText" name="Username"/>\r\n        <div class="podErrorMessage" id="RegisterUsernameError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Password <span class="podNote">*</span></label>\r\n        <input type="password" class="podFormInputText" name="Password"/>\r\n        <div class="podErrorMessage" id="RegisterPasswordError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Confirm Password <span class="podNote">*</span></label>\r\n        <input type="password" class="podFormInputText" name="PasswordConfirmation"/>\r\n        <div class="podErrorMessage" id="RegisterPasswordConfirmationError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Your Birthday <span class="podNote">*</span></label>\r\n        <div class="">\r\n          <select name="BirthMonth" onchange="WIDGETINSTANCE.setDays()">\r\n            <option value="0">01</option>\r\n            <option value="1">02</option>\r\n            <option value="2">03</option>\r\n            <option value="3">04</option>\r\n            <option value="4">05</option>\r\n            <option value="5">06</option>\r\n            <option value="6">07</option>\r\n            <option value="7">08</option>\r\n            <option value="8">09</option>\r\n            <option value="9">10</option>\r\n            <option value="10">11</option>\r\n            <option value="11">12</option>\r\n          </select> /\r\n          <select name="BirthDay">\r\n            <option value="1">01</option>\r\n            <option value="2">02</option>\r\n            <option value="3">03</option>\r\n            <option value="4">04</option>\r\n            <option value="5">05</option>\r\n            <option value="6">06</option>\r\n            <option value="7">07</option>\r\n            <option value="8">08</option>\r\n            <option value="9">09</option>\r\n            <option value="10">10</option>\r\n            <option value="11">11</option>\r\n            <option value="12">12</option>\r\n            <option value="13">13</option>\r\n            <option value="14">14</option>\r\n            <option value="15">15</option>\r\n            <option value="16">16</option>\r\n            <option value="17">17</option>\r\n            <option value="18">18</option>\r\n            <option value="19">19</option>\r\n            <option value="20">20</option>\r\n            <option value="21">21</option>\r\n            <option value="22">22</option>\r\n            <option value="23">23</option>\r\n            <option value="24">24</option>\r\n            <option value="25">25</option>\r\n            <option value="26">26</option>\r\n            <option value="27">27</option>\r\n            <option value="28">28</option>\r\n            <option value="29">29</option>\r\n            <option value="30">30</option>\r\n            <option value="31">31</option>\r\n          </select> /\r\n          <select name="BirthYear" onchange="WIDGETINSTANCE.setDays()">${yearOptions}</select>\r\n        </div>\r\n        <div class="podErrorMessage" id="PluckBirtdateError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Your Site\'s Domain Name <span class="podNote">*</span></label>\r\n        <input type="text" class="podFormInputText" name="PrimaryDomain"/>\r\n        <div class="podErrorMessage" id="RegisterPrimaryDomainError" style="display:none"></div>\r\n        <div class="podFormHelp">example: domainnameonly.com</div>\r\n      </div>\r\n      <div class="podFormField" style="display:none">\r\n        <label>Enter a rating for your site</label>\r\n        <ul class="podHorizontalList podFLC formInputCheckboxList">\r\n          <li><input type="radio" class="podFormInputCheckbox" checked="checked" name="Rating" value="G" /> <label>G</label></li>\r\n          <li><input type="radio" class="podFormInputCheckbox" name="Rating" value="PG" /> <label>PG</label></li>\r\n          <li><input type="radio" class="podFormInputCheckbox" name="Rating" value="PG-13" /> <label>PG-13</label></li>\r\n          <li><input type="radio" class="podFormInputCheckbox" name="Rating" value="R" /> <label>R</label></li>\r\n        </ul>\r\n      </div>\r\n      <div class="podFormField" style="display:none">\r\n        <label>Display comments and recommendations from other<br/>sites in the Pluck On Demand network. <a href="#" onclick="javascript:window.open(\'${options.networkWhatsThisUrl}\',\'\',\'\');" class="ex">What\'s this?</a></label>\r\n        <ul class="podHorizontalList podFLC formInputCheckboxList">\r\n          <li><input type="radio" class="podFormInputCheckbox" name="ContentMode" checked="checked" value="Network" /> <label>Yes</label></li>\r\n          <li><input type="radio" class="podFormInputCheckbox" name="ContentMode" value="Local" /> <label>No</label></li>\r\n        </ul>\r\n      </div>\r\n      <div class="podFormField" style="display:none">\r\n        <label>Display in-text advertising from Kontera?</label>\r\n        <ul class="podHorizontalList podFLC formInputCheckboxList">\r\n          <li><input type="radio" class="podFormInputCheckbox" name="InlineTextAdsAllowed" checked="checked" value="true" /> <label>Yes</label></li>\r\n          <li><input type="radio" class="podFormInputCheckbox" name="InlineTextAdsAllowed" value="false" /> <label>No</label></li>\r\n        </ul>\r\n      </div>\r\n      <div class="podFormField">\r\n        <label>Word Verification</label>  \r\n        <input type="text" class="podFormInputText" name="WordVerification"/>\r\n        <div class="podFormHelp">Enter the text exactly as it appears in the picture, including capital or lowercase letters.</div>\r\n        <img class="podCaptchaImage" id="PluckCaptchaImage" src="${captchaUrl}"/>\r\n      </div>\r\n      <div class="podErrorMessage" id="WordVerificationError" style="display:none"></div>\r\n      <div class="podFormField">\r\n        <input type="checkbox" name="RegisterTOS" class="podFormInputCheckbox"/>I have read, understood, and agree to the Pluck <a href="#" onclick="javascript:window.open(\'${options.termsOfServiceUrl}\',\'\',\'\');">Terms of Use</a> and <a href="#" onclick="javascript:window.open(\'${options.privacyPolicyUrl}\',\'\',\'\');">Privacy Policy</a> for Pluck On Demand.&nbsp;<span class="podNote">*</span>\r\n        <div class="podErrorMessage" id="RegisterTOSError" style="display:none"></div>\r\n      </div>\r\n      <div class="podFormButtons">\r\n        <a class="podButton1" href="javascript:document.forms.signUpForm.submit()" id="${podPublisherAccountRegisterButtonId}"><span class="podButton1_Right">Submit</span></a>\r\n        <span class="podButton1Selected" id="${podPublisherAccountRegisterWaitingId}" style="display:none;"><span class="podButton1_Right"><span class="podButton1_Waiting">Loading ...</span></span></span>\r\n        <a href="javascript:document.location=\'${options.successPageUrl}\'"  class="podButtonCancel">Cancel</a>\r\n      </div>\r\n      <div class="podFooterNote">\r\n        * By signing up you will be able to add Pluck On Demand widgets to your site. \r\n        The widgets will run without advertising until your website is approved. \r\n        Upon approval, ads will automatically start to appear within your widgets.\r\n      </div>\r\n    </div>\r\n  </form>\r\n\r\n{else}\r\n  {if !thisIsAPublisher}\r\n    {if options.partnerMode != \'enom\'}\r\n  <div class="podLoggedInUser">You are not a registered Publisher. <a href="javascript:WIDGETINSTANCE.logout();">Logout</a></div>\r\n    {/if}\r\n  {else}\r\n  \r\n  <form action="javascript:WIDGETINSTANCE.updateAccount(document.forms.editAccountForm)" class="podForm" name="editAccountForm">\r\n    <div class="podSiteSignupWidget">\r\n      <div class="podSection">\r\n        {if isEnomUser}\r\n        <div class="podSectionTitle">Account Information</div>\r\n        <div class="podAlert" id="EditAccountError" style="display:none"></div>\r\n        <div class="podFormDescription">The information below was provided by your service provider. For \r\n          information on how to modify or update your account or billing settings, \r\n          please reference the FAQs.</div>\r\n        <div class="podFormField">\r\n          <label>Password</label>\r\n          <div class="podFormDescription">To reset your password, please log into your RichContent \r\n            control panel at your service provider.</div>\r\n          <input type="hidden" class="podFormInputText" name="DisplayName"/>\r\n          <input type="hidden" class="podFormInputText" name="Password"/>\r\n          <input type="hidden" class="podFormInputText" name="NewPassword"/>\r\n          <input type="hidden" class="podFormInputText" name="NewPasswordConfirmation"/>\r\n        </div>\r\n        <div class="podFormField">\r\n          <label>Account Domains</label>\r\n          <div class="podFormDescription">Manage or add new domains through your service provider, reference the FAQs to learn more.</div>\r\n          <textarea class="podDomainList" name="EnabledDomainsReadOnly" readonly="readonly"></textarea>\r\n        </div>\r\n        {else}\r\n        <div class="podSectionTitle">Account Settings</div>\r\n        <div class="podNote">* Required Fields</div>\r\n        <div class="podAlert" id="EditAccountError" style="display:none"></div>\r\n        <div class="podFormField">\r\n          <label>Display Name <span class="podNote">*</span></label>\r\n          <input type="text" class="podFormInputText" name="DisplayName"/>\r\n          <div class="podErrorMessage" id="EditAccountDisplayNameError" style="display:none"></div>\r\n        </div>\r\n        <div class="podFormField">\r\n          <label>Current Password</label>\r\n          <input type="password" class="podFormInputText" name="Password"/>\r\n          <div class="podErrorMessage" id="EditAccountPasswordError" style="display:none"></div>\r\n        </div>\r\n        <div class="podFormField">\r\n          <label>New Password</label>\r\n          <input type="password" class="podFormInputText" name="NewPassword"/>\r\n          <div class="podErrorMessage" id="EditAccountNewPasswordError" style="display:none"></div>\r\n        </div>\r\n        <div class="podFormField"}>\r\n          <label>Confirm New Password</label>\r\n          <input type="password" class="podFormInputText" name="NewPasswordConfirmation"/>\r\n          <div class="podErrorMessage" id="EditAccountNewPasswordConfirmationError" style="display:none"></div>\r\n        </div>\r\n        {/if}\r\n        <div class="podFormField" style="display:none">\r\n          <label>Domain <span class="podNote">*</span></label>\r\n          <input type="text" class="podFormInputText" name="PrimaryDomain"/>\r\n          <div class="podErrorMessage" id="EditAccountPrimaryDomainError" style="display:none"></div>\r\n        </div>\r\n      </div>\r\n      <div class="podSection">\r\n        <div class="podSectionTitle">Widget Settings</div>\r\n        <div class="podFormDescription">By updating the settings below, the \r\n        content displayed on your site will be modified accordingly.</div> \r\n        <div class="podFormField podCategories" {if isEnomUser}style="display: none"{/if}>\r\n          <label>Categories</label>\r\n          <select name="Category0">${categoryOptions}</select>\r\n          <select name="Category1">${categoryOptions}</select>\r\n          <select name="Category2">${categoryOptions}</select>\r\n          <div class="podErrorMessage" id="EditAccountCategoryError" style="display:none"></div>\r\n        </div>\r\n        {if !isEnomUser && customer.customerType == \'RevenueShare\'}\r\n        <div class="podFormField">\r\n          <label>Enabled Domains</label>\r\n          <div id="domainList">${domainList}</div>\r\n        </div>\r\n        {/if}\r\n        <div class="podFormField">\r\n          <label>Content Display Mode</label>\r\n          <select id="${podContentDisplayModeId}" name="ContentDisplayMode" onChange="javascript:WIDGETINSTANCE.changeContentDisplayMode(options[selectedIndex].value);" >\r\n            <option value="Express">Express Mode</option>\r\n            <option value="Advanced">Advanced Mode</option>\r\n          </select>\r\n          &nbsp;&nbsp;&nbsp;\r\n          <span id="${podContentDisplayExpressModeDescId}">Your content displays in an overlay window.</span>\r\n          <span id="${podContentDisplayAdvancedModeDescId}" style="display: none">Your content is fully integrated within your website template.</span>\r\n        </div>\r\n        <div class="podFormField podLandingPageUrlField" id="${podLandingPageUrlSectionId}" style="display: none">\r\n          <label>Landing Page URL</label>\r\n          <div class="podFormDescription">\r\n          Displays the full articles &mdash; Our systems need to know where to send your users when they click on a related content link. \r\n          This page will show full articles, videos and topic pages.\r\n          </div>\r\n          <div id="EditAccountLandingPageUrlMultiMode" style="display: none">\r\n            <div class="podFormInputCheckboxList podFLC">\r\n              <div class="podItem"><input type="radio" class="podFormInputCheckbox" \r\n                name="LandingPageUrlMode" \r\n                onClick="javascript:WIDGETINSTANCE.help.displayElement(\'${podLandingPageUrlExceptionFormId}\', \'none\');WIDGETINSTANCE.help.swapElements(\'${podLandingPageLabelAltId}\', \'${podLandingPageLabelId}\');"\r\n                value="All domains" /> <label>All domains</label></div>\r\n              <div class="podItem"><input type="radio" class="podFormInputCheckbox" \r\n                name="LandingPageUrlMode" \r\n                onClick="javascript:WIDGETINSTANCE.help.displayElement(\'${podLandingPageUrlExceptionFormId}\', \'block\');WIDGETINSTANCE.help.swapElements(\'${podLandingPageLabelId}\', \'${podLandingPageLabelAltId}\');"\r\n                value="Define per domain" /> <label>Define per domain</label></div>\r\n            </div>\r\n            <div id="${podLandingPageUrlExceptionFormId}" style="display: none">\r\n              <div class="podFormDescription">Define a specific URL per domain.</div>\r\n              <select id="${podExceptionDomainId}" name="ExceptionDomain" \r\n                onChange="javascript:WIDGETINSTANCE.showCurrentUrl(this.form.ExceptionLandingUrl, this.form.ExceptionDomain.selectedIndex);">\r\n              </select>\r\n              <input type="text" class="podFormInputText" name="ExceptionLandingUrl" \r\n                onChange="javascript:WIDGETINSTANCE.updateDomainExceptionUrl(this.form.ExceptionLandingUrl, this.form.ExceptionDomain.selectedIndex);"/>\r\n              <div class="podErrorMessage" id="EditExceptionLandingUrlError" style="display:none"></div>\r\n            </div>\r\n          </div>\r\n          <div class="podFormDescription" id="${podLandingPageLabelId}" style="display: none">Applies to all domains in your account.</div>\r\n          <div class="podFormDescription" id="${podLandingPageLabelAltId}" style="display: none">Applies to all other domains in your account not specified above.</div>\r\n          <input type="text" class="podFormInputText" style="width: 200px; margin-bottom: 10px;" name="LandingUrl"/>\r\n          <span class="podExample" style="font-style: italic;">A relative path is recommended*</span>\r\n          <div class="podErrorMessage" id="EditAccountLandingUrlError" style="display:none"></div>\r\n          <div class="podExample">\r\n            * A relative path is the portion of the URL after the domain name. The absolute path is the entire URL.\r\n          </div>\r\n          <table class="podExample">\r\n            <tr>\r\n              <td>Example: </td>\r\n              <td>http://www.example.com/pages/landing.html</td>\r\n            </tr>\r\n            <tr>\r\n              <td>Absolute path: </td>\r\n              <td>http://www.example.com/pages/landing.html</td>\r\n            </tr>\r\n            <tr>\r\n              <td>Relative path: </td>\r\n              <td>/pages/landing.html (recommended, especially for multiple domains that have the same relative path)</td>\r\n            </tr>\r\n          </table>\r\n        </div>\r\n        {if isEnomUser}\r\n        <input type="hidden" name="Platform"/>\r\n        <input type="hidden" name="OtherPlatform" />\r\n        <input type="hidden" name="InlineTextAdsAllowed"/>\r\n        {else}\r\n        <div class="podFormField">\r\n          <label>Platform</label>\r\n          <select name="Platform" onchange="javascript:WIDGETINSTANCE.syncFormElements(this.form.Platform, this.form.OtherPlatform, \'other\');">\r\n            <option value="">Select...</option>\r\n            <option value="WordPress.com">WordPress.com</option>\r\n            <option value="WordPress Install">WordPress Install</option>\r\n            <option value="Blogger">Blogger</option>\r\n            <option value="Ning">Ning</option>\r\n            <option value="Blogsome">Blogsome</option>\r\n            <option value="Drupal">Drupal</option>\r\n            <option value="Squarespace">Squarespace</option>\r\n            <option value="Tumblr">Tumblr</option>\r\n            <option value="TypePad">TypePad</option>\r\n            <option value="Wikispaces">Wikispaces</option>\r\n            <option value="Joomla">Joomla</option>\r\n            <option value="other">Other</option>\r\n          </select>\r\n          <input type="text" name="OtherPlatform" class="podFormInputText" style="display: none"/>\r\n          <div class="podErrorMessage" id="EditAccountPlatformError" style="display:none"></div>\r\n        </div>\r\n        <div class="podFormField" {if (options.partnerMode == \'kontera\')} style="display:none" {/if}>\r\n          <label>Display in-text advertising from Kontera?</label>\r\n          <div class="podFormInputCheckboxList podFLC">\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" name="InlineTextAdsAllowed" checked="checked" value="true" /> <label>Yes</label></div>\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" name="InlineTextAdsAllowed" value="false" /> <label>No</label></div>\r\n          </div>\r\n        </div>\r\n        {/if}\r\n        <div class="podFormField">\r\n          <label>Your account rating</label>\r\n          <div class="podFormDescription">\r\n          Limit content by MPAA ratings &mdash; G = no profanity or innuendo; PG/PG-13 = varied innuendo and slang allowed; R = all content allowed.\r\n          </div>\r\n          <div class="podFormInputCheckboxList podFLC">\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" checked="checked" name="Rating" value="G" /> <label>G</label></div>\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" name="Rating" value="PG" /> <label>PG</label></div>\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" name="Rating" value="PG-13" /> <label>PG-13</label></div>\r\n            <div class="podItem"><input type="radio" class="podFormInputCheckbox" name="Rating" value="R" /> <label>R</label></div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class="podFormButtons podFLC">\r\n        <a class="podButton1" href="javascript:document.forms.editAccountForm.submit()" id="${podPublisherAccountUpdateButtonId}"><span class="podButton1_Right">Submit</span></a>\r\n        <span class="podButton1Selected" id="${podPublisherAccountUpdateWaitingId}" style="display:none;"><span class="podButton1_Right"><span class="podButton1_Waiting">Loading ...</span></span></span>\r\n        <a href="javascript:document.location=\'${options.successPageUrl}\'" class="podButtonCancel">Cancel</a>\r\n      </div>\r\n    </div>\r\n  </form>\r\n    {/if}\r\n  {/if}\r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){this.addChildWidget("PluckItPublisherDomainListWidget","domainList")};a.prototype.postInit=function(){this.context.podPublisherAccountRegisterButtonId=this.help.createUniqueId("podPublisherAccountRegisterButtonId");this.context.podPublisherAccountRegisterWaitingId=this.help.createUniqueId("podPublisherAccountRegisterWaitingId");this.context.podPublisherAccountUpdateButtonId=this.help.createUniqueId("podPublisherAccountUpdateButtonId");this.context.podPublisherAccountUpdateWaitingId=this.help.createUniqueId("podPublisherAccountUpdateWaitingId");this.context.podLandingPageUrlSectionId=this.help.createUniqueId("podLandingPageUrlSectionId");this.context.podLandingPageUrlExceptionFormId=this.help.createUniqueId("podLandingPageUrlExceptionFormId");this.context.podContentDisplayModeId=this.help.createUniqueId("podContentDisplayModeId");this.context.podContentDisplayExpressModeDescId=this.help.createUniqueId("podContentDisplayExpressModeDescId");this.context.podContentDisplayAdvancedModeDescId=this.help.createUniqueId("podContentDisplayAdvancedModeDescId");this.context.podLandingPageLabelId=this.help.createUniqueId("podLandingPageLabelId");this.context.podLandingPageLabelAltId=this.help.createUniqueId("podLandingPageLabelAltId");this.context.podExceptionDomainId=this.help.createUniqueId("podExceptionDomainId")};a.prototype.addRequests=function(){var c=new dmpod.GetUserRequest("");this.addRequest(c);c=new dmpod.GetCaptchaInfoRequest();c.width=250;c.height=50;this.addRequest(c);var c=new dmpod.GetContentCategoriesRequest();this.addRequest(c);c=new dmpod.VerifyUsersPublisherNetworkRequest("eNom");this.addRequest(c);var f=new Date(),e=f.getFullYear()-110,d=[];for(var b=f.getFullYear();b>e;b--){if(b==f.getFullYear()-30){d.push('<option value="'+b+'"  selected>'+b+"</option>")}else{d.push('<option value="'+b+'">'+b+"</option>")}}this.context.yearOptions=d.join("\n");this.customer={domain:"",enabledState:"disabled"}};a.prototype.setNewCaptcha=function(){var b=new dmpod.GetCaptchaInfoRequest();b.width=250;b.height=50;this.sendRequests([b],function(c){if(!c.Responses[0].isError){this.context.captchaId=c.Responses[0].id;this.context.captchaUrl=c.Responses[0].url;if(document.location.toString().match(/https/i)){this.context.captchaUrl=this.context.captchaUrl.replace(/http/i,"https")}document.getElementById("PluckCaptchaImage").src=this.context.captchaUrl}})};a.prototype.buildContextFromResponses=function(f){this.autoRender=true;var e=this.help.getErrorMessageFromResponses(f);if(e.length>0){if(e.indexOf("has been disabled")){alert("Error: Account Disabled: "+e);this.autoRender=false}else{this.setErrorText(e)}}else{var b=f[2].categories;this.context.categoryOptions='<option value="0">Select...</option>';for(var c=0;c<b.length;c++){this.context.categoryOptions+='<option value="'+b[c].id+'">'+b[c].name+"</option>"}this.context.captchaId=f[1].id;this.context.captchaUrl=f[1].url;if(document.location.toString().match(/https/i)){this.context.captchaUrl=this.context.captchaUrl.replace(/http/i,"https")}this.context.isEnomUser=f[3].isMember;this.context.user=f[0].user;this.context.thisIsAPublisher=false;if(this.context.user.userKey.key=="anonymous"){this.context.user.isAnonymous=true}else{this.autoRender=false;this.context.user.isAnonymous=false;var d=new dmpod.GetApiKeysRequest();this.sendRequests([d],function(g){g=g.Responses[0];if(g.isError){alert("Account lookup error: \n"+g.message);return}if(g.associatedApiKeys.length==0){if(typeof(this.notPublisherChecked)!=="undefined"){this.context.thisIsAPublisher=false;this.processTemplates();this.render()}else{this.logout()}return}else{this.context.thisIsAPublisher=true}this.service.changeApiKey(g.associatedApiKeys[0]);this.sendRequests([new dmpod.GetCustomerRequest()],function(h){g=h.Responses[0];if(g.isError){alert(g.message)}else{this.customer=g.customer;this.context.customer=this.customer;this.processTemplates();this.render();this.loadAccountInfo();this.loadLandingPageInfo()}})})}}};a.prototype.logout=function(){this.service.setUserAuthToken(null);this.execute()};a.prototype.callLogin=function(c,b,e){var d=new dmpod.GetLoginTokenRequest();d.userEmail=c;d.password=b;this.sendRequests([d],function(f){if(f.Responses[0].isError){if(/Error: invalid userEmail.password/.test(f.Responses[0].message)){f.Responses[0].message="Error: The password entered is not correct."}this.help.showError("SiteSignupError",f.Responses[0].message);scroll(0,0)}else{this.service.setUserAuthToken(f.Responses[0].loginToken)}if(e!=="undefined"){e(!f.Responses[0].isError)}})};a.prototype.resetPassword=function(b){var c=new dmpod.ResetPasswordRequest();c.userEmail=b;this.sendRequests([c],function(d){if(d.Responses[0].isError){alert(d.Responses[0].message)}else{this.help.alert("Your password has been reset.  Shortly, you will receive your new password at your email address: "+b)}})};a.prototype.updateAccount=function(c){if(!this.validateEditAccountForm(c)){return}var b=[];this.help.swapElements(this.context.podPublisherAccountUpdateButtonId,this.context.podPublisherAccountUpdateWaitingId);if(this.customer.publisherNetwork=="Kontera"){this.customer.inlineTextAdsAllowed=true}else{for(i=0;i<c.elements["InlineTextAdsAllowed"].length;i++){if(c.InlineTextAdsAllowed[i].checked){this.customer.inlineTextAdsAllowed=c.InlineTextAdsAllowed[i].value=="true";break}}}this.customer.domain=this.help.extractDomain(c.PrimaryDomain.value);this.customer.contentDisplayMode=c.ContentDisplayMode.value;if(this.customer.contentDisplayMode=="Express"){this.customer.widgetLandingPageUrl="";d=new dmpod.UseOverlayByDefaultRequest();b.push(d)}else{this.customer.widgetLandingPageUrl=c.LandingUrl.value}this.customer.exceptionDomain=c.ExceptionDomain.value;this.customer.exceptionLandingUrl=c.ExceptionLandingUrl.value;this.customer.platform=this.help.eatBlanks(c.OtherPlatform.value);b.push(new dmpod.UpdateUserRequest(this.help.eatBlanks(c.DisplayName.value)));if(c.Password.value>""&&c.NewPassword.value>""){var d=new dmpod.ChangePasswordRequest();d.userKey=this.context.user.userKey;d.userEmail=unescape(this.service.getUserAuthToken()).match(/&e=([^&]+)/)[1];d.oldPassword=c.Password.value;d.newPassword=c.NewPassword.value;b.push(d)}this.sendRequests(b,function(f){var e=this.help.getErrorMessageFromResponses(f);if(e.length>0){this.help.swapElements(this.context.podPublisherAccountUpdateWaitingId,this.context.podPublisherAccountUpdateButtonId);alert(response.message);this.setErrorText(e)}else{this.context.user.name=this.help.eatBlanks(c.DisplayName.value);this.setAdNetworkDetails(c);this.updateAdNetworkDetails()}})};a.prototype.register=function(b){if(!this.validateRegisterForm(b)){return}this.help.swapElements(this.context.podPublisherAccountRegisterButtonId,this.context.podPublisherAccountRegisterWaitingId);this.context.displayName=b.elements["DisplayName"].value;this.context.email=b.elements["Username"].value;this.context.password=b.elements["Password"].value;this.customer.domain=this.help.extractDomain(b.elements["PrimaryDomain"].value);this.context.birthdate=new Date(b.elements["BirthYear"].value,b.elements["BirthMonth"].value,b.elements["BirthDay"].value).getTime();for(i=0;i<b.elements["ContentMode"].length;i++){if(b.ContentMode[i].checked){this.customer.userContentMode=b.ContentMode[i].value;break}}this.customer.publisherNetwork="None";if(this.optionSpecified("partnerMode")=="kontera"){this.customer.publisherNetwork="Kontera";this.customer.inlineTextAdsAllowed=true}else{for(i=0;i<b.elements["InlineTextAdsAllowed"].length;i++){if(b.InlineTextAdsAllowed[i].checked){this.customer.inlineTextAdsAllowed=b.InlineTextAdsAllowed[i].value=="true";break}}}this.context.captchaText=b.elements["WordVerification"].value;var c=new dmpod.RegisterUserRequest(this.context.displayName,this.context.email,this.context.password);c.birthdate=this.context.birthdate;this.sendRequests([c],function(e){e=e.Responses[0];var f=this;if(e.isError){var d=e.message;this.callLogin(this.context.email,this.context.password,function(g){if(g){f.createCustomerAccount(b,e.userKey)}else{}})}else{this.callLogin(this.context.email,this.context.password,function(g){if(g){f.createCustomerAccount(b,e.userKey)}})}})};a.prototype.validateEditAccountForm=function(b){this.help.hideError("EditAccountError");var c=true;if(b.elements["NewPassword"].value>""){if(b.elements["NewPasswordConfirmation"].value>""){if(b.elements["Password"].value>""){}else{this.help.showError("EditAccountPasswordError","To change you password, you must also fill in the current password.");c=false}}else{if(b.elements["Password"].value>""){this.help.showError("EditAccountNewPasswordConfirmationError","To change your password, you must also enter the confirmation of your new password.");c=false}else{this.help.showError("EditAccountNewPasswordError","To change your password, you must also enter your current password and the confirmation of your new password.");c=false}}}if(b.ContentDisplayMode.value=="Advanced"&&b.LandingUrl.value==""){this.help.showError("EditAccountLandingUrlError","A URL is required.");c=false}else{this.help.hideError("EditAccountLandingUrlError")}if(!c){this.help.showError("EditAccountError","Please correct the issues noted.")}return c};a.prototype.validateRegisterForm=function(b){this.help.hideError("SiteSignupError");var c=true;if(!b.elements["DisplayName"].value.length){this.help.showError("RegisterDisplayNameError","Input a valid display name");c=false}else{this.help.hideError("RegisterDisplayNameError")}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(b.elements["Username"].value)){this.help.showError("RegisterUsernameError","Input a valid e-mail address");c=false}else{this.help.hideError("RegisterUsernameError")}if(!this.help.extractDomain(b.elements["PrimaryDomain"].value).length){this.help.showError("RegisterPrimaryDomainError","Enter your site's primary domain");c=false}else{this.help.hideError("RegisterPrimaryDomainError")}if(b.elements["Password"].value.length<6){this.help.showError("RegisterPasswordError","Password must be at least 6 characters");c=false}else{this.help.hideError("RegisterPasswordError")}if(b.elements["Password"].value!=b.elements["PasswordConfirmation"].value){this.help.showError("RegisterPasswordConfirmationError","Passwords do not match");c=false}else{this.help.hideError("RegisterPasswordConfirmationError")}var d=new Date(parseInt(b.elements["BirthYear"].value),parseInt(b.elements["BirthMonth"].value),parseInt(b.elements["BirthDay"].value));var e=new Date();var f=new Date(e.getFullYear()-13,e.getMonth(),e.getDate());if(this.service.getCookieValue("UATY")!=undefined||d>=f){this.service.setCookieValue("UATY","true",1);this.help.showError("PluckBirtdateError","We are sorry but you did not qualify to register.");c=false}else{this.help.hideError("PluckBirtdateError")}if(b.elements["Password"].value!=b.elements["PasswordConfirmation"].value){this.help.showError("RegisterPasswordConfirmationError","Passwords do not match");c=false}else{this.help.hideError("RegisterPasswordConfirmationError")}if(!b.elements["RegisterTOS"].checked){this.help.showError("RegisterTOSError","You must agree to the Terms of Use to register");c=false}else{this.help.hideError("RegisterTOSError")}if(!b.elements["WordVerification"].value.length){this.help.showError("WordVerificationError","You must enter the text/numbers that you see within the image");c=false}else{this.help.hideError("WordVerificationError")}if(!c){this.help.showError("SiteSignupError","Please correct the issues noted.")}return c};a.prototype.setDays=function(){var d=document.forms["signUpForm"],g,f=d.elements["BirthMonth"].value,h=d.elements["BirthYear"].value;if(f=="0"||f=="2"||f=="4"||f=="6"||f=="7"||f=="9"||f=="11"){g=31}else{if(f=="3"||f=="5"||f=="8"||f=="10"){g=30}else{if(parseInt(h)%4==0){g=29}else{g=28}}}var e=d.elements["BirthDay"];e.innerHTML="";for(var b=1;b<=g;b++){var c=document.createElement("option");c.value=b;c.innerHTML=b;e.appendChild(c)}};a.prototype.createCustomerAccount=function(c,b){var d=new dmpod.GenerateNewCustomerKeyRequest();this.sendRequests([d,new dmpod.GetUserRequest()],function(e){if(e.Responses[1].isError){alert("Error registering: \n"+e.Responses[1].message);this.help.swapElements(this.context.podPublisherAccountRegisterWaitingId,this.context.podPublisherAccountRegisterButtonId);return}this.context.user=e.Responses[1].user;e=e.Responses[0];if(e.isError){alert("Error registering: \n"+e.message);this.help.swapElements(this.context.podPublisherAccountRegisterWaitingId,this.context.podPublisherAccountRegisterButtonId);return}var f=this.service.apiKey;this.service.changeApiKey(e.customerKey);d=new dmpod.RegisterUsersCustomerAccountRequest();d.publisherNetwork=this.customer.publisherNetwork;d.inlineTextAdsAllowed=this.customer.inlineTextAdsAllowed;d.apiKey=e.customerKey;d.domain=this.customer.domain;if(this.optionSpecified("customerType")){d.customerType=this.context.options["customerType"]}else{d.customerType="RevenueShare"}d.userContentMode=this.customer.userContentMode;d.mpaaRating=this.getMPAARating(c);d.captchaId=this.context.captchaId;d.captchaText=this.context.captchaText;this.sendRequests([d,new dmpod.GetCustomerRequest()],function(g){e=g.Responses[0];if(e.isError){alert("Error registering: \n"+e.message);this.help.swapElements(this.context.podPublisherAccountRegisterWaitingId,this.context.podPublisherAccountRegisterButtonId);this.service.changeApiKey(f);this.setNewCaptcha();return}this.customer=g.Responses[1].customer;this.context.customer=this.customer;this.postUpdateAdNetworkDetails()})})};a.prototype._loadAccountInfoResponse=function(g){var d=document.forms["editAccountForm"];if(typeof(d)==="undefined"){this.setTimeout(function(){this._loadAccountInfoResponse(g)},200);return}this.setFormField(d,"DisplayName",this.context.user.name);this.setFormField(d,"Password","");this.setFormField(d,"NewPassword","");this.setFormField(d,"NewPasswordConfirmation","");this.setFormField(d,"PrimaryDomain",this.customer.domain);this.setFormField(d,"Platform",this.customer.platform);this.setFormField(d,"OtherPlatform",this.customer.platform);if(d.Platform.value!=d.OtherPlatform.value){var b=document.createElement("OPTION");b.value=this.customer.platform;b.innerHTML=this.customer.platform;b.selected="selected";d.Platform.appendChild(b)}if(g.isError){var f=new dmpod.AdNetworkDetails();f.channelIds=[0,0,0];f.contentSources=null;f.businessName=this.customer.domain;f.mpaaRating="G";this.context.adNetworkDetails=f}else{this.context.adNetworkDetails=g.adNetworkDetails}for(var c=0;c<this.context.adNetworkDetails.channelIds.length;c++){this.setFormField(d,"Category"+c,this.context.adNetworkDetails.channelIds[c])}var e=d.elements["Rating"];for(c=0;c<e.length;c++){d.Rating[c].checked=(d.Rating[c].value==this.context.adNetworkDetails.mpaaRating)}for(c=0;c<d.elements["InlineTextAdsAllowed"].length;c++){if(d.InlineTextAdsAllowed[c].value=="true"){d.InlineTextAdsAllowed[c].checked=this.customer.inlineTextAdsAllowed}else{d.InlineTextAdsAllowed[c].checked=!this.customer.inlineTextAdsAllowed}}if(document.getElementById("domainList_"+this.divSuffix)){document.getElementById("domainList_"+this.divSuffix).innerHTML=this.child.domainList.content}};a.prototype.loadAccountInfo=function(){this.sendRequests([new dmpod.GetAdNetworksRequest()],function(b){this._loadAccountInfoResponse(b.Responses[0])})};a.prototype._loadLandingPageInfoResponse=function(f){var d=this.help.getErrorMessageFromResponses(f.Responses);if(d.length>0){this.setErrorText(d)}else{this.context.customerLandingPageUrls=f.Responses[0];this.context.enabledDomains=f.Responses[1].enabledDomains;var c=document.forms["editAccountForm"];if(typeof(c)==="undefined"){this.setTimeout(function(){this._loadLandingPageInfoResponse(f)},200);return}this.setFormField(c,"LandingUrl",this.context.customerLandingPageUrls.defaultWidgetLandingPageUrl);var e="";for(var b=0;b<this.context.enabledDomains.length;b++){e+=this.context.enabledDomains[b];if(b<this.context.enabledDomains.length-1){e+="\n"}}this.setFormField(c,"EnabledDomainsReadOnly",e);if(this.context.enabledDomains.length>0){var g=[];for(var b=0;b<this.context.enabledDomains.length;b++){domainOption=document.createElement("OPTION");domainOption.value=this.context.enabledDomains[b];domainOption.text=this.context.enabledDomains[b];c.ExceptionDomain.options.add(domainOption)}this.setFormField(c,"ExceptionLandingUrl",this.lookUpUrl(this.context.enabledDomains[0]))}if(this.context.enabledDomains.length>1){this.help.displayElement("EditAccountLandingPageUrlMultiMode","block")}else{this.help.displayElement("EditAccountLandingPageUrlMultiMode","none")}if(this.context.customerLandingPageUrls.domainWidgetLandingPageUrls.length>0){c["LandingPageUrlMode"][1].checked="checked";this.help.displayElement(this.context.podLandingPageUrlExceptionFormId,"block");this.help.displayElement(this.context.podLandingPageLabelAltId,"block")}else{c["LandingPageUrlMode"][0].checked="checked";this.help.displayElement(this.context.podLandingPageUrlExceptionFormId,"none");this.help.displayElement(this.context.podLandingPageLabelId,"block")}if(this.customer.widgetLandingPageUrl==""){this.changeContentDisplayMode("Express")}else{this.changeContentDisplayMode("Advanced")}}};a.prototype.updateDomainExceptionUrl=function(d,e){var g=document.getElementById(this.context.podExceptionDomainId).value;var f=this.context.customerLandingPageUrls.domainWidgetLandingPageUrls;var b=false;for(var c=0;c<f.length;c++){if(f[c].key==g){f[c].data=d.value;b=true;return}}if(!b){f.push({key:g,data:d.value})}};a.prototype.showCurrentUrl=function(b,c){b.value=this.lookUpUrl(this.context.enabledDomains[c])};a.prototype.lookUpUrl=function(d){var c=this.context.customerLandingPageUrls.domainWidgetLandingPageUrls;url="";for(var b=0;b<c.length;b++){if(c[b].key==d){url=c[b].data}}return url};a.prototype.loadLandingPageInfo=function(){var b=[];var c=new dmpod.GetCustomerLandingPageUrlsRequest();b.push(c);c=new dmpod.GetEnabledDomainsForCustomerRequest();b.push(c);this.sendRequests(b,function(d){this._loadLandingPageInfoResponse(d)})};a.prototype.updateAdNetworkDetails=function(){var b=[];var e=this.context.adNetworkDetails;if(typeof(e)!=="undefined"){var d={};d=new dmpod.UpdateCustomerRequest();d.domain=this.customer.domain;d.enabledState=this.customer.enabledState;b.push(d);if(this.customer.customerType=="RevenueShare"){d=new dmpod.UpdateAdNetworksRequest(["RightMedia"],e)}else{d=new dmpod.EchoRequest("Updating ad networks not required.")}b.push(d);d=new dmpod.UpdateCustomerAdDetailsRequest(this.customer.inlineTextAdsAllowed);b.push(d);d=new dmpod.UpdateCustomerDeploymentDetailsRequest();d.widgetLandingPageUrl=this.customer.widgetLandingPageUrl;d.platform=this.customer.platform;b.push(d);urls=this.context.customerLandingPageUrls.domainWidgetLandingPageUrls;for(var c=0;c<urls.length;c++){if(urls[c].data==""||this.customer.contentDisplayMode=="Express"){d=new dmpod.ClearCustomerLandingPageUrlRequest()}else{d=new dmpod.UpdateCustomerLandingPageUrlRequest();d.widgetLandingPageUrl=urls[c].data}d.forDomain=urls[c].key;b.push(d)}this.sendRequests(b,function(h){var h=h.Responses;var g=["Error updating customer details","Error updating ad network details","Error updating in-text advertising","Error updating deployment details"];for(var f=0;f<=3;f++){if(h[f].isError){this.help.swapElements(this.context.podPublisherAccountUpdateWaitingId,this.context.podPublisherAccountUpdateButtonId);alert(g[f]+": \n"+h[f].message);return}}this.postUpdateAdNetworkDetails()})}};a.prototype.postUpdateAdNetworkDetails=function(){if(this.optionSpecified("successPageUrl")){document.location=this.context.options.successPageUrl}else{this.context.thisIsAPublisher=true;this.processTemplates();this.render();this.loadAccountInfo();this.loadLandingPageInfo();alert("Your information has been saved.")}};a.prototype.setAdNetworkDetails=function(d){var e=this.context.adNetworkDetails;if(e==null){e=new dmpod.AdNetworkDetails()}var b=[d.Category0.value,d.Category1.value,d.Category2.value];e.channelIds=[];for(var c=0;c<b.length;c++){if(b[c]!="0"){e.channelIds.push(parseFloat(b[c]))}}e.contentSources=null;e.businessName=this.customer.domain;e.mpaaRating=this.getMPAARating(d);this.context.adNetworkDetails=e};a.prototype.setFormField=function(c,d,b){if(c.elements[d]){if(typeof(b)!=="undefined"&&b!=null){c.elements[d].value=b}else{c.elements[d].value=""}}};a.prototype.getMPAARating=function(c){var b=c.elements["Rating"];for(i=0;i<b.length;i++){if(c.Rating[i].checked){return c.Rating[i].value;break}}return"G"};a.prototype.syncFormElements=function(d,b,c){if(d.value==c){b.value="";b.style.display="block"}else{b.style.display="none";b.value=d.value}};a.prototype.addToDomainList=function(e){e=this.help.eatBlanks(e);var b=document.getElementById(this.context.podExceptionDomainId);for(var c=0;c<b.options.length;c++){if(e==b.options[c].value){return}}var d=document.createElement("OPTION");d.value=e;d.text=e;b.appendChild(d)};a.prototype.removeFromDomainList=function(d){d=this.help.eatBlanks(d);var b=document.getElementById(this.context.podExceptionDomainId);for(var c=0;c<b.options.length;c++){if(d==b.options[c].value){b.removeChild(b.options[c])}}};a.prototype.changeContentDisplayMode=function(b){if(b=="Express"){this.help.displayElement(this.context.podLandingPageUrlSectionId,"none");this.help.displayElement(this.context.podContentDisplayAdvancedModeDescId,"none");this.help.displayElement(this.context.podContentDisplayExpressModeDescId,"inline");document.getElementById(this.context.podContentDisplayModeId).value="Express"}else{this.help.displayElement(this.context.podLandingPageUrlSectionId,"block");this.help.displayElement(this.context.podContentDisplayExpressModeDescId,"none");this.help.displayElement(this.context.podContentDisplayAdvancedModeDescId,"inline");document.getElementById(this.context.podContentDisplayModeId).value="Advanced"}}})();(function(){var a=function(){};window["PluckItPublisherReportWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Publisher Report Widget\r\n{/eval}\r\n\r\n<div class="podPublisherReportWidget podGlobal podFLC">\r\n  <div class="podSectionTitle">Monthly Reports</div>\r\n  <form action="javascript:WIDGETINSTANCE.getReport(document.forms.${podPublisherReportFormName});" name="${podPublisherReportFormName}" class="podForm podFLC">\r\n    <div class="podFormField">\r\n      <label>Month</label>\r\n      <select id="${podReportMonthId}">\r\n        ${monthOptions}\r\n      </select>\r\n    </div>\r\n    \r\n    <div class="podFormField">\r\n      <label>Year</label>\r\n      <select id="${podReportYearId}">\r\n        ${yearOptions}\r\n      </select>\r\n    </div>\r\n    \r\n    <div class="podFormField">\r\n      <label>Site</label>\r\n      <select id="podApiKey">\r\n      {for record in customerSearchRecords} \r\n        <option value="${record.apiKey}">${record.customerDomain}</option>\r\n      {/for}\r\n      </select>\r\n    </div>\r\n    \r\n    <div class="podFormButtons">\r\n      <a class="podButton1" id="${podReportGetReportButtonId}" href="javascript:;" onclick="javascript:document.forms.${podPublisherReportFormName}.submit()"><span class="podButton1_Right">Get Report</span></a>\r\n      <span class="podButton1Selected" id="${podReportGetReportWaitingId}" style="display:none;"><span class="podButton1_Right"><span class="podButton1_Waiting">Loading ...</span></span></span>\r\n    </div>\r\n  </form>\r\n  \r\n  <div id="${podReportDataTableId}" class="podDataTable">\r\n  </div>\r\n  \r\n  <div class="podRawDataButtons podFLC">\r\n    <a class="podButton1" href="javascript:WIDGETINSTANCE.viewRawData();" id="${podViewRawDataId}" \r\n      style="display: none"><span class="podButton1_Right">View Raw Data</span></a>\r\n    <a class="podButton1" href="javascript:WIDGETINSTANCE.hideRawData();"id="${podHideRawDataId}" \r\n      style="display: none"><span class="podButton1_Right">Hide Raw Data</span></a>\r\n  </div>\r\n  \r\n  <div class="podRawData"  id="${podReportRawDataId}"style="display:none" >\r\n    <textarea id="${podReportRawDataTextareaId}"></textarea>\r\n  </div>\r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.context.podReportMonthId=this.help.createUniqueId("podReportMonthId");this.context.podReportYearId=this.help.createUniqueId("podReportYearId");this.context.podReportGetReportButtonId=this.help.createUniqueId("podReportGetReportButtonId");this.context.podReportGetReportWaitingId=this.help.createUniqueId("podReportGetReportWaitingId");this.context.podReportDataTableId=this.help.createUniqueId("podReportDataTableId");this.context.podReportRawDataId=this.help.createUniqueId("podReportRawDataId");this.context.podReportRawDataTextareaId=this.help.createUniqueId("podReportRawDataTextareaId");this.context.podViewRawDataId=this.help.createUniqueId("podViewRawDataId");this.context.podHideRawDataId=this.help.createUniqueId("podHideRawDataId");this.context.podPublisherReportFormName=this.help.createUniqueId("podPublisherReportFormName");var e=["January","February","March","April","May","June","July","August","September","October","November","December"];var g=new Date();var f=g.getMonth();var b=2008;var c=g.getFullYear();var h=c;f--;if(f<0){f=11;h--}this.context.monthOptions="";for(var d=0;d<=11;d++){this.context.monthOptions+='<option value="'+(d+1)+'" ';if(f==d){this.context.monthOptions+='selected="selected"'}this.context.monthOptions+=">"+e[d]+"</option>"}this.context.yearOptions="";for(var d=c;d>=b;d--){this.context.yearOptions+='<option value="'+d+'" ';if(h==d){this.context.yearOptions+='selected="selected"'}this.context.yearOptions+=">"+d+"</option>"}};a.prototype.addRequests=function(){var b=new dmpod.GetAssociatedCustomersRequest();this.addRequest(b)};a.prototype.buildContextFromResponses=function(b){if(b[0].isError){this.autoRender=false;alert(b[0].message);this.setErrorText(b[0].message)}else{this.context.customerSearchRecords=b[0].customerSearchRecords}};a.prototype.getReport=function(){this.help.swapElements(this.context.podReportGetReportButtonId,this.context.podReportGetReportWaitingId);this.month=document.getElementById(this.context.podReportMonthId).value;this.year=document.getElementById(this.context.podReportYearId).value;this.apiKey=document.getElementById("podApiKey").value;this.displayRevenue=true;for(var b=0;b<this.context.customerSearchRecords.length;b++){if(this.context.customerSearchRecords[b].apiKey==this.apiKey){if(this.context.customerSearchRecords[b].customerType!="RevenueShare"){this.displayRevenue=false}break}}if(this.year==2008&&this.month<8){alert("Sorry, no data is available prior to August, 2008.");this.help.swapElements(this.context.podReportGetReportWaitingId,this.context.podReportGetReportButtonId);return}request=new dmpod.GetPublisherMonthlyReportRequest(this.month,this.year,this.apiKey);this.sendRequests(request,function(c){this.help.swapElements(this.context.podReportGetReportWaitingId,this.context.podReportGetReportButtonId);c=c.Responses[0];if(c.isError){alert("fail: "+c.message)}else{this.renderReport(c.report)}})};a.prototype.renderReport=function(d){this.report=d;var g='"Date","Full Page Content Views"';if(this.displayRevenue){g+=',"Total Revenue"'}g+="\n";var f='<table width="100%">';var e=0;f+='<thead><th class="text" scope="col">&nbsp;Date</th><th class="text" scope="col" align="left">&nbsp;Full Page Content Views</th>';if(this.displayRevenue){var c=0;f+='<th class="text" scope="col" align="left">&nbsp;Total Revenue</th>'}f+="</tr></thead>";f+="<tbody>";for(var b=0;b<this.report.dailyReports.length;b++){f+='<tr><th class="text" scope="row">'+this.month+"/"+this.report.dailyReports[b].day+"</th>";g+=this.month+"/"+this.report.dailyReports[b].day+",";f+='<td class="text">&nbsp;'+this.report.dailyReports[b].pageViews+"</td>";g+=this.report.dailyReports[b].pageViews;e+=this.report.dailyReports[b].pageViews;if(this.displayRevenue){f+='<td class="text">&nbsp;$'+this.report.dailyReports[b].totalAdRevenue.toFixed(3)+"</td>";g+=","+this.report.dailyReports[b].totalAdRevenue.toFixed(3);c+=this.report.dailyReports[b].totalAdRevenue}f+="</tr>";g+="\n"}f+='<tr><th class="text" scope="row">TOTAL</th>';g+="TOTAL,";f+='<td class="text">&nbsp;'+e+"</td>";g+=e;if(this.displayRevenue){f+='<td class="text">&nbsp;$'+c.toFixed(2)+"</td></tr>";g+=","+c.toFixed(2)}g+="\n";f+="</tbody></table>";document.getElementById(this.context.podReportDataTableId).innerHTML=f;document.getElementById(this.context.podReportRawDataTextareaId).value=g;this.help.displayElement(this.context.podViewRawDataId,"block")};a.prototype.generateViewsXml=function(c){var e="<graph caption='Full Page Content Views' subcaption='For the month of "+this.month+"/"+this.year+"' divlinecolor='F47E00' numdivlines='4' showAreaBorder='1' areaBorderColor='000000' numberPrefix='' showNames='1' numVDivLines='29' vDivLineAlpha='30' formatNumberScale='1' rotateNames='1' decimalPrecision='0'>";var f=0;var d="<categories>";for(var b=0;b<c.dailyReports.length;b++){d+="<category name='"+this.month+"/"+c.dailyReports[b].day+"'/>"}d+="</categories>";d+="<dataset seriesname='Full Page Content Views' color='AA33AA' showValues='0' areaAlpha='50' showAreaBorder='1' areaBorderThickness='2' areaBorderColor='006600'>";for(var b=0;b<c.dailyReports.length;b++){d+="<set value='"+(c.dailyReports[b].pageViews)+"'/>";f+=c.dailyReports[b].pageViews}if(f>0){d=e+d+"</dataset></graph>"}else{d=e+"</graph>"}return d};a.prototype.generateRevenueXml=function(c){var e="<graph caption='Revenue' subcaption='For the month of "+this.month+"/"+this.year+"' divlinecolor='F47E00' numdivlines='4' showAreaBorder='1' areaBorderColor='000000' numberPrefix='$' showNames='1' numVDivLines='29' vDivLineAlpha='30' formatNumberScale='1' rotateNames='1' decimalPrecision='2'>";var f=0;var d="<categories>";for(var b=0;b<c.dailyReports.length;b++){d+="<category name='"+this.month+"/"+c.dailyReports[b].day+"'/>"}d+="</categories>";d+="<dataset seriesname='Total Ad Revenue' color='AA33AA' showValues='0' areaAlpha='50' showAreaBorder='1' areaBorderThickness='2' areaBorderColor='006600'>";for(var b=0;b<c.dailyReports.length;b++){d+="<set value='"+c.dailyReports[b].totalAdRevenue+"'/>";f+=c.dailyReports[b].totalAdRevenue}if(f>0){d=e+d+"</dataset></graph>"}else{d=e+"</graph>"}return d};a.prototype.viewRawData=function(){this.help.displayElement(this.context.podReportRawDataId,"block");this.help.swapElements(this.context.podViewRawDataId,this.context.podHideRawDataId)};a.prototype.hideRawData=function(){this.help.displayElement(this.context.podReportRawDataId,"none");this.help.swapElements(this.context.podHideRawDataId,this.context.podViewRawDataId)}})();(function(){var a=function(){};window["PluckItRelatedAdLinksWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Related Ad Links Widget\r\n{/eval}\r\n\r\n{if contentMatched || options.showSearchBox == \'true\'}\r\n<div class="podRelatedAdLinksWidget podGlobal">\r\n  {if searchTerm}\r\n  <div class="podPage podFLC">\r\n    <div class="podMainContainer">\r\n      <div class="podMain">\r\n        <div class="podPageTitle">${options.relatedAdPageLabel} ${searchTerm}</div>\r\n        <div class="podSectionTitle">${options.relatedAdPageSublabel}</div>\r\n        {for ad in ads}\r\n          <div class="podRelatedAd">\r\n            <a class="podRelatedAdTitle" href="${ad.clickUrl}" \r\n            {if options.relatedAdLinkNewWindow == \'true\'} target="_blank" {/if}\r\n            >${ad.title}</a>\r\n            <a class="podRelatedAdTextLink" href="${ad.clickUrl}" \r\n            {if options.relatedAdLinkNewWindow == \'true\'} target="_blank" {/if}\r\n            ><div class="podRelatedAdText">${ad.description}</div></a>\r\n            <a class="podRelatedAdUrl" href="${ad.clickUrl}" \r\n            {if options.relatedAdLinkNewWindow == \'true\'} target="_blank" {/if}\r\n            >${ad.displayUrl}</a>\r\n          </div>\r\n        {/for}\r\n      </div>\r\n    </div>\r\n    <div class="podRight">\r\n    {/if}\r\n    \r\n    {if options.showRelatedSearches == \'true\'}\r\n      {if links.length > 0 || options.showSearchBox == \'true\'}\r\n        <div class="podSectionTitle">\r\n          {if searchTerm}\r\n          ${options.pageRelatedAdLinksLabel}\r\n          {else}\r\n          ${options.relatedAdLinksLabel}\r\n          {/if}\r\n        </div>\r\n        <div class="podRelatedAdWords">\r\n        {for link in links}\r\n          <a class="podRelatedAdWord" href="javascript:WIDGETINSTANCE.searchTermClicked(\'${link.searchTerm}\');">${link.searchTerm}</a>\r\n        {/for}\r\n        </div>\r\n      {/if}\r\n    {/if}\r\n    {if options.showSearchBox == \'true\'}\r\n      <div class="podSearchWidget podGlobal">\r\n        <div class="podContent podFLC">\r\n          <div class="podContentAll">\r\n            <div class="podContentBlock">\r\n              <form action="javascript:WIDGETINSTANCE.searchTermSearched(document.forms[\'${podRelatedSearchFormName}\'].searchTerm.value);" \r\n                name="${podRelatedSearchFormName}" class="podSearchForm">\r\n                <input type="text" name="searchTerm" class="podCommentArea" value="" /><!-- ${searchTerm} -->\r\n              </form>\r\n            </div>\r\n          </div>\r\n          <a href="javascript:;" onclick="javascript:WIDGETINSTANCE.searchTermSearched(document.forms[\'${podRelatedSearchFormName}\'].searchTerm.value);" \r\n            class="podButton1"><span class="podButton1_Right">Search</span></a>\r\n        </div>\r\n      </div>\r\n    {/if}\r\n\r\n    {if searchTerm}\r\n    </div>\r\n  </div>\r\n  {/if}\r\n</div>\r\n{/if}\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){if(this.optionSpecified("showRelatedAdLinksWidget")=="false"){this.dontShowThisWidget=true;this.autoRender=false;return}};a.prototype.postInit=function(){if(this.dontShowThisWidget){return}this.context.podRelatedSearchFormName="podRelatedSearchFormName_"+this.divSuffix};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var c=new dmpod.GetCustomerRequest();this.addRequest(c);if(this.optionSpecified("showRelatedSearches")=="false"&&!this.help.getPrefixedQueryParam("searchTerm")){this.context.contentMatched=false;this.context.searchTerm=null;this.context.returnQueryParams=null;return}var b=document.location.toString();b=b.replace(/PLUCK[_A-Za-z0-9]+=[^&]*&{0,1}/g,"").replace(/&$/,"").replace(/\?$/,"");c=new dmpod.GetRelatedAdLinksRequest(b);c.searchTerm=this.context.searchTerm=this.help.getPrefixedQueryParam("searchTerm")||"";c.returnQueryParams=this.context.returnQueryParams=this.help.getPrefixedQueryParam("returnQueryParams")||"";c.numberOfSearchLinks=this.context.options.numberOfSearchLinks;c.numberOfResultLinks=this.context.options.numberOfResultLinks;c.tagsProvider=this.context.options.tagsProvider;c.matchMethod=this.context.options.matchMethod;c.articlesTaken=this.context.options.articlesTaken;c.articlesThreshold=this.context.options.articlesThreshold;if((this.help.getPrefixedQueryParam("_debugrad")||"false")=="true"){c.debugServer=true}this.addRequest(c)};a.prototype.buildContextFromResponses=function(c){this.context.ads=[];this.context.links=[];if(c[0].isError){this.setErrorText(c[0].message);return}else{this.customer=c[0].customer;if(this.optionSpecified("linkResultsPageUrl")){this.linkResultsPageUrl=this.help.ensureHostUrl(this.context.options.linkResultsPageUrl,true)}else{if(this.customer.widgetLandingPageUrl){this.linkResultsPageUrl=this.customer.widgetLandingPageUrl}else{if(this.parent&&this.parent.classname=="PluckItSmartWidget"){this.linkResultsPageUrl=document.location.toString()}}}}if(c.length>1){if(c[1].isError){this.setErrorText(c[1].message);return}else{this.context.savedLinks=[].concat(c[1].searchLinks);this.context.links=c[1].searchLinks;if(this.context.links.length>0){this.context.contentMatched=true}else{this.context.contentMatched=false}this.context.ads=c[1].resultLinks;if(this.context.ads.length>0){if(this.context.ads[0].directToAdvertiser==true){var b=this.context.ads[0].clickUrl;if(this.context.options.relatedAdLinkNewWindow=="true"){window.open(b,"_blank")}else{this.autoRender=false;document.location=b;return}}}this.splitRenderResults({"data":"links","results":c[1].searchLinks})}}};a.prototype.searchTermClicked=function(b){if(this.linkResultsPageUrl){for(var c=0;c<this.context.savedLinks.length;c++){var d=this.context.savedLinks[c];if(d.searchTerm==b){var e=this.help.addPrefixedQueryParam(this.linkResultsPageUrl,"searchTerm",escape(d.searchTerm));e=this.help.addPrefixedQueryParam(e,"returnQueryParams",escape(d.returnQueryParams));e=this.help.addPrefixedQueryParam(e,"whichPage","relatedAdLinks");document.location=e;return}}}else{alert("No URL has been specified to show the results.")}};a.prototype.searchTermSearched=function(b){if(this.linkResultsPageUrl){var c=this.help.addPrefixedQueryParam(this.linkResultsPageUrl,"searchTerm",escape(b));c=this.help.addPrefixedQueryParam(c,"whichPage","relatedAdLinks");document.location=c}else{alert("No URL has been specified to show the results.")}};a.prototype.goToUrl=function(b){document.location=b}})();(function(){var a=function(){};window["PluckItLatestCommentsWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Latest Comment Widget\r\n{/eval}\r\n\r\n<div class="podLatestCommentWidget podCommentWidget podGlobal">\r\n  <div class="podSectionTitle podIconComments">Latest Comments</div>\r\n  <div class="podCommentList">\r\n    {for comment in collectedComments}\r\n    <div class="podComment"\r\n      id="PluckLatestComments_${comment_index}_${divSuffix}" {if comment_index != 0}style="display: none;"{/if}>\r\n      <div class="podAvatar">\r\n        <span class="podAvatarSmallBg">\r\n          <img src="${comment.author.avatarPhotoUrl}" class="podAvatarSmall" alt="${comment.author.name}" />\r\n        </span>\r\n      </div>\r\n      <div class="podRoundedContainer2">\r\n\r\n        <div class="podBgTL"><div class="podBgTR"></div></div>\r\n        <div class="podContent">\r\n          <span class="podHeadline">${comment.author.name}</span>\r\n          <span class="podCallout">${comment.postedAtTime|showPrettyDate} at ${comment.postedAtTime|showPrettyTime}</span>\r\n\r\n          <p>${comment.shortBody}</p>\t\r\n          <div class="podArticle">\r\n             <span class="podCallout">Article</span> <a href="${comment.articleUrl}">${comment.articleTitle}</a>\r\n          </div>\r\n        </div>\r\n        <div class="podBgBL"><div class="podBgBR"></div></div>\r\n      </div>\r\n    </div>\r\n    {/for}\r\n  </div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){this.autoRender=false;if((this.parent!=null)&&(this.optionSpecified("showLatestComments")!="true")){this.dontShowThisWidget=true;return}this.setEventEnabled("onCompleted",false)};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}b=new dmpod.GetCustomerRequest();this.addRequest(b);var b=new dmpod.DiscoverArticlesRequest("RecentlyWasCommented",15);this.addRequest(b)};a.prototype.buildContextFromResponses=function(h){var d=this.help.getErrorMessageFromResponses(h);if(d.length>0){this.autoRender=true;this.setErrorText(d)}else{this.context.customer=h[0].customer;this.context.articles=h[1].articles;var g=this.context.articles;var f=[];for(var b=0,e;b<g.length,e=g[b];b++){var c=new dmpod.GetCommentPageRequest(new dmpod.ArticleKey(e.key.key),1,0,"TimeStampDescending");f.push(c)}this.context.commentPageLength=0;this.sendRequests(f,function(w){var u=[];var n=0;for(var o=0,l;o<w.Responses.length,l=w.Responses[o];o++){for(var p=0,q;p<l.commentPage.comments.length,q=l.commentPage.comments[p];p++){q.articleTitle=g[o].title;q.articleId=g[o].key.key;q.articleMediaType=g[o].mediaType;var m={articleId:q.articleId,title:this.help.truncateOnBadChar(q.articleTitle),mediaType:q.articleMediaType,apiKey:this.context.apiKey,whichPage:"articlePage"};var v=this.help.buildALinkWorkshop(this,this.optionSpecified("articlePageUrl"),this.context.customer.widgetLandingPageUrl,m);q.articleUrl=v.url;u.push(q);n++}}this.context.collectedComments=u;this.context.commentIndex=0;this.context.commentPageLength=u.length;this.context.rotationSpeed=5000;this.context.divSuffix=this.divSuffix;for(var s=0,r=u,q;q=r[s];s++){var t=100;if(q.body.length>t){q.shortBody=q.body.substring(0,t)+'<a href="articleLink">...</a>'}else{q.shortBody=q.body}}this.processTemplates();this.setEventEnabled("onCompleted",true);this.render();this.setTimeout(function(){this.rotateComment()},this.context.rotationSpeed)})}};a.prototype.rotateComment=function(){var b=20;var d=3;var e=0.5;if(this.context.commentPageLength!=0){var f=document.getElementById("PluckLatestComments_"+this.context.commentIndex+"_"+this.divSuffix);this.context.commentIndex++;if(this.context.commentIndex==this.context.commentPageLength){this.context.commentIndex=0}var c=document.getElementById("PluckLatestComments_"+this.context.commentIndex+"_"+this.divSuffix);this.help.changeOpacity(f,100,0,b,d,e);c.style.opacity=0;c.style.filter="alpha(opacity=0);";c.style.display="block";this.help.changeOpacity(c,0,100,b,d,e)}this.setTimeout(function(){this.rotateComment()},this.context.rotationSpeed)}})();(function(){var a=function(){};window["PluckItPublisherRelatedLinksWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Publisher Related Links Widget\r\n{/eval}\r\n{if contentMatched}\r\n<div class="podPublisherRelatedLinks podWidget">\r\n  {if options.showTitle == \'true\'}\r\n  <div class="podSectionTitle">${options.stringPublisherRelatedLinksTitle}</div>\r\n  {/if}\r\n  <div class="podMessage podGlobal" id="${messageBoxId}" style="display:none"></div>\r\n  <div class="podAlert podGlobal" id="${alertBoxId}" style="display:none"></div>\r\n  {if options.showThumbnail == \'true\'}\r\n    <div class="podBasicList">\r\n      {for relatedLink in relatedLinks}\r\n      <div class="podArticleSummary2" id="${relatedLinkId}_${relatedLink_index}">\r\n        <div class="podArticleInfo podFLC">\r\n          <a href="${relatedLink.url}" class="podThumbnail">\r\n            <div class="podFaviconWrapper">\r\n              <div class="podFaviconBackground">\r\n                <img id="${faviconId}${relatedLink_index}" src="${faviconSrc}" class="podFavicon" />\r\n              </div>\r\n            </div>\r\n          </a>\r\n          <div class="podInfoText">\r\n            <a class="podHeadline" title="Article: ${relatedLink.title}" href="${relatedLink.url}">${relatedLink.title}</a>\r\n            {if options.linkSource == \'MyContent\'}\r\n              <span class="podSelfReference">${options.stringPublisherRelatedLinksSelfReference}</span>\r\n            {/if}\r\n            {if user.canBlockLinks}\r\n            <span class="podInlineAdmin">\r\n              <span id="${blockLinkId}_${relatedLink_index}">\r\n              - <a href="javascript:WIDGETINSTANCE.blockLink(\'${relatedLink_index}\');">Block&nbsp;link</a>\r\n              </span>\r\n            </span>\r\n            {/if}\r\n            <div id="${waitingId}_${relatedLink_index}" class="podInlineAdmin podWaiting podSelfReference" style="display:none">Blocking ...</div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      {/for}\r\n    </div>\r\n  {else}\r\n  <ul>\r\n    {for relatedLink in relatedLinks}\r\n    <li class="podFLC">\r\n      <div class="podPublisherRelatedLink" id="${relatedLinkId}_${relatedLink_index}">\r\n        <a class="podHeadline" href="${relatedLink.url}">${relatedLink.title}</a>\r\n        {if options.linkSource == \'MyContent\'}\r\n          ${options.stringPublisherRelatedLinksSelfReference}\r\n        {/if}\r\n        {if user.canBlockLinks}\r\n        <span class="podInlineAdmin">\r\n          <span id="${blockLinkId}_${relatedLink_index}">\r\n          - <a href="javascript:WIDGETINSTANCE.blockLink(\'${relatedLink_index}\');">Block&nbsp;link</a>\r\n          </span>\r\n        </span>\r\n        {/if}\r\n      </div>\r\n      <div id="${waitingId}_${relatedLink_index}" class="podInlineAdmin podWaiting" style="display:none">Blocking ...</div>\r\n    </li>\r\n    {/for}\r\n  </ul>\r\n  {/if}\r\n</div>\r\n{else}\r\n<!-- No Content Found -->\r\n{/if}\r\n\r\n\r\n\r\n\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.postInit=function(){if(this.optionSpecified("showPublisherRelatedLinks")=="false"||this.optionSpecified("numberOfPublisherLinks")==0){this.dontShowThisWidget=true;this.autoRender=false;return}this.autoRender=false;this.context.alertBoxId="podAlertBoxId_"+this.divSuffix;this.context.blockLinkId="podBlockLinkId_"+this.divSuffix;this.context.messageBoxId="podMessageBoxId_"+this.divSuffix;this.context.relatedLinkId="podRelatedLinkId_"+this.divSuffix;this.context.waitingId="podWaitingId_"+this.divSuffix;this.context.faviconId="podFaviconId_"+this.divSuffix+"_";this.context.faviconSrc="http://cdn-docs.pluckit.pluck.com/assets/v1/images/icons/world.gif?apiKey=00000000-0000-0000-0000-000000000000&vn=7238";this.context.message=""};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}f=new dmpod.GetUserRequest();this.addRequest(f);var b="All";if(this.optionSpecified("linkSource")){b=this.optionSpecified("linkSource")}this.context.locationUrl=this.help.getLocationUrl(this);this.context.articleId=this.optionSpecified("articleId");this.context.tag=this.optionSpecified("tag");this.context.url=this.help.ensureHostUrl(this.optionSpecified("url"),false);if(!this.optionSpecified("articleId")&&!this.optionSpecified("tag")&&!this.optionSpecified("url")){this.context.articleId=this.help.getPrefixedQueryParam("articleId",this.context.locationUrl);if(!this.optionSpecified("articleId")){this.context.tag=this.help.getPrefixedQueryParam("tag",this.context.locationUrl);if(!this.optionSpecified("tag")){this.context.url=this.help.ensureHostUrl(this.help.getPrefixedQueryParam("url",this.context.locationUrl),false)}}}var f;if(this.context.articleId){f=new dmpod.GetPublisherLinksRelatedToArticleRequest(b,this.context.articleId)}else{if(this.context.tag){f=new dmpod.GetPublisherLinksRelatedToTagRequest(b,this.context.tag)}else{if(optionTextId=this.optionSpecified("textId")){var d=optionTextId.split(/,/g);var e=[];for(var g=0,c;g<d.length;g++){if(c=document.getElementById(d[g])){e.push(c.innerHTML)}}f=new dmpod.GetPublisherLinksRelatedToTextRequest(b,e.join("\n"))}else{if(optionTextClass=this.optionSpecified("textClass")){var d=optionTextClass.split(/,/g);var e=[];for(var g=0;g<d.length;g++){for(var h=0,k=this.help.getElementsByClassName(d[g]);h<k.length;h++){e.push(k[h].innerHTML)}}f=new dmpod.GetPublisherLinksRelatedToTextRequest(b,e.join("\n"))}else{if(optionTextKeywords=this.optionSpecified("textKeywords")){f=new dmpod.GetPublisherLinksRelatedToTextRequest(b,optionTextKeywords)}else{f=new dmpod.GetPublisherLinksRelatedToUrlRequest(b,this.context.url)}}}}}f.maxResults=this.optionSpecified("numberOfPublisherLinks");if(this.optionSpecified("excludeFromDomains")){f.excludeFromDomains=this.optionSpecified("excludeFromDomains").split(",")}this.deferredRequest=f;this.addRequest(f)};a.prototype.buildContextFromResponses=function(d){var c=this.help.getErrorMessageFromResponses(d);if(c.length>0){this.setErrorText(c)}else{this.context.user=d[0].user;if(this.context.user.userSecurityRole=="PluckAdmin"){this.context.user.canBlockLinks=true}else{if(this.context.user.userSecurityRole=="CustomerAdmin"){this.context.user.canBlockLinks=true}else{this.context.user.canBlockLinks=false}}var b=d[1];if(b.relatedLinks.length>0){this.setRelatedLinks(b)}else{this.getRelatedLinks(5)}}};a.prototype.postRender=function(c){this.isOnATopicPage=false;if(this.parent){this.isOnATopicPage=(this.parent.classname=="PluckItTopicPageWidget")}if(this.isOnATopicPage&&this.context.relatedLinks.length>0){document.getElementById(this.parent.context.podTopicPageRelatedArticlesTitleId).style.display="block"}if(this.context.message.length>0){this.help.showMessage(this.context.messageBoxId,this.context.message)}if(this.optionSpecified("showThumbnail")=="true"){var b=this;this.getFaviconSrc(function(e){if(e){for(var d=0;d<b.context.relatedLinks.length;d++){document.getElementById(b.context.faviconId+d).src=e}}})}};a.prototype.getRelatedLinks=function(c,b){c--;if(c<1){if(b){b()}return}this.sendRequests(this.deferredRequest,function(e){var d=this.help.getErrorMessageFromResponses(e);var e=e.Responses[0];if(d.length>0){this.setErrorText(d)}else{if(e.relatedLinks.length==0){this.setTimeout(function(){this.getRelatedLinks(c,b)},2000)}else{this.setRelatedLinks(e,b)}}})};a.prototype.setRelatedLinks=function(c,b){this.context.relatedLinks=c.relatedLinks;this.context.contentMatched=c.contentMatched;this.processTemplates();this.setEventEnabled("onCompleted",true);this.render(b)};a.prototype.blockLink=function(e,d){var g=this.context.relatedLinks[e].key;var j=this.context.relatedLinks[e].title;var c=this.context.blockLinkId+"_"+e;var f=this.context.relatedLinkId+"_"+e;var h=this.context.waitingId+"_"+e;var b=window.confirm("Are you sure you want to block this link?");if(b){this.help.swapElements(c,h);var k=new dmpod.BlockPublisherLinkRequest(g);this.sendRequests(k,function(l){l=l.Responses[0];if(l.isError){this.help.swapElements(h,c,true);this.help.showError(this.context.alertBoxId,l.message)}else{this.help.showError(this.context.messageBoxId,'The link "'+j+'" will be removed within one hour.');document.getElementById(f).className+=" podDisabled";document.getElementById(h).style.display="none";if(typeof(d)!=="undefined"){d()}}})}};a.prototype.getFaviconSrc=function(b){function c(){var h;var g=document.getElementsByTagName("LINK");for(var f=0;f<g.length;f++){if(g[f].rel.toLowerCase()=="icon"){h=g[f].href;break}}return h}function d(g,f){if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP")}}if(req!=undefined){req.onreadystatechange=function(){f(req)};req.open("GET",g,true);req.send("")}}var e="favicon.ico";d(e,function(f){if(f.readyState==4){if(f.status==200){b(e)}else{var g="/favicon.ico";d(g,function(h){if(h.readyState==4){if(h.status==200){b(g)}else{var j=c();if(j){d(j,function(k){if(k.readyState==4){if(k.status==200){b(j)}}})}}}})}}})}})();(function(){var a=function(){};window["PluckItSearchWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Search Widget\r\n{/eval}\r\n\r\n<div class="podSearchWidget podGlobal">\r\n  <div class="podRoundedContainer">\r\n    <div class="podBgTL"><div class="podBgTR"></div></div>\r\n    <div class="podContent podFLC">\r\n      <div class="podErrorMessage" id="${podSearchInputErrorId}" style="display: none"></div>\r\n      <div class="podContentAll">\r\n        <div class="podContentBlock">\r\n          <form action="javascript:WIDGETINSTANCE.doSearch(document.forms[\'${podSearchFormName}\']);" name="${podSearchFormName}" class="podSearchForm">\r\n            <input type="text" id="${podSearchInputId}" name="searchTag" class="podCommentArea" value="${searchTag}" />\r\n          </form>\r\n        </div>\r\n      </div>\r\n      <a href="javascript:;" onclick="javascript:WIDGETINSTANCE.doSearch(document.forms[\'${podSearchFormName}\']);" \r\n        class="podButton1"><span class="podButton1_Right">Search</span></a>\r\n    </div>\r\n    <div class="podBgBL"><div class="podBgBR"></div></div>\r\n  </div>\r\n</div>\r\n\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){if(this.optionSpecified("showSearch")!="true"){this.dontShowThisWidget=true;this.autoRender=false;return}};a.prototype.postInit=function(){if(this.dontShowThisWidget){return}this.context.podSearchFormName="podSearchFormName_"+this.divSuffix;this.context.podSearchInputId="podSearchInputId_"+this.divSuffix;this.context.podSearchInputErrorId="podSearchInputErrorId_"+this.divSuffix;this.locationUrl=this.help.getLocationUrl(this);this.context.searchTag=this.help.getPrefixedQueryParam("tag",this.locationUrl)};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}};a.prototype.doSearch=function(b){if(b.searchTag.value==""){this.help.showError(this.context.podSearchInputErrorId,"Please provide a search word.");return}else{this.help.hideError(this.context.podSearchInputErrorId)}var d=this.help.addPrefixedQueryParam(this.locationUrl,"tag",escape(b.searchTag.value));var c=this.help.getTopLevelWidget(this);if(c.internalLinkTarget&&c.internalLinkTarget=="Overlay"){c.overlayMe(d)}else{document.location=d}}})();(function(){var a=function(){};window["PluckItTopicPageWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Topic Page Widget - One Column\r\n{/eval}\r\n\r\n<div class="podTopicPageWidget">\r\n  <div class="podPage podFLC">\r\n    <div class="podLayoutOneColumn">\r\n      {if customer.customerType == \'Subscription\'}\r\n      <div class="podNoAds">\r\n      {/if}\r\n        <div class="podMainContainer">\r\n          <div class="podMain">\r\n            <div class="podPageTitle">${stringTopicPagePageTitle}</div>\r\n            <div class="podArticleSummary3" id="${podFeaturedArticleId}" style="display: none">\r\n              <div class="podArticleInfo podFLC">\r\n                <a id="${podFeaturedArticleImgLinkId}" class="podThumbnail" href="" title="">\r\n                  <img id="${podFeaturedArticleImgId}" class="podArticleThumbnail" src="" alt="" />\r\n                </a>\r\n                <a id="${podFeaturedArticleTitleId}" class="podHeadline" href="" title=""></a>\r\n                <p>\r\n                  {if (konteraAds)}<span class="KonaBody">{/if}\r\n                  <span id="${podFeaturedArticleSummaryId}"></span>\r\n                  {if (konteraAds)}</span>{/if} \r\n                  <a id="${podFeaturedArticleReadMoreId}" class="podReadMore" href="" >Read More &raquo;</a>\r\n                </p>\r\n              </div>\r\n            </div>\r\n            <div id="relatedTags">${relatedTags}</div>\r\n            <div id="${podTopicPageRelatedArticlesTitleId}" class="podSectionTitle" style="display:none">${options.stringTopicPagePageTitleText}</div>\r\n            <div id="publisherRelatedLinks">${publisherRelatedLinks}</div>\r\n            <div id="relatedArticles">${relatedArticles}</div>\r\n          </div>\r\n        </div>\r\n        <div class="podRight">\r\n          <div class="podAd300x250">${adSrc300x250}</div>\r\n          <div id="videoThumbstrip">${videoThumbstrip}</div>\r\n          <div class="podAd300x250">${adSrc300x250b}</div>\r\n        </div>\r\n      {if customer.customerType == \'Subscription\'}\r\n      </div>\r\n      {/if}\r\n      <div id="searchWidget">${searchWidget}</div>\r\n      ${pluckFooter}\r\n    </div>\r\n  </div>\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.layouts=[];a.prototype.layouts["multiColumn"]='{eval}\r\n// Topic Page Widget - Multi-Column\r\n{/eval}\r\n\r\n<div class="podTopicPageWidget">\r\n  <div class="podPage podFLC">\r\n    <div class="podMainContainer">\r\n      <div class="podMain">\r\n        {if options.relatedTags.tag != null}\r\n        <div class="podPageTitle">${options.relatedTags.tag}</div>\r\n        <div class="podSectionTitle">${stringTopicPagePageTitle}</div>\r\n        <hr />\r\n          {if options.relatedTags.showRelatedTags == \'true\'}\r\n        <div id="relatedTags">${relatedTags}</div>\r\n          {/if}\r\n        {/if}\r\n        <div id="relatedArticles">${relatedArticles}</div>\r\n        <div class="podAd300x250b">${adSrc300x250b}</div>\r\n        ${pluckFooter}\r\n      </div>\r\n    </div>\r\n    <div class="podRight">\r\n      <div class="podAd300x250">${adSrc300x250}</div>\r\n      <div id="latestComments">${latestComments}</div>\r\n      {if userDiscovery != \'\'}\r\n      <hr />\r\n      {/if}\r\n      <div id="userDiscovery">${userDiscovery}</div>\r\n    </div>\r\n  </div>\r\n</div>\r\n';a.prototype.layouts["oneColumn"]='{eval}\r\n// Topic Page Widget - One Column\r\n{/eval}\r\n\r\n<div class="podTopicPageWidget">\r\n  <div class="podPage podFLC">\r\n    <div class="podLayoutOneColumn">\r\n      {if customer.customerType == \'Subscription\'}\r\n      <div class="podNoAds">\r\n      {/if}\r\n        <div class="podMainContainer">\r\n          <div class="podMain">\r\n            <div class="podPageTitle">${stringTopicPagePageTitle}</div>\r\n            <div class="podArticleSummary3" id="${podFeaturedArticleId}" style="display: none">\r\n              <div class="podArticleInfo podFLC">\r\n                <a id="${podFeaturedArticleImgLinkId}" class="podThumbnail" href="" title="">\r\n                  <img id="${podFeaturedArticleImgId}" class="podArticleThumbnail" src="" alt="" />\r\n                </a>\r\n                <a id="${podFeaturedArticleTitleId}" class="podHeadline" href="" title=""></a>\r\n                <p>\r\n                  {if (konteraAds)}<span class="KonaBody">{/if}\r\n                  <span id="${podFeaturedArticleSummaryId}"></span>\r\n                  {if (konteraAds)}</span>{/if} \r\n                  <a id="${podFeaturedArticleReadMoreId}" class="podReadMore" href="" >Read More &raquo;</a>\r\n                </p>\r\n              </div>\r\n            </div>\r\n            <div id="relatedTags">${relatedTags}</div>\r\n            <div id="${podTopicPageRelatedArticlesTitleId}" class="podSectionTitle" style="display:none">${options.stringTopicPagePageTitleText}</div>\r\n            <div id="publisherRelatedLinks">${publisherRelatedLinks}</div>\r\n            <div id="relatedArticles">${relatedArticles}</div>\r\n          </div>\r\n        </div>\r\n        <div class="podRight">\r\n          <div class="podAd300x250">${adSrc300x250}</div>\r\n          <div id="videoThumbstrip">${videoThumbstrip}</div>\r\n          <div class="podAd300x250">${adSrc300x250b}</div>\r\n        </div>\r\n      {if customer.customerType == \'Subscription\'}\r\n      </div>\r\n      {/if}\r\n      <div id="searchWidget">${searchWidget}</div>\r\n      ${pluckFooter}\r\n    </div>\r\n  </div>\r\n</div>\r\n';a.prototype.addChildWidgets=function(){this.context.locationUrl=this.help.getLocationUrl(this);this.tag=this.help.getPrefixedQueryParam("tag",this.context.locationUrl);if(this.tag==""){this.tag=this.optionSpecified("tag")}if(!this.tag){this.dontShowThisWidget=true;return}if(this.optionSpecified("layout")!="multiColumn"){this.context.options.relatedArticles.showRelatedContentAd="true"}this.context.options.relatedArticles.pluckFooter.showFooter="false";if(this.optionSpecified("layout")!="multiColumn"){this.context.options.relatedArticles.contentType="text";this.context.options.relatedArticles.layout="thumbTitleSummary";this.context.options.relatedArticles.showTitle="false"}this.addChildWidget("PluckItRelatedContentWidget","relatedArticles");if(this.optionSpecified("layout")!="multiColumn"){this.context.options.relatedTags.showBottomBorder="false"}this.addChildWidget("PluckItRelatedTagsWidget","relatedTags");if(this.optionSpecified("layout")=="multiColumn"){this.addChildWidget("PluckItLatestCommentsWidget","latestComments");this.context.options.userDiscovery.pluckFooter.showFooter="false";this.addChildWidget("PluckItUserDiscoveryWidget","userDiscovery")}else{this.context.options.videoThumbstrip.contentType="video";this.context.options.videoThumbstrip.layout="videoThumbstrip";this.context.options.videoThumbstrip.maxResults=this.optionSpecified("numberOfRelatedVideos");this.context.options.videoThumbstrip.pluckFooter.showFooter="false";this.addChildWidget("PluckItRelatedContentWidget","videoThumbstrip");this.context.options.publisherRelatedLinks.showThumbnail="true";this.addChildWidget("PluckItPublisherRelatedLinksWidget","publisherRelatedLinks");this.addChildWidget("PluckItSearchWidget","searchWidget")}this.addChildWidget("PluckItFooterWidget","pluckFooter")};a.prototype.postInit=function(){if(!this.tag){this.setErrorText("This widget requires a tag in order to function. No tag was provided.");return}this.child["relatedArticles"].context.konaMarker="KonaBody";this.context.podFeaturedArticleId="podFeaturedArticleId_"+this.divSuffix;this.context.podFeaturedArticleImgId="podFeaturedArticleImgId_"+this.divSuffix;this.context.podFeaturedArticleImgLinkId="podFeaturedArticleImgLinkId_"+this.divSuffix;this.context.podFeaturedArticleTitleId="podFeaturedArticleTitleId_"+this.divSuffix;this.context.podFeaturedArticleSummaryId="podFeaturedArticleSummaryId_"+this.divSuffix;this.context.podFeaturedArticleReadMoreId="podFeaturedArticleReadMoreId_"+this.divSuffix;this.context.podTopicPageRelatedArticlesTitleId="podTopicPageRelatedArticlesTitleId_"+this.divSuffix;this.context.stringTopicPagePageTitle=this.context.options.stringTopicPagePageTitle.replace(/%1/g,this.tag)};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}this.addRequest(new dmpod.GetCustomerRequest());this.adProviders=["AdSense"];if((this.optionSpecified("maxResults")>2)||this.optionSpecified("layout")=="multiColumn"){this.adProviders.push("RightMedia")}for(var b=0;b<this.adProviders.length;b++){var d=new dmpod.AdDescription(300,250);d.provider=this.adProviders[b];var c=new dmpod.GetAdsRequest(new Array(d));var e=this.tag;if(e==""){e=this.help.getPrefixedQueryParam("tag",this.context.locationUrl)}c.keywords=new Array(e);c.adContext="RelatedArticleForTag";this.addRequest(c)}};a.prototype.buildContextFromResponses=function(b){this.context.featuredArticle={title:"",thumbnailUrl:"",summary:""};if(b[0].isError){this.setErrorText(b[0].message)}else{this.context.customer=b[0].customer;this.child["relatedArticles"].context.konteraAds=this.context.customer.inlineTextAdsAllowed&&(this.context.customer.customerType=="RevenueShare")}if(b[1].isError){this.setErrorText(b[1].message)}else{this.context.adSrc300x250b=b[1].advertisements[0].source}if(this.adProviders.length>1){if(b[2].isError){this.setErrorText(b[2].message)}else{this.context.adSrc300x250=b[2].advertisements[0].source}}else{this.context.adSrc300x250=""}}})();(function(){var a=function(){};window["PluckItSmartWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Smart Widget\r\n{/eval}\r\n\r\n<div class="podSmartWidget">\r\n  {if enableMenu}\r\n  <div class="podAdminMenu podGlobal" id="${podAdminMenuId}">\r\n    <span class="podAdminMenuUsername">Hello, {if customer.publisherNetwork == \'eNom\'} Administrator{else} ${profileWidget}{/if}!</span> \r\n    <a class="{if options.whichPage == \'adminHomePage\'}podSelected{/if}" href="${adminHomePageLink}">Admin Home</a> |\r\n    {if customer.customerType == \'RevenueShare\'}\r\n    <a class="{if options.whichPage == \'publisherReport\'}podSelected{/if}" href="${publisherReportLink}">View Reports</a> |\r\n    {/if}\r\n    <a class="{if options.whichPage == \'contentWidget\'}podSelected{/if}" href="${contentWidgetLink}">Setup</a> | \r\n    <a class="{if options.whichPage == \'publisherAccount\'}podSelected{/if}" href="${publisherAccountLink}">Account Settings</a> | \r\n    <a class="{if options.whichPage == \'wizardFaq\'}podSelected{/if}" href="${wizardFaqLink}">Help</a> | \r\n    <a href="/">Return to My Site</a> | \r\n    <a href="javascript:WIDGETINSTANCE.logout();">Logout</a>\r\n  </div>\r\n  {/if}\r\n  {if whichPage == \'adminHomePage\'}\r\n  {if enableMenu}\r\n  <div class="podAdminHome podGlobal podFLC">\r\n    <div class="podRoundedContainer">\r\n      <div class="podBgTL"><div class="podBgTR"></div></div>\r\n      <div class="podContent">\r\n      <div class="podPageTitle">Admin Home</div>\r\n        <div class="podContentBlock">\r\n          <div class="podBasicList ">\r\n            {if customer.customerType == \'RevenueShare\'}\r\n            <div class="podItem">\r\n              <a href="${publisherReportLink}" class="podButton1"><span class="podButton1_Right">View Reports</span></a>\r\n              <span class="podCallout">Track your progress every month.</span>\r\n            </div>\r\n            {/if}\r\n            <div class="podItem">\r\n              <a href="${contentWidgetLink}" class="podButton1"><span class="podButton1_Right">Setup</span></a>\r\n              <span class="podCallout">Copy-and-paste new widgets into your site.</span>\r\n            </div>\r\n            <div class="podItem">\r\n              <a href="${publisherAccountLink}" class="podButton1"><span class="podButton1_Right">Account Settings</span></a>\r\n              <span class="podCallout">{if customer.publisherNetwork == \'eNom\'}Review and change your account settings.{else}Change your password and other account settings.{/if}</span>\r\n            </div>\r\n            <div class="podItem">\r\n              <a href="${wizardFaqLink}" class="podButton1"><span class="podButton1_Right">Help</span></a>\r\n              <span class="podCallout">Learn how to customize and troubleshoot your widgets.</span>\r\n            </div>\r\n            <div class="podItem">\r\n              <a href="/" class="podButton1"><span class="podButton1_Right">Return to My Site</span></a>\r\n              <span class="podCallout">Browse and remove content currently on my site.</span>\r\n            </div>\r\n            <div class="podItem">\r\n              <a href="javascript:WIDGETINSTANCE.logout();" class="podButton1"><span class="podButton1_Right">Logout</span></a>\r\n              <span class="podCallout">Good-bye!</span>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class="podBgBL"><div class="podBgBR"></div></div>\r\n    </div>\r\n  </div>\r\n  {else}\r\n  <div class="podGlobal podFLC">\r\n    <div class="podAlert">You are not an authorized administrator for this site.</div>\r\n    <p><div id="smartLoginSignup">${smartLoginSignup}</div></p>\r\n  </div>\r\n  {/if}\r\n  <div id="footerWidget">${footerWidget}</div>\r\n  {elseif whichPage == \'contentWidget\'}\r\n  <div id="contentWidget">${contentWidget}</div>\r\n  <div id="footerWidget">${footerWidget}</div>\r\n  {elseif whichPage == \'loginSignup\'}\r\n  <div id="smartLoginSignup">${smartLoginSignup}</div>\r\n  {elseif whichPage == \'relatedAdLinks\'}\r\n  <div id="relatedAdLinks">${relatedAdLinks}</div>\r\n  {elseif whichPage == \'publisherAccount\'}\r\n  <div id="publisherAccount">${publisherAccount}</div>\r\n  <div id="footerWidget">${footerWidget}</div>\r\n  {elseif whichPage == \'publisherReport\'}\r\n  <div id="publisherReport">${publisherReport}</div>\r\n  <div id="footerWidget">${footerWidget}</div>\r\n  {elseif whichPage == \'topicPage\'}\r\n  <div id="topicPage">${topicPage}</div>\r\n  {elseif whichPage == \'wizardFaq\'}\r\n  <div id="wizardFaq">${wizardFaq}</div>\r\n  {else}\r\n  <div id="articlePage">${articlePage}</div>\r\n  {/if}\r\n</div>\r\n';a.prototype.preloadImageUrls=[];a.prototype.addChildWidgets=function(){if(this.optionSpecified("showSmart")!="true"){this.dontShowThisWidget=true;this.autoRender=false;return}else{this.dontShowThisWidget=false}this.autoRender=true;this.context.locationUrl=this.help.getLocationUrl(this);if(this.optionSpecified("whichPage")){this.context.whichPage=this.optionSpecified("whichPage")}else{this.context.whichPage=this.help.getPrefixedQueryParam("whichPage",this.context.locationUrl)}if(this.optionSpecified("tag")){this.context.tag=this.optionSpecified("tag")}else{this.context.tag=this.help.getPrefixedQueryParam("tag",this.context.locationUrl)}if(this.context.whichPage=="adminHomePage"){}else{if(this.context.whichPage=="contentWidget"){this.addChildWidget("PluckItContentWidget","contentWidget")}else{if(this.context.whichPage=="loginSignup"){}else{if(this.context.whichPage=="publisherAccount"){this.addChildWidget("PluckItPublisherAccountWidget","publisherAccount")}else{if(this.context.whichPage=="publisherReport"){this.addChildWidget("PluckItPublisherReportWidget","publisherReport")}else{if(this.context.whichPage=="relatedAdLinks"){this.addChildWidget("PluckItRelatedAdLinksWidget","relatedAdLinks")}else{if(this.context.whichPage=="topicPage"){this.addChildWidget("PluckItTopicPageWidget","topicPage");this.child["topicPage"].child["relatedTags"].context.tag=this.context.tag}else{if(this.context.whichPage=="wizardFaq"){this.addChildWidget("PluckItContentWidget","wizardFaq")}else{this.addChildWidget("PluckItArticlePageWidget","articlePage")}}}}}}}}this.addChildWidget("PluckItLoginWidget","smartLoginSignup");this.child["smartLoginSignup"].setLoginCallback(function(){document.location=this.help.addPrefixedQueryParam(document.location.href,"whichPage","adminHomePage")});this.addChildWidget("PluckItFooterWidget","footerWidget");this.addChildWidget("PluckItProfileWidget","profileWidget")};a.prototype.getPreloadHtml=function(){var b="";if(this.child.articlePage&&this.child.articlePage.child.featuredArticle){b=this.child.articlePage.child.featuredArticle.getPreloadHtml()}return b};a.prototype.postInit=function(){this.context.enableMenu=false};a.prototype.addRequests=function(){if(this.dontShowThisWidget){return}var b=new dmpod.GetUserRequest();this.addRequest(b);b=new dmpod.GetCustomerRequest();this.addRequest(b)};a.prototype.buildContextFromResponses=function(d){var c=this.help.getErrorMessageFromResponses(d);if(c.length>0){this.setErrorText(c)}else{this.context.customer=d[1].customer;this.context.enableMenu=(d[0].user.userSecurityRole=="CustomerAdmin")||(d[0].user.userSecurityRole=="PluckAdmin");if(this.context.enableMenu){this.context.user=d[0].user;this.context.podAdminMenuId="podAdminMenu_"+this.divSuffix;var b=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,{whichPage:"adminHomePage"});this.context.adminHomePageLink=b.url;b=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,{whichPage:"contentWidget"});this.context.contentWidgetLink=b.url;b=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,{whichPage:"wizardFaq"});this.context.wizardFaqLink=b.url;b=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,{whichPage:"publisherAccount"});this.context.publisherAccountLink=b.url;b=this.help.buildALinkWorkshop(this,"",this.context.customer.widgetLandingPageUrl,{whichPage:"publisherReport"});this.context.publisherReportLink=b.url}}};a.prototype.logout=function(){var b=this;this.child["smartLoginSignup"].logout(function(){document.location=b.help.addPrefixedQueryParam(document.location.href,"whichPage","loginSignup")})}})();(function(){var a=function(){};window["PluckItRelatedWidget"]=a;a.prototype=new dmpod.widget();a.prototype.template='{eval}\r\n// Related Widget\r\n{/eval}\r\n\r\n<div class="podRelatedWidget">\r\n  <div id="relatedRelatedContent">${relatedRelatedContent}</div>\r\n  <div id="relatedRelatedTags">${relatedRelatedTags}</div>\r\n  <div id="pluckFooter">${pluckFooter}</div>\r\n  <div class="podRelatedWidget" id="${podMoveMeId}">\r\n    <div class="podOverlay podGlobal" id="${podOverlayId}" style="display: none">\r\n      <div class="podOverlayTop"></div>\r\n      <div class="podTransparency" id="${podTransparencyId}"></div>\r\n      <div class="podOverlayContent">\r\n        <a class="podTroubleViewingLink" id="${podTroubleViewingId}" onClick="javascript:WIDGETINSTANCE.closeContentLayer(\'${podOverlayId}\', \'${smartWidgetId}\');" target="_dmpodWindow">trouble viewing this?</a>\r\n        <a class="podCloseOverlayLink" href="javascript:WIDGETINSTANCE.closeContentLayer(\'${podOverlayId}\', \'${smartWidgetId}\');">close</a>\r\n        <a class="podIconCloseX" id="${podIconCloseXId}" href="javascript:WIDGETINSTANCE.closeContentLayer(\'${podOverlayId}\', \'${smartWidgetId}\');" title="Close">&nbsp;</a>\r\n        <div id="${smartWidgetId}"><div id="smartWidget">${smartWidget}<br> <br> <br> <br> <br> <br> <br></div></div>\r\n      </div>\r\n    </div>\r\n    <div class="podLoadingBox podGlobal" id="${podLoadingId}" style="display: none">\r\n      <div class="podLoadingMessage">\r\n        <div class="podWaitingMedium">Loading ...</div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>';a.prototype.preloadImageUrls=["icons/article.gif","icons/comments.gif","icons/video.gif","pluck_white_distro.gif","button2.gif","button2_right.gif","icons/comments_add.gif","spinner_medium.gif","icons/recommend_down.gif","icons/recommend_down_on.gif","icons/recommend_up.gif","icons/recommend_up_on.gif","avatar_small_bg.gif","comment_arrow.gif","icons/abuse.gif","spinner.gif","button1.gif","button1_right.gif","rounded_container_bl.gif","rounded_container_br.gif","rounded_container_tl.gif","rounded_container_tr.gif","avatar_medium_bg.gif","button1_selected.gif","button1_selected_right.gif","icons/close.png","pluck_lightgrey.gif","spinner_large.gif","container_header_tl.gif","container_header_tr.gif","rounded_container2_bl.gif","rounded_container2_br.gif","rounded_container2_tl.gif","rounded_container2_tr.gif","icons/world.gif","default_article_thumbnail.gif"];a.prototype.addChildWidgets=function(){if(this.optionSpecified("showRelatedWidget")=="false"){this.dontShowThisWidget=true;this.autoRender=false;return}this.addChildWidget("PluckItRelatedContentWidget","relatedRelatedContent");this.child.relatedRelatedContent.child.pluckFooter.context.options.showFooter="false";this.addChildWidget("PluckItRelatedTagsWidget","relatedRelatedTags");this.addChildWidget("PluckItFooterWidget","pluckFooter");this.context.options.smartWidget.showSmart="false";this.addChildWidget("PluckItSmartWidget","smartWidget")};a.prototype.postInit=function(){this.context.podLoadingId="podLoadingId_"+this.divSuffix;this.context.podMoveMeId="podMoveMeId_"+this.divSuffix;this.context.podTransparencyId="podTransparencyId_"+this.divSuffix;this.context.podOverlayId="podOverlayId_"+this.divSuffix;this.context.smartWidgetId="podSmartWidgetId_"+this.divSuffix;this.context.podTroubleViewingId="podTroubleViewingId_"+this.divSuffix;this.context.podIconCloseXId="podIconCloseX_"+this.divSuffix;this.context.smartWidgetMoved=false;this.loadingCheckStrId="loadingCheck";this.loadingCheckStr='<span id="'+this.loadingCheckStrId+'" style="display: none">.</span>';this.isIE6=/msie|MSIE 6/.test(navigator.userAgent);this.badElementTypes=["OBJECT","EMBED"];if(this.isIE6){this.badElementTypes.push("SELECT")}this.hiddenItems=[];this.ourItems=[]};a.prototype.addRequests=function(){request=new dmpod.GetCustomerRequest();this.addRequest(request)};a.prototype.buildContextFromResponses=function(b){if(b[0].isError){this.setErrorText(b[0].message);return}else{this.context.customer=b[0].customer;this.internalLinkTarget=this.context.customer.internalLinkTarget}};a.prototype.postRender=function(){if(this.isIE6){document.getElementById(this.context.podIconCloseXId).className+=" podIconCloseXSquare"}this.context.whichPage=this.help.getPrefixedQueryParam("whichPage");if(this.context.whichPage=="adminHomePage"||this.context.whichPage=="loginSignup"){this.overlayMe(document.location.href)}};a.prototype.overlayMe=function(c){window.scroll(0,0);if(!this.context.smartWidgetMoved){document.body.appendChild(document.getElementById(this.context.podMoveMeId));this.context.smartWidgetMoved=true}this.help.setLocationUrl(this,c);function b(m,j,h,k){var l=m.help.getPrefixedQueryParam(k,h);if(l){j=m.help.addPrefixedQueryParam(j,k,l)}return j}var e=this.globalLandingPageUrl;e=b(this,e,c,"articleId");e=b(this,e,c,"tag");e=b(this,e,c,"title");e=b(this,e,c,"mediaType");e=b(this,e,c,"author");e=b(this,e,c,"apiKey");e=b(this,e,c,"whichPage");e=this.help.addPrefixedQueryParam(e,"troubleViewing","true");document.getElementById(this.context.podTroubleViewingId).href=e;this.help.displayElement(this.context.podOverlayId,"block");this.setTransparencySize();this.hideBadStuff();var g=document.getElementById(this.context.smartWidgetId).firstChild;var f=document.getElementById(this.context.podLoadingId);this.showLoading(f,g);this.context.options.smartWidget.showSmart="true";this.child.smartWidget.context.options.whichPage=this.context.options.whichPage;this.child.smartWidget.subWidgets=[];this.child.smartWidget.addChildWidgets();this.child.smartWidget.postInit();this.child.smartWidget.execute();function d(j,h,k){setTimeout(function(){if(k.innerHTML.indexOf(j.loadingCheckStrId)==-1){j.hideLoading(h,k)}else{d(j,h,k)}},100)}d(this,f,g)};a.prototype.setTransparencySize=function(){function b(o){var m=document.body;var r=0;var n=0;var q=0;var p=0;if(o){r=o.scrollHeight;n=o.offsetHeight;q=o.scrollWidth;p=o.offsetWidth}var l={maxHeight:Math.max(o.scrollHeight,o.offsetHeight),maxWidth:Math.max(o.scrollWidth,o.offsetWidth)};return l}var c=b(document.body);var g=b(document.documentElement);var d=document.getElementById(this.context.podOverlayId);var e=b(d);var j=Math.max(c.maxHeight,g.maxHeight,e.maxHeight);var k=Math.max(c.maxWidth,g.maxWidth,e.maxWidth);var f=document.getElementById(this.context.podTransparencyId);f.style.height=j+"px";f.style.width=k+"px";if(d.style.display=="block"){var h=this;setTimeout(function(){h.setTransparencySize()},1000)}};a.prototype.closeContentLayer=function(c,b){this.help.displayElement(c,"none");document.getElementById(b).firstChild.innerHTML=""};a.prototype.showLoading=function(b,c){b.style.display="block";c.innerHTML=this.loadingCheckStr+c.innerHTML;c.className="podLoadMode"};a.prototype.hideLoading=function(b,c){b.style.display="none";c.className=""};a.prototype.hideBadStuff=function(){var b=document.getElementById(this.context.podOverlayId);for(var e=0;e<this.badElementTypes.length;e++){var f=document.getElementsByTagName(this.badElementTypes[e]);var h=b.getElementsByTagName(this.badElementTypes[e]);for(var c=0;c<f.length;c++){var l=true;for(var d=0;d<h.length;d++){if(f[c]==h[d]){l=false}}if(l){if(f[c].style.visibility!="hidden"&&f){this.hiddenItems.push(f[c]);f[c].podVisibility=f[c].style.visibility;f[c].style.visibility="hidden"}}}}if(b.style.display=="block"){var g=this;setTimeout(function(){g.hideBadStuff()},1000)}else{for(var e=0;e<this.hiddenItems.length;e++){this.hiddenItems[e].style.visibility=this.hiddenItems[e].podVisibility}}}})();dmpod.widget.runWidget("PluckItRelatedWidget");document.writeln("<scr"+'ipt type="text/javascript" src="http://pluckit.demandmedia.com/InlineTextAds?apikey='+PLUCKIT_APIKEY+'"><'+"/"+"scr"+"ipt>");