(function () {

if(window.attachEvent) {
	window.attachEvent("onload", vml);
}

function vml() {
	document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
	var style_sheet = document.createStyleSheet();
	style_sheet.cssText = "v\\:line, v\\:rect, v\\:roundrect, v\\:oval { behavior: url(#default#VML); display:inline-block; }";
	if(document.namespaces) {
		document.getElementById("vml-line-box").innerHTML = '<v:line from="0,0" to="100,0" strokecolor="red" />';
		document.getElementById("vml-rect-box").innerHTML = '<v:rect style="position:absolute; width:150px; height:40px;" fillcolor="#ffcccc" strokecolor="red" strokeweight="1" />';
		document.getElementById("vml-roundrect-box").innerHTML = '<v:roundrect style="position:absolute; width:150px; height:40px;" fillcolor="#ffcccc" strokecolor="red" strokeweight="1" arcsize="0.2" />';
		document.getElementById("vml-oval-box").innerHTML = '<v:oval style="position:absolute; width:150px;height:40px" fillcolor="red" />';
	}
}

})();

