// JavaScript Document
var dolphintabs4={ //Change
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu4:function(curtabref){

	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current4"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init4:function(menuId, selectedIndex){ // Change2
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current4"

				this.revealsubmenu4(tabItems[i]) 
			}
		tabItems[i].onclick=function(){
		dolphintabs4.revealsubmenu4(this)
		}
		} //END FOR LOOP
	}

}



// JavaScript Document
var dolphintabs5={ //Change
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu5:function(curtabref){

	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current5"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init5:function(menuId, selectedIndex){ // Change2
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current5"

				this.revealsubmenu5(tabItems[i]) 
			}
		tabItems[i].onclick=function(){
		dolphintabs5.revealsubmenu5(this)
		}
		} //END FOR LOOP
	}

}




// JavaScript Document
var dolphintabs6={ //Change
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu6:function(curtabref){

	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current6"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init6:function(menuId, selectedIndex){ // Change2
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current6"

				this.revealsubmenu6(tabItems[i]) 
			}
		tabItems[i].onclick=function(){
		dolphintabs6.revealsubmenu6(this)
		}
		} //END FOR LOOP
	}

}
