var press = new Array();
press[0] = new Array();
press[1] = new Array();
press[2] = new Array();
//Dient dazu die News in entsprechender Weise anzuzeigen.
function display_news()
{
    for (var w=0; w<press.length; w++)
        {
            document.write(""+press[w][0]+"<br><a class='mylogistics' href='/DE/Logistik-News/"+press[w][1]+"'><span class='mylogistics'><b>"+press[w][2]+"</b></span></a><br><br>");
        }
}
// Funktionen fuer das Auf- und Zuklappen der Module
function toggle(moduleid,arrowstyle) {
	modobj = document.getElementById(moduleid);
	modobj.style.display = modobj.style.display == 'none' ? 'block' : 'none';
	arrobj = document.getElementById(arrowstyle);
	arrobjsrc = arrobj.src;
	arrobjsrc.indexOf('images/module_arrow_down.jpg')>=0 ?  arrobj.src = 'images/module_arrow_right.jpg' : arrobj.src = 'images/module_arrow_down.jpg';
}
// Funktionen für das ein- und ausschalten einer BOX
function toggle_mail(id) {
obj = document.getElementById(id);
obj.style.display = obj.style.display == 'none' ? 'block' : 'none';
}
//-->
//Das Objekt, das gerade bewegt wird.
var dragobjekt = null;

// Position, an der das Objekt angeklickt wurde.
var dragx = 0;
var dragy = 0;
var index = 0;
// Mausposition
var posx = 0;
var posy = 0;


function draginit() {
 // Initialisierung der Überwachung der Events

  document.onmousemove = drag;
  document.onmouseup = dragstop;
}


function dragstart(element) {
   //Wird aufgerufen, wenn ein Objekt bewegt werden soll.

  dragobjekt = element;
  dragx = posx - dragobjekt.offsetLeft;
  dragy = posy - dragobjekt.offsetTop;
  //index = index+1;
  //dragobjekt.style.zIndex = index;
}


function dragstop() {
  //Wird aufgerufen, wenn ein Objekt nicht mehr bewegt werden soll.

  dragobjekt=null;
}


function drag(ereignis) {
  //Wird aufgerufen, wenn die Maus bewegt wird und bewegt bei Bedarf das Objekt.

  posx = document.all ? window.event.clientX : ereignis.pageX;
  posy = document.all ? window.event.clientY : ereignis.pageY;
  if(dragobjekt != null) {
    dragobjekt.style.left = (posx - dragx) + "px";
    dragobjekt.style.top = (posy - dragy) + "px";

  }
}
// Funktion fuer das Anzeigen der Druckansicht
function druck(arti, sonder){
var tx="";
if (sonder=="yes"){ tx="&amp;sonder=yes"; }
window.open("druckansicht.asp?anr="+arti+tx,"Druckansicht","width=580,height=720,status=no,scrollbars=yes,menubar=no,resizable=no,location=no,toolbar=no");
}

function check_radio(formname)
{
	for (var t=0; t<formname.length; t++)
		{ if (formname[t].checked==true)
			{	return formname[t].value;	}
		}
			{ return "";}
}

//Dropdown Son of Suckerfish
<!--
sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//-->



function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
	setTimeout(shiftOpacity, 1000);
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style;
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity() {
	//if an element is invisible, make it visible, else make it ivisible
	if(document.getElementById('pulse').style.opacity == 0) {
		opacity('pulse', 0, 100, 1000);
	} else {
		opacity('pulse', 100, 0, 1000);
	}
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//set the current image as background
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";

	//make image transparent
	changeOpac(0, imageid);

	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;

	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}
if('<%=request.QueryString("item")%>' == 'xxxkat'){
	//window.addEventListener?window.addEventListener('load',shiftOpacity,false):window.attachEvent('onload',shiftOpacity);
}

<!-- // Function Tooltip
wmtt = null;

document.onmousemove = updatetip;

function updatetip(e) {
  if (wmtt != null) {
  	x = document.all ? window.event.x : e.pageX;
	y = document.all ? window.event.y  : e.pageY;
	if (navigator.appName == "Microsoft Internet Explorer") {
		wmtt.style.left = (x + 177) + "px";
    	wmtt.style.top = (y + 20) + "px";
	}
  	else {
      wmtt.style.left = (x - 25) + "px";
      wmtt.style.top   = (y + 20) + "px";
	}
  }
}

function showtip(inhalt) {
  wmtt = document.getElementById('tip_tool');
  wmtt.style.display = "block"
  div_text = document.getElementById('tip_content');
  div_text.innerHTML = inhalt;
}

function hidetip() {
  wmtt.style.display = "none";
}
//-->



<!--
// Diashow-Script von Thomas Salvador, http://www.brauchbar.de
// Freeware. Nutzung erlaubt, solange diese Copyrightmeldung
// unveraendert erhalten bleibt.
 var fotos=new Array(
'images/sonderposten_1.gif', 'images/sonderposten_2.gif');
 var speed=5000;
 var pos=0;

function dia () {
if (!(document.images)) {return;}
 document.bild.src=fotos[pos++];
 if (pos == fotos.length) { pos = 0;}
 setTimeout("dia();",speed);
}

loader = "";
function showloader(link, loadertext) {
    loader = document.getElementById('loader_tool');
    loader_text = document.getElementById('loader_tool_text');
	loader_text.innerHTML = loadertext;
    loader.style.display = "block";
    document.onmouseover = updateloader;
    document.location.href = link;
}
function updateloader(e) {
  if (loader != ""){

	y = document.all ? window.event.y  : e.pageY;
    //y = document.all ? window.event.clientY : e.pageY;
    if (y > 300){
        //loader.style.top = (y - 50) + "px";
		if (navigator.appName == "Microsoft Internet Explorer") {
			loader.style.top = (y - 50) + "px";
		}
		else {
			loader.style.top = (y - 50) + "px";
		}
    }else{
    	if (navigator.appName == "Microsoft Internet Explorer") {

		}
		else {
			loader.style.top = 220 + "px";
		}

    }
  }
  loader = "";
}
function resize_iframe2(){
	var div_height = window.frames['my'].document.getElementById('end_of_iframe').style.height - 100+"px";
	alert(div_height);
}
function resize_iframe()
{
	if(document.getElementById("my")){
		var height=window.innerHeight;//Firefox
		if (document.body.clientHeight)
		{
			height=document.body.clientHeight;//IE
		}
		//resize the iframe according to the size of the
		//window (all these should be on the same line)
		document.getElementById("my").style.height=parseInt(height-document.getElementById("my").offsetTop-8)+"px";
	}
}

// this will resize the iframe every
// time you change the size of the window.
if(document.getElementById("my")){
//window.onresize=resize_iframe;
}

//Instead of using this you can use:
//	<BODY onresize="resize_iframe()">