var intActiveLink = 0

function loadLeft(inIntLink) {

//alert(inIntLink)
  //strInLink = String(inIntLink)
  //strActiveLink = String(intActiveLink)
  //if (strInLink.substr(0,1) != strActiveLink.substr(0,1)) resetMainLink()
  //if (inIntLink > 0) document.getElementById('idLink_'+strInLink.substr(0,1)).style.color = '#ff6600'

  //home:
  if (inIntLink == 0) {
    parent.frmMain.document.location = 'start.php'
  }


  //artdeco:
  else if (inIntLink == 2000) {
    parent.frmMain.document.location = 'artdeco.php?l='+String(inIntLink)
  }

  //artdeco Liquidation:
  else if (inIntLink == 2001) {
    parent.frmMain.document.location = 'artdeco.php?l='+String(inIntLink)
  }

  //artists:
  else if (inIntLink > 3000 && inIntLink < 4000) {
    //parent.frmTitleTop.document.getElementById('idTblTopLinks1').style.visibility = 'hidden'
    //parent.frmTitleTop.document.getElementById('idTblTopLinks2').style.visibility = 'visible'
    //arrLinks = document.getElementById('idLinkArtist_'+String(inIntLink-3000)).name.split("_")
    //if (arrLinks[1] == '0') strLinkBack = '0'
    //else strLinkBack = String(3000+Number(arrLinks[1]))
    //if (arrLinks[2] == '0') strLinkFwd = '0'
    //else strLinkFwd = String(3000+Number(arrLinks[2]))
    //setTopLinks(strLinkBack,strLinkFwd)
    //parent.frmTitleTop.document.getElementById('idTopLinkOverview').innerHTML = "<br>"

    //parent.frmTitleTop.document.getElementById('idTitleTop2').innerHTML = parent.frmNavLeft.document.getElementById('idThema_'+String(inIntLink-3000)).innerHTML
    parent.frmMain.document.location = 'artist.php?l='+String(inIntLink)
    //if (document.getElementById('idSerien').innerHTML != '') {
      //document.getElementById('idSerien').innerHTML = ''
      //document.getElementById('tblNavLeft').style.height = '100%'
    //}
    //if (document.getElementById('idArtists').innerHTML != '') {
      //document.getElementById('idArtists').innerHTML = ''
      //document.getElementById('tblNavLeft').style.height = '100%'
    //}
    //if (document.getElementById('idBoxes').innerHTML != '') {
      //document.getElementById('idBoxes').innerHTML = ''
      //document.getElementById('tblNavLeft').style.height = '100%'
    //}
    //if (intActiveLink > 0) resetActiveLink()
    //document.getElementById('idLink_3').style.color = '#ff6600'
    //document.getElementById('idThema_'+String(inIntLink-3000)).style.color = '#ff6600'
  }

  //usb:
  else if (inIntLink == 4000) {
    parent.frmMain.document.location = 'usb.php'
  }

  //usb Ausstellungen:
  else if (inIntLink == 4001) {
    parent.frmMain.document.location = 'usbAusst.php'
  }

  //kontakt:
  else if (inIntLink == 5000) {
    parent.frmMain.document.location = 'kontakt.php'
  }

  //links:
  else if (inIntLink == 6000) {
    parent.frmMain.document.location = 'links.php'
  }

  intActiveLink = inIntLink

}

function expandAll() {
  //document.getElementById('idArtDecos').innerHTML = strTableArtDeco
  document.getElementById('idArtists').innerHTML = strTableArtists
  document.getElementById('idUsb').innerHTML = strTableUsb
}

function expandLeft(inDblLink) {

  //if (inDblLink == 2) {
    //strId = 'idArtDecos'
    //strContent = strTableArtDeco
    //strHeight = '100'
  //}

  //else if (inDblLink == 3) {
    //strId = 'idArtists'
    //strContent = strTableArtists
    //strHeight = '700'
  //}

  //else if (inDblLink == 4) {
    //strId = 'idUsb'
    //strContent = strTableUsb
    //strHeight = '100'
  //}

  //if (document.getElementById(strId).innerHTML == '') {
    //document.getElementById(strId).innerHTML = strContent
    //document.getElementById('tblNavLeft').style.height = strHeight

    //if (inDblLink == 3) loadLeft(3001)
    //else if (inDblLink == 2) loadLeft(2000)
    //else if (inDblLink == 4) loadLeft(4000)
  //}
  //else {
    //document.getElementById(strId).innerHTML = ''
    //document.getElementById('tblNavLeft').style.height = '100%'
  //}

  //temporär:

  //strIdFirstArtist = document.getElementsByName('nameArtist_0_2')[0].id
  //strIdFirstArtist = strIdFirstArtist.substr(strIdFirstArtist.indexOf('_')+1)

  if (inDblLink == 3) loadLeft(3000+Number(strIdFirstArtist))
  else if (inDblLink == 2) loadLeft(2000)
  else if (inDblLink == 4) loadLeft(4000)

}