/*-- scripts by el-zorro.de */

/* externes fenster */

function FensterOpen(theURL,winName)
{ 
  winName=winName+String(Math.floor(Math.random()*1000));
  window.open(theURL,winName,'menubar=yes,scrollbars=no,width=534,height=390');
}
   
function FensterOpen1(theURL,winName)
{ 
winName=winName+String(Math.floor(Math.random()*1000));
  window.open(theURL,winName,'menubar=no,scrollbars=yes,width=660,height=380');
}
/* Webversion von FensterOpen1

function FensterOpen1(theURL,winName)
{ 
winName=winName+String(Math.floor(Math.random()*1000));
  window.open('../main/hint.htm',winName,'menubar=no,scrollbars=no,width=480,height=345');
}

*/   
function FensterOpen2(myUrl,winName)
{ 
  winName=winName+String(Math.floor(Math.random()*1000));
  window.open(myUrl, winName, "scrollbars=yes,menubar=yes,toolbar=yes,status=yes,resizable=no,width=620,height=400");
}

function FensterOpen3(theURL,winName)
{ 
  winName=winName+String(Math.floor(Math.random()*1000));
  window.open(theURL,winName,'menubar=yes,scrollbars=no,width=560,height=420');
}

/* OnlineLinks */ 
 
 function MyOnlineAll()
 {
   Check = confirm("Sind Sie bereits online?");
   if(Check == true) 
     location.href="http://195.243.105.204/%7Eavatar/expo_forum/cgi-bin/index.pl"; 
   else 
     alert('Verbinden Sie sich erst mit dem Internet!');
 }

function MyPrint()
{
    Check = confirm("Benutzen Sie Netscape?");
    if(Check == true) 
      window.print();
    else 
      alert('Sie können als MSIE-Nutzer nur über das Dateimenü drucken!');

}


function MyLink(myLink)
{
  document.location.href = myLink;
}


function MyClose()
{
  window.close();
} 

function MyMore()
{
  document.location.href="full.htm"
}

function metadesk()
  {
    Check = confirm("Sind Sie bereits online?");
    if(Check == true) 
	   window.open('http://www.metadesk.de','metadesk','menubar=yes,scrollbars=yes,width=600,height=500');
	else 
	  alert('Verbinden Sie sich erst mit dem Internet!');
  }
  
function MyApple(myHref)
{
  parent.parent.frames[1].location.href = myHref;
}    

function MyRelated(myLink)
{
  parent.buttons.ausgabe2(myLink);
}

function MyRemote(myLink)
{
  window.opener.location.href = myLink;
}

/*-- Druckansicht --*/

var MyHeadInfo = 'Hallo <br>'

function BildInfo()
{	
 if (parent.frames.length != 0)
 {
   MyHeadInfo = '<img src="../gif/leer.gif" height="1">'
 }  
 else
 {
   MyHeadInfo = '<img src="../gif/printpic.gif">'
 }
}   

function InhaltInfo()
{	
 if (parent.frames.length != 0)
 {
   MyHeadInfo = '<img src="../gif/leer.gif" height="1">'
 }  
 else
 {
   MyHeadInfo = '<img src="../gif/printpic.gif">'
 }
} 


/*--                TOOLTIPS          --*/

//Begin dHTML Tooltip Timer
var tipTimer;
//End dHTML Tooltip Timer

<!--
function locateObject(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=locateObject(n,d.layers[i].document); return x;
}

function hideTooltip(object)
{
if (document.all)
{
	locateObject(object).style.visibility="hidden"
	locateObject(object).style.left = 1;
	locateObject(object).style.top = 1;
return false
}
else if (document.layers)
{
	locateObject(object).visibility="hide"
	locateObject(object).left = 1;
	locateObject(object).top = 1;
	return false
}
else
	return true
}

function showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor, displaytime)
{
	//window.clearTimeout(tipTimer)
	
	if (document.all)
		{
			locateObject(object).style.top=document.body.scrollTop+event.clientY-60
			
			locateObject(object).innerHTML='<table style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; border: '+bordercolor+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; background-color: '+backcolor+'" width="10" border="0" cellspacing="1" cellpadding="1"><tr><td nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table> '

			if ((e.x + locateObject(object).clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
				{	
					locateObject(object).style.left = (document.body.clientWidth + document.body.scrollLeft) - locateObject(object).clientWidth-10;
				}
			else
			{
			locateObject(object).style.left=document.body.scrollLeft+event.clientX
			}
		locateObject(object).style.visibility="visible"
		//tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
		window.setTimeout("hideTooltip('"+object+"')", displaytime);
		}
	else if (document.layers)
		{
		locateObject(object).document.write('<table width="10" border="0" cellspacing="1" cellpadding="1"><tr bgcolor="'+bordercolor+'"><td><table width="10" border="0" cellspacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td nowrap><font style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table><td></tr></table>')
		locateObject(object).document.close()
		locateObject(object).top=e.y-60

		if ((e.x + locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
			{
				locateObject(object).left = window.innerWidth - locateObject(object).clip.width-10;
			}
		else
			{
			locateObject(object).left=e.x;
			}
		locateObject(object).visibility="show"
		//tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
		window.setTimeout("hideTooltip('"+object+"')", displaytime);
	}
	else
	{
		return true
	}
}  
/*-- ende --*/
