Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HighlightCurrentTab()
- {
- if(GetTopLevelDepartment() > 0 )
- {
- var eleId = 'dept_' + GetTopLevelDepartment();
- if(typeof(eleId) != "undefined" && eleId != null)
- {
- var liId = document.getElementById(eleId);
- if(typeof(liId) != "undefined" && liId != null)
- {
- var aId = liId.getElementsByTagName('a');
- if(typeof(aId) != "undefined" && aId != null)
- {
- aId[0].style.backgroundPosition = "0 top";
- }
- }
- }
- //document.getElementById(eleId).childNodes[1].style.backgroundImage = "url('//secureimages.redcatsusa.com/images/site_images/womanwithin/dept_" + GetSubCookieValue('Department','TopLevelDepartment') + "_on.jpg')"
- }
- }
Add Comment
Please, Sign In to add comment