
var initialtab2=[1, "rbp1"]

////////Stop editting////////////////

function cascadedstyle2(el, cssproperty, csspropertyNS){
if (el.currentStyle)
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(csspropertyNS)
}
}

var previoustab2=""

function expandcontent2(cid2, aobject2){

if (document.getElementById){
highlighttab2(aobject2)
detectSourceindex2(aobject2)
if (previoustab2!="")
document.getElementById(previoustab2).style.display="none"
document.getElementById(cid2).style.display="block"
previoustab2=cid2
if (aobject2.blur)
aobject2.blur()
return false
}
else
return true
}

function highlighttab2(aobject2){
if (typeof tabobjlinks2=="undefined")
collecttablinks2()
for (i=0; i<tabobjlinks2.length; i++)
tabobjlinks2[i].style.backgroundColor=initTabcolor2
var themecolor2=aobject2.getAttribute("theme")? aobject2.getAttribute("theme") : initTabpostcolor2
aobject2.style.backgroundColor=document.getElementById("tabcontentcontainer2").style.backgroundColor=themecolor2
}

function collecttablinks2(){
var tabobj2=document.getElementById("tablist2")
tabobjlinks2=tabobj2.getElementsByTagName("A")
}

function detectSourceindex2(aobject2){
for (i=0; i<tabobjlinks2.length; i++){
if (aobject2==tabobjlinks2[i]){
tabsourceindex=i //source index of tab bar relative to other tabs
break
}
}
}

function do_onload2(){
var cookiename=(typeof persisttype!="undefined" && persisttype=="sitewide")? "tabcontent2" : window.location.pathname
var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks2()
initTabcolor2=cascadedstyle2(tabobjlinks2[1], "backgroundColor", "background-color")
initTabpostcolor2=cascadedstyle2(tabobjlinks2[0], "backgroundColor", "background-color")
if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
var cookieparse=get_cookie(cookiename).split("|")
var whichtab=cookieparse[0]
var tabcontentid=cookieparse[1]
expandcontent2(tabcontentid, tabobjlinks2[whichtab])
}
else
expandcontent2(initialtab2[1], tabobjlinks2[initialtab2[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload2, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload2)
else if (document.getElementById)
window.onload=do_onload2
// JavaScript Document