diff --git a/www/project_tools.html b/www/project_tools.html
index f2a23a80a..c92710670 100644
--- a/www/project_tools.html
+++ b/www/project_tools.html
@@ -1,74 +1,86 @@
-
-
-
-
-
-
-
-- Project Tools
--
+
+
+
+
-
-
-
-
-
-
--
-
-
-
--
-
-
-
--
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/www/theme.js b/www/theme.js
new file mode 100644
index 000000000..3156fcaee
--- /dev/null
+++ b/www/theme.js
@@ -0,0 +1,430 @@
+function makeProjectLink(name) {
+ return { title: name, href: "https://"+name.toLowerCase()+".dev.java.net/" };
+}
+
+var regions = [
+ {
+ title: "Main",
+ href: "http://sip-communicator.org",
+ match: [
+ ],
+ children: [
+ { title: "Home", href: "http://sip-communicator.org" },
+ { title: "News", href: "http://www.sip-communicator.org/index.php/Main/News" },
+ { title: "Screenshots", href: "http://www.sip-communicator.org/index.php/Main/Screenshots" },
+ { title: "Download", href: "http://www.sip-communicator.org/index.php/Main/Download" },
+ { title: "About", href: "http://www.sip-communicator.org/index.php/Main/About" }
+ ]
+ },
+ {
+ title: "Development",
+ href: "",
+ match: [
+ ],
+ children: [
+ { title: "Mailing Lists", href: "http://www.sip-communicator.org/index.php/Development/MailingLists" },
+ { title: "CVS", href: "http://www.sip-communicator.org/index.php/Development/VersionControl" },
+ { title: "Bugs and Issues", href: "http://www.sip-communicator.org/index.php/Development/BugsAndIssues" },
+ { title: "Roadmap", href: "http://www.sip-communicator.org/index.php/Development/Roadmap" },
+ { title: "Contributing", href: "http://www.sip-communicator.org/index.php/Development/GetInvolved" },
+ { title: "Team", href: "http://www.sip-communicator.org/index.php/Development/TeamAndContributors" }
+ ]
+ },
+ {
+ title: "Documentation",
+ href: "",
+ match: [
+ ],
+ children: [
+ { title: "Users", href: "http://www.sip-communicator.org/index.php/Documentation/UserDocumentation" },
+ { title: "Developers", href: "http://www.sip-communicator.org/index.php/Documentation/DeveloperDocumentation" },
+ { title: "FAQ", href: "http://www.sip-communicator.org/index.php/Documentation/FAQ" }
+ ]
+ },
+];
+
+
+// default values of to simplify project_tools.html
+var defaultMatchPatterns = {
+ "/servlets/ProjectNewsList": "/servlets/(ProjectNewsList|NewsItemView).*",
+ "/servlets/ProjectMemberList": "/servlets/Project(MemberList|MemberAdd|Invite).*",
+ "/servlets/ProjectMailingListList": "/servlets/(ProjectMailingList|Summarize|Search)List.*",
+ "/servlets/ProjectIssues": "/issues/.*",
+ "/issues/": "/issues/.*"
+};
+
+
+
+function addLoadEvent(func) {
+ var oldonload = window.onload;
+ if (typeof window.onload != 'function') {
+ window.onload = func;
+ } else {
+ window.onload = function() {
+ if (oldonload) oldonload();
+ func();
+ }
+ }
+}
+
+function createRegions() {
+ var rdiv = document.getElementById("regions"); // On Wiki 'regions' div already exists.
+
+ var html=[];
+ if(rdiv==null)
+ html.push("");
+
+ for( var i=regions.length-1; i>=0; i-- ) {
+ var r = regions[i];
+
+ // is this the current region?
+ var hit = false;
+ for( var j=0; j");
+ html.push(r.title);
+ html.push("");
+ if(r.children!=null && !document.all) {
+ html.push("");
+ }
+ html.push("");
+ }
+ html.push("-
");
+ if(rdiv==null)
+ html.push("
");
+
+ // inject HTML
+ if(rdiv==null) {
+ var box = document.createElement("div");
+ box.id = "regions-box";
+ var banner = document.getElementById("banner");
+ banner.insertBefore(box,banner.firstChild);
+ box.innerHTML = html.join('');
+ } else {
+ rdiv.innerHTML = html.join('');
+ }
+
+ // attach event handler, since IE can't handle :hover
+ /* this still doesn't seem to work with IE7...
+ if (document.all) {
+ var ul = document.getElementById("regions");
+ for (i=0; i");
+ html.push(zones[i].title);
+ html.push("");
+ if(zones[i].zones!=null && zones[i].expanded)
+ createZones(zones[i].zones,depth+1);
+ }
+ }
+ createZones(zones,0);
+
+ // detach the menubar so that it will remain intact when we overwrite project tools
+ var menubar = document.getElementById("menubar");
+ if(menubar==null) return; // huh?
+ menubar.className="depth"+currentDepth;
+ menubar.parentNode.removeChild(menubar);
+
+ // insert the zone list into the navigation bar
+ var projecttools = document.getElementById("projecttools");
+ projecttools.innerHTML = html.join('');
+
+ // insert the menubar
+ var curZone = document.getElementById("current-zone");
+ if(curZone!=null)
+ projecttools.insertBefore(menubar, curZone.nextSibling);
+ else
+ projecttools.appendChild(menubar); // TODO: will come back to this later
+
+ // kill all the boxes in front of the projecttools
+ while(projecttools.previousSibling!=null) {
+ projecttools.parentNode.removeChild(projecttools.previousSibling);
+ }
+ })();
+
+
+
+
+
+ // update menubar by using the current location
+ (function() {
+ // adds a CSS class to the element
+ function addClass(e,clazz) {
+ if(e.className!=null)
+ e.className += ' '+clazz;
+ else
+ e.className = clazz;
+ }
+
+ // check if element has a CSS class
+ function hasClass(e,clazz) {
+ if(e.className==null)
+ return false;
+
+ var list = e.className.split(/\s+/);
+ for( var i=0; i
");
+ }
+ }
+
+ if(info.noGF) {
+ addLogo();
+ }
+
+ function append(url,title) {
+ if(title==null) return;
+ if(hadToken) html.push(" » ");
+ hadToken=true;
+ html.push("");
+ html.push(title);
+ html.push("");
+ }
+
+ if(foundGroup!=null)
+ append(foundGroup.href, foundGroup.title);
+ append("/", info.title);
+
+ if(!info.noGF)
+ addLogo();
+
+ box.innerHTML = html.join('');
+
+ // insert after the login bar
+ var bar = document.getElementById("regions-box");
+ bar.parentNode.appendChild(box);
+ })();
+
+
+
+
+
+ // put the "hosted on java.net link"
+ (function() {
+ var box = document.createElement("div");
+ var pt = document.getElementById("projecttools");
+ if(pt==null) return; // huh?
+ pt.parentNode.insertBefore(box,pt.nextSibling);
+
+ box.id = "hosted-on-javanet";
+ box.innerHTML = "A java.net project";
+ })();
+
+ // re-display everything
+ document.body.style.display="block";
+ document.getElementById("banner").style.display="block";
+}
+
+if(window.location.href.indexOf("http://localhost:8080/")!=-1
+|| window.location.href.indexOf("http://wiki.glassfish.java.net/")!=-1)
+ addLoadEvent(wikiInit);
+else {
+ // add referene to theme.css
+ document.write('');
+ addLoadEvent(djnInit);
+}
+
+// add the open search link.
+document.write('');
diff --git a/www/zone-core.js b/www/zone-core.js
new file mode 100644
index 000000000..2a9b7c5e4
--- /dev/null
+++ b/www/zone-core.js
@@ -0,0 +1,6 @@
+var zones = [
+ {
+ title: "sip-communicator.org",
+ href: "https://sip-communicator.org/"
+ }
+];