/*exhibitions*/

function exh(ziel)
{

var xmlHttp = false;
// Internet Explorer
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
// Mozilla, Opera und Safari
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (xmlHttp) {
    xmlHttp.open('GET', ziel, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            document.getElementById('current').innerHTML = xmlHttp.responseText;
        }
    };
    xmlHttp.send(null);
}
}

function thnx(ziel)
{

var xmlHttp = false;
// Internet Explorer
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
// Mozilla, Opera und Safari
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (xmlHttp) {
    xmlHttp.open('GET', ziel, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            document.getElementById('passed').innerHTML = xmlHttp.responseText;
        }
    };
    xmlHttp.send(null);
}
}




/*random homeani*/

function holer(ziel)
{

var xmlHttp = false;
// Internet Explorer
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
// Mozilla, Opera und Safari
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (xmlHttp) {
    xmlHttp.open('GET', ziel, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            document.getElementById('topani').innerHTML = xmlHttp.responseText;
        }
    };
    xmlHttp.send(null);
}
}


function ratte()
{
	var  randy;
randy = Math.random();

if(randy> 0.66 )
    holer("random_DM.htm");
if(randy<0.66&& randy >0.33 )
    holer("random_expert.htm");
if(randy<0.33 )
holer("random_glass.htm");
  /*   holer("random_cryoease.htm"); */
}


/* 

function ratte()
{
	var  randy;
randy = Math.random();

if(randy> 0.66 )
    holer("random_labo08.htm");
if(randy<0.66&& randy >0.33 )
    holer("random_labo08.htm");
if(randy<0.33 )
    holer("random_labo08.htm");
}
function ratte()
{
	var  randy;
randy = Math.random();

if(randy> 0.5 )
    holer("random03.htm");
if(randy<0.5 && randy >0)
    holer("random01.htm");
if(randy<0 )
    holer("random02.htm");
} */
<!--

/* --------------------------------------------------------------------------------
		APCI Common Script Library
		C. Daubenspeck, February 2001
		Version 05222001.3
		Questions, Problems, Concerns - daubenc@apci.com
-------------------------------------------------------------------------------- */

// Make sure we're not in a frame
if (self != top) top.location.href = location.href;

// Check browser type
var ie = 0;
var ns = 0;

if (navigator.appName.indexOf("Netscape") != -1)
	ns=1;
else if (navigator.appName.indexOf("Microsoft") != -1)
	ie=1;

var IE4 = (document.all && !document.getElementById) ? true:false;
var NS4 = (document.layers) ? true:false;
var IE5 = (document.all && document.getElementById) ? true:false;
var N6 = (document.getElementById && !document.all) ? true:false;

/* --------------------------------------------------------------------------------
Show all properties of obj
This for debuging only
-------------------------------------------------------------------------------- */
function show_props(obj, obj_name, newLineChar) {
   var result = ""
   for (var i in obj)
      result += obj_name + "." + i + " = " + obj[i] + newLineChar;
   return result
	}

/* --------------------------------------------------------------------------------
Function:

	APCI_onMouseover(obj,strClr, strImg, objImg, strLyr, strVis, iOffX, iOffY)

Where:

	obj - Always pass the reference 'this' (no quotes)
	strClr - Pass swap color (if desired i.e. leftnav or flyout) in form #FFFFFF
	objImg - Pass IE reference to image (i.e. 'myImageName' )
	strImage - Pass string filespec to image to swap (i.e. '/images/bt_submit_on.gif' - must 
	use single quotes)
	strLyr - Pass layer name (if applicable, i.e. leftnav or topnav) (i.e. 'myLayer') or 'layersoff' to shut down all visible layers.
	strVis - Pass visibility action for layer (i.e. either 'show', or 'hide')
	iOffX - Pass x Offset for flyout (if applicable)
	iOffY - y offset

Notes: 

	If you do not pass a layer name you do not need to pass any of the remaining 
	layer info. Likewise, if you do not pass an image filespec you do not need to 
	pass any of the remaining image info. Any unused param must be either '' for 
	strings values or 0 for integer values.

-------------------------------------------------------------------------------- */
function APCI_onMouseover(obj,strClr, strImg, objImg, strLyr, strVis, iOffX, iOffY) {
	APCI_timelineStop('menuoff');
	if(strLyr !=''){
		if (strLyr == 'layersoff'){
			APCI_timelinePlay('menuoff');
		}else{
			APCI_timelinePlay('menuoff');
			APCI_timelineStop('menuoff');
			APCI_adjustLayer(obj,strLyr,iOffX,iOffY);
			MM_showHideLayers(strLyr,'',strVis);
		}
	}
	if(strClr != ''){
		if(ie){
			obj.style.background=strClr;
		}else if(ns){
			//obj.parentLayer.bgColor=strClr;
			obj.bgColor=strClr;
		}
	}
	if(strImg != ''){
		MM_swapImage(objImg,'',strImg);
	}
}

/* --------------------------------------------------------------------------------
Function:

	APCI_onMouseout(obj,strClr,strImg,objImg)

Where:

	obj - Always pass the reference 'this' (no quotes)
	strClr - Pass swap color (if desired i.e. leftnav or flyout) in form #FFFFFF
	strImage - Pass string filespec to image to swap (i.e. '/images/bt_submit_on.gif' - must 
	objImg - Pass IE reference to image (i.e. 'myImageName' )

Notes:

	If you do not pass an image filespec you do not need to pass any of the remaining 
	image info. Any unused param must be either '' for strings values or 0 for integer values

-------------------------------------------------------------------------------- */
function APCI_onMouseout(obj,strClr, strImg, objImg) {
	APCI_timelineGoto('menuoff','1');
	APCI_timelinePlay('menuoff');
	if(strClr != ''){
		if(ie){
			obj.style.background=strClr;
		}else if(ns){
			obj.bgColor=strClr;
		}
	}
	if(strImg != ''){
		MM_swapImage(objImg,'',strImg);
	}
}

/* --------------------------------------------------------------------------------
This highlights the button (on initial load only) for the page currently loading. 
This could probably be automated to some degree looking for key words in the title
of the current document. 
-------------------------------------------------------------------------------- */
function HighlightSection(SiteSection){
	if (SiteSection == "chemicals") {
			MM_swapImage('document.top_chem','document.top_chem','img/topnavigation/topnav_chemicals_on.gif','#4294967295883');}
	if (SiteSection == "gases") {
				MM_swapImage('document.top_gases','document.top_gases','img/topnavigation/topnav_gases_on.gif','#4294967295300');}
	if (SiteSection == "technology") {
				MM_swapImage('document.top_tech','document.top_tech','img/topnavigation/topnav_tech_on.gif','#4294967295850');}
	if (SiteSection == "corporate") {
				MM_swapImage('document.top_corpover','document.top_corpover','img/topnavigation/topnav_corpoverview_on.gif','#4294967295000');}
	if (SiteSection == "investor") {
				MM_swapImage('document.top_investor','document.top_investor','img/topnavigation/topnav_investinfo_on.gif','#4294967295850');}
	if (SiteSection == "global") {
				MM_swapImage('document.top_global','document.top_global','img/topnavigation/topnav_globalsites_on.gif','#4294967295816');}
	if (SiteSection == "career") {
				MM_swapImage('document.top_career','document.top_career','img/topnavigation/topnav_careeropps_on.gif','#4294967295000');}
	if (SiteSection == "new") {
				MM_swapImage('document.top_whatnew','document.top_whatnew','img/topnavigation/topnav_whatsnew_on.gif','#4294967295000');}
	if (SiteSection == "apdirect") {
				MM_swapImage('document.top_apdirect','document.top_apdirect','img/topnavigation/topnav_apdirect_on.gif','#4294967295566');}
}
	
/* --------------------------------------------------------------------------------
Add new layers to temporary layer string
I know, your thinking 'Why create a comma delimited string only to convert it to an 
array later ... well, this way you could pass several on the same call to addLayer
(i.e. addLayer('myLayer1,myLayer2,myLayer3');
-------------------------------------------------------------------------------- */
var tempLayers = '';

function APCI_addLayer(objLayers) {
	if (tempLayers != '') {
		tempLayers = tempLayers + ',' + objLayers;
	}else{
		tempLayers = objLayers;
		}
	}

/* --------------------------------------------------------------------------------
Create a new timeline variable
Geez, you think Macromedia could have thought this one up?
-------------------------------------------------------------------------------- */
var tempTimeLine='';

function APCI_createTimeline() {
	var tempArray = tempLayers.split(',');
	for (x=0;x<tempArray.length;x++) {
		if (tempTimeLine != '') {
			tempTimeLine = tempTimeLine + ',' +'\'' + tempArray[x] + '\',\'\',\'hide\'';
		}else{
			tempTimeLine = '\'' + tempArray[x] + '\',\'\',\'hide\'';
			}
		}
	document.tempTimeLine = 'MM_showHideLayers(' + tempTimeLine + ')';
	}

/* --------------------------------------------------------------------------------
Returns the absolute X position (from left) of an object in IE - cad
-------------------------------------------------------------------------------- */
function IEgetLeft(objElem) {
	xPos = eval(objElem).offsetLeft;
	tempEl = eval(objElem).offsetParent;
	while (tempEl != null) {
		xPos += tempEl.offsetLeft;
		tempEl = tempEl.offsetParent;
		}
	return xPos;
	}

/* --------------------------------------------------------------------------------
Returns the absolute Y position (from left) of an object in IE - cad
-------------------------------------------------------------------------------- */
function IEgetTop(objElem) {
	yPos = eval(objElem).offsetTop;
	tempEl = eval(objElem).offsetParent;
	while (tempEl != null) {
		yPos += tempEl.offsetTop;
		tempEl = tempEl.offsetParent;
		}
	return yPos;
	}

/* --------------------------------------------------------------------------------
Returns the absolute X position in Netscape (even in layer) - cad
-------------------------------------------------------------------------------- */
function NSgetLeft(objElem) {
	if(eval(objElem).x){
		return eval(objElem).x;
	}else if(eval(objElem).pageX){
		return eval(objElem).pageX;
	}else{
		return 0;
		}
	}

/* --------------------------------------------------------------------------------
Returns the absolute Y position in Netscape (even in layer) - cad
-------------------------------------------------------------------------------- */
function NSgetTop(objElem) {
	if(eval(objElem).y){
		return eval(objElem).y;
	}else if(eval(objElem).pageY){
		return eval(objElem).pageY;
	}else{
		return 0;
		}
	}

/* --------------------------------------------------------------------------------
Adjusts the layer (menu fly-out) to always appear next to it's calling anchor 
tag (objTemp). Using the spiffy new MM_findObj() from the MM library functions - cad
-------------------------------------------------------------------------------- */
function APCI_adjustLayer(objTemp, strLayer,offX,offY) {
	var tempObj = MM_findObj(strLayer);
	if (ie) {
		tempObj.style.top = IEgetTop(objTemp) + offY;
		tempObj.style.left = IEgetLeft(objTemp) + offX;
	}else{
		tempObj.top = NSgetTop(objTemp) + offY;
		tempObj.left = NSgetLeft(objTemp) + offX;
		}
	}
	
/* --------------------------------------------------------------------------------
Macromedia library

A mix of functions thru version 4. Should be Netscape 6 compatible and
all functions are untouched with the exception of MM_initTimeline()(see comments)

-------------------------------------------------------------------------------- */
function MM_findObj(n, d) { //v4.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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function APCI_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) APCI_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('APCI_timelinePlay(tmLnName)');
}


function APCI_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null)APCI_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('APCI_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j];
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function APCI_timelineStop(tmLnName) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  if (document.MM_Time == null) APCI_initTimelines(); //if *very* 1st time
  if (tmLnName == null)  //stop all
    for (var i=0; i<document.MM_Time.length; i++) document.MM_Time[i].ID = null;
  else document.MM_Time[tmLnName].ID = null; //stop one
}

function APCI_initTimelines() { //v4.0
    //APCI_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["menuoff"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "menuoff";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("behavior");
    document.MM_Time[0][0].frame = 3;
//
// This line has been modified from it's original version - 05222001 cad 
//
    document.MM_Time[0][0].value = document.tempTimeLine;
//                                 ^^^^^^^^^^^^^^^^^^^^^
    document.MM_Time[0].lastFrame = 3;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}

//-->
