//>>built
define("demos/fonts/src/news",["dojo","dijit","dojox","dojo/require!demos/fonts/src/pie,dojo/date/locale"],function(_1,_2,_3){_1.provide("demos.fonts.src.news");_1.require("demos.fonts.src.pie");_1.require("dojo.date.locale");function _4(){var _5=_3.gfx.getVectorFont("resources/eurostyle.svg");var _6=_3.gfx.getVectorFont("resources/bookplate.svg");_1.byId("date").innerHTML=_1.date.locale.format(new Date(),{formatLength:"long",selector:"date"});var t=_1.byId("title"),b=_1.marginBox(t),_7=t.innerHTML,w=_6.getWidth(_7,_6._getSizeFactor("72px"));t.innerHTML="";var s=_3.gfx.createSurface(t,w,72),g=s.createGroup();_6.draw(g,{text:_7,width:w,height:60,align:"middle"},{size:"72px"},"#181818");if(_1.isIE){t.parentNode.style.textAlign="left";}var t=_1.byId("subtitle"),_7=t.innerHTML,w=_6.getWidth(_7,_6._getSizeFactor("20px"));t.innerHTML="";var s=_3.gfx.createSurface(t,w,20),g=s.createGroup();_5.draw(g,{text:_7,align:"middle"},{size:"20px"},"#333");_1.forEach(["mainHeading","label"],function(_8){var t=_1.byId(_8),_7=t.innerHTML,w=_5.getWidth(_7,_5._getSizeFactor("24px"));t.innerHTML="";var s=_3.gfx.createSurface(t,w,30),g=s.createGroup();_5.draw(g,{text:_7},{size:"24px"},"#333");});_1.query("#body h2").forEach(function(t){var _9=t.innerHTML,w=_6.getWidth(_9,_6._getSizeFactor("16px"));t.innerHTML="";var s=_3.gfx.createSurface(t,w,18),g=s.createGroup();_6.draw(g,{text:_9},{size:"16px"},"#000");});var t=_1.byId("bottomCopy"),_7=t.innerHTML,w=_6.getWidth(_7,_6._getSizeFactor("9px"));t.innerHTML="";var s=_3.gfx.createSurface(t,w,10),g=s.createGroup();_6.draw(g,{text:_7},{size:"9px"},"#000");var _a=[{label:"Pretty likely",value:200},{label:"Maybe",value:142},{label:"Not too likely",value:76},{label:"Ain't gonna do it",value:49}];var p=new demos.fonts.src.pie(_1.byId("chart"),_5,_a);var g=p.draw();};_1.addOnLoad(_4);});