
function toggleImg(el){var imgTags=new Array();imgTags=getElementsByTagNameInTag(el,"img");for(var i=0;i<imgTags.length;i++){if(imgTags[i].src.substr(-19,19)=="&filter=black-white"){imgTags[i].src=imgTags[i].src.substring(0,imgTags[i].src.length-19);}else{imgTags[i].src=imgTags[i].src+"&filter=black-white";}}}
function getElementsByTagNameInTag(inTag,tagName){tagName=tagName.toLowerCase();var result=new Array();for(var i=0;i<inTag.childNodes.length;i++){var child=inTag.childNodes[i];if(child.nodeName.toLowerCase()==tagName){result.push(child);}
result.concat(getElementsByTagNameInTag(child,tagName));}
return result;}
function fixBrokenImages(){var imglst=document.images;for(var i=0;i<imglst.length;i++){imglst[i].onerror=function(){this.style.display='none';}
imglst[i].src=imglst[i].src;}}
function in_array(array,needle){for(var i=0;i<array.length;i++)
if(array[i]==needle)return true;return false;}
function checkParentFrame(domain){url=top.Location.host;if(url.toLowerCase().indexOf(domain)==-1){top.location.href="http://www."+domain;}}
function getParams(name){a=top.location.search;a=a.substring(1,a.length);if(a!=''){a=a.split("&");for(i in a){a[i]=a[i].split("=");if(name!=null&&a[i][0]==name)
return a[i][1];}
if(name==null)return a;}
return false;}
function display(id,value){if(id=='undefined'||id==null)
alert("Error handling hidden mode. Identification undefined.");if(!document.getElementById(id))return false;if(value==null){if(document.getElementById(id).style.display==''){document.getElementById(id).style.display='none';return false;}
document.getElementById(id).style.display='';return true;}
if(value!='none'&&value!=false){document.getElementById(id).style.display='';return true;}
document.getElementById(id).style.display='none';return false;}
function show(id,value){if(id=='undefined'||id==null)
alert("Error handling hidden mode. Identification undefined.");if(document.getElementById(id)){if(value==null){if(document.getElementById(id).style.display=='')
document.getElementById(id).style.display='none';else
document.getElementById(id).style.display='';}else{if(value!='none'&&value!=false)
document.getElementById(id).style.display='';else
document.getElementById(id).style.display='none';}}}
function getSelected(id){for(i=0;i<document.getElementById(id).length;++i)
if(document.getElementById(id).options[i].selected==true)
return document.getElementById(id).options[i].value;}
function selectURL(el,url){for(var i=0;i<el.length;i++){if(el.options[i].selected==true){url=url.replace("VALUE",el.options[i].value);location.href=url;}}}
function preloadImages(){document.Vorladen=new Array();if(document.images){for(var i=0;i<preloadImages.arguments.length;i++){document.Vorladen[i]=new Image();document.Vorladen[i].src=preloadImages.arguments[i];}}}
function BilderVorladen(){document.Vorladen=new Array();if(document.images){for(var i=0;i<BilderVorladen.arguments.length;i++){document.Vorladen[i]=new Image();document.Vorladen[i].src=BilderVorladen.arguments[i];}}}
function statusText(text){window.status=text;}
function statusClear(){if(statusDefault==null||statusDefault=='undefined')
statusDefault='';statusText(statusDefault);}
var timeOut;function menuOver(id){menuHide();if(id!="none"&&id!='undefined'&&id!=null)
display(id,true);}
function menuHide(id){window.clearTimeout(timeOut);if(id=='undefined'||id==null)
for(var i=0;i<menu.length;i++)
display(menu[i],false);else
display(id,false);}
function menuOut(t){if(t=='undefined'||t==null)t=1;timeOut=window.setTimeout("menuHide()",t*1000);}
function ajaxPlain(){this.request=null;if(typeof XMLHttpRequest!='undefined'){this.request=new XMLHttpRequest();}
if(!this.request){try{this.request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{this.request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){this.request=null;}}}
this.constructor=function(){if(typeof XMLHttpRequest!='undefined'){this.request=new XMLHttpRequest();}
if(!this.request){try{this.request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{this.request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){this.request=null;}}}}
this.getPlain=function(url){if(this.request!=null){this.request.open('GET',url,false);this.request.send(null);return this.request.responseText;}}
this.postForm=function(url,params){if(this.request!=null){this.request.open('POST',url,false);var string=new Array();i=0;for(name in params){string[i++]=name+"="+encodeURIComponent(params[name]);}
string=string.join("&");this.request.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.request.send(string);return this.request.responseText;}}}
function ajaxXML(){this.request;this.constructor=function(){if(window.XMLHttpRequest){this.request=new XMLHttpRequest();}else if(window.ActiveXObject('Msxml2.XMLHTTP')){try{this.request=new ActiveXObject('Msxml2.XMLHTTP');}catch(e1){try{this.request=new ActiveXObject('Microsoft.XMLHTTP');}catch(e2){}}}}
this.query=function(method,url,fname,as){if(!as)as=true;if(this.request!=null){this.request.open(method,url,as);this.request.onreadystatechange=fname;this.request.send(null);}}}
function cookieWrite(key,value,expires){var a=new Date();a=new Date(a.getTime()+expires*1000);document.cookie=key+'='+value+'; expires='+a.toGMTString()+';';}
function cookieRead(key){a=document.cookie;while(a!=''){name=a.substring(0,a.indexOf('=')).replace(' ','');wert=a.substr(a.indexOf('=')+1,a.length);if(wer.indexOf(';')>-1){wert=wert.substring(0,wert.indexOf(';'));}
if(name==key)
return wert;if(a.indexOf(';')!=-1){a=a.substring(a.indexOf(';')+1,a.length);}
else{return'';}
return'';}}
function cookieDelete(key){cookieWrite(key,'',-1000000);}
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+
this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+
this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}
return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
if(enc4!=64){output=output+String.fromCharCode(chr3);}}
output=Base64._utf8_decode(output);return output;},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}}
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;}
