/* simpleTabs v1.3 Author: Fotis Evangelou (Komrade Ltd.) License: GNU/GPL v2.0 Credits: - Peter-Paul Koch for the "Cookies" functions. More on: http://www.quirksmode.org/js/cookies.html - Simon Willison for the "addLoadEvent" function. More on: http://simonwillison.net/2004/May/26/addLoadEvent/ Last updated: June 25th, 2009 RELEASE CHANGELOG: v1.3 - Fixed "recurring divs in content" bug. If your tab contents included div tags, the tabs would break due to a faulty div tag count. Thanks to Sebastian Lšscher (www.ddfriends.de) for providing the very simple fix! - Separated all CSS classes at the top of the script, in case you need to modify them to suit your HTML/CSS structure. v1.2 - Fixed IE syntax error v1.1 - Namespaced the entire script FEATURES TO COME: - Remember last accessed tab for all tab sets on the same page - Enable tab selection via URL anchor - Add a loading indicator for the tab panes */ // Main SimpleTabs function var kmrSimpleTabs = { sbContainerClass: "simpleTabs", sbNavClass: "simpleTabsNavigation", sbContentClass: "simpleTabsContent", sbCurrentNavClass: "selected", sbCurrentTabClass: "currentTab", sbIdPrefix: "tabber", init: function(){ if(!document.getElementsByTagName) return false; if(!document.getElementById) return false; var containerDiv = document.getElementsByTagName("div"); for(var i=0; i