Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
var splitted = new Array(); | var splitted = new Array(); | ||
if (url.search("2011.igem.org/Team:Freiburg/")<0){ | if (url.search("2011.igem.org/Team:Freiburg/")<0){ | ||
- | alert(null); | + | //alert(null); |
- | } | + | url="home"; |
- | splitted = url.split("2011.igem.org/Team:Freiburg/"); | + | } |
- | + | else{ | |
- | + | splitted = url.split("2011.igem.org/Team:Freiburg/"); | |
- | + | url = splitted[1].toLowerCase(); | |
- | } | + | } |
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
hideSubmenu(id); | hideSubmenu(id); |
Revision as of 08:19, 4 July 2011