
var initialtab=[1, "atf1"]
	function cascadedstyle(el, cssproperty, csspropertyNS){
	if (el.currentStyle)
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle){
	var elstyle=window.getComputedStyle(el, "")
	return elstyle.getPropertyValue(csspropertyNS)
	}
}

var previoustab=""
	function expandcontent(cid, aobject){
	if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
	if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
	if (aobject.blur)
aobject.blur()
	return false
	}
	else
return true
}

	function highlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
collecttablinks()
	for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor=initTabcolor
	var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=document.getElementById("tableframe").style.backgroundColor=themecolor
	}

	function collecttablinks(){
	var tabobj=document.getElementById("tabbuttons")
tabobjlinks=tabobj.getElementsByTagName("A")
}

	function detectSourceindex(aobject){
	for (i=0; i<tabobjlinks.length; i++){
	if (aobject==tabobjlinks[i]){
tabsourceindex=i 
	break
		}
	}
}

	function do_onload(){
	var cookiename=(persisttype=="sitewide")? "tablecontent" : window.location.pathname
	var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor", "background-color")
	if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
	var cookieparse=get_cookie(cookiename).split("|")
	var whichtab=cookieparse[0]
	var tablecontentid=cookieparse[1]
expandcontent(tablecontentid, tabobjlinks[whichtab])
	}
	else
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	if (window.addEventListener)
window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
window.attachEvent("onload", do_onload)
	else if (document.getElementById)
window.onload=do_onload

var enablepersistence=true 
var persisttype="local" 

	function get_cookie(Name) { 
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
	if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
	if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
	}
}
	return returnvalue;
}

	function savetabstate(){
	var cookiename=(persisttype=="sitewide")? "tablecontent" : window.location.pathname
	var cookievalue=(persisttype=="sitewide")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue
}

//window.onunload=savetabstate



//next table

var initialtab=[1, "Ratf6"]
	function cascadedstyle(el, cssproperty, csspropertyNS){
	if (el.currentStyle)
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle){
	var elstyle=window.getComputedStyle(el, "")
	return elstyle.getPropertyValue(csspropertyNS)
	}
}

var previoustab=""
	function expandcontent2(cid, aobject){
	if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
	if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
	if (aobject.blur)
aobject.blur()
	return false
	}
	else
return true
}

	function highlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
collecttablinks()
	for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor2=initTabcolor
	var themecolor=aobject.getAttribute("theme2")? aobject.getAttribute("theme2") : initTabpostcolor
aobject.style.backgroundColor2=document.getElementById("tableframe2").style.backgroundColor2=themecolor
	}

	function collecttablinks(){
	var tabobj=document.getElementById("tabbuttons2")
tabobjlinks=tabobj.getElementsByTagName("A")
}

	function detectSourceindex(aobject){
	for (i=0; i<tabobjlinks.length; i++){
	if (aobject==tabobjlinks[i]){
tabsourceindex=i 
	break
		}
	}
}

	function do_onload(){
	var cookiename=(persisttype=="sitewide2")? "tablecontent2" : window.location.pathname
	var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor2", "background-color2")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor2", "background-color2")
	if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
	var cookieparse=get_cookie(cookiename).split("|")
	var whichtab=cookieparse[0]
	var tablecontentid=cookieparse[1]
expandcontent2(tablecontentid, tabobjlinks[whichtab])
	}
	else
expandcontent2(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	if (window.addEventListener)
window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
window.attachEvent("onload", do_onload)
	else if (document.getElementById)
window.onload=do_onload

var enablepersistence=true 
var persisttype="local" 

	function get_cookie(Name) { 
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
	if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
	if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
	}
}
	return returnvalue;
}

	function savetabstate(){
	var cookiename=(persisttype=="sitewide2")? "tablecontent2" : window.location.pathname
	var cookievalue=(persisttype=="sitewide2")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue
}

//Blue Mist

//next table

var initialtab=[1, "Batf6"]
	function cascadedstyle(el, cssproperty, csspropertyNS){
	if (el.currentStyle)
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle){
	var elstyle=window.getComputedStyle(el, "")
	return elstyle.getPropertyValue(csspropertyNS)
	}
}

var previoustab=""
	function expandcontent3(cid, aobject){
	if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
	if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
	if (aobject.blur)
aobject.blur()
	return false
	}
	else
return true
}

	function highlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
collecttablinks()
	for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor3=initTabcolor
	var themecolor=aobject.getAttribute("theme3")? aobject.getAttribute("theme3") : initTabpostcolor
aobject.style.backgroundColor3=document.getElementById("tableframe3").style.backgroundColor3=themecolor
	}

	function collecttablinks(){
	var tabobj=document.getElementById("tabbuttons3")
tabobjlinks=tabobj.getElementsByTagName("A")
}

	function detectSourceindex(aobject){
	for (i=0; i<tabobjlinks.length; i++){
	if (aobject==tabobjlinks[i]){
tabsourceindex=i 
	break
		}
	}
}

	function do_onload(){
	var cookiename=(persisttype=="sitewide3")? "tablecontent3" : window.location.pathname
	var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor3", "background-color3")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor3", "background-color3")
	if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
	var cookieparse=get_cookie(cookiename).split("|")
	var whichtab=cookieparse[0]
	var tablecontentid=cookieparse[1]
expandcontent3(tablecontentid, tabobjlinks[whichtab])
	}
	else
expandcontent3(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	if (window.addEventListener)
window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
window.attachEvent("onload", do_onload)
	else if (document.getElementById)
window.onload=do_onload

var enablepersistence=true 
var persisttype="local" 

	function get_cookie(Name) { 
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
	if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
	if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
	}
}
	return returnvalue;
}

	function savetabstate(){
	var cookiename=(persisttype=="sitewide3")? "tablecontent3" : window.location.pathname
	var cookievalue=(persisttype=="sitewide3")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue
}




//Black Diamond

//next table

var initialtab=[1, "BDatf6"]
	function cascadedstyle(el, cssproperty, csspropertyNS){
	if (el.currentStyle)
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle){
	var elstyle=window.getComputedStyle(el, "")
	return elstyle.getPropertyValue(csspropertyNS)
	}
}

var previoustab=""
	function expandcontent4(cid, aobject){
	if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
	if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
	if (aobject.blur)
aobject.blur()
	return false
	}
	else
return true
}

	function highlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
collecttablinks()
	for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor4=initTabcolor
	var themecolor=aobject.getAttribute("theme4")? aobject.getAttribute("theme4") : initTabpostcolor
aobject.style.backgroundColor4=document.getElementById("tableframe4").style.backgroundColor4=themecolor
	}

	function collecttablinks(){
	var tabobj=document.getElementById("tabbuttons4")
tabobjlinks=tabobj.getElementsByTagName("A")
}

	function detectSourceindex(aobject){
	for (i=0; i<tabobjlinks.length; i++){
	if (aobject==tabobjlinks[i]){
tabsourceindex=i 
	break
		}
	}
}

	function do_onload(){
	var cookiename=(persisttype=="sitewide4")? "tablecontent4" : window.location.pathname
	var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor4", "background-color4")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor4", "background-color4")
	if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
	var cookieparse=get_cookie(cookiename).split("|")
	var whichtab=cookieparse[0]
	var tablecontentid=cookieparse[1]
expandcontent4(tablecontentid, tabobjlinks[whichtab])
	}
	else
expandcontent4(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	if (window.addEventListener)
window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
window.attachEvent("onload", do_onload)
	else if (document.getElementById)
window.onload=do_onload

var enablepersistence=true 
var persisttype="local" 

	function get_cookie(Name) { 
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
	if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
	if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
	}
}
	return returnvalue;
}

	function savetabstate(){
	var cookiename=(persisttype=="sitewide4")? "tablecontent4" : window.location.pathname
	var cookievalue=(persisttype=="sitewide4")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue

}














//Frog Beige Diamond

//next table

var initialtab=[1, "BDatf10"]
	function cascadedstyle(el, cssproperty, csspropertyNS){
	if (el.currentStyle)
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle){
	var elstyle=window.getComputedStyle(el, "")
	return elstyle.getPropertyValue(csspropertyNS)
	}
}

var previoustab=""
	function expandcontent5(cid, aobject){
	if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
	if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
	if (aobject.blur)
aobject.blur()
	return false
	}
	else
return true
}

	function highlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
collecttablinks()
	for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor5=initTabcolor
	var themecolor=aobject.getAttribute("theme5")? aobject.getAttribute("theme5") : initTabpostcolor
aobject.style.backgroundColor5=document.getElementById("tableframe5").style.backgroundColor5=themecolor
	}

	function collecttablinks(){
	var tabobj=document.getElementById("tabbuttons5")
tabobjlinks=tabobj.getElementsByTagName("A")
}

	function detectSourceindex(aobject){
	for (i=0; i<tabobjlinks.length; i++){
	if (aobject==tabobjlinks[i]){
tabsourceindex=i 
	break
		}
	}
}

	function do_onload(){
	var cookiename=(persisttype=="sitewide5")? "tablecontent5" : window.location.pathname
	var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor5", "background-color5")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor5", "background-color5")
	if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
	var cookieparse=get_cookie(cookiename).split("|")
	var whichtab=cookieparse[0]
	var tablecontentid=cookieparse[1]
expandcontent5(tablecontentid, tabobjlinks[whichtab])
	}
	else
expandcontent5(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	if (window.addEventListener)
window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
window.attachEvent("onload", do_onload)
	else if (document.getElementById)
window.onload=do_onload

var enablepersistence=true 
var persisttype="local" 

	function get_cookie(Name) { 
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
	if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
	if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
	}
}
	return returnvalue;
}

	function savetabstate(){
	var cookiename=(persisttype=="sitewide5")? "tablecontent5" : window.location.pathname
	var cookievalue=(persisttype=="sitewide5")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab
document.cookie=cookiename+"="+cookievalue

}



