// ----------------------------------------------------------------------------------------------------------------------
//   HoverButton
// ----------------------------------------------------------------------------------------------------------------------

function HoverButton(theID,theAction,theText,theURL)
{
	switch (theAction)
	{
	case 'over':
		document.getElementById(theID).src ="ttffont.php?top=12&pic=bnt_mh&text="+ theURL;
		window.status=theText;
		break;
	case 'out':
		document.getElementById(theID).src="ttffont.php?top=12&text=" + theURL;
		window.status='';
		break;
	}
}

// ----------------------------------------------------------------------------------------------------------------------
//   HoverTable
// ----------------------------------------------------------------------------------------------------------------------
function HoverTable(theID, theAction,theURL)
{
	//alert (theID+ "; "+ theAction+ "; " + document.getElementById(theID).id)
	
	switch (theAction)
	{
	case 'click':
		parent.location.href = theURL
		break;
	case 'over':
		for (i =1; i < 7; i++)
		{
			document.getElementById(theID +'.' + i).style.backgroundColor="#5B8DA4"
		}
		
		break;
	case 'out':
		for (i =1; i < 7; i++)
		{
			document.getElementById(theID +'.' + i).style.backgroundColor="transparent"
		}
		break;
	}
}

function TabClick(theID, thePic)
{
	img=document.getElementById("CurrentPic")
	oldID=img.CurrentID
	img.src="pic.php?pic=" + thePic +"&Width=360&Height=270"
	img.CurrentID=theID
	
	document.getElementById(theID).src="ttffont.php?s=10&pic=bnt_akt&top=6&left=-1&text=" + theID
	document.getElementById(oldID).src="ttffont.php?s=10&pic=bnt_deakt&top=6&left=-1&text=" + oldID
}

// ----------------------------------------------------------------------------------------------------------------------
//   OpenPopUp
// ----------------------------------------------------------------------------------------------------------------------
function OpenPopUp (theURL,theWidth,theHeight)
{	
			if (typeof (theWidth) =='undefined') theWidth=500
			if (typeof (theHeight) =='undefined') theHeight=450

			theTop=(screen.availHeight - theHeight) / 2
			theLeft=(screen.availWidth - theWidth) / 2
			F1 = window.open(theURL,"Fenster1","scrollbars=yes,width=" + theWidth + ",height=" + theHeight + ",left="+theLeft +",top="+theTop)
}