text: $(document).ready(function(){function o(o){var a=[[e(2013,10,21),78],[e(2013,10,22),215],[e(2013,10,23),250],[e(2013,10,24),230],[e(2013,10,25),245],[e(2013,10,26),260],[e(2013,10,27),340]],i=[[e(2013,10,21),123],[e(2013,10,22),180],[e(2013,10,23),285],[e(2013,10,24),250],[e(2013,10,25),205],[e(2013,10,26),198],[e(2013,10,27),195]],t=$.plot(o,[{data:a,label:"Current Week",points:{fillColor:k.pointsFillColor},lines:{fill:!0,fillColor:{colors:[{opacity:.1},{opacity:.8}]}}},{data:i,label:"Last Week",points:{fillColor:k.pointsFillColor}}],{series:{lines:{show:!0,lineWidth:k.lineWidth},points:{show:!0,lineWidth:k.pointsLineWidth,fill:!0},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:k.gridTickColor},colors:["#238C47","#A7F43D"],yaxis:{font:{color:k.axisFontColor},ticks:5},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],timeformat:"%a",font:{color:k.axisFontColor},tickColor:"transparent",autoscaleMargin:.02},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}});return t}function a(o){var a=[[e(2013,10,21),50],[e(2013,10,22),75],[e(2013,10,23),205],[e(2013,10,24),170],[e(2013,10,25),205],[e(2013,10,26),198],[e(2013,10,27),195]],i=$.plot(o,[{data:a,label:"Current Week"}],{series:{lines:{show:!0,lineWidth:k.linesLineWidth,fill:!0},points:{show:!0,lineWidth:k.pointsLineWidth,fill:!0,fillColor:k.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:k.gridTickColor},colors:["#78AF2C"],yaxis:{font:{color:k.axisFontColor}},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],timeformat:"%a",font:{color:k.axisFontColor},tickColor:"transparent",autoscaleMargin:.02},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}});return i}function i(o){var a=[[e(2013,10,21),188],[e(2013,10,22),205],[e(2013,10,23),250],[e(2013,10,24),230],[e(2013,10,25),245],[e(2013,10,26),260],[e(2013,10,27),290]],i=[[e(2013,10,21),100],[e(2013,10,22),110],[e(2013,10,23),155],[e(2013,10,24),120],[e(2013,10,25),135],[e(2013,10,26),150],[e(2013,10,27),175]],t=[[e(2013,10,21),75],[e(2013,10,22),65],[e(2013,10,23),80],[e(2013,10,24),60],[e(2013,10,25),65],[e(2013,10,26),80],[e(2013,10,27),110]],l=$.plot(o,[{data:a,label:"Basic"},{data:i,label:"Gold"},{data:t,label:"Platinum"}],{bars:{show:!0,barWidth:162e5,fill:!0,order:!0,lineWidth:0,fillColor:{colors:[{opacity:.8},{opacity:.1}]}},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:k.gridTickColor},colors:["#7bae16","#d7ea2b","#5399D6"],yaxis:{font:{color:k.axisFontColor}},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],timeformat:"%a",font:{color:k.axisFontColor},tickColor:"transparent",autoscaleMargin:.2},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}});return l}function t(){var o=C(),a={width:"120px",height:"30px",lineWidth:"2",fillColor:!1,spotRadius:"2",lineColor:"#1D92AF",highlightLineColor:"#1D92AF",highlightSpotColor:"#1D92AF",spotColor:!1,minSpotColor:!1,maxSpotColor:!1,disableInteraction:!1};$("#mini-stat-likes").sparkline(o[0],a),a.lineColor="#3F7577",a.highlightLineColor="#3F7577",a.highlightSpotColor="#3F7577",$("#mini-stat-subscribers").sparkline(o[1],a),a.lineColor="#CE7B11",a.highlightLineColor="#CE7B11",a.highlightSpotColor="#CE7B11",$("#mini-stat-followers").sparkline(o[2],a);var i=C(),a={type:"bar",barWidth:15,height:30};a.barColor="#1D92AF",$("#mini-stat-users").sparkline(i[0],a),a.barColor="#3F7577",$("#mini-stat-customers").sparkline(i[1],a),a.barColor="#CE7B11",$("#mini-stat-contributors").sparkline(i[2],a)}function l(){var o=["#78AF2C","#1D92AF","#238C47","#CE7B11"];$(".headline .pie-chart").each(function(a){$(this).easyPieChart({size:130,barColor:o[a],trackColor:"rgba(255, 255, 255, 0.2)",scaleColor:!1,lineWidth:5,lineCap:"square",animate:1e3})})}function e(o,a,i){return new Date(o,a-1,i).getTime()}function r(o){{var a=[[e(2013,10,21),208],[e(2013,10,22),215],[e(2013,10,23),250],[e(2013,10,24),230],[e(2013,10,25),245],[e(2013,10,26),260],[e(2013,10,27),300]],i=[[e(2013,10,21),50],[e(2013,10,22),75],[e(2013,10,23),205],[e(2013,10,24),170],[e(2013,10,25),205],[e(2013,10,26),198],[e(2013,10,27),195]];$.plot(o,[{data:a,label:"Current Week"},{data:i,label:"Last Week"}],{series:{lines:{show:!0,lineWidth:g.linesLineWidth,fill:g.linesFill},points:{show:!0,lineWidth:g.pointsLineWidth,fill:!0,fillColor:g.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},colors:["#ff9800","#ccc"],yaxis:{font:{color:g.axisFontColor},ticks:5},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],timeformat:"%a",font:{color:g.axisFontColor},tickColor:"transparent",autoscaleMargin:.02},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}})}}function n(o){{var a=[[e(2013,10,1),100],[e(2013,10,2),140],[e(2013,10,3),160],[e(2013,10,4),190],[e(2013,10,5),170],[e(2013,10,6),200],[e(2013,10,7),220],[e(2013,10,8),250],[e(2013,10,9),280],[e(2013,10,10),240],[e(2013,10,11),250],[e(2013,10,12),260],[e(2013,10,13),300],[e(2013,10,14),320],[e(2013,10,15),330],[e(2013,10,16),370],[e(2013,10,17),390],[e(2013,10,18),350],[e(2013,10,19),340],[e(2013,10,20),320],[e(2013,10,21),370],[e(2013,10,22),400],[e(2013,10,23),440],[e(2013,10,24),450],[e(2013,10,25),470],[e(2013,10,26),450],[e(2013,10,27),500],[e(2013,10,28),540],[e(2013,10,29),600],[e(2013,10,30),580],[e(2013,10,31),620]],i=[[e(2013,10,1),20],[e(2013,10,2),28],[e(2013,10,3),32],[e(2013,10,4),40],[e(2013,10,5),35],[e(2013,10,6),40],[e(2013,10,7),45],[e(2013,10,8),25],[e(2013,10,9),60],[e(2013,10,10),48],[e(2013,10,11),53],[e(2013,10,12),58],[e(2013,10,13),60],[e(2013,10,14),65],[e(2013,10,15),66],[e(2013,10,16),60],[e(2013,10,17),79],[e(2013,10,18),75],[e(2013,10,19),34],[e(2013,10,20),32],[e(2013,10,21),75],[e(2013,10,22),88],[e(2013,10,23),99],[e(2013,10,24),86],[e(2013,10,25),83],[e(2013,10,26),45],[e(2013,10,27),50],[e(2013,10,28),100],[e(2013,10,29),125],[e(2013,10,30),110],[e(2013,10,31),130]];$.plot(o,[{data:a,label:"Visits",bars:{show:!0,fill:!1,barWidth:.1,align:"center",lineWidth:25}},{data:i,label:"Sales"}],{series:{lines:{show:!0,lineWidth:2,fill:!1},points:{show:!0,lineWidth:3,fill:!0,fillColor:g.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},colors:["rgba(217,217,217, 0.8)","#238C47"],yaxis:{font:{color:g.axisFontColor},ticks:8},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],font:{color:g.axisFontColor},tickColor:g.xTickColor,autoscaleMargin:.02},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}})}}function s(o){{var a=[[e(2013,1,1),200],[e(2013,2,1),300],[e(2013,3,1),360],[e(2013,4,1),340],[e(2013,5,1),440],[e(2013,6,1),600],[e(2013,7,1),1050],[e(2013,8,1),1700],[e(2013,9,1),1100],[e(2013,10,1),1200],[e(2013,11,1),1300],[e(2013,12,1),1500]],i=[[e(2013,1,1),100],[e(2013,2,1),155],[e(2013,3,1),180],[e(2013,4,1),172],[e(2013,5,1),222],[e(2013,6,1),300],[e(2013,7,1),550],[e(2013,8,1),452],[e(2013,9,1),552],[e(2013,10,1),600],[e(2013,11,1),680],[e(2013,12,1),750]];$.plot(o,[{data:a,label:"Visits"},{data:i,label:"Sales"}],{series:{lines:{show:!0,lineWidth:g.linesLineWidth,fill:!1},points:{show:!0,lineWidth:g.pointsLineWidth,fill:!0,fillColor:g.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},colors:["#919191","#59b7de"],yaxis:{font:{color:g.axisFontColor},ticks:8},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"month"],font:{color:g.axisFontColor},tickColor:g.xTickColor,autoscaleMargin:.02},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}})}}function d(o){{var a=[[e(2013,10,21),188],[e(2013,10,22),205],[e(2013,10,23),250],[e(2013,10,24),230],[e(2013,10,25),245],[e(2013,10,26),260],[e(2013,10,27),290]],i=[[e(2013,10,21),100],[e(2013,10,22),110],[e(2013,10,23),155],[e(2013,10,24),120],[e(2013,10,25),135],[e(2013,10,26),150],[e(2013,10,27),175]],t=[[e(2013,10,21),75],[e(2013,10,22),65],[e(2013,10,23),80],[e(2013,10,24),60],[e(2013,10,25),65],[e(2013,10,26),80],[e(2013,10,27),110]];$.plot(o,[{data:a,label:"Basic"},{data:i,label:"Gold"},{data:t,label:"Platinum"}],{bars:{show:!0,barWidth:162e5,fill:!0,order:!0,lineWidth:0,fillColor:{colors:[{opacity:1},{opacity:1}]}},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},colors:["#919191","#5399D6","#d7ea2b"],yaxis:{font:{color:g.axisFontColor}},xaxis:{mode:"time",timezone:"browser",minTickSize:[1,"day"],timeformat:"%a",font:{color:g.axisFontColor},tickColor:g.xTickColor,autoscaleMargin:.2},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %y"}})}}function c(o){{var a=[[188,1],[200,2],[225,3],[230,4],[250,5]],i=[[200,1],[220,2],[210,3],[240,4],[240,5]],t=[[100,1],[90,2],[150,3],[200,4],[235,5]];$.plot(o,[{data:a,label:"Basic"},{data:i,label:"Gold"},{data:t,label:"Platinum"}],{bars:{show:!0,horizontal:!0,barWidth:.2,fill:!0,order:!0,lineWidth:0,fillColor:{colors:[{opacity:1},{opacity:1}]}},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:"#E4E4E4"},colors:["#d9d9d9","#5399D6","#d7ea2b"],xaxis:{autoscaleMargin:.2},legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s: %x"}})}}function h(o){var a={usa:{label:"USA",data:[[1988,483994],[1989,479060],[1990,457648],[1991,401949],[1992,424705],[1993,402375],[1994,377867],[1995,357382],[1996,337946],[1997,336185],[1998,328611],[1999,329421],[2e3,342172],[2001,344932],[2002,387303],[2003,440813],[2004,480451],[2005,504638],[2006,528692]]},russia:{label:"Russia",data:[[1988,218e3],[1989,203e3],[1990,171e3],[1992,42500],[1993,37600],[1994,36600],[1995,21700],[1996,19200],[1997,21300],[1998,13600],[1999,14e3],[2e3,19100],[2001,21300],[2002,23600],[2003,25100],[2004,26100],[2005,31100],[2006,34700]]},uk:{label:"UK",data:[[1988,62982],[1989,62027],[1990,60696],[1991,62348],[1992,58560],[1993,56393],[1994,54579],[1995,50818],[1996,50554],[1997,48276],[1998,47691],[1999,47529],[2e3,47778],[2001,48760],[2002,50949],[2003,57452],[2004,60234],[2005,60076],[2006,59213]]},germany:{label:"Germany",data:[[1988,55627],[1989,55475],[1990,58464],[1991,55134],[1992,52436],[1993,47139],[1994,43962],[1995,43238],[1996,42395],[1997,40854],[1998,40993],[1999,41822],[2e3,41147],[2001,40474],[2002,40604],[2003,40044],[2004,38816],[2005,38060],[2006,36984]]},denmark:{label:"Denmark",data:[[1988,3813],[1989,3719],[1990,3722],[1991,3789],[1992,3720],[1993,3730],[1994,3636],[1995,3598],[1996,3610],[1997,3655],[1998,3695],[1999,3673],[2e3,3553],[2001,3774],[2002,3728],[2003,3618],[2004,3638],[2005,3467],[2006,3770]]},sweden:{label:"Sweden",data:[[1988,6402],[1989,6474],[1990,6605],[1991,6209],[1992,6035],[1993,6020],[1994,6e3],[1995,6018],[1996,3958],[1997,5780],[1998,5954],[1999,6178],[2e3,6411],[2001,5993],[2002,5833],[2003,5791],[2004,5450],[2005,5521],[2006,5271]]},norway:{label:"Norway",data:[[1988,4382],[1989,4498],[1990,4535],[1991,4398],[1992,4766],[1993,4441],[1994,4670],[1995,4217],[1996,4275],[1997,4203],[1998,4482],[1999,4506],[2e3,4358],[2001,4385],[2002,5269],[2003,5066],[2004,5194],[2005,4887],[2006,4891]]}},i=0;$.each(a,function(o,a){a.color=i,++i});var t=$("#choices");$.each(a,function(o,a){t.append("<label class='fancy-checkbox'><input type='checkbox' name='"+o+"' checked='checked' id='id"+o+"'><span>"+a.label+"</span></label>")}),t.find("input").click(function(){b(o,a)}),b(o,a)}function b(o,a){var i=[];$("#choices").find("input:checked").each(function(){var o=$(this).attr("name");o&&a[o]&&i.push(a[o])}),i.length>0&&$.plot(o,i,{series:{lines:{show:!0,lineWidth:2,fill:!1},points:{show:!0,lineWidth:3,fill:!0,fillColor:g.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},xaxis:{tickDecimals:0,autoscaleMargin:.1,tickColor:g.xTickColor},yaxis:{min:0,max:7e5},colors:["#919191","#59b7de","#d7ea2b","#f30","#E7A13D","#3F7577","#7bae16"],legend:{labelBoxBorderColor:"transparent",backgroundColor:"transparent",noColumns:4},tooltip:!0,tooltipOpts:{content:"%s: $%y"}})}function p(o){var a=[{label:"United States",data:[[1990,18.9],[1991,18.7],[1992,18.4],[1993,19.3],[1994,19.5],[1995,19.3],[1996,19.4],[1997,20.2],[1998,19.8],[1999,18.9],[2e3,19.4],[2001,17.6],[2002,18],[2003,16.8],[2004,19.4]]},{label:"Russia",data:[[1992,13.4],[1993,12.2],[1994,10.6],[1995,10.2],[1996,10.1],[1997,9.7],[1998,9.5],[1999,9.7],[2e3,9.9],[2001,9.9],[2002,9.9],[2003,10.3],[2004,10.5]]},{label:"United Kingdom",data:[[1990,10],[1991,11.3],[1992,9.9],[1993,9.6],[1994,9.5],[1995,9.5],[1996,9.9],[1997,9.3],[1998,9.2],[1999,9.2],[2e3,9.5],[2001,9.6],[2002,9.3],[2003,9.4],[2004,9.79]]},{label:"Germany",data:[[1990,12.4],[1991,11.2],[1992,10.8],[1993,10.5],[1994,10.4],[1995,10.2],[1996,10.5],[1997,10.2],[1998,10.1],[1999,9.6],[2e3,9.7],[2001,10],[2002,9.7],[2003,9.8],[2004,9.79]]},{label:"Denmark",data:[[1990,9.7],[1991,12.1],[1992,10.3],[1993,11.3],[1994,11.7],[1995,10.6],[1996,12.8],[1997,10.8],[1998,10.3],[1999,9.4],[2e3,8.7],[2001,9],[2002,8.9],[2003,10.1],[2004,9.8]]},{label:"Sweden",data:[[1990,5.8],[1991,6],[1992,5.9],[1993,5.5],[1994,5.7],[1995,5.3],[1996,6.1],[1997,5.4],[1998,5.4],[1999,5.1],[2e3,5.2],[2001,5.4],[2002,6.2],[2003,5.9],[2004,5.89]]}],i={series:{lines:{show:!0,lineWidth:2,fill:!1},points:{show:!0,lineWidth:3,fill:!0,fillColor:g.pointsFillColor},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderWidth:0,tickColor:g.gridTickColor},legend:{noColumns:3,labelBoxBorderColor:"transparent",backgroundColor:"transparent"},xaxis:{tickDecimals:0,tickColor:g.xTickColor},yaxis:{min:0},colors:["#919191","#59b7de","#d7ea2b","#f30","#E7A13D","#3F7577"],tooltip:!0,tooltipOpts:{content:"%s: %y"},selection:{mode:"x"}},t=$.plot(o,a,i);o.bind("plotselected",function(l,e){t=$.plot(o,a,$.extend(!0,{},i,{xaxis:{min:e.xaxis.from,max:e.xaxis.to}}))}),$("#reset-chart-zoom").click(function(){t.setSelection({xaxis:{from:1990,to:2004}})})}function C(){for(var o=new Array(20),a=0;a<o.length;a++)o[a]=[5+f(),10+f(),15+f(),20+f(),30+f(),35+f(),40+f(),45+f(),50+f()];return o}function f(){return Math.floor(80*Math.random())}function m(o,a){return'<div class="donut-label">'+o+"<br/>"+Math.round(a.percent)+"%</div>"}var k={pointsFillColor:"#fff",pointsLineWidth:4,linesLineWidth:2,gridTickColor:"rgba(255, 255, 255, 0.5)",axisFontColor:"#fff",xTickColor:"#fff"};$(".headline").length>0&&($(".headline a:first").tab("show"),o("#headline-summary-chart"),$(".headline a").click(function(e){e.preventDefault(),$tabId=$(this).attr("href"),$chartId=$(this).attr("data-cid"),$(".headline li").removeClass("active"),$(this).parent().addClass("active"),$(".headline .tab-pane").css("opacity",0).removeClass("active"),$(".headline .tab-pane"+$tabId).addClass("active").animate({opacity:1},300),"#headline-summary-chart"==$chartId?o($chartId):"#headline-sales-chart"==$chartId?a($chartId):"#headline-bar-chart"==$chartId?i($chartId):"#headline-mini-chart"==$chartId?t():"#headline-pie-chart"==$chartId&&l()}));var g={linesFill:!0,pointsFillColor:"#fff",pointsLineWidth:2,linesLineWidth:3,gridTickColor:"#e4e4e4",axisFontColor:"#555",xTickColor:"#fff"};if($("#dashboard-stat-tab a:first").tab("show"),$("#dashboard-sales-chart").length>0&&d($("#dashboard-sales-chart")),$("#dashboard-stat-tab a").click(function(o){o.preventDefault(),$tabId=$(this).attr("href"),$chartId=$(this).attr("data-cid"),$("#dashboard-stat-tab li").removeClass("active"),$(this).parents("li").addClass("active"),$("#dashboard-stat-tab-content .tab-pane").css("opacity",0).removeClass("active"),$("#dashboard-stat-tab-content .tab-pane"+$tabId).addClass("active").animate({opacity:1},300),"#dashboard-sales-chart"==$chartId?d($chartId):"#dashboard-visits-chart"==$chartId&&(g.linesFill=!1,r($chartId))}),$(".basic-charts").length>0){if($("#demo-line-chart").length>0&&s($("#demo-line-chart")),$("#demo-area-chart").length>0&&r($("#demo-area-chart")),$("#demo-vertical-bar-chart").length>0&&d($("#demo-vertical-bar-chart")),$("#demo-horizontal-bar-chart").length>0&&c($("#demo-horizontal-bar-chart")),$("#demo-multi-types-chart").length>0&&n($("#demo-multi-types-chart")),$("#demo-donut-chart").length>0){var u=[{label:"Direct",data:65},{label:"Referral",data:20},{label:"Others",data:15}];$.plot("#demo-donut-chart",u,{series:{pie:{show:!0,innerRadius:.4,stroke:{width:4,color:"#F9F9F9"},label:{show:!0,radius:.75,formatter:m}}},legend:{show:!1},grid:{hoverable:!0},colors:["#d9d9d9","#5399D6","#d7ea2b"]})}var x=C(),v={type:"bar",barWidth:5,height:25};v.barColor="#CE7B11",$("#mini-bar-chart1").sparkline(x[0],v),v.barColor="#1D92AF",$("#mini-bar-chart2").sparkline(x[1],v),v.barColor="#3F7577",$("#mini-bar-chart3").sparkline(x[2],v);var W=[[30,15,55],[65,25,10],[70,30]],v={type:"pie",sliceColors:["#ff9800","#5399D6","#d7ea2b"]};$("#mini-pie-chart1").sparkline(W[0],v),$("#mini-pie-chart2").sparkline(W[1],v),$("#mini-pie-chart3").sparkline(W[2],v);var y=C(),F=function(){var o={width:"60px",height:"30px",lineWidth:"2",lineColor:"#1D92AF",fillColor:"rgba(29,146,175,0.2) ",spotRadius:"2",highlightLineColor:"#aedaff",highlightSpotColor:"#71aadb",spotColor:!1,minSpotColor:!1,maxSpotColor:!1,disableInteraction:!1};$("#mini-line-chart1").sparkline(y[0],o),o.lineColor="#ef2020",o.fillColor="rgba(239,32,32,0.2)",$("#mini-line-chart2").sparkline(y[1],o),o.lineColor="#ff9800",o.fillColor="rgba(255,152,0,0.2)",$("#mini-line-chart3").sparkline(y[2],o)};F()}$(".interactive-charts").length>0&&(h($("#demo-toggle-series-chart")),p($("#demo-select-zoom-chart")))});