// jQuery to bmQuery Adapter
(function($){window.bmQuery=$;})(jQuery);
// jQuery onPath Plugin 1.1.0 by JT
(function($){$.onPath=function(paths){paths=paths.split(',');var path=location.pathname.toString();var on=false;for(var i=0;i<paths.length;i++){if(paths[i].length>1&&paths[i].indexOf('/')==0&&path.indexOf(paths[i])==0){on=true;}else if(paths[i].length>1&&!paths[i].indexOf('/')==0&&path.indexOf(paths[i])!=-1){on=true;}else if(paths[i]==path){on=true;}}return on;};})(bmQuery);
// jQuery getQueryParam Plugin 1.0.0 by JT
(function($){$.getQueryParam=function(param){var pairs=location.search.substring(1).split('&');for(var i=0;i<pairs.length;i++){var params=pairs[i].split('=');if(params[0]==param){return params[1]||'';}}return undefined;};})(bmQuery);
// jQuery Cookie Plugin 1.0 by Klaus Hartl (stilbuero.de)
(function($){$.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=$.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};})(bmQuery);
// jQuery available Plugin 1.5.1 by JT
(function($){$.available={list:[],interval:null,poll:function(){for(var i=0;i<$.available.list.length;i++){if($($.available.list[i][0]).length&&($.available.list[i][2]||$($.available.list[i][0]).next().length||$.isReady)){try{$.available.list[i][1].apply($($.available.list[i][0]).eq(0));}catch(e){if(typeof console!='undefined'){console.log(e);}}$.available.list=$.available.list.slice(0,i).concat($.available.list.slice(i+1));i--;}}if(!$.available.list.length||$.isReady){$.available.interval=clearInterval($.available.interval);}}};$.fn.available=function(fn,turbo){turbo=turbo||false;$.available.list.push([this.selector,fn,turbo]);if(!$.available.interval){$.available.interval=setInterval($.available.poll,1);}return this;};})(bmQuery);
// jQuery writeCapture Plugin by JC
(function($,global,doEvil){$=$||(function(bmQuery){return{ajax:bmQuery.ajax,$:function(s){return bmQuery(s)[0]},replaceWith:function(selector,content){var el=bmQuery(selector)[0];var next=el.nextSibling,parent=el.parentNode;bmQuery(el).remove();if(next){bmQuery(next).before(content)}else{bmQuery(parent).append(content)}}}})(global.bmQuery);function each(array,fn){for(var i=0,len=array.length;i<len;i++){fn(array[i])}}function isFunction(o){return Object.prototype.toString.call(o)==="[object Function]"}function isString(o){return Object.prototype.toString.call(o)==="[object String]"}function slice(array,start,end){return Array.prototype.slice.call(array,start||0,end||array&&array.length)}function any(array,fn){var result=false;each(array,check);function check(it){return!(result=fn(it))}return result}function defer(ctx,name){setTimeout(function(){ctx[name]()},1)}function Q(parent){this._queue=[];this._children=[];this._parent=parent;if(parent)parent._register(this)}Q.prototype={_paused:false,push:function(task){this._queue.push(task);this._next()},pause:function(){this._paused=true},resume:function(){this._paused=false;this._next(true)},_register:function(child){this._children.push(child)},_isPaused:function(){return this._paused||any(this._children,isPaused);function isPaused(c){return c._isPaused()}},_next:function(resuming){var next;if(!this._isPaused()){if((next=this._queue.shift())){next();this._next()}else if(this._parent){if(resuming){defer(this._parent,'_next')}else{this._parent._next()}}}}};function capture(){var state={write:global.document.write,writeln:global.document.writeln,getEl:global.document.getElementById,tempEls:[],finish:function(){each(this.tempEls,function(it){var tempHTML='';if(it.el.contentWindow!==undefined&&it.el.contentWindow.document!==undefined&&it.el.contentWindow.document.html!==''){tempHTML=it.el.contentWindow.document.html;var test=document.getElementById(it.id);test.contentWindow.document.open();test.contentWindow.document.write(tempHTML);window.setTimeout(function(){try{test.contentWindow.document.close()}catch(e){}},2000)}var real=document.getElementById(it.id);each(it.el.childNodes,function(it){real.appendChild(it)})})},out:''};global.document.write=replacementWrite;global.document.writeln=replacementWriteln;nsrDocumentWrite=replacementWrite;srDocumentWrite=replacementWrite;if(self.proxyGetElementById){global.document.getElementById=getReplacmentEl}function replacementWrite(s){if(s.indexOf('prev_slotnames')!==-1){var urlparts=s.split('?');if(urlparts.length>=2){var prefix=encodeURIComponent('prev_slotnames')+'=';var pars=urlparts[1].split(/[&;]/g);for(var i=pars.length;i-->0;){if(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1)}}s=urlparts[0]+'?'+pars.join('&')}}state.out+=s}function replacementWriteln(s){state.out+=s+'\n'}function makeTemp(id){var t=global.document.createElement('div');t.id=id;t.contentWindow={document:{open:function(){},html:'',write:function(str){this.html=str},close:function(){}}};state.tempEls.push({id:id,el:t});return t}function getReplacmentEl(id){var result=state.getEl.call(global.document,id);return result||makeTemp(id)}return state}function uncapture(state){if(self.proxyGetElementById){global.document.getElementById=state.getEl}return state.out}function clean(code){return code&&code.replace(/^\s*<!(\[CDATA\[|--)/,'').replace(/(\]\]|--)>\s*$/,'')}function ignore(){}function doLog(code,error){console.error("Error",error,"executing code:",code)}var logError=isFunction(global.console&&console.error)?doLog:ignore;function captureWrite(code){var state=capture();try{doEvil(clean(code))}catch(e){logError(code,e)}finally{uncapture(state)}return state}function isXDomain(src){var parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(src);return parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=location.host)}function attrPattern(name){return new RegExp(name+'=(?:(["\'])(.*?)\\1|([^\\s>]+))','i')}function matchAttr(name){var regex=attrPattern(name);return function(tag){var match=regex.exec(tag)||[];return match[2]||match[3]}}var SCRIPT_TAGS=/(<script[\s\S]*?>)([\s\S]*?)<\/script>/ig,SRC_REGEX=attrPattern('src'),SRC_ATTR=matchAttr('src'),TYPE_ATTR=matchAttr('type'),LANG_ATTR=matchAttr('language'),GLOBAL="__document_write_ajax_callbacks__",DIV_PREFIX="__document_write_ajax_div-",TEMPLATE="window['"+GLOBAL+"']['%d']();",callbacks=global[GLOBAL]={},global_id=0;function nextId(){return(++global_id).toString()}function normalizeOptions(options,callback){var done;if(isFunction(options)){done=options;options=null}options=options||{};done=done||options&&options.done;options.done=callback?function(){callback(done)}:done;return options}var GLOBAL_Q=new Q();function sanitize(html,options,parentQ){var queue=parentQ&&new Q(parentQ)||GLOBAL_Q;options=normalizeOptions(options);var done=options.done;var doneHtml='';if(isFunction(done)){var doneId=nextId();callbacks[doneId]=function(){queue.push(done);delete callbacks[doneId]};doneHtml='<script type="text/javascript">'+TEMPLATE.replace(/%d/,doneId)+'</script>'}return html.replace(SCRIPT_TAGS,proxyTag)+doneHtml;function proxyTag(element,openTag,code){var src=SRC_ATTR(openTag),type=TYPE_ATTR(openTag)||'',lang=LANG_ATTR(openTag)||'',isJs=(!type&&!lang)||type.toLowerCase().indexOf('javascript')!==-1||lang.toLowerCase().indexOf('javascript')!==-1;var id=nextId(),divId=DIV_PREFIX+id;var run;if(!isJs){return element}if(src&&isFunction(self.fixUrls)){src=self.fixUrls(src)}callbacks[id]=queueScript;function queueScript(){queue.push(run);delete callbacks[id]}if(src){openTag=openTag.replace(SRC_REGEX,'');if(isXDomain(src)){run=loadXDomain}else{if(options.asyncAll){run=loadAsync()}else{run=loadSync}}}else{run=runInline}function runInline(){captureHtml(code)}function loadSync(){$.ajax({url:src,type:'GET',async:false,success:captureHtml})}function logAjaxError(xhr,status,error){logError("<XHR for "+src+">",error);queue.resume()}function loadAsync(){var ready,scriptText;function captureAndResume(script,status){if(!ready){scriptText=script;return}try{captureHtml(script)}catch(e){logError(script,e)}finally{queue.resume()}}$.ajax({url:src,type:'GET',async:true,success:captureAndResume,error:logAjaxError});return function(){ready=true;if(scriptText){captureHtml(scriptText)}else{queue.pause()}}}function loadXDomain(cb){var state=capture();queue.pause();$.ajax({url:src,type:'GET',dataType:"script",success:captureAndResume,error:logAjaxError});function captureAndResume(xhr,st,error){html(uncapture(state));state.finish();queue.resume()}}function captureHtml(script){var state=captureWrite(script);html(state.out);state.finish()}function html(markup){$.replaceWith('#'+divId,sanitize(markup,null,queue))}return openTag+TEMPLATE.replace(/%d/,id)+'</script><div style="" id="'+divId+'"></div>'}}function sanitizeSerial(fragments,done){var queue=GLOBAL_Q;each(fragments,function(f){queue.push(run);function run(){f.action(sanitize(f.html,f.options,queue),f)}});if(done){queue.push(done)}}var name='writeCapture';var self=global[name]={_original:global[name],fixUrls:function(src){return src.replace(/&amp;/g,'&')},noConflict:function(){global[name]=this._original;return this},proxyGetElementById:false,_forTest:{Q:Q,$:$,matchAttr:matchAttr,slice:slice,capture:capture,uncapture:uncapture,captureWrite:captureWrite},replaceWith:function(selector,content,options){$.replaceWith(selector,sanitize(content,options))},html:function(selector,content,options){var el=$.$(selector);el.innerHTML='<span/>';$.replaceWith(el.firstChild,sanitize(content,options))},load:function(selector,url,options){$.ajax({url:url,type:"GET",success:function(content){self.html(selector,content,options)}})},sanitize:sanitize,sanitizeSerial:sanitizeSerial}})(this.writeCaptureSupport,this,eval);(function($,wc,noop){var methods={html:html};$.each(['append','prepend','after','before','wrap','wrapAll','replaceWith','wrapInner'],function(){methods[this]=makeMethod(this)});function isString(s){return Object.prototype.toString.call(s)=="[object String]"}function executeMethod(method,content,options,cb){if(arguments.length==0)return proxyMethods.call(this);var m=methods[method];if(method=='load'){return load.call(this,content,options,cb)}if(!m)error(method);return doEach.call(this,content,options,m)}$.fn.writeCapture=executeMethod;var PROXIED='__writeCaptureJsProxied-fghebd__';function proxyMethods(){if(this[PROXIED])return this;var jq=this;function F(){var _this=this,sanitizing=false;this[PROXIED]=true;$.each(methods,function(method){var _super=jq[method];if(!_super)return;_this[method]=function(content,options,cb){if(!sanitizing&&isString(content)){try{sanitizing=true;return executeMethod.call(_this,method,content,options,cb)}finally{sanitizing=false}}return _super.apply(_this,arguments)}});this.pushStack=function(){return proxyMethods.call(jq.pushStack.apply(_this,arguments))};this.endCapture=function(){return jq}}F.prototype=jq;return new F()}function doEach(content,options,action){var done,self=this;if(options&&options.done){done=options.done;delete options.done}else if($.isFunction(options)){done=options;options=null}wc.sanitizeSerial($.map(this,function(el){return{html:content,options:options,action:function(text){action.call(el,text)}}}),done&&function(){done.call(self)}||done);return this}function html(safe){$(this).html(safe)}function makeMethod(method){return function(safe){$(this)[method](safe)}}function load(url,options,callback){var self=this,selector,off=url.indexOf(' ');if(off>=0){selector=url.slice(off,url.length);url=url.slice(0,off)}if($.isFunction(callback)){options=options||{};options.done=callback}return $.ajax({url:url,type:options&&options.type||"GET",dataType:"html",data:options&&options.params,complete:loadCallback(self,options,selector)})}function loadCallback(self,options,selector){return function(res,status){if(status=="success"||status=="notmodified"){var text=getText(res.responseText,selector);doEach.call(self,text,options,html)}}}var PLACEHOLDER=/jquery-writeCapture-script-placeholder-(\d+)-wc/g;function getText(text,selector){if(!selector||!text)return text;var id=0,scripts={};return $('<div/>').append(text.replace(/<script(.|\s)*?\/script>/g,function(s){scripts[id]=s;return"jquery-writeCapture-script-placeholder-"+(id++)+'-wc'})).find(selector).html().replace(PLACEHOLDER,function(all,id){return scripts[id]})}function error(method){throw"invalid method parameter "+method;}$.writeCapture=wc})(bmQuery,writeCapture.noConflict());
// Buzzmedia geoLocation Plugin 1.0.0 by JT (requires $.cookie, $.getQueryParam, MaxMind GeoIP)
(function($){$.bmLib=$.bmLib||{};$.bmLib.geoLocation=$.cookie('GEOIP_COUNTRY_CODE');if($.getQueryParam('geoLocation')!=undefined){$.bmLib.geoLocation=$.getQueryParam('geoLocation').toUpperCase();}})(bmQuery);
// Buzzmedia Comscore Plugin 1.0.2 by JT
(function($){if(!window.bmComscoreFired){document.write(unescape("%3Cscript src='"+(document.location.protocol=="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js'%3E%3C/script%3E"));$(document).ready(function(){COMSCORE.beacon({c1:2,c2:"6035055",c3:"",c4:location.href,c5:"",c6:"",c15:""});});}})(bmQuery);

// Buzzmedia Campaign Wrapper
(function($){
	if($.getQueryParam('campaignId')) {
		document.write('<scr'+'ipt type="text/javascript" src="http://extensions.buzznet.com/topscript.preview.js.php?siteToken=ONTD&campaignId='+$.getQueryParam('campaignId')+'&ignoreDefaultPreviewIds='+($.getQueryParam('ignoreDefaultPreviewIds')||'0')+'"></scr'+'ipt>');
	} else {
// ONTD Campaign Output - Thu, 02 Sep 10 07:00:21 -0700
// 

(function(config){$.bmLib=$.bmLib||{};$.bmLib.iab=$.bmLib.iab||{};$.bmLib.iab.adHide=$.bmLib.iab.adHide||{};if(typeof config=='undefined'){config={};}
var positionCache=[];var queue=[];var queueInterval;var running=false;var siteToken='ONTD';var tile=0;var preAdConfigHook=function(adConfig){};if(config.preAdConfigHook!=undefined){preAdConfigHook=config.preAdConfigHook;}
var overrideConfigs={};var keywords=[];var gamLocations={};gamLocations['INTL']=true;$.bmLib.iab.write=function(adConfig){var adTag=getAdTag(adConfig);if(adTag.length){document.write(adTag);}}
$.bmLib.iab.writeAjax=function(divsAndConfigs){ajaxWriteWrapper(divsAndConfigs,false);}
$.bmLib.iab.writeAjaxByPosition=function(divsAndPositions){ajaxWriteWrapper(divsAndPositions,true);}
function ajaxWriteWrapper(adCallConfigs,usePositionCache){var delayTime=0;$.each(adCallConfigs,function(index,obj){var adTag='';try{var adTag='';if(usePositionCache){adTag=positionCache[obj.position];}else{adTag=getAdTag(obj.adConfig);}
if(isDartTag()){var adTagSub=adTag.substring(0,adTag.indexOf("ord="));var ord=Math.floor(Math.random()*10000000000000000);adTagSub+='ord='+ord+'?"></scr'+'ipt>';adTag=adTagSub;}
queue.push(function(){callAjaxAd(obj.div,adTag);});}catch(e){}});queueInterval=setInterval(function(){execAdQueue();},10);}
function execAdQueue(){if(queue.length===0){clearInterval(queueInterval);return;}
if(running===false){if(next=queue.shift()){running=true;next();}}}
function callAjaxAd(theDiv,adTag){if($.writeCapture===undefined){return;}
$('#'+theDiv).html('');if(siteToken!=='HM'){$.writeCapture.proxyGetElementById=true;}
$('#'+theDiv).writeCapture().html(adTag,function(){setTimeout(function(){running=false;},100);});}
function getAdTag(adConfig){if(overrideConfigs[adConfig.position]!==undefined){$.each(overrideConfigs[adConfig.position],function(key,value){if(value!==''){adConfig[key]=value;}});}
preAdConfigHook(adConfig);var adTag="";if(isDartTag()){adTag=buildDartAdCall(adConfig);}else{adTag=buildGoogleAdCall(adConfig);}
positionCache[adConfig.position]=adTag;return adTag;}
function buildGoogleAdCall(adConfig){var id='ad_'+adConfig.position;var width='';var height='';var positionName='';if(adConfig.sizes.length>0){var size=adConfig.sizes[0];var splitString=adConfig.sizes[0].split('x');width=splitString[0];height=splitString[1];}
var size=adConfig.sizes[0];size=size.toUpperCase()
positionName='international_'+'ONTD'+'_ros_'+size;var outputString='<iframe src="http://cdn.buzznet.com/assets/pages/p2/ads/gam.html?positionName=';outputString+=positionName+'"';outputString+=' name="'+id+'" id="'+id+'"';outputString+=' height="'+height+'" width="'+width+'"'
outputString+=' framespacing="0" frameborder="0"  marginheight="0" marginwidth="0" scrolling="no"></iframe>';return outputString;}
function buildDartAdCall(adConfig){if(shouldBeSkipped(adConfig)){return'';}
var outputString="";var useIframe='false';if(useIframe!==undefined&&useIframe==='true'){var id='ad_'+adConfig.position;var width='';var height='';var positionName='';if(adConfig.sizes.length>0){var size=adConfig.sizes[0];var splitString=adConfig.sizes[0].split('x');width=splitString[0];height=splitString[1];}
outputString='<iframe src="http://ad.doubleclick.net/adi/';outputString+=buildDartScriptSrc(adConfig)+'"';outputString+=' name="'+id+'" id="'+id+'"';outputString+=' height="'+height+'" width="'+width+'"'
outputString+=' framespacing="0" frameborder="0" marginheight="0" marginwidth="0" scrolling="no">';if(navigator.userAgent.indexOf("Gecko")==-1){outputString+='<scri'+'pt type="text/javascript" src="http://ad.doubleclick.net/adj/';outputString+=buildDartScriptSrc(adConfig);outputString+='"><\/scr'+'ipt>';}
outputString+='</iframe>';}else{outputString='<scri'+'pt type="text/javascript" src="http://ad.doubleclick.net/adj/';outputString+=buildDartScriptSrc(adConfig);outputString+='"><\/scr'+'ipt>';}
return outputString;}
function buildDartScriptSrc(adConfig){if(typeof window.ord=='undefined'){window.ord=Math.floor(Math.random()*10000000000000000);}
var outputString="";var siteIdentifer='';if(siteIdentifer!==''){outputString+=siteIdentifer+'/';}else{outputString+=adConfig.siteIdentifier+'/';}
outputString+=adConfig.zone+';';outputString+='pos='+adConfig.position+';';tile++;outputString+='tile='+tile+';';outputString+='sz='
$.each(adConfig.sizes,function(index,size){outputString+=size;if((index+1)<adConfig.sizes.length){outputString+=',';}});outputString+=';';if(keywords.length){outputString+='kw=';for(var i=0;i<keywords.length;i++){if(adConfig.keywords&&i==0){outputString+=adConfig.keywords;}
if($.onPath(keywords[i].paths)){if(adConfig.position.match(keywords[i].positions)||keywords[i].positions.match('all')){if(keywords[i].keywords.length){if(outputString.charAt(outputString.length-1)!='='){outputString+=',';}
outputString+=keywords[i].keywords;}}}}
outputString+=';';}else{if(adConfig.keywords){outputString+='kw='+adConfig.keywords+';';}}
if(keywords.length){for(var i=0;i<keywords.length;i++){if($.onPath(keywords[i].paths)&&keywords[i].keyvalues.length){if(adConfig.position.match(keywords[i].positions)||keywords[i].positions.match('all')){if(outputString.charAt(outputString.length-1)!=';'){outputString+=';';}
outputString+=keywords[i].keyvalues+';';}}}}
if(tile=='2'){outputString+='dcopt=ist;';}
if(adConfig.options!=undefined){outputString+=adConfig.options;if(outputString.charAt(outputString.length-1)!=';'){outputString+=';';}}
function getAsiSegs(){var rsi_segs=[];var segs_beg=document.cookie.indexOf('rsi_segs=');if(segs_beg>=0){segs_beg=document.cookie.indexOf('=',segs_beg)+1;if(segs_beg>0){var segs_end=document.cookie.indexOf(';',segs_beg);if(segs_end==-1)segs_end=document.cookie.length;rsi_segs=document.cookie.substring(segs_beg,segs_end).split('|');}}
var segLen=20;var segQS="";if(rsi_segs.length<segLen){segLen=rsi_segs.length}
for(var i=0;i<segLen;i++){segQS+=("asi"+"="+rsi_segs[i]+";")}
return segQS;};outputString+=getAsiSegs();outputString+='ord='+ord;outputString+='?';return outputString;}
function shouldBeSkipped(adConfig){var siteToken='ONTD';if($.bmLib.iab.adHide[siteToken]!=undefined){if($.inArray(adConfig.position,$.bmLib.iab.adHide[siteToken])!==-1){return true;}}
return false;}
function isDartTag(){var isDartTag=true;if($.bmLib.geoLocation==undefined||!$.bmLib.geoLocation){isDartTag=true;}else if((gamLocations['AL']!==undefined)){isDartTag=false;}else if(gamLocations['NOUS']!==undefined&&$.bmLib.geoLocation!=='US'){isDartTag=false;}else if(gamLocations['INTL']!==undefined&&($.bmLib.geoLocation!=='US'&&$.bmLib.geoLocation!=='CA'&&$.bmLib.geoLocation!=='UK'&&$.bmLib.geoLocation!=='GB'&&$.bmLib.geoLocation!=='AU'&&$.bmLib.geoLocation!=='DE'&&$.bmLib.geoLocation!=='NO'&&$.bmLib.geoLocation!=='NL'&&$.bmLib.geoLocation!=='IT'&&$.bmLib.geoLocation!=='BE'&&$.bmLib.geoLocation!=='ES'&&$.bmLib.geoLocation!=='AT'&&$.bmLib.geoLocation!=='CH')){isDartTag=false;}else if(gamLocations[$.bmLib.geoLocation]!==undefined){isDartTag=false;}else if(!$.bmLib.geoLocation){isDartTag=true;}
return isDartTag;}})
({});
if(!Array.prototype.indexOf)
{Array.prototype.indexOf=function(elt)
{var len=this.length;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0)
from+=len;for(;from<len;from++)
{if(from in this&&this[from]===elt)
return from;}
return-1;};}
(function(config){var cssStyle="";cssStyle+='<style type="text/css">';cssStyle+="  #comscore_container {";cssStyle+="    margin: "+config.containerMargin+";";cssStyle+="    width: "+config.containerWidth+";";if(config.containerBackgroundImgUrl!=""){cssStyle+="    background-image : url("+config.containerBackgroundImgUrl+");";}
cssStyle+="    background-repeat: "+config.containerBackgroundRepeat+";";cssStyle+="    color: "+config.containerColor+";";cssStyle+="    font-family: "+config.containerFontFamily+";";cssStyle+="    font-size: "+config.containerFontSize+";";cssStyle+="    padding: "+config.containerPadding+";";cssStyle+="    "+config.customContainerStyles+";";cssStyle+="  }";cssStyle+="  #comscore_container .bold {font-weight: bold;}";cssStyle+="  #comscore_container .small_text {font-size: "+config.smallTextClassFontSize+";}";cssStyle+="  #comscore_header_text {padding: "+config.headerTextPadding+";}";cssStyle+="  #comscore_body_text {font-size: "+config.bodyFontSize+"; line-height: 15px}";cssStyle+="  #comscore_header_links {margin: "+config.headerLinksMargin+";}";cssStyle+="  #comscore_container a {color: #FFFFFF; text-decoration: none; font-weight: normal}";cssStyle+="  #comscore_container a:link {color: #FFFFFF; text-decoration: none; font-weight: normal}";cssStyle+="  #comscore_container a:visited {color: #FFFFFF; text-decoration: none; font-weight: normal}";cssStyle+="  #comscore_container a:hover {color: #A7A7A7; text-decoration: none; font-weight: normal}";cssStyle+="  "+config.customStyles;cssStyle+="</style>";$('head').append(cssStyle);var theDiv='';theDiv+='<div id="comscore_container">';theDiv+='  <div id="comscore_header_text">';theDiv+='    <span class="bold"> '+config.siteName+'</span>';if(config.headerCustomText!=''){theDiv+=config.headerCustomText;}else if(config.siteType=='music'){theDiv+=config.headerMusicText;}else if(config.siteType=='entertainment'){theDiv+=config.headerEntertainmentText;}else{theDiv+=config.headerCoreText;}
theDiv+='    <span id="comscore_header_links">';for(var i=0;i<config.headerLinks.length;i++){var headerLink=config.headerLinks[i];theDiv+='  <a href="'+headerLink.href+'" target="_blank">'+headerLink.siteName+'</a>';if(i+1<config.headerLinks.length){theDiv+='  |  ';}}
theDiv+='    </span>';theDiv+='  </div>';theDiv+='  <div id="comscore_body_text">';if(config.listAllSites==1){theDiv+='  <div>';theDiv+='    <span class="bold">BUZZ</span>MEDIA <span class="bold">Publishers</span>: ';for(var i=0;i<config.publishers.length;i++){var site=config.publishers[i];theDiv+='<a href="'+site.href+'" target="_blank">'+site.siteName+"</a>";if(i+1<config.publishers.length){theDiv+=' I  ';}}
theDiv+='  </div>';}else{theDiv+='  <div>';entertainmentDiv='<div><span class="bold">BUZZ</span>MEDIA <span class="bold">Entertainment Publishers</span>: ';musicDiv='<div><span class="bold">BUZZ</span>MEDIA <span class="bold">Music Publishers</span>: ';var entertainmentAnchors={};var musicAnchors={};var totalEntertainmentSites=config.entertainmentSites.length;var totalMusicSites=config.musicSites.length;for(var i=0;i<config.publishers.length;i++){var site=config.publishers[i];var entIndex=config.entertainmentSites.indexOf(site.siteName);var musicIndex=config.musicSites.indexOf(site.siteName);if(entIndex>-1){var anchorDiv='<a href="'+site.href+'" target="_blank">'+site.siteName+"</a>";if(entIndex+1<totalEntertainmentSites){if(config.tightenSiteLists==1){anchorDiv+='</a> I ';}else{anchorDiv+='</a>  I  ';}}
entertainmentAnchors[entIndex]=anchorDiv;}
if(musicIndex>-1){var anchorDiv='<a href="'+site.href+'" target="_blank">'+site.siteName+"</a>";if(musicIndex+1<totalMusicSites){if(config.tightenSiteLists==1){anchorDiv+='</a> I ';}else{anchorDiv+='</a>  I  ';}}
musicAnchors[musicIndex]=anchorDiv;}}
for(var i=0;i<totalEntertainmentSites;i++){entertainmentDiv+=entertainmentAnchors[i];}
for(var i=0;i<totalMusicSites;i++){musicDiv+=musicAnchors[i];}
entertainmentDiv+='</div>';musicDiv+='</div>';theDiv+=entertainmentDiv;theDiv+=musicDiv;theDiv+="</div>";}
theDiv+='  </div>';theDiv+='</div>';$(config.containerDivId).available(function(){if(config.appendToDiv==1){$(this).append(theDiv);}else{$(this).html(theDiv);}});for(var i=0;i<config.clearDivs.length;i++){$(config.clearDivs[i]).available(function(){$(this).remove();});}})({siteName:'Oh No They Didn\'t',siteType:'entertainment',listAllSites:'0',headerCoreText:' is a member of <span class="bold">BUZZ</span>MEDIA',headerMusicText:' is a member of <span class="bold">BUZZ</span>MEDIA Music, a division of <span class="bold">BUZZ</span>MEDIA',headerEntertainmentText:' is a member of <span class="bold">BUZZ</span>MEDIA Entertainment, a division of <span class="bold">BUZZ</span>MEDIA',headerCustomText:'',containerDivId:'#pagecontainer',clearDivs:[],appendToDiv:1,customContainerStyles:'',containerMargin:'0 0 20px 0',containerWidth:'1004',containerBackgroundImgUrl:'http://cdn.buzznet.com/assets/pages/p2/ads/comscore_footer/comscore_background.png',containerBackgroundRepeat:'repeat-x',containerColor:'#FFFFFF',containerFontFamily:'Arial',containerFontSize:'12px',containerPadding:'7px 7px 8px 13px',smallTextClassFontSize:'9.5px',headerTextPadding:'0',bodyFontSize:'10px',tightenSiteLists:'0',headerLinksMargin:'0 0 0 6px',customStyles:'#comscore_header_text { text-align: center; } #comscore_body_text { display: none; }',headerLinks:[{'siteName':'About <span class="bold">BUZZ</span>MEDIA','href':'http://buzz-media.com/about/'},{'siteName':'Advertise','href':'http://buzz-media.com/about/'},{'siteName':'Press','href':'http://buzz-media.com/press/'},{'siteName':'Contact','href':'http://buzz-media.com/about/'}],publishers:[{'siteName':'AbsolutePunk','href':'http://absolutepunk.net/'},{'siteName':'BritneySpears.com','href':'http://www.britneyspears.com'},{'siteName':'Buzznet','href':'http://www.buzznet.com'},{'siteName':'Celebslam','href':'http://celebslam.buzznet.com/'},{'siteName':'Celebuzz','href':'http://www.celebuzz.com'},{'siteName':'ConcreteLoop','href':'http://concreteloop.com/'},{'siteName':'OKMagazine.com','href':'http://www.okmagazine.com/'},{'siteName':'GoFugYourself','href':'http://gofugyourself.celebuzz.com/'},{'siteName':'Idolator','href':'http://www.idolator.com'},{'siteName':'JustJared','href':'http://justjared.buzznet.com/'},{'siteName':'JustJaredJr.','href':'http://justjaredjr.buzznet.com'},{'siteName':'KimKardashian','href':'http://kimkardashian.celebuzz.com'},{'siteName':'KhloeKardashian','href':'http://khloekardashian.celebuzz.com/'},{'siteName':'KourtneyKardashian','href':'http://officialkourtneyk.celebuzz.com/'},{'siteName':'NicoleRichie','href':'http://nicolerichie.celebuzz.com/'},{'siteName':'KendraWilkinson','href':'http://kendrawilkinson.celebuzz.com/'},{'siteName':'PacificCoastNewsOnline','href':'http://pacificcoastnewsonline.celebuzz.com/'},{'siteName':'SocialiteLife','href':'http://socialitelife.celebuzz.com'},{'siteName':'SoundsOfBuzz','href':'http://soundsofbuzz.com/'},{'siteName':'SplashNewsOnline','href':'http://splashnewsonline.celebuzz.com/'},{'siteName':'Stereogum','href':'http://www.stereogum.com/'},{'siteName':'TheSuperficial','href':'http://www.thesuperficial.com/'},{'siteName':'WWTDD','href':'http://www.wwtdd.com'},{'siteName':'WhitneyPort','href':'http://whitneyport.celebuzz.com/'},{'siteName':'Videogum','href':'http://videogum.com'},{'siteName':'More...','href':'http://www.buzz-media.com/properties/'}],entertainmentSites:['JustJaredJr.','Buzznet','Celebuzz','TheSuperficial','SocialiteLife','ConcreteLoop','WWTDD','GoFugYourself','Videogum','Celebslam'],musicSites:['Idolator','Absolute Punk','SoundsOfBuzz','Lyrics','Buzznet']});
	}
})(bmQuery);
