var enabletabpersistence=1;var tabcontentIDs=new Object();function expandcontent(a){var d=a.parentNode.parentNode.id;var b=document.getElementById(d).getElementsByTagName("li");for(var c=0;c<b.length;c++){b[c].className="";if(typeof tabcontentIDs[d][c]!="undefined"){document.getElementById(tabcontentIDs[d][c]).style.display="none"}}a.parentNode.className="selected";document.getElementById(a.getAttribute("rel")).style.display="block";saveselectedtabcontentid(d,a.getAttribute("rel"))}function expandtab(c,b){var a=document.getElementById(c).getElementsByTagName("a")[b];if(a.getAttribute("rel")){expandcontent(a)}}function savetabcontentids(b,a){if(typeof tabcontentIDs[b]=="undefined"){tabcontentIDs[b]=new Array()}tabcontentIDs[b][tabcontentIDs[b].length]=a}function saveselectedtabcontentid(b,a){if(enabletabpersistence==1){setCookie(b,a)}}function getullistlinkbyId(c,d){var a=document.getElementById(c).getElementsByTagName("li");for(var b=0;b<a.length;b++){if(a[b].getElementsByTagName("a")[0].getAttribute("rel")==d){return a[b].getElementsByTagName("a")[0];break}}}function initializetabcontent(f,g){if(g=="initial"){setCookie("firsttab","tcontent1")}for(var e=0;e<arguments.length;e++){if(enabletabpersistence==0&&getCookie(arguments[e])!=""){setCookie(arguments[e],"")}var c=getCookie(arguments[e]);var a=document.getElementById(arguments[e]);var d=a.getElementsByTagName("li");for(var h=0;h<d.length;h++){var b=d[h].getElementsByTagName("a")[0];if(b.getAttribute("rel")){savetabcontentids(arguments[e],b.getAttribute("rel"));b.onclick=function(){expandcontent(this);return false};if(d[h].className=="selected"&&c==""){expandcontent(b)}}}if(c!=""){var j=getullistlinkbyId(arguments[e],c);if(typeof j!="undefined"){expandcontent(j)}else{expandcontent(d[0].getElementsByTagName("a")[0])}}}}function getCookie(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return""}function setCookie(a,b){}function openDiv(){setCookie("firsttab","tcontent3");initializetabcontent("firsttab","tcontent3")};