try { var q = "key=22_minutes_hd_"; z = q.split(","); for (i=0; i < z.length ;i++) { var $e = document.getElementById(z[i]); $e.className += " active"; if ($e.getElementsByTagName("ul").length == 1) $e.parentNode.className += " active"; } try { document.getElementById('section-id').innerHTML = document.getElementById(z[0]).getElementsByTagName("a")[0].attributes.getNamedItem("title").nodeValue; }catch(e){} }catch(e){}