/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.widget.UpgradeBar"]){dojo._hasResource["dojox.widget.UpgradeBar"]=true;dojo.provide("dojox.widget.UpgradeBar");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.require("dojo.fx");dojo.require("dojo.cookie");dojo.experimental("dojox.widget.UpgradeBar");dojo.declare("dojox.widget.UpgradeBar",[dijit._Widget,dijit._Templated],{notifications:[],buttonCancel:"Close for now",noRemindButton:"Don't Remind Me Again",templateString:dojo.cache("dojox.widget","UpgradeBar/UpgradeBar.html","
\n\t
message
\n\t
${noRemindButton}
\n\t\n
\n"),constructor:function(_1,_2){if(!_1.notifications&&_2){dojo.forEach(_2.childNodes,function(n){if(n.nodeType==1){var _3=dojo.attr(n,"validate");this.notifications.push({message:n.innerHTML,validate:function(){var _4=true;try{_4=dojo.eval(_3);}catch(e){}return _4;}});}},this);}},checkNotifications:function(){if(!this.notifications.length){return;}for(var i=0;i