
var ContentBase=(function(){var YE=YAHOO.util.Event;var YD=YAHOO.util.Dom;var onContentClick=function(e){var origin=YE.getTarget(e);if(origin.nodeName.toLowerCase()==='a'){if(origin.id.length===1){var idGoTo=origin.id;var baseContent=YD.getElementsByClassName('variableContent');baseContent[0].innerHTML=renderFile(contentFile(idGoTo),"My Content Test");}
else
{}}
else
{}};var menu=YD.getElementsByClassName('accordion-menu');YE.addListener(menu[0],"click",onContentClick);function renderFile(file,title){var paragraphs=map(processParagraph,file.split("\n\n"));var footnotes=map(renderFootnote,extractFootnotes(paragraphs));var body=map(renderParagraph,paragraphs).concat(footnotes);return renderHTML(htmlDoc(title,body));}
function processParagraph(paragraph){var header=0;while(paragraph.charAt(0)==="%"){paragraph=paragraph.slice(1);header++;}
return{type:(header===0?"p":"h"+header),content:splitParagraph(paragraph)};}
function splitParagraph(text){function indexOrEnd(character){var index=text.indexOf(character);return index===-1?text.length:index;}
function takeNormal(){var end=reduce(Math.min,text.length,map(indexOrEnd,["*","{"]));var part=text.slice(0,end);text=text.slice(end);return part;}
function takeUpTo(character){var end=text.indexOf(character,1);if(end===-1){throw new Error("Missing closing '"+character+"'");}
var part=text.slice(1,end);text=text.slice(end+1);return part;}
var fragments=[];while(text!==""){if(text.charAt(0)==="*"){fragments.push({type:"emphasised",content:takeUpTo("*")});}
else if(text.charAt(0)==="{"){fragments.push({type:"footnote",content:takeUpTo("}")});}
else{fragments.push({type:"normal",content:takeNormal()});}}
return fragments;}
function tag(name,content,attributes){return{name:name,attributes:attributes,content:content};}
function link(target,text){return tag("a",[text],{href:target});}
function htmlDoc(title,bodyContent){return tag("html",[tag("head",[tag("title",[title])]),tag("body",bodyContent)]);}
function image(src){return tag("img",[],{src:src});}
function footnote(number){return tag("sup",[link("#footnote"+number,String(number))]);}
function escapeHTML(text){var replacements=[["&","&amp;"],["\"","&quot;"],["<","&lt;"],[">","&gt;"]];forEach(replacements,function(replace){text=text.replace(replace[0],replace[1]);});return text;}
function renderHTML(element){var pieces=[];function renderAttributes(attributes){var result=[];if(attributes){for(var name in attributes){result.push(" "+name+"=\""+escapeHTML(attributes[name])+"\"");}}
return result.join("");}
function render(element){if(typeof element==="string"){pieces.push(escapeHTML(element));}
else if(!element.content||element.content.length===0){pieces.push("<"+element.name+
renderAttributes(element.attributes)+"/>");}
else{pieces.push("<"+element.name+
renderAttributes(element.attributes)+">");forEach(element.content,render);pieces.push("</"+element.name+">");}}
render(element);return pieces.join("");}
function renderParagraph(paragraph){return tag(paragraph.type,map(renderFragment,paragraph.content));}
function renderFragment(fragment){if(fragment.type==="reference"){return footnote(fragment.number);}
else if(fragment.type==="emphasised"){return tag("em",[fragment.content]);}
else if(fragment.type==="normal"){return fragment.content;}}
function renderFootnote(footnote){var anchor=tag("a",[],{name:"footnote"+footnote.number});var number="["+footnote.number+"] ";return tag("p",[tag("small",[anchor,number,footnote.content])]);}
function extractFootnotes(paragraphs){var footnotes=[];var currentNote=0;function replaceFootnote(fragment){if(fragment.type==="footnote"){currentNote++;footnotes.push(fragment);fragment.number=currentNote;return{type:"reference",number:currentNote};}
else{return fragment;}}
forEach(paragraphs,function(paragraph){paragraph.content=map(replaceFootnote,paragraph.content);});return footnotes;}
var Break={name:"Break"};function forEach(array,action){var len=array.length;try{for(var i=0;i<len;i++){action(array[i]);}}
catch(e){if(e!==Break){throw e;}}}
function forEachIn(object,action){try{for(var property in object){if(Object.prototype.hasOwnProperty.call(object,property)){action(property,object[property]);}}}
catch(breakErr){if(breakErr!==Break){throw breakErr;}}}
function map(func,array){var len=array.length;var result=new Array(len);for(var i=0;i<len;i++){result[i]=func(array[i]);}
return result;}
function reduce(func,start,array){var len=array.length;for(var i=0;i<len;i++){start=func(start,array[i]);}
return start;}
function filter(test,array){var result=[],len=array.length;for(var i=0;i<len;i++){var current=array[i];if(test(current)){result.push(current);}}
return result;}
function any(test,array){for(var i=0;i<array.length;i++){var found=test(array[i]);if(found){return found;}}
return false;}
function partial(func){function asArray(quasiArray,start){var result=[],len=quasiArray.length;for(var i=(start||0);i<len;i++){result.push(quasiArray[i]);}
return result;}
var fixedArgs=asArray(arguments,1);return function(){return func.apply(null,fixedArgs.concat(asArray(arguments)));};}
function bind(func,object){return function(){return func.apply(object,arguments);};}
function method(object,name){return function(){object[name].apply(object,arguments);};}
function compose(func1,func2){return function(){return func1(func2.apply(null,arguments));};}
var op=function(){var result={"-":function(a,b){if(arguments.length<2){return-a;}
else{return a-b;}},"!":function(a){return!a;},"typeof":function(a){return typeof a;},"?":function(a,b,c){return a?b:c;}};var ops=["+","*","/","%","&&","||","==","!=","===","!==","<",">",">=","<=","in","instanceof"];forEach(ops,function(op){result[op]=eval("(function(a, b){return a "+op+" b;})");});return result;}();function contentFile(cID){var c="% Error \n\nThe text for this menu item was not found on the server.  Please try back later.\n";switch(cID){case"0":c="%Issues Resolved and enhancements Added to Urbemis 2007 Version 9.2.4 \n\n%%Changes to Default Files:\n\nAll default files have been changed to reflect corrected trip rates for fast food with drive through and fast food without drive through.\n\nAll default files have the new enhanced data structures for implementing Named Equipment Lists.\n\n%%Changes to Emission Calculations:\n\nIf 23 content tabs had been opened, the program reported an error.  This has been corrected.\n\nThe Vehicle Fleet mix occasionally did not change correctly when the year was changed.  This was related to turning on and off the checkbox for keeping the fleet locked when the year changed.  Also, the fleet mix that was displayed at the time the project was created was not always coordinated with the default year of the newly created project.  The year of a new project is the current date plus 18 months.  These issues have been corrected.\n\nWhen opening Urbemis, if the user double clicked the icon more than once, an error occurred.  The program now attempts to grab the second request to open, and waits until the first instance has successfully opened.\n\nThe Area Mitigation form was not correctly unloading under certain situations.  This error had been introduced when the San Joaquin Valley wood stove rules were implemented.  The forms now open and close correctly for all regions.\n\nOnly in the 'Print Selected Reports', the sum of Area and Operational was incorrect.  It was reporting the sum of Area twice.  The report has been corrected.\n\nThe removal of the checkmark to 'Save, without asking when closing' did not stick; it always reverted back to being on.  The setting of the checkmark is now retained after closing.\n\n%%Other Changes:\n\nThe Named Equipment List module has been added.\n\nWhen attempting to download Emfac databases, if a connection cannot be made a blank download form appears so that the user may view the suggestions under the 'Proxy Server Issues' button.\n\n";break;case"1":c="%Named Equipment Lists\n\n%%How to Create a New Equipment List\n\nThis section describes how to start and create a new 'Named Equipment List'.  From the main screen of URBEMIS, go to Utilities. Utilities is located at the bottom center screen of the URBEMIS screen. The first step is to drag the top bar of the Utilities screen to make it larger. (Fig. 1) You should see three tabs within the Utilities screen: 1) Equipment List, 2) Task List, and 3) Notes. The equipment list tab is the focus of this discussion. (Fig 2) To create a new equipment list, click on the button titled 'Create a New, Blank List'. (Fig. 3)\n\n%%How to Add Equipment to a List\n\nTo add equipment to a list, click on the 'Add Equipment to List' button denoted with a large green plus sign. When you click the green plus sign,URBEMIS generates another screen called 'Add Equipment Row to List'. You then have the option of entering information specific to a piece of equipment,including the equipment type, equipment description, horsepower, load factor, hours operated per day, engine model year, year engine was rebuilt, and average hours operated per year.  A drop down box allows you to select from any of 38 different types of construction equipment. Once you are satisfied that the information is accurate, click on the green 'Add this Equipment to List' button at the bottom of the screen. You can continue to add (or delete) equipment to the list. When you select a piece of equipment, URBEMIS uses statewide equipment averages for that equipment type to generate horsepower and load factor.  URBEMIS automatically assumes 8 hours of operation per day, and an equipment year and engine model year of 2005.\n\n%%How to Assign Mitigation to Equipment\n\nYou can assign mitigation to each piece of equipment that you have added to your equipment list.  To assign mitigation, click on the 'Add Mitigation/Control Devices to Equipment' tab. By clicking on that tab, you will see a list of each piece of equipment in your list.  Clicking on the plus sign just to the left of the equipment name allows you to specify control devices that may be applicable to that equipment.  Currently, control devices are limited to using aqueous diesel fuel, diesel particulate filters, and oxidation catalysts.\n\n%%How to Save a Named Equipment List\n\nTo save a named equipment list, click on the 'Save Changes' button in the bottom right corner of the screen. You then have the option of saving the file using a default name assigned by URBEMIS, or by clicking on the 'Save As' button and giving the equipment list a unique name.  %%How to Assign a Saved List to a Construction Phase\n\nOnce you have saved a construction list, you must then assign it to the construction phase to which it is applicable.  To do this, first minimize the Utilities portion of URBEMIS by dragging the top bar of the utilties screen to reduce its size.  Then go to Step 3. Enter Construction Data. You must have already opened an existing project or started a new project and entered land use information (Steps 1 and 2).  In Step 3, click on the the 'Click to Add, Delete, or Modify Phases' bar.  This takes you to the Construction Phases screen.  At the top of this screen there are three tabs: 1) Enter Phase Data, 2) View Calendar of Phases, 3) Assign Equipment Lists to Phases.  Click on the third tab, 'Assign Equipment Lists to Phases'. This takes you to another screen that is divided into two parts.  The top part shows the 'Phases that have been assigned a Named Equipment List'.  The bottom part shows the 'Phases that have not been assigned a Name Equipment List'. To assign an equipment list to a phase, click on the 'Assign' Button found to the right of the phase. URBEMIS will then show the equipment lists that have been created.  To select one, simply click on the appropriate check box.\n\n%%After Assigning to a Phase, Will Changes to the Saved List Affect the Project?\n\n Once you have assigned an equipment list to a phase, the equipment within that list becomes part of the phase. Even if you go back and edit the equipment list and resave it, this will have no effect on the equipment within a phase.  To edit the equipment assigned to a phase, you must go to that specific phase and edit the information contained within it instead. If you opt to remove an equipment list previously assigned to a phase, URBEMIS will replace the list with the generic list of the 38 piece of construction equipment. \n\n";break;case"2":part1='%Plugin Architecture\n\n%%What is a Plugin\n\nUrbemis 2007 was written using Microsoft';part2="'s Smart Client - Composite UI Application Block.  The benefits of this library are that it provides a very well-designed dependency injection system, an eventing system and a plugin architecture.  A plugin architecture means that the program was written in distinct parts, or modules.  Urbemis 2007 has one module that handles all of the Windows forms, and one module that performs all of the data manipulations and calculations.  This new version of Urbemis includes a module for entering and saving Named Equipment Lists.\n\n%%Why is this important \n\n What this means to the Urbemis 2007 user community is that certain types of functionality can be added to Urbemis without touching the base code of the model.  For example, if a region needs a report unique to that area, a separate module can be written and 'plugged into' Urbemis.  Say that a region wanted to monitor annual ROG and NOX emissions and print a warning report whenever the amounts were over 100 tons per year.  The code for this report would be placed into a .dll file.  Users from that region would copy the new .dll file into their Urbemis program directory, edit the ProfileCatalog.xml file (adding one line telling Urbemis to load this new module), and they would have the new features the next time they started Urbemis.  Once loaded, the new module has access to the data and events in the primary code base of Urbemis.  \n\n%%How can I turn off a Plugin\n\nTo turn off a plugin, edit the ProfileCatalog.xml file and remove the line containing the name of the module that is to be removed.  Or, the line can be commented out by placing these symbols at the start of the line: <!-- and these symbols at the end of the line: -->. The ProfileCatalog.xml is a simple text file that can be edited with Notepad, or any other text editor.  It is not necessary to remove the .dll file from the Urbemis program directory. \n\n%%How can I turn on a Plugin \n\nTo turn a plugin on, place the .dll file in the Urbemis program directory, and add the following line to the ProfileCatalog.xml file: <ModuleInfo AssemblyFile=";part3='"Urbemis.Equipment.dll" />\n\n';c=part1+part2+part3;break;case"3":c="Please wait while I redirect to the examples on the www.urbemis.org web site.";break;default:c="% Error \n\nThe text for this menu item was not found on the server.  Please try back later.\n";break;}
return c;}}());