function SetTabBehaviors() {
	var elements = DomHelper.GetElementsByClassName('tabs');
	var tabElements = DomHelper.GetElementsByClassName('tab',null,elements[0]);
	var tabIndex;
		// get the default tab index.
	for (var i=0; i<tabElements.length; i++) {
		if (tabInfo.toLowerCase() == tabElements[i].firstChild.nodeValue.replace(' ','').toLowerCase())
			tabIndex = i;
	}
	
			// create new array to hold instances
	instances = new Array();
			// loop through all elements with "tabs" class
	for (var i=0; i<elements.length; i++) {
			// create new TabHelper instance at iterator location
		instances[i] = new TabHelper(tabIndex);
			// run init function for that particular instance, passing it the element at the iterator location
		instances[i].init(elements[i]);
	}
}	