/* Prototype JavaScript framework, version 1.6.0.2
* (c) 2005-2008 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
*
*--------------------------------------------------------------------------*/
var Prototype = {
Version: '1.6.0.2',
Browser: {
IE: !!(window.attachEvent && !window.opera),
Opera: !!window.opera,
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
},
BrowserFeatures: {
XPath: !!document.evaluate,
ElementExtensions: !!window.HTMLElement,
SpecificElementExtensions:
document.createElement('div').__proto__ &&
document.createElement('div').__proto__ !==
document.createElement('form').__proto__
},
ScriptFragment: ' \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i");l=l.concat(j)}return l;case "`":h=m(d,f[1]);for(i=0,n=h.length;i")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.charAt(aj.indexOf(".")-1))}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i';s++}else if(as(v,"br"))u+="
";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+=""}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a, "sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i'].join("");else p.innerHTML=[''].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();
if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac){
sIFR.setup();
};
var Engine = {
detect: function() {
var UA = navigator.userAgent;
this.isKHTML = /Konqueror|Safari|KHTML/.test(UA);
this.isGecko = Prototype.Browser.Gecko;
this.isOpera = Prototype.Browser.Opera;
this.isMSIE = Prototype.Browser.IE;
this.isMSIE5 = this.isMSIE && !document.compatMode;
this.isMSIE7 = this.isMSIE && window.XMLHttpRequest;
this.isMSIE6 = this.isMSIE && !this.isMSIE5 && !this.isMSIE7;
}
}
Engine.detect();
function bookmark()
{
if (Prototype.Browser.IE)
window.external.AddFavorite(eval(self.location),document.title);
else
alert('Leider wird diese Funktion nur von Internet Explorer unterstützt. \n \n \nIn allen richtigen Browsern können Sie ein Bookmark auf diese Seite setzen, indem Sie: \n1. einen Rechtsklick auf der Seite machen und \"Lesezeichen hinzufügen\" wählen oder \n2. die Tasten STRG-D drücken.');
} // function bookmark
function popup(obj, iWidth, iHeight)
{
var sUrl = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!sUrl) return true;
if (iHeight == 0)
{
var hDims = document.viewport.getDimensions();
iWidth = hDims.width;
iHeight = hDims.height;
} // if
else
{
iHeight = (iHeight) ? iHeight : 150;
} // else
if (iWidth == 0)
{
} // if
else
{
iWidth = (iWidth) ? iWidth : 150;
} // else
var sArgs = 'width=' + iWidth + ', height=' + iHeight + ', resizable';
oPopUp = window.open(sUrl, '', sArgs);
return (oPopUp) ? false : true;
} // function popup
// ------------------------------------------------------------------------
Effect.Parallel = Class.create(Effect.Parallel, {
cancel: function() {
this.effects.invoke('cancel');
if (!this.options.sync)
Effect.Queues.get(Object.isString(this.options.queue) ?
'global' : this.options.queue.scope).remove(this);
this.state = 'finished';
}
});
// ------------------------------------------------------------------------
KundenRotation = Class.create({
_oList: null,
_aListItems: null,
_iDelay: 1000,
_iActiveListItem: 0,
_bEffects: true,
initialize: function(element)
{
if (!$(element)) return false;
this._oList = element;
this._aListItems = $A($(this._oList).getElementsByTagName('LI'));
if (this._aListItems.length > 1)
{
window.setTimeout(this.rotate.bind(this), ((this._bEffects) ? this._iDelay : (this._iDelay + 1000)));
} // if
}, // function
rotate: function()
{
var iPrevActiveListItem = this._iActiveListItem;
this._iActiveListItem++;
if (this._iActiveListItem >= this._aListItems.length)
this._iActiveListItem = 0;
new Effect.Fade(this._aListItems[iPrevActiveListItem], {
from: 1.0, to: 0.0,
transition: (this._bEffects) ? Effect.Transitions.sinoidal : Effect.Transitions.full,
duration: (this._bEffects) ? 1.0 : 0.0,
afterFinish: function()
{
new Effect.Fade(this._aListItems[this._iActiveListItem], {
from: 0.0, to: 1.0,
transition: (this._bEffects) ? Effect.Transitions.sinoidal : Effect.Transitions.full,
duration: (this._bEffects) ? 1.0 : 0.0,
beforeStart: function(obj)
{
$(obj.element).setStyle({opacity: 0.0});
$(obj.element).show();
}, // function beforeStart
afterFinish: function()
{
window.setTimeout(this.rotate.bind(this), ((this._bEffects) ? this._iDelay : (this._iDelay + 2000)));
}.bind(this) // function afterFinish
});
}.bind(this)
});
} // function rotate
});
Gateways = Class.create({
_oListElements: new Array(),
_aActiveItems: new Array(),
initialize: function()
{
this._oListElements = $$('ul#gatewaylist > li');
$A(this._oListElements).each(
function(oListElement, iKey)
{
var aPositions = Position.cumulativeOffset(oListElement);
var aDimensions = $(oListElement).getDimensions();
$('gatewaylist').insert({ after: new Element('div', {id: '__gwh' + iKey}) });
$('__gwh' + iKey).setStyle({
position: 'absolute',
zIndex: 10,
width: aDimensions.width + 'px',
height: aDimensions.height + 'px',
left: aPositions[0] + 'px',
top: aPositions[1] + 'px'
});
$('__gwh' + iKey).observe('mouseover', this._onMouseOver.bindAsEventListener(this, oListElement));
}.bind(this) // function
);
}, // function initialize
_onMouseOver: function(e, oListElement)
{
if (Engine.isMSIE5)
{
this._disableItemIE5(e.target, oListElement);
this._enableItemIE5(e.target, oListElement);
} // if
else
{
this._disableItems(e.target, oListElement);
this._enableItem(e.target, oListElement);
} // else
}, // function _onMouseOve
_enableItemIE5: function(oHoverArea, oListItem)
{
var oLayer = oListItem.firstChild;
var oH3 = oLayer.firstChild;
$(oHoverArea).hide();
$(oLayer).setStyle({top:'0px'});
$(oH3).setStyle({marginTop:'20px'});
this._aActiveItems.push({list: oListItem, area: oHoverArea});
},
_disableItemIE5: function(oCurHoverArea, oCurListItem)
{
while (hActiveItem = this._aActiveItems.shift())
{
var oLayer = hActiveItem.list.firstChild;
var oH3 = oLayer.firstChild;
$(hActiveItem.area).show();
$(oLayer).setStyle({top:'206px'});
$(oH3).setStyle({marginTop:'0px'});
} // while
},
_enableItem: function(oHoverArea, oListItem)
{
var oLayer = $(oListItem).down('DIV');
var aPosition = Position.positionedOffset(oLayer);
if (aPosition[1] != 206) return;
$(oHoverArea).hide();
this._aActiveItems.push({
list: oListItem,
area: oHoverArea,
effect: new Effect.Parallel(
[ new Effect.Move($(oLayer).down('H3'), { y: 10, mode: 'absolute'}),
new Effect.Move(oLayer, { y: 0, mode: 'absolute'})
], {
duration: 0.5,
afterFinish: function(oListItem)
{
for (var i=0; i