(function(){var f="";function j(){var m=document.referrer;if(m&&(m.match(/yahoo\.com\//)||m.match(/ask\.com\//)||m.match(/google\.com\//)||m.match(/bing\.com\//))){return true;}return false;}function h(m,n){if(n){f+="&"+m+"="+n;}}function d(m){if(m){if(typeof(encodeURIComponent)=="function"){return encodeURIComponent(m);}else{return escape(m);}}return m;}function e(m,n){h(m,d(n));}function i(m){return parseInt(m,10);}var g=window.ddc_adobj;if(g&&typeof(g)!="object"){return;}if(!window.ddc_global||typeof(window.ddc_global)!="object"){window.ddc_global={};window.ddc_global.idx=1;}var c=window.ddc_global;var a=g.ad_size;if(!(a&&a.length)){return;}var l=a.split("x");var b=i(l[0]);var k=i(l[1]);f=ddc_adobj.ad_session_key?"http://yssads.ddc.com/b2.php?sz=":"http://yssads.ddc.com/y2.php?sz=";f+=a;h("adfrmt",g.layout);h("n",g.num_ads);h("nr",g.num_relcats);h("nrc",g.num_relcat_cols);h("c",g.client_id);h("itad",g.intelliad);h("tyt",g.typetag);h("clt",g.classtag);h("htspt",g.hotspots);h("sk",g.ad_session_key);h("zip",g.geo);e("cs",g.css_file);e("kw",g.keyword);e("rf",document.referrer);e("d",g.domain);h("dt",g.disp_type);h("dbg",g.debug);h("test",g.test);h("dbld",g.disable_bolding);if(g.search_filter&&g.search_filter.toLowerCase()=="clean"){h("sf","1");}h("cb",Math.round(9999999999*Math.random()));h("idx",c.idx);if(g.keyword||g.ad_session_key||(g.intelliad&&j())||g.hotspots){c.idx++;if(g.disp_type&&g.disp_type=="js"){document.write('<script type="text/javascript" src="'+f+'"><\/script>');}else{document.write("<ifra"+'me width="'+b+'" height="'+k+'" src="'+f+'" frameborder="0" scrolling="no" vspace="0" hspace="0" style="left:0pt;'+'top:0pt;"  name="ddc_iframe" marginwidth="0" marginheight="0" allowtransparency="true" ></ifra'+"me>");}}ddc_adobj=null;})();