document.write(""); document.write(""); function getGUIColor() { var value = ""; var offset; var transp; var color; if(document.cookie.length > 0) { offset = document.cookie.indexOf("GUI-COLOR="); if (offset != -1) { offset += 10; // "GUI-COLOR=".length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; value = unescape(document.cookie.substring(offset, end)) } } if(value.length > 1) { offset = value.indexOf(":"); color = value.substring(offset+1); transp = value.substring(0, offset); setGUIColor(transp, color); } return 0; } document.addEventListener("DOMContentLoaded", getGUIColor, false);