// Init Timers
var standardtimer	=	window.setInterval("countdown()",1000);
var pipetimer		=	window.setInterval("countpipe()",1000);
StartZeit		=	new Date();

// Init Countdowns
var countdowns		=	new Array ();
var countdownpipe	=	new Array ();
var pipecountertime	=	0;

function init_countdown (id, time, done, prefix, suffix) {
	if (countdowns.length > 100)
	{
		return true;
	}

//	if (time > 604800)
//		return true;

	if (sset2 == 1)
		return true;

	var newcounter			=	new Array ();

	newcounter["time"]              =       StartZeit.getTime()+(time * 1000);
	newcounter["id"]                =       id;
	newcounter["prefix"]            =       prefix;
	newcounter["suffix"]            =       suffix;
	newcounter["done"]              =       done;
	countdowns.push (newcounter);

	if (sset1 == 1)
	{
		newcounter["text"]		=	document.getElementById(id).title;
	}
}

function init_pipecountdown (id, time, done, prefix, suffix) {
	if (sset2 == 1)
		return true;

        var newcounter			=	new Array ();

        newcounter["time"]              =       StartZeit.getTime()+(time * 1000)+(pipecountertime * 1000);
        newcounter["id"]                =       id;
        newcounter["prefix"]            =       prefix;
        newcounter["suffix"]            =       suffix;
        newcounter["done"]              =       done;

        pipecountertime                 =       pipecountertime + time ;

        countdownpipe.push (newcounter);
}

function countdown() {
	jetzt = new Date();
	jMinuten = jetzt.getMinutes();
	jStunden = jetzt.getHours();

	for (var counter = 0; counter < countdowns.length; counter++) {

		if (sset1 == 1 && countdowns[counter]["text"] != "")
		{
			var text	=	"<br />" + "<span class='small'>" + countdowns[counter]["text"] + "</span>";
		}
		else
		{
			var text	=	"";
		}

		var diff_s      =       (countdowns[counter]['time'] - jetzt.getTime());

		var days        =       Math.floor((diff_s / 86400000) % 1000);
		var hours       =       Math.floor((diff_s / 3600000) % 24);
		var minutes     =       Math.floor((diff_s / 60000) % 60);
		var seconds     =       Math.floor((diff_s / 1000) % 60);

		var p_days      =       days;
		var p_hours     =       ((hours < 10) ? "0" : "")+hours;
		var p_minutes   =       ((minutes < 10) ? "0" : "")+minutes;
		var p_seconds   =       ((seconds < 10) ? "0" : "")+seconds;

		if (document.getElementById && document.getElementById(countdowns[counter]['id']) != null) {
			if (diff_s <= 0) {
				document.getElementById(countdowns[counter]['id']).innerHTML = countdowns[counter]['done'];
			} else {
				if (p_days != 0) {
					document.getElementById(countdowns[counter]['id']).innerHTML = countdowns[counter]['prefix']+p_days+' Tag(e), '+p_hours+':'+p_minutes+':'+p_seconds+text+countdowns[counter]['suffix'];
				} else {
					document.getElementById(countdowns[counter]['id']).innerHTML = countdowns[counter]['prefix']+p_hours+':'+p_minutes+':'+p_seconds+text+countdowns[counter]['suffix'];
				}
			}
		}
	}
}

function countpipe() {

        jetzt = new Date();
        jMinuten = jetzt.getMinutes();
        jStunden = jetzt.getHours();

        if (countdownpipe.length == 0) {
                window.clearInterval (pipetimer);
                return;
        }

        var counter = 0;

        var diff_s      =       (countdownpipe[counter]['time'] - jetzt.getTime());

        var days        =       Math.floor((diff_s / 86400000) % 1000);
        var hours       =       Math.floor((diff_s / 3600000) % 24);
        var minutes     =       Math.floor((diff_s / 60000) % 60);
        var seconds     =       Math.floor((diff_s / 1000) % 60);

        var p_days      =       days;
        var p_hours     =       ((hours < 10) ? "0" : "")+hours;
        var p_minutes   =       ((minutes < 10) ? "0" : "")+minutes;
        var p_seconds   =       ((seconds < 10) ? "0" : "")+seconds;

        if (document.getElementById && document.getElementById(countdownpipe[counter]['id']) != null) {
                if (diff_s <= 0) {
                        document.getElementById(countdownpipe[counter]['id']).innerHTML = countdownpipe[counter]['done'];
                        countdownpipe.shift ();
                } else {
                        if (p_days != 0) {
                                document.getElementById(countdownpipe[counter]['id']).innerHTML = countdownpipe[counter]['prefix']+p_days+' Tag(e), '+p_hours+':'+p_minutes+':'+p_seconds+countdownpipe[counter]['suffix'];
                        } else {
                                document.getElementById(countdownpipe[counter]['id']).innerHTML = countdownpipe[counter]['prefix']+p_hours+':'+p_minutes+':'+p_seconds+countdownpipe[counter]['suffix'];
                        }
                }
        }

}


function updatetimer(obj, seconds, done, prefix, suffix)
{
	jetzt = new Date();
	jMinuten = jetzt.getMinutes();
	jStunden = jetzt.getHours();

	var diff_s      =       (StartZeit.getTime()+(seconds*1000)  - jetzt.getTime());
	var days        =       Math.floor((diff_s / 86400000) % 1000);
	var hours       =       Math.floor((diff_s / 3600000) % 24);
	var minutes     =       Math.floor((diff_s / 60000) % 60);
	var seconds     =       Math.floor((diff_s / 1000) % 60);

	var p_days      =       days;
	var p_hours     =       ((hours < 10) ? "0" : "")+hours;
	var p_minutes   =       ((minutes < 10) ? "0" : "")+minutes;
	var p_seconds   =       ((seconds < 10) ? "0" : "")+seconds;

	if (sset1 == 1)
	{
		var text	=	"<br />" + "<span class='small'>" + obj.title + "</span>";
	}
	else
	{
		var text	=	"";
	}

	if (diff_s <= 0) {
		obj.innerHTML = done;
	} else {
		if (p_days != 0) {
			obj.innerHTML = prefix+p_days+' Tag(e), '+p_hours+':'+p_minutes+':'+p_seconds+text+suffix;
		} else {
			obj.innerHTML = prefix+p_hours+':'+p_minutes+':'+p_seconds+text+suffix;
		}
	}
	return true;
}

function organizer_address (value)
{
	if (value != "")
	{
		var values = value.split(":");

		var check = document.getElementsByName('d');
		if (check.length)
		{
			check[0].value = values[0];
		}
		document.sendform.e.value = values[1];
		document.sendform.f.value = values[2];
	}
}

function organizer_fleet (value)
{
	var evl;
	if (value != "")
	{
		var units = value.split(":");
		for (var i = 0; i < (units.length -1); ++i)
		{
			unit = units[i].split("=");
			var elements = document.getElementsByName(unit[0]);
			if (elements.length)
			{
				elements[0].value = unit[1];
			}
		}
	}
}

function fleet_set (unit, count)
{
	var elements = document.getElementsByName(unit);
	if (elements.length)
	{
		elements[0].value = count;
	}
}

function resource_max (field)
{
	if(document.all)		// IE4
	{
		var obj = document.all[field];
		var obj2 = document.all[field+'info'];
	}
	if(document.layers)		// NN4
	{
		var obj = document.layers[field];
		var obj2 = document.layers[field+'info'];
	}
	if(document.getElementById)	// NN6 or IE/Opera 6
	{
		var obj = document.getElementById(field);
		var obj2 = document.getElementById(field+'info');
	}

	if (obj.value == '-1')
	{
		obj.value = '';
		obj.style.display = '';
		obj2.style.display = 'none';
	}
	else
	{
		obj.value = '-1';
		obj.style.display = 'none';
		obj2.style.display = '';
	}
}

function showhide (show, hide)
{
	if(document.all)		// IE4
	{
		document.all[hide].style.display = 'none';
		document.all[show].style.display = '';
	}
	if(document.layers)		// NN4
	{
		document.layers[hide].style.display = 'none';
		document.layers[show].style.display = '';
	}
	if(document.getElementById)	// NN6 or IE/Opera 6
	{
		document.getElementById(hide).style.display = 'none';
		document.getElementById(show).style.display = '';
	}

	document.cookie = show+'=1';
	document.cookie = hide+'=0';
}

function showhide_settings ()
{
	if (document.cookie)
	{
		var cookievar = document.cookie;
		var cookievars = cookievar.split(';');
		var show = '';
		var hide = '';
		for (var i = 0; i < cookievars.length; i++)
		{
			var cookievalues = cookievars[i].split('=');
			if (cookievalues.length == 2)
			{
				if (cookievalues[1] == '0')
				{
					if (cookievalues[0].substr(0,1) == ' ')
						hide = cookievalues[0].substr(1);
					else
						hide = cookievalues[0];

					hide = showhide_settings_allowed (hide);
				}
				else if (cookievalues[1] == '1')
				{
					if (cookievalues[0].substr(0,1) == ' ')
						show = cookievalues[0].substr(1);
					else
						show = cookievalues[0];

					show = showhide_settings_allowed (show);
				}
			}

			if (show != '' && hide != '')
			{
				showhide (show, hide);
				show = '';
				hide = '';
			}
		}
	}
}

function showhide_settings_allowed (field)
{
	for (var i = 0; i < sw_settings.length; i++)
	{
		if (sw_settings[i] == field)
		{
			return field;
		}
	}
	return '';
}

function fullscreen (url)
{
	if (url.lastIndexOf("full=true") > 1)
	{
		parent.close();
	}
	else if (document.all)
	{
		var win = window.open (url+'&full=true', "", "fullscreen");
	}
	else
	{
		var win = window.open (url+'&full=true', "", "menubar=no,resizeable=no,status=no,scrollbars=no,top=0,left=0,height="+screen.height+",width="+screen.width);
	}
}

function simprefill (prefix)
{
	for (i = 0; i < prefill.length; i++)
	{
		arr = prefill[i].split("=");
		if (prefix == 'a' && arr[0].substr(0,1) == 'F')
		{
			continue;
		}
		var evl = 'document.simform.'+prefix+arr[0]+'.value = '+arr[1];
		eval (evl);
	}
}

function setfocus (id)
{
	if (document.all)
	{
		document.all[id].Focus();
	}
	if (document.getElementById)
	{
		document.getElementById(id).Focus();
	}
}

function setselected (id)
{
	if (document.all)
	{
		document.all[id].checked = true;
	}
	if (document.getElementById)
	{
		document.getElementById(id).checked = true;
	}
}

function gotourl (url)
{
	top.location.href = url;
}

function gotoframe (url, frame)
{
	var obj_frame = eval ("parent."+frame);
	obj_frame.location.href = url;
}

function show (obj) { if(document.all) document.all[obj].style.display = ''; else if(document.layers) document.layers[obj].style.display = ''; else if(document.getElementById) document.getElementById(obj).style.display = ''; }
function hide (obj) { if(document.all) document.all[obj].style.display = 'none'; else if(document.layers) document.layers[obj].style.display = 'none'; else if(document.getElementById) document.getElementById(obj).style.display = 'none'; }
function showone (obj) { for (var key in arr_showhide) { if (arr_showhide[key] == true) { hide(key); arr_showhide[key] = false; } } show(obj); }
function switchimg (obj, img) { var old = obj.src; obj.src = img; return old; }
var arr_showhide = new Array();
var arr_img_swapped = new Array();


function border ()
{
	var browser = navigator.appName;

	switch (browser)
	{
		case "Microsoft Internet Explorer":

			document.getElementById('background1').style.position = 'absolute';
			document.getElementById('background2').style.position = 'absolute';

			document.body.style.overflow = 'hidden';
			document.getElementById('contentdiv').style.overflow = 'auto';
			document.getElementById('contentdiv').style.top = '10px';
			document.getElementById('contentdiv').style.left = '16px';
			document.getElementById('contentdiv').style.width = (document.body.offsetWidth - 57) + "px";
			document.getElementById('contentdiv').style.height = (document.body.offsetHeight - 40) + "px";

			document.getElementById('topborder2').style.position = 'absolute';
			document.getElementById('topborder2').style.left = '16px';
			document.getElementById('topborder2').style.width = (document.body.offsetWidth - 57) + "px";
			document.getElementById('topborder2').style.display = '';
			break;

		default:
			document.getElementById('leftborder2').style.height = (window.innerHeight - 19) + "px";
			document.getElementById('leftborder2').style.display = '';

			document.getElementById('rightborder2').style.height = (window.innerHeight - 19) + "px";
			document.getElementById('rightborder2').style.left = (window.innerWidth - 52) + "px";
			document.getElementById('rightborder2').style.display = '';

			document.getElementById('topborder2').style.display = '';

			document.getElementById('bottomborder2').style.top = (window.innerHeight - 45) + "px";
			document.getElementById('bottomborder2').style.width = (window.innerWidth + 5) + "px";
			document.getElementById('bottomborder2').style.left = "-19px";
			document.getElementById('bottomborder2').style.display = '';


			document.getElementById('bottomborder3').style.top = (window.innerHeight - 19) + "px";
			document.getElementById('bottomborder3').style.display = '';

			document.getElementById('background1').style.height = window.innerHeight + "px";
			document.getElementById('tblcontent').style.height = window.innerHeight + "px";
			break;
	}
}
/*********************************************************************** 
* File    : JSFX_ImageFader.js  © JavaScript-FX.com
* Created : 2001/08/31 
* Author  : Roy Whittle  (Roy@Whittle.com) www.Roy.Whittle.com 
* Purpose : To create a fading effect for images
* History 
* Date         Version  Description 
* 2001-08-09	1.0	First version
* 2001-08-31	1.1	Code split - others became 
*					JSFX_FadingRollovers,
*                             JSFX_ImageFader,
*					JSFX_ImageZoom.
* 2002-01-27	1.2	Completed development by converting to JSFX namespace
* 2002-02-21	1.3	Added JSFX.fadeUpImg JSFX.fadeDownImg
* 2002-01-29	1.4	Make "fade" a seperate object of "img"
* 2002-03-12	1.5	Added an auto fade up/down for images 
*					with class imageFader
* 2002-08-29	1.6	Thanks to piglet (http://homepage.ntlworld.com/thepiglet/)
*				I now have a partial fix for NS7 and Mozilla 1.1.
***********************************************************************/ 
if(!window.JSFX)
	JSFX=new Object();

JSFX.FadeImageRunning    = false;
JSFX.FadeImageMinOpacity = 40;
JSFX.FadeImageAutoUp	 = 10;
JSFX.FadeImageAutoDown   = 10;
JSFX.FadeImageSavedOver  = null;
JSFX.FadeImageSavedOut   = null;
document.write('<STYLE TYPE="text/css">.imageFader{ position:relative; filter:alpha(opacity='+JSFX.FadeImageMinOpacity+'); -moz-opacity:'+JSFX.FadeImageMinOpacity/101+'}</STYLE>');
/*******************************************************************
*
* Function    : actionOnMouseOver
*
* Description : Called automatically whenever an element in the
*			document is "mousedOver". It checks to see if the
*			element has the className == "imageFader" and if so
*			starts fading up the element.
*
*****************************************************************/
JSFX.fadeImage_actionOnMouseOver = function(e)
{
	srcElement=e ? e.target : event.srcElement;
	
	if(srcElement.className && srcElement.className=="imageFader")
		JSFX.fadeUp(srcElement);

	/*** If the document already had an onMouseOver handler, call it ***/
	if(JSFX.FadeImageSavedOver != null)
		JSFX.FadeImageSavedOver(e);
}

/*******************************************************************
*
* Function    : actionOnMouseOut
*
* Description : Called automatically whenever an element in the
*			document is "mousedOut". It checks to see if the
*			element has the className == "imageFader" and if so
*			starts fading down the element.
*
*****************************************************************/
JSFX.fadeImage_actionOnMouseOut = function(e)
{
	srcElement=e ? e.target : event.srcElement;

	if(srcElement.className && srcElement.className=="imageFader")
		JSFX.fadeDown(srcElement);
	
	/*** If the document already had an onMouseOut handler, call it ***/
	if(JSFX.FadeImageSavedOut != null)
		JSFX.FadeImageSavedOut(e);
}
/*******************************************************************
*
* Function    :	fadeImageAuto
*
* Parameters  :	minOpacity	- Minimum opacity to fade down to.
*			stepUp	- fade up speed 	- larger = faster.
*			stepDown 	- fade down speed	- larger = faster.
*
* Description :	Saves the documents original mousOver/Out handlers
*			and installs the actionMouseOver/Out handlers
*			of JSFX.fadeImage
*
*****************************************************************/
JSFX.fadeImageAuto = function(minOpacity, stepUp, stepDown)
{
	if(minOpacity)
		JSFX.FadeImageMinOpacity = minOpacity;
	if(stepUp)
		JSFX.FadeImageAutoUp	= stepUp;
	if(stepDown)
		JSFX.FadeImageAutoDown	= stepDown;

	/*** Save the original document mouseOver/Out events ***/
	JSFX.FadeImageSavedOver = document.onmouseover;
	JSFX.FadeImageSavedOut  = document.onmouseout;

	document.onmouseover	= JSFX.fadeImage_actionOnMouseOver ;
	document.onmouseout	= JSFX.fadeImage_actionOnMouseOut ;
	JSFX.setMinOpacity(JSFX.FadeImageMinOpacity);
}
/*******************************************************************
*
* Function    : setMinOpacity
*
* Description : sets the minimum opacity for all fading images from
*			the default of 40 to the passed value.
*
*****************************************************************/
JSFX.setMinOpacity = function(minOpacity)
{
	if(document.layers) return;

	for(i=0 ; i<document.images.length ; i++)
	{
		var img = document.images[i];
		if(img.className=="imageFader")
		{
			if(img.filters)
				img.filters.alpha.opacity = JSFX.FadeImageMinOpacity;
			else
				img.style.MozOpacity = JSFX.FadeImageMinOpacity/101;
		}
	}
}
/*******************************************************************
*
* Function    : fadeUpImg
*
* Description : Finds the image in the document and calls JSFX.fadeUp
*
*****************************************************************/
JSFX.fadeUpImg = function(imgName, step)
{
	if(document.layers || window.opera)
		return;

	img = document.images[imgName];
	if(img)
		JSFX.fadeUp(img, step);
}
/*******************************************************************
*
* Function    : fadeUp
*
* Description : This function is based on the turn_on() function
*		      of animate2.js (animated rollovers from www.roy.whittle.com).
*		      Each fading image object is given a state. 
*			OnMouseOver the state is switched depending on the current state.
*			Current state -> Switch to
*			===========================
*			null		->	OFF.
*			OFF		->	FADE_UP
*			FADE_DOWN	->	FADE_UP
*			FADE_UP_DOWN->	FADE_UP
*****************************************************************/
JSFX.fadeUp = function(img, step)
{

	if(img)
	{
		if(!step) step=JSFX.FadeImageAutoUp;

		if(img.fade == null)
		{
			img.fade = new Object();
			img.fade.state	 = "OFF";
			img.fade.upStep	 = step;
			img.fade.downStep  = step;
			img.fade.minOpacity  = JSFX.FadeImageMinOpacity;
			img.fade.index = img.fade.minOpacity;
			
		}
		if(img.fade.state == "OFF")
		{
			img.fade.upStep  = step;
			img.fade.state = "FADE_UP";
			JSFX.startImageFading();
		}
		else if( img.fade.state == "FADE_UP_DOWN"
			|| img.fade.state == "FADE_DOWN")
		{
			img.fade.upStep  = step;
			img.fade.state = "FADE_UP";
		}
	}
}
/*******************************************************************
*
* Function    : fadeDownImg
*
* Description : Finds the image in the document and calls JSFX.fadeDown
*
*****************************************************************/
JSFX.fadeDownImg = function(imgName, step)
{
	if(document.layers || window.opera)
		return;

	img = document.images[imgName];
	if(img)
		JSFX.fadeDown(img, step);
}
/*******************************************************************
*
* Function    : fadeDown
*
* Description : This function is based on the turn_off function
*		      of animate2.js (animated rollovers from www.roy.whittle.com).
*		      Each zoom object is given a state. 
*			OnMouseOut the state is switched depending on the current state.
*			Current state -> Switch to
*			===========================
*			ON		->	FADE_DOWN.
*			FADE_UP	->	FADE_UP_DOWN.
*****************************************************************/
JSFX.fadeDown = function(img, step)
{
	if(img)
	{
		if(!step) step=JSFX.FadeImageAutoDown;

		if(img.fade.state=="ON")
		{
			img.fade.downStep  = step;
			img.fade.state="FADE_DOWN";
			JSFX.startImageFading();
		}
		else if(img.fade.state == "FADE_UP")
		{
			img.fade.downStep  = step;
			img.fade.state="FADE_UP_DOWN";
		}
	}
}
/*******************************************************************
*
* Function    : startImageFading
*
* Description : This function is based on the start_animating() function
*	        	of animate2.js (animated rollovers from www.roy.whittle.com).
*			If the timer is not currently running, it is started.
*			Only 1 timer is used for all objects
*****************************************************************/
JSFX.startImageFading = function()
{
	if(!JSFX.FadeImageRunning)
		JSFX.FadeImageAnimation();
}

/*******************************************************************
*
* Function    : FadeImageAnimation
*
* Description : This function is based on the Animate function
*		    of animate2.js (animated rollovers from www.roy.whittle.com).
*		    Each object has a state. This function
*		    modifies each object and (possibly) changes its state.
*****************************************************************/
JSFX.FadeImageAnimation = function()
{
	JSFX.FadeImageRunning = false;
	for(i=0 ; i<document.images.length ; i++)
	{
		var img = document.images[i];
		if(img.fade)
		{
			if(img.fade.state == "FADE_UP")
			{
				img.fade.index+=img.fade.upStep;
				if(img.fade.index > 100)
					img.fade.index = 100;

				if(img.filters)
					img.filters.alpha.opacity = img.fade.index;
				else
					img.style.MozOpacity = img.fade.index/101;

				if(img.fade.index == 100)
					img.fade.state="ON";
				else
					JSFX.FadeImageRunning = true;
			}
			else if(img.fade.state == "FADE_UP_DOWN")
			{
				img.fade.index+=img.fade.upStep;
				if(img.fade.index > 100)
					img.fade.index = 100;

				if(img.filters)
					img.filters.alpha.opacity = img.fade.index;
				else
					img.style.MozOpacity = img.fade.index/101;
	
				if(img.fade.index == 100)
					img.fade.state="FADE_DOWN";
				JSFX.FadeImageRunning = true;
			}
			else if(img.fade.state == "FADE_DOWN")
			{
				img.fade.index-=img.fade.downStep;
				if(img.fade.index < img.fade.minOpacity)
					img.fade.index = img.fade.minOpacity;

				if(img.filters)
					img.filters.alpha.opacity = img.fade.index;
				else
					img.style.MozOpacity = img.fade.index/101;

				if(img.fade.index == img.fade.minOpacity)
					img.fade.state="OFF";
				else
					JSFX.FadeImageRunning = true;
			}
		}
	}
	/*** Check to see if we need to animate any more frames. ***/
	if(JSFX.FadeImageRunning)
		setTimeout("JSFX.FadeImageAnimation()", 40);
}
/************************************************ Link tthelp script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/
var floattext=new Array(); 
var tthelpwidth="250px"; 
var tthelpheight="10px";
var tthelpbgcolor="#F4F4C8";
var fadespeed=30;
var baseopacity=0;
function slowhigh(which2){ imgobj=which2; browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"?"mozilla" : ""; instantset(baseopacity); highlighting=setInterval("gradualfade(imgobj)",fadespeed); }
function instantset(degree){ cleartimer(); if (browserdetect=="mozilla") { imgobj.style.MozOpacity=degree/100; } else if (browserdetect=="ie") { imgobj.filters.alpha.opacity=degree; } }
function cleartimer(){ if (window.highlighting) clearInterval(highlighting); }
function gradualfade(cur2){ if (browserdetect=="mozilla" && cur2.style.MozOpacity<1) { cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99); } else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100) { cur2.filters.alpha.opacity+=10; } else if (window.highlighting) { clearInterval(highlighting); } }
function ietruebody(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; }
function paramexists(what){ return(typeof what!="undefined" && what!=""); }
function showtthelp(thetext, e, optbgColor, optWidth, optHeight){ var dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft; var dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop; var floatobj=document.getElementById("dhtmltthelp"); floatobj.style.left="-900px"; floatobj.style.display="block"; floatobj.style.backgroundColor=paramexists(optbgColor)? optbgColor : tthelpbgcolor; floatobj.style.width=paramexists(optWidth)? optWidth+"px" : tthelpwidth; floatobj.style.height=paramexists(optHeight)? optHeight+"px" : tthelpheight!=""? tthelpheight : ""; floatobj.innerHTML=thetext; var floatWidth=floatobj.offsetWidth>0? floatobj.offsetWidth : floatobj.style.width; var floatHeight=floatobj.offsetHeight>0? floatobj.offsetHeight : floatobj.style.width; var winWidth=document.all&&!window.opera? ietruebody().clientWidth : window.innerWidth-20; var winHeight=document.all&&!window.opera? ietruebody().clientHeight : window.innerHeight; e=window.event? window.event : e; floatobj.style.left=dsocx+winWidth-floatWidth-5+"px"; if (e.clientX>winWidth-floatWidth && e.clientY+20>winHeight-floatHeight) { floatobj.style.top=dsocy+5+"px"; } else { floatobj.style.top=dsocy+winHeight-floatHeight-5+"px"; } slowhigh(floatobj); }
function hidetthelp(){ var floatobj=document.getElementById("dhtmltthelp"); floatobj.style.display="none"; }
function fvtooltip () { if (tooltiptext != "") { tooltiptext = tooltiptext + '<hr noshade size=1><center><a href="javascript:hidetthelp();">Schliessen</a></center>'; showtthelp(tooltiptext, event); } }
var tooltiptext = '';

