(function(){ if(!window.FBC) window.FBC = {}; var $c = function(n){ return document.createElement(n?n:"div"); }; FBC.CornerBox = function(opts){ if(!opts[0]) return; var container, obj = opts[0], t2,t3, tmp = ["top","bottom","content","icontent",], rm = obj.style.display; // set classes if they don't exist for (var c in tmp){ opts[tmp[c]]=opts[tmp[c]]?opts[c]:tmp[c]; } container = $c(obj.tagName); if(obj.className) container.className = obj.className; if (obj.getAttribute("id")) { tmp = obj.id; obj.removeAttribute('id'); container.setAttribute('id', tmp); container.id = tmp; } // switch owner obj.parentNode.replaceChild(container, obj); obj.className = ""; // add top tmp = $c(); tmp.className = opts.top; tmp.appendChild($c()); container.appendChild(tmp); container.appendChild(obj); obj.className = "content"; // add bottom tmp = $c(); tmp.className = opts.bottom; tmp.appendChild($c()); container.appendChild(tmp); opts[0] = null; opts = null; }; })();var initFBC = function(){ var es = document.getElementsByTagName("*"); for (var i=0; i 0) f(); },20); }; f(); }; menu = null; } } }