function hideTab(idname) {document.getElementById(idname).style.display = 'none';}
function showTab(idname) {document.getElementById(idname).style.display = 'block';}

function hideAvatar(avatar, idname) {
         document.getElementById(idname).style.display = 'none';
         document.getElementById(avatar).className = 'avatarborder';
         }
function showAvatar(avatar, idname) {
         document.getElementById(idname).style.display = 'block';
         document.getElementById(avatar).className = 'avatarborder activeAvatar';
}

function switchDock(wert) {
	if (wert=='00'){
		document.getElementById('00').className='tabActive';
		document.getElementById('10').className='';
	        document.getElementById('20').className='';
		document.getElementById('30').className='';
		document.getElementById('40').className='';
	}else if (wert=='10'){
		document.getElementById('00').className='';
		document.getElementById('10').className='tabActive';
	        document.getElementById('20').className='';
		document.getElementById('30').className='';
		document.getElementById('40').className='';
	}else if (wert=='20'){
		document.getElementById('00').className='';
		document.getElementById('10').className='';
	        document.getElementById('20').className='tabActive';
		document.getElementById('30').className='';
		document.getElementById('40').className='';
	}else if (wert=='30'){
		document.getElementById('00').className='';
		document.getElementById('10').className='';
	        document.getElementById('20').className='';
		document.getElementById('30').className='tabActive';
		document.getElementById('40').className='';
	}else if (wert=='40'){
		document.getElementById('00').className='';
		document.getElementById('10').className='';
	        document.getElementById('20').className='';
		document.getElementById('30').className='';
		document.getElementById('40').className='tabActive';
        }
}


   function changeActiveColor(id) {
      document.getElementById(id).style.fontWeight = 'bold';   }

   function changePassiveColor(id) {
     if (document.getElementById(id) != null) {
      document.getElementById(id).style.fontWeight = 'normal';
      } 
   }
      
   function changeActiveDockElement(id) {
      document.getElementById(id).className += ' activeTab';
   }

   function changePassiveDockElement(id) {
            removeName(id, 'activeTab');
   }
   

   function hideDiv(id) {
      document.getElementById(id).style.display = 'none';   }
      
   function showDiv(id) {
      document.getElementById(id).style.display = 'block';   }
      
   function toggleBold(obj) {

            if (obj.style.fontWeight == 'bold') {
                   obj.style.fontWeight = 'normal';
                    } else {
                           obj.style.fontWeight = 'bold';
            }

   }





/***********************************************
* Switch Content script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="off" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)

var contractsymbol=' - ' //HTML for contract symbol. For image, use: <img src="whatever.gif">
var expandsymbol=' + ' //HTML for expand symbol.




function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}


function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(curobj, cid){
var spantags=curobj.getElementsByTagName("SPAN")
var showstateobj=getElementbyClass(spantags, "showstate")
if (ccollect.length>0){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ //if "showstate" span exists in header
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function revivestatus(){
var inc=0
while (statecollect[inc]){
if (ccollect[inc].style.display=="block")
statecollect[inc].innerHTML=contractsymbol
else
statecollect[inc].innerHTML=expandsymbol
inc++
}
}

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 getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
var alltags=document.all? document.all : document.getElementsByTagName("*")
ccollect=getElementbyClass(alltags, "switchcontent")
statecollect=getElementbyClass(alltags, "showstate")
if (enablepersist=="on" && ccollect.length>0){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
if (ccollect.length>0 && statecollect.length>0)
revivestatus()
}

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

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate



   function changeNavigationForPage(num) {

        changePassiveColor(0);
        changePassiveColor(1);
        changePassiveColor(2);
        changePassiveColor(3);
        changePassiveColor(4);
        changePassiveColor(5);
        changePassiveColor(6);
        changePassiveColor(7);
        changePassiveColor(8);
        changePassiveColor(9);
        changePassiveColor(10);
        changePassiveColor(11);
        changePassiveColor(12);

        changeActiveColor(num);
        window.location.href='#top';


}

var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
if (bustcachevar) //if bust caching of external page
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}