function $(id) { return document.getElementById(id); }
+function dec2hex(d, padding)
+{
+ var hex = Number(d).toString(16);
+ padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
+
+ while (hex.length < padding) {
+ hex = "0" + hex;
+ }
+
+ return hex;
+}
+
function getStyle(x,IEstyleProp, MozStyleProp)
{
if (x.currentStyle) {
var val_el;
content = user_decorator(el);
- content += state_add(el[0]);
+ content += state_add(el[0],(typeof(el[2]) != 'undefined' ? el[2] : null));
return (content);
}