/* Add onload events */
function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}


addLoadEvent(function() {
	if (document.getElementById("tabs")) {					  
		var mytabs=new ddtabcontent("tabs") //enter ID of Tab Container
		mytabs.setpersist(false) //toogle persistence of the tabs' state
		mytabs.setselectedClassTarget("link") //"link" or "linkparent"
		mytabs.init()
	}
})

addLoadEvent(function() {
	var i = 1;
	while(document.getElementById('points' + i))
	{
		parseTabs('points' + i);
		i++;
		if(i > 20)
			break;
	}
})

addLoadEvent(function() {
  document.body.style.visibility="visible";
})

