function erzXMLHttpRequestObjectTabKlein()
{
	var tabKleinObjekt = null;

	try
	{ tabKleinObjekt = new ActiveXObject("Microsoft.XMLHTTP"); }
	catch(Error)
	{
		try
		{ tabKleinObjekt = new ActiveXObject("MSXML2.XMLHTTP"); }
		catch(Error)
		{
			try
			{ tabKleinObjekt = new XMLHttpRequest(); }
			catch(Error)
			{ alert("Erzeugung des XLHttpRequest-Objekts nicht m&ouml;glich"); }
		}
	}

	return tabKleinObjekt;
}

function handleResponseTabKlein()
{
	if ((tabKleinObjekt.readyState == 4) && (tabKleinObjekt.status == 200))
	{ 
		document.getElementById("side-tabKlein").style.visibility = 'hidden';
		tabFade('side-tabKlein');
		document.getElementById("side-tabKlein").innerHTML = tabKleinObjekt.responseText;
	}
	else
	{ document.getElementById("side-tabKlein").innerHTML = "<div style='text-align:center'><img src='fcw3/images/load.gif'></img></div>"; }
}

function tabKleinSelect(sid,mname)
{
	datei = 'tabKlein.php';
	tabKleinObjekt.open('post',datei,true);
	tabKleinObjekt.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	tabKleinObjekt.onreadystatechange = handleResponseTabKlein;
	tabKleinObjekt.send('sid='+sid+'&mname='+mname);
}

tabKleinObjekt = erzXMLHttpRequestObjectTabKlein();

/************************************************************/
/*																													*/
/* 											FADE FUNCTIONS											*/
/*																													*/
/************************************************************/

function tabFade(objID)
{
  image = document.getElementById(objID);
  tabsetOpacity(image, 0);
  image.style.visibility = 'visible';
  tabfadeIn(objID,0);
}

function tabfadeIn(objId,opacity) 
{
  if (document.getElementById) 
 	{
    obj = document.getElementById(objId);
    if (opacity <= 100) 
   	{
      tabsetOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("tabfadeIn('"+objId+"',"+opacity+")", 10);
    }
  }
}

function tabsetOpacity(obj, opacity) 
{
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}