function addShadows(clsName) {
  var divs = document.getElementsByTagName("div");

  /* 2. */
  for (var i = 0; i < divs.length; i++) 
  {
  var thisDiv = divs[i];
  
  if (thisDiv.className.indexOf(clsName)==0)
  {
  
     
        var topLeft = document.createElement('div');
        topLeft.className = "topleftShadow";        
        thisDiv.appendChild(topLeft);
        
        var top = document.createElement('div');
        top.className =  "topShadow";       
        top.style.width = "100%";        
        thisDiv.appendChild(top);

        var topRight = document.createElement('div');
        topRight.className = "toprightShadow";       
        thisDiv.appendChild(topRight);

        
        var right = document.createElement('div');
        right.className =  "rightShadow";
        right.style.height = "100%";       
        thisDiv.appendChild(right);
        
        var bottomRight = document.createElement('div');
        bottomRight.className = "bottomrightShadow";
        thisDiv.appendChild(bottomRight);
        
        var bottom = document.createElement('div');
        bottom.className =  "bottomShadow";
        bottom.style.width = "100%";
        thisDiv.appendChild(bottom);
        
        var bottomLeft = document.createElement('div');
        bottomLeft.className = "bottomleftShadow";
        thisDiv.appendChild(bottomLeft);

        var left = document.createElement('div');
        left.className =  "leftShadow";
        left.style.height = "100%";
        thisDiv.appendChild(left);
 
       }
  }
}