startList = function() {

        var navRoot = document.getElementById("nav");
            for (var z=0; z<navRoot.childNodes.length; z++) {
                 var node = navRoot.childNodes[z]; 
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() { 
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className="";
                        }
                  }
            }

var flower = document.getElementsByTagName("img");
   for(var i=0, l=flower.length; i<l;i++)
   { 
   if (flower[i].className == "flowerpic") {
   var h = flower[i].clientHeight; 
   if ((h<=200)&&(h>170)) { flower[i].className+=" margined30"; }
   else if ((h<=170)&&(h>140)) { flower[i].className=" margined60"; }
   else if ((h<=140)&&(h>110)) { flower[i].className=" margined90"; }
   else if (h<=110) { flower[i].className=" margined100"; }

   }
}




}
window.onload=startList;