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.isDOMComplete=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.isDOMComplete=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="7311";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:7311"};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++){var envelope=this.JSON.parse(response.Envelopes[i].payload);if(envelope.hasOwnProperty("debugServerInfo")&&envelope.debugServerInfo!=null){try{envelope.debugServerInfo=this.JSON.parse(envelope.debugServerInfo)}catch(e){}}response.Envelopes[i]=envelope}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:7311";this.objectType="Admin.GetCaptchaInfoRequest"},GenerateNewCustomerKeyRequest:function(){this.callerSDK="js:7311";this.objectType="Admin.GenerateNewCustomerKeyRequest"},GetLoginTokenRequest:function(b,a){this.userEmail=b;this.password=a;this.callerSDK="js:7311";this.objectType="Admin.GetLoginTokenRequest"},VerifyUsersPublisherNetworkRequest:function(a){this.network=a;this.callerSDK="js:7311";this.objectType="Admin.VerifyUsersPublisherNetworkRequest"},GetApiKeysRequest:function(){this.callerSDK="js:7311";this.objectType="Admin.GetApiKeysRequest"},GetAssociatedCustomersRequest:function(){this.callerSDK="js:7311";this.objectType="Admin.GetAssociatedCustomersRequest"},RegisterUserRequest:function(c,b,a){this.displayName=c;this.userEmail=b;this.password=a;this.callerSDK="js:7311";this.objectType="Admin.RegisterUserRequest"},ResetPasswordRequest:function(a){this.userEmail=a;this.callerSDK="js:7311";this.objectType="Admin.ResetPasswordRequest"},ChangePasswordRequest:function(b,a,c){this.userKey=b;this.oldPassword=a;this.newPassword=c;this.callerSDK="js:7311";this.objectType="Admin.ChangePasswordRequest"},GetEnabledDomainsForCustomerRequest:function(){this.callerSDK="js:7311";this.objectType="Admin.GetEnabledDomainsForCustomerRequest"},EnableDomainForCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7311";this.objectType="Admin.EnableDomainForCustomerRequest"},DisableDomainForCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7311";this.objectType="Admin.DisableDomainForCustomerRequest"},GetBundleRequest:function(a){this.bundleId=a;this.callerSDK="js:7311";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:7311";this.objectType="Common.DeleteContentActionRequest"},GetArticlesRelatedToUrlRequest:function(a){this.url=a;this.callerSDK="js:7311";this.objectType="Content.GetArticlesRelatedToUrlRequest"},GetArticlesRelatedToArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7311";this.objectType="Content.GetArticlesRelatedToArticleRequest"},GetArticlesRelatedToTagRequest:function(a){this.tag=a;this.callerSDK="js:7311";this.objectType="Content.GetArticlesRelatedToTagRequest"},GetArticlesRelatedToTextRequest:function(a){this.text=a;this.callerSDK="js:7311";this.objectType="Content.GetArticlesRelatedToTextRequest"},GetTagsForUrlRequest:function(a){this.url=a;this.callerSDK="js:7311";this.objectType="Content.GetTagsForUrlRequest"},GetTagsForArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7311";this.objectType="Content.GetTagsForArticleRequest"},GetTagsForTagRequest:function(a){this.tag=a;this.callerSDK="js:7311";this.objectType="Content.GetTagsForTagRequest"},GetTagsForTextRequest:function(a){this.text=a;this.callerSDK="js:7311";this.objectType="Content.GetTagsForTextRequest"},GetPublisherLinksRelatedToUrlRequest:function(b,a){this.linkSource=b;this.url=a;this.callerSDK="js:7311";this.objectType="Content.GetPublisherLinksRelatedToUrlRequest"},GetPublisherLinksRelatedToArticleRequest:function(b,a){this.linkSource=b;this.articleId=a;this.callerSDK="js:7311";this.objectType="Content.GetPublisherLinksRelatedToArticleRequest"},GetPublisherLinksRelatedToTagRequest:function(b,a){this.linkSource=b;this.tag=a;this.callerSDK="js:7311";this.objectType="Content.GetPublisherLinksRelatedToTagRequest"},GetPublisherLinksRelatedToTextRequest:function(b,a){this.linkSource=b;this.text=a;this.callerSDK="js:7311";this.objectType="Content.GetPublisherLinksRelatedToTextRequest"},GetAdsForArticleRequest:function(a,b){this.articleId=a;this.adFormats=b;this.callerSDK="js:7311";this.objectType="Content.GetAdsForArticleRequest"},GetAdsRequest:function(a){this.adFormats=a;this.callerSDK="js:7311";this.objectType="Content.GetAdsRequest"},GetSponsoredLinksRequest:function(a){this.numberOfLinks=a;this.callerSDK="js:7311";this.objectType="Content.GetSponsoredLinksRequest"},GetRelatedAdLinksRequest:function(a){this.pageUrl=a;this.callerSDK="js:7311";this.objectType="Content.GetRelatedAdLinksRequest"},GetArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7311";this.objectType="Content.GetArticleRequest"},GetExternalUrlContentRequest:function(a,b){this.contentLabel=a;this.relativePath=b;this.callerSDK="js:7311";this.objectType="Content.GetExternalUrlContentRequest"},GetContentCategoriesRequest:function(){this.callerSDK="js:7311";this.objectType="Content.GetContentCategoriesRequest"},BlockArticleRequest:function(a){this.articleKey=a;this.callerSDK="js:7311";this.objectType="Content.BlockArticleRequest"},BlockPublisherLinkRequest:function(a){this.publisherLinkKey=a;this.callerSDK="js:7311";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:7311";this.objectType="Customers.RegisterUsersCustomerAccountRequest"},GetCustomerRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.GetCustomerRequest"},UpdateCustomerRequest:function(a){this.domain=a;this.callerSDK="js:7311";this.objectType="Customers.UpdateCustomerRequest"},UpdateCustomerAdDetailsRequest:function(a,b){this.inlineTextAdsAllowed=a;this.sponsoredLinksAllowed=b;this.callerSDK="js:7311";this.objectType="Customers.UpdateCustomerAdDetailsRequest"},UpdateCustomerDeploymentDetailsRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.UpdateCustomerDeploymentDetailsRequest"},UpdateCustomerLandingPageUrlRequest:function(a,b){this.widgetLandingPageUrl=a;this.forDomain=b;this.callerSDK="js:7311";this.objectType="Customers.UpdateCustomerLandingPageUrlRequest"},ClearCustomerLandingPageUrlRequest:function(a){this.forDomain=a;this.callerSDK="js:7311";this.objectType="Customers.ClearCustomerLandingPageUrlRequest"},UseOverlayByDefaultRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.UseOverlayByDefaultRequest"},GetCustomerLandingPageUrlsRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.GetCustomerLandingPageUrlsRequest"},UpdateAdNetworksRequest:function(a,b){this.activeAdNetworks=a;this.adNetworkDetails=b;this.callerSDK="js:7311";this.objectType="Customers.UpdateAdNetworksRequest"},GetAdNetworksRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.GetAdNetworksRequest"},UpdatePaymentSystemsRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.UpdatePaymentSystemsRequest"},GetPaymentSystemsRequest:function(){this.callerSDK="js:7311";this.objectType="Customers.GetPaymentSystemsRequest"},GetUserRequest:function(){this.callerSDK="js:7311";this.objectType="Users.GetUserRequest"},HasAuthorizedExternalSiteRequest:function(a){this.externalSite=a;this.callerSDK="js:7311";this.objectType="Users.HasAuthorizedExternalSiteRequest"},UpdateUserRequest:function(a){this.displayName=a;this.callerSDK="js:7311";this.objectType="Users.UpdateUserRequest"},BlockUserRequest:function(a){this.userKey=a;this.callerSDK="js:7311";this.objectType="Users.BlockUserRequest"},BlockRelatedAdLinksRequest:function(a){this.pageUrl=a;this.callerSDK="js:7311";this.objectType="Content.BlockRelatedAdLinksRequest"},TweetArticleRequest:function(a){this.articleId=a;this.callerSDK="js:7311";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:7311";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:7311";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:7311";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:7311";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:7311";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:7311";this.objectType="Reactions.ClearAbuseReportRequest"},GetAbuseReportPageRequest:function(b,c,a){this.numberPerPage=b;this.onPage=c;this.maxReportersPerReport=a;this.callerSDK="js:7311";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:7311";this.objectType="Reactions.GetAbuseReportRequest"},DiscoverArticlesRequest:function(a,b){this.activity=a;this.age=b;this.callerSDK="js:7311";this.objectType="Discovery.DiscoverArticlesRequest"},DiscoverUsersRequest:function(a,b){this.activity=a;this.age=b;this.callerSDK="js:7311";this.objectType="Discovery.DiscoverUsersRequest"},UserRecentActivityRequest:function(a){this.userKey=a;this.callerSDK="js:7311";this.objectType="Reactions.UserRecentActivityRequest"},GetPublisherMonthlyReportRequest:function(a,b,c){this.month=a;this.year=b;this.apiKey=c;this.callerSDK="js:7311";this.objectType="Reporting.GetPublisherMonthlyReportRequest"},EchoRequest:function(a){this.message=a;this.callerSDK="js:7311";this.objectType="Util.EchoRequest"},ErrorRequest:function(){this.callerSDK="js:7311";this.objectType="Util.ErrorRequest"},nocomma:function(){}})})();(function(){dmpod.extend({AdNetworkDetails:function(){this.callerSDK="js:7311";this.objectType="AdNetworks.AdNetworkDetails"},AdDescription:function(b,a){this.width=b;this.height=a;this.callerSDK="js:7311";this.objectType="AdNetworks.AdDescription"},Advertisement:function(b,a){this.adDescription=b;this.source=a;this.callerSDK="js:7311";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:7311";this.objectType="AdNetworks.SponsoredLink"},RelatedAdLink:function(a,b){this.searchTerm=a;this.returnQueryParams=b;this.callerSDK="js:7311";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:7311";this.objectType="AdNetworks.RelatedAdResultLink"},Bundle:function(a){this.templateKey=a;this.callerSDK="js:7311";this.objectType="Bundles.Bundle"},Article:function(a,b){this.key=a;this.id=b;this.callerSDK="js:7311";this.objectType="Content.Article"},Tag:function(a){this.name=a;this.callerSDK="js:7311";this.objectType="Content.Tag"},ArticleKey:function(a){this.key=a;this.callerSDK="js:7311";this.objectType="Content.ArticleKey"},PublisherContentKey:function(a){this.key=a;this.callerSDK="js:7311";this.objectType="Content.PublisherContentKey"},ContentCategory:function(b,a){this.id=b;this.name=a;this.callerSDK="js:7311";this.objectType="Content.ContentCategory"},RelatedLink:function(c,b,a){this.title=c;this.url=b;this.key=a;this.callerSDK="js:7311";this.objectType="Content.RelatedLink"},RequestEnvelope:function(){this.callerSDK="js:7311";this.objectType="Core.RequestEnvelope"},ResponseEnvelope:function(){this.callerSDK="js:7311";this.objectType="Core.ResponseEnvelope"},ItemEnvelope:function(){this.callerSDK="js:7311";this.objectType="Core.ItemEnvelope"},BaseKey:function(a,b){this.key=a;this.keyType=b;this.callerSDK="js:7311";this.objectType="Core.BaseKey"},KeyValuePair:function(a,b){this.key=a;this.data=b;this.callerSDK="js:7311";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:7311";this.objectType="Customers.Customer"},ContentSourceKey:function(a){this.key=a;this.callerSDK="js:7311";this.objectType="Content.ContentSourceKey"},UserKey:function(a){this.key=a;this.callerSDK="js:7311";this.objectType="Users.UserKey"},User:function(a){this.userKey=a;this.callerSDK="js:7311";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:7311";this.objectType="Customers.CustomerSearchRecord"},PaymentSystemDetails:function(){this.callerSDK="js:7311";this.objectType="PaymentSystems.PaymentSystemDetails"},CommentKey:function(a){this.key=a;this.callerSDK="js:7311";this.objectType="Reactions.CommentKey"},ReactionSummary:function(){this.callerSDK="js:7311";this.objectType="Reactions.ReactionSummary"},Comment:function(){this.callerSDK="js:7311";this.objectType="Reactions.Comment"},CommentPage:function(){this.callerSDK="js:7311";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:7311";this.objectType="Reactions.AbuseReport"},AbuseReportPage:function(){this.callerSDK="js:7311";this.objectType="Reactions.AbuseReportPage"},AbuseReportDetail:function(b,a){this.abuseReason=b;this.abuseReportCount=a;this.callerSDK="js:7311";this.objectType="Reactions.AbuseReportDetail"},RecommendationDetail:function(b,a){this.category=b;this.count=a;this.callerSDK="js:7311";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:7311";this.objectType="Reactions.UserActivity"},PublisherMonthlyReport:function(a,b,c){this.month=a;this.year=b;this.dailyReports=c;this.callerSDK="js:7311";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"&&option!="waitForDOMComplete"},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(this.isArray(from[o])){to[o]=from[o]}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=7311")},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,attempts){if(elementId){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";return}attempts=attempts||0;if(attempts==0){base.service.debug(errorMessage)}if(attempts<30){var self=this;setTimeout(function(){self.showError(elementId,errorMessage,attempts+1)},1000)}}},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){try{var l=b.help.createUniqueId();var e=null;if(typeof(PLUCKIT_WIDGET_DIVID)!=="undefined"&&PLUCKIT_WIDGET_DIVID!=null){e=PLUCKIT_WIDGET_DIVID;PLUCKIT_WIDGET_DIVID=null}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(e!=null){b.help.showError(e,h)}else{document.write(h)}return}var f={};if(typeof(PLUCKIT_WIDGET_OPTIONS_DEFAULT)!=="undefined"){f=PLUCKIT_WIDGET_OPTIONS_DEFAULT;PLUCKIT_WIDGET_OPTIONS_DEFAULT=null}var n={};if(typeof(PLUCKIT_WIDGET_EVENTS)!=="undefined"){n=PLUCKIT_WIDGET_EVENTS;PLUCKIT_WIDGET_EVENTS=null}var m=true;if(typeof(PLUCKIT_WIDGET_OPTIONS)!="undefined"&&PLUCKIT_WIDGET_OPTIONS!=null){m=PLUCKIT_WIDGET_OPTIONS["podCss"]!="false";b.help.overrideOptionsRecursively(PLUCKIT_WIDGET_OPTIONS,f);PLUCKIT_WIDGET_OPTIONS=null}if(b.service.debugging.firebug){window.console.group("Creating widget "+c+" with these options:");window.console.dir(f);window.console.groupEnd()}if(m){b.help.addWidgetStylesheet(b.help.resolveAssetsResource("stylesheets/pod.css"),true)}var k=a.createWidget(null,c,c,l,f,n);if(e!=null){k.divId=e}else{e=k.divId;document.write('<div id="'+k.divId+'" class="podWidget">'+k.getPreloadHtml()+"</div>")}if(k.preloadImageUrls.length>0){for(var j=0;j<k.preloadImageUrls.length;j++){var o=document.createElement("img");o.src=b.help.resolveAssetsResource("images/"+k.preloadImageUrls[j])}}k.execute();k.help.trackWidgetExecution(c,k.help.getPrefixedQueryParam("whichPage"))}catch(g){var d='<div id="'+l+'" class="podWidget">'+b.help.makeErrorSpan("["+c+"] "+g.name+": "+g.message)+"</div>";if(e!=null){b.help.showError(e,d)}else{document.write(d)}}};a.createWidget=function(g,h,j,c,d,f){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(c){var d="["+this.classname+":"+this.instanceName+"] "+c.name+": "+c.message;this.base.showError(this.divId,d)},execute:function(c,d){var g=this;try{if(typeof(d)!=="undefined"){this.help.overrideOptions(d,this.context.options)}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++>30){j.service.debug("couldn't find widget div: "+j.divId)}else{setTimeout(function(){j.render(k)},Math.min(1000,100*k));if(k%5==0){j.service.debug("looking for widget div: "+j.divId)}}};if(this.optionSpecified("waitForDOMComplete")=="true"&&!this.service.isDOMComplete){c(this,f);return}if(this.divId=="0"){this.processPostRender(this.contentTime);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){if(this.errorText){this.errorText=this.errorText+"<br></br>"+c}else{this.setErrorText(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={"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":"","waitForDOMComplete":"true"},"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":"","waitForDOMComplete":"true"};(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=7311" 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=["icons/article.gif","icons/comments.gif","icons/video.gif","pluck_white_distro.gif"];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=7311" \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}})}}}})();dmpod.widget.runWidget("PluckItRelatedContentWidget");