function vmlCurve(r,b,c,m,ml,mt, position,p) { var l = m-ml; var t = m-mt; if (p == 'b') { if (position == 'tl') { t = t-0.5; l = l-0.5; } if (position == 'tr') { t = t-0.5; l = l+0.5; } if (position == 'bl') { t = t+0.5; l = l-0.5; } if (position == 'br') { t = t+0.5; l = l+0.5; } } else { if (position == 'tl') { t = t-0.5; l = l-0.5; } if (position == 'tr') { t = t-0.5; l = l+0.5; } if (position == 'bl') { t = t+0.5; l = l-0.5; } if (position == 'br') { t = t+0.5; l = l+0.5; } } var a = "" return a; } var old_createVML = function(rparent,radius,position,bg,border_width,border_color) { var ml=1,mt=1,position,css; var maindiv = document.createElement('div'); maindiv.style.position = "absolute"; maindiv.style.overflow = "hidden"; maindiv.style.width = radius+"px"; maindiv.style.height = radius+"px"; maindiv.className = "MainDiv"; rparent.appendChild(maindiv); var subdiv = document.createElement('div'); subdiv.style.textAlign = "left"; subdiv.className = "SubDiv"; maindiv.appendChild(subdiv); if (position == 'tl') { //maindiv.style.top = "-"+border_width+"px"; //maindiv.style.left = "-"+border_width+"px"; } if (position == 'tr') { //maindiv.style.top = "-"+border_width+"px"; //maindiv.style.right = "-"+border_width+"px"; ml=radius } if (position == 'bl') { //maindiv.style.bottom = "-"+border_width+"px"; //maindiv.style.left = "-"+border_width+"px"; mt=radius; } if (position == 'br') { //maindiv.style.bottom = "-"+border_width+"px"; //maindiv.style.right = "-"+border_width+"px"; mt=radius; ml=radius; } h = ""; h+= vmlCurve(radius*3,radius+border_width,bg, -radius/2,ml,mt,position,'f'); if(border_width>0) { h+= vmlCurve(radius*2-border_width,border_width,border_color, border_width/2,ml,mt,position,'b'); } h+= ""; subdiv.innerHTML = h return maindiv;