elmt.style[n]=v;}}else if(attribute=="children"){for(var i=0;i<value.length;i++){SimileAjax.DOM._createDOMFromTemplate(doc,value[i],result,elmt);}}else if(attribute!="tag"&&attribute!="elmt"){elmt.setAttribute(attribute,value);}} 
elmt.style[n]=v;}}else if(attribute=="children"){for(var i=0;i<value.length;i++){SimileAjax.DOM._createDOMFromTemplate(value[i],result,elmt);}}else if(attribute!="tag"&&attribute!="elmt"){elmt.setAttribute(attribute,value);}} 
classes.push(className);elmt.className=classes.join(" ");};SimileAjax.DOM.createInputElement=function(type){var div=document.createElement("div");div.innerHTML="<input type='"+type+"' />";return div.firstChild;};SimileAjax.DOM.createDOMFromTemplate=function(doc,template){var result={};result.elmt=SimileAjax.DOM._createDOMFromTemplate(doc,template,result,null);return result;};SimileAjax.DOM._createDOMFromTemplate=function(doc,templateNode,result,parentElmt){if(templateNode==null){return null;}else if(typeof templateNode!="object"){var node=doc.createTextNode(templateNode);if(parentElmt!=null){parentElmt.appendChild(node);}return node;}else{var elmt=null;if("tag"in templateNode){var tag=templateNode.tag;if(parentElmt!=null){if(tag=="tr"){elmt=parentElmt.insertRow(parentElmt.rows.length);}else if(tag=="td"){elmt=parentElmt.insertCell(parentElmt.cells.length);}}if(elmt==null){elmt=tag=="input"?SimileAjax.DOM.createInputElement(templateNode.type):doc.createElement(tag);if(parentElmt!=null){parentElmt.appendChild(elmt);}}}else{elmt=templateNode.elmt;if(parentElmt!=null){parentElmt.appendChild(elmt);}}for(var attribute in templateNode){var value=templateNode[attribute];if(attribute=="field"){result[value]=elmt;}else if(attribute=="className"){elmt.className=value;}else if(attribute=="id"){elmt.id=value;}else if(attribute=="title"){elmt.title=value;}else if(attribute=="type"&&elmt.tagName=="input"){}else if(attribute=="style"){for(n in value){var v=value[n];if(n=="float"){n=SimileAjax.Platform.browser.isIE?"styleFloat":"cssFloat";}elmt.style[n]=v;}}else if(attribute=="children"){for(var i=0;i<value.length;i++){SimileAjax.DOM._createDOMFromTemplate(doc,value[i],result,elmt);}}else if(attribute!="tag"&&attribute!="elmt"){elmt.setAttribute(attribute,value);}}return elmt;}}
6194	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6194/ce51eefacd5573479ae87d19e246dea72f4c5008/bundle.js/buggy/src/webapp/api/bundle.js