function setCSSClass(e,className)
{
  e.setAttribute("class",className);
  e.setAttribute("className",className);
}

/**
 Checks if the browser supports Vector Markup Language.
 Vector Markup Language is a technology used mainly by Internet Explorer.
 It predates SVG(Scalable Vector Graphics) and is essentially obsoleted by HTML 5 
 canvas except for the fact that IE doesn't have any HTML 5 support.
 When using HTML 5 canvas which is supported by almost all popular browsers except IE, 
 it is smart to use VML as an alternative graphics display technology when IE is used.
 This function will make a more accurate check to see if VML is supported than just checking if the browser is or is not IE.
*/
function supportsVml() 
{
    if (typeof supportsVml.supported == "undefined") {
        var a = document.body.appendChild(document.createElement('div'));
        a.innerHTML = '<v:shape id="vml_flag1" adj="1" />';
        var b = a.firstChild;
        b.style.behavior = "url(#default#VML)";
        supportsVml.supported = b ? typeof b.adj == "object": true;
        a.parentNode.removeChild(a);
    }
    return supportsVml.supported;
}


