
if(!window.oCfg)window.oCfg={};if(window.console&&console.debug){}
else{window.console={'debug':function(sVal){},'log':function(sVal){},'time':function(sVal){},'timeEnd':function(sVal){}};}
window.oLang={"de":{"_lang":"de","close":"Schlie&szlig;en","save_as_pdf":"Als PDF speichern","pdfgen":"Ihr PDF wurde erfolgreich generiert.","pdfdl":"Hier herunterladen","phone":"Telefon","zettel":"Merkzettel","moreInfos":"mehr Informationen","lessInfos":"weniger Informationen","edit":"bearbeiten","del":"löschen","clone":"duplizieren","addentry":"Bild/Datei hinzuf&uuml;gen","diagMessages":{"searchCompanies":"Keine Firmen gefunden!","searchExperts":"Keine Experten gefunden!","searchProducts":"Keine Produkte gefunden!","searchNews":"Keine News gefunden!","searchResources":"Keine Resources gefunden!","searchEvents":"Keine Events gefunden!","searchTermine":"Keine Termine/Veranstaltungen gefunden!","searchJobs":"Keine Jobs/Stellenangebote gefunden!","searchResults":"Keine Ergebnisse gefunden!"},"googleMaps":{"show":"Profil aufklappen","openOverlay":"Profil im Overlay &ouml;ffnen","calcRoute":"Route berechnen","startAddress":"Ihre Startadresse","calc":"los"},"form":{"entrySaved":"Eintrag gespeichert","AddSave":"hinzufügen/ändern","requiredMissing":"ACHTUNG: Sie haben nicht alle Felder korrekt ausgefüllt!","required":"Pflichtfeld","noUrl":"Keine gültige Web-Adresse","noRSS":"Kein gültiger RSS Feed","noEmail":"Keine gültige E-Mail-Adresse","noNumber":"Keine gültige Zahl","noRange":"Ungültiger Zahlenbereich (Format: '2:6' oder '2')\nDezimalstellen müssen mit Punkt getrennt werden!","minSel":"Bitte mindestens einen Eintrag auswählen","maxSel":"Maximale Auswahl von Einträgen überschritten: ","uploadImage":"Bitte ein Bild hochladen!","uploadError":"Fehler beim Upload (Datei zu groß?) - bitte versuchen Sie es erneut.","uploadFile":"Bitte eine Datei hochladen!","noFile":"Keine Datei","allowedExt":"Erlaubte Dateien","allowedSize":"Maximale Gr&ouml;&szlig;e","alternativeTitle":"Beschreibung","imageTitle":"Überschrift","imageLink":"Link zu weiteren Informationen","confirmDelete":"Wirklich löschen?","confirmClose":"Achtung! Sie haben Ihre Änderungen nicht gespeichert! Trotzdem schließen?","cloned":"Eintrag dupliziert","availableChars":"Zeichen verf&uuml;gbar"},"filter":{"close":"schliessen","add":"hinzufügen/ändern"},"tools":{"sort_asc":"aufsteigend","sort_desc":"absteigend"},"icons":{"mail":"E-Mail schreiben","phone":"Telefon","zettel":"In Merkzettel legen","zettel_active":"Aus Merkzettel entfernen","select":"Für Vergleich auswählen","partner":"Als Partner hinzufügen","upload_del":"Datei löschen","upload_do":"Datei hochladen","pdf":"PDF generieren"},"resultCtr_page":"Seite","resultCtr_of":"von"},"en":{"_lang":"en","close":"Close","save_as_pdf":"Save as PDF","pdfgen":"PDF successfully generated.","pdfdl":"Download here","phone":"Phone","zettel":"Notepad","moreInfos":"more information","lessInfos":"less information","edit":"edit","del":"delete","clone":"clone","addentry":"add file/image","diagMessages":{"searchCompanies":"No companies found!","searchExperts":"No experts found!","searchProducts":"No products or experts found!","searchNews":"No news or press releases found!","searchResources":"No resources found!","searchEvents":"No events found!","searchTermine":"No events found!","searchJobs":"No jobs found!","searchResults":"No results found!"},"googleMaps":{"show":"Open profile","openOverlay":"Open profile in overlay","calcRoute":"calculate route","startAddress":"Your startaddress","calc":"go"},"form":{"entrySaved":"Entry saved","AddSave":"add/change","requiredMissing":"ATTENTION: You didn't enter all data correctly!","required":"Mandatory field","noUrl":"Invalid Web-Address","noRSS":"No valid RSS feed","noEmail":"Invalid E-Mail-Address","noNumber":"Invalid number","noRange":"Invalid range (valid: '1', '1:10')","minSel":"Please select at least one entry","maxSel":"Max selection of entries: ","uploadImage":"Please upload an image!","uploadError":"Upload error (file too big?) - please try again.","uploadFile":"Please upload a file!","noFile":"No file uploaded","allowedExt":"Allowed files","allowedSize":"Max file size","alternativeTitle":"Description","imageTitle":"Headline","imageLink":"Link to more informations","confirmDelete":"Really delete?","confirmClose":"Warning! Unsaved changes! Close anyway?","cloned":"Entry cloned","availableChars":"characters available"},"filter":{"close":"close","add":"add/edit"},"tools":{"sort_asc":"ascending","sort_desc":"descending"},"icons":{"mail":"Write e-mail","phone":"Phone number","zettel":"Put in notepad","zettel_active":"Remove from notepad","select":"Select for comparison","partner":"Add as partner","upload_del":"Delete file","upload_do":"Upload file","pdf":"generate PDF"},"resultCtr_page":"Page","resultCtr_of":"of"}};window.oL=window.oLang.de;var _iGlobalId=0;window.cookieFunc={createCookie:function(name,value,days){value=escape(value);if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";},readCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return unescape(c.substring(nameEQ.length,c.length));}
return null;},eraseCookie:function(sName){window.cookieFunc.createCookie(sName,'',-1);}}
if(!String.prototype.parseUrl){String.prototype.parseUrl=function()
{var matches=this.match(arguments.callee.re);if(!matches){return null;}
var result={'scheme':matches[1]||'','subscheme':matches[2]||'','user':matches[3]||'','pass':matches[4]||'','host':matches[5],'port':matches[6]||'','path':matches[7]||'','query':matches[8]||'','fragment':matches[9]||''};return result;};String.prototype.parseUrl.re=/^(?:([a-z]+):(?:([a-z]*):)?\/\/)?(?:([^:@]*)(?::([^:@]*))?@)?((?:[a-z0-9_-]+\.)+[a-z]{2,}|localhost|(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])))(?::(\d+))?(?:([^:\?\#]+))?(?:\?([^\#]+))?(?:\#([^\s]+))?$/i;}
if(!String.prototype.parseQuery){String.prototype.parseQuery=function(){if(this.indexOf('?')===-1)return{};var oQuery=this.parseUrl();var aPairs=oQuery?oQuery['query'].split("&"):[];var aParams=new Object();for(iI=0;iI<aPairs.length;iI++){var aPair=aPairs[iI].split("=");aParams[aPair[0]]=aPair[1];}
return aParams;}}
Number.prototype.formattedStr=function(){if(this>=Infinity)return'&infin;';var fNum=String(Math.round(this*100)/100).replace(/\./,',');var aNum=String(fNum).split(',');var iI=3;while(iI<aNum[0].length){aNum[0]=aNum[0].substr(0,aNum[0].length-iI)+'.'+aNum[0].substr(aNum[0].length-iI)
iI+=4;}
if(aNum.length==1)aNum[1]='';else{if(aNum[1].length==1)aNum[1]=aNum[1]+'0';aNum[1]=','+aNum[1];}
return aNum[0]+aNum[1];}
jQuery.fn.jVal=jQuery.fn.val;jQuery.fn.val=function(xVal){var oObj=this.getObj();if(oObj&&oObj.val)return(arguments.length>0)?oObj.val(xVal):oObj.val();else return(arguments.length>0)?this.jVal(xVal):this.jVal();}
function microtime(get_as_float){var now=new Date().getTime()/1000;var s=parseInt(now,10);return(get_as_float)?now:(Math.round((now-s)*1000)/1000)+' '+s;}
jQuery.fn.closestChildren=function(sExpr){var aRtn=new Array();this.children().each(function(){var jE=jQuery(this);if(jE.filter(sExpr).length){aRtn.push(this);}
else{aRtn=jQuery.merge(aRtn,jE.closestChildren(sExpr));}});return jQuery(aRtn);};jQuery.fn.closestJSOs=function(bNoQuery){var aRtn=new Array();var jChildren=this.children();for(var iI=0;iI<jChildren.length;iI++){if(jChildren[iI].className.indexOf('jso_')>-1){aRtn.push(jChildren[iI]);}
else{aRtn=jQuery.merge(aRtn,jQuery(jChildren[iI]).closestJSOs(true));}}
return bNoQuery?aRtn:jQuery(aRtn);};jQuery.fn.XXXouterHTML=function(s){return this.html();}
jQuery.fn.outerHTML=function(s){var p=document.createElement('div');var c=this.eq(0).clone();p.appendChild(c[0]);return(s)?this.before(s).remove():p.innerHTML;}
jQuery.fn.getObj=function(){return this.data('obj');}
jQuery.fn.objInit=function(oCb){this.each(function(){that=jQuery(this);if(that.data('loaded')===true)oCb.call(that,that.getObj());else{var aCbs=that.data('objInit');if(!aCbs)aCbs=new Array();aCbs.push(oCb);that.data('objInit',aCbs);}});}
jQuery.fn.getJSD=function(sJSD){if(!sJSD)return false;var that=this.first();if(that.data('loaded')===true){var oJSDs=that.getObj().getJSDs();if(oJSDs&&oJSDs[sJSD])return oJSDs[sJSD];else return false;}
else{var jElem=that.children('.jsd_'+sJSD);if(jElem.length)return jElem.children('pre').length?jElem.children('pre').html():jElem.html();else return false;}}
jQuery.fn.getRootLine=function(){var aRL=new Array();var oC=this.parent();while(oC.length){var sElem=oC.get(0).nodeName;if(oC.attr('id'))sElem+='#'+oC.attr('id');if(oC.attr('class'))sElem+='.'+oC.attr('class');aRL.push(sElem);oC=oC.parent();}
return aRL.join(' > ');}
jQuery.getScript=function(url,callback,cache,scriptCharset){jQuery.ajax({type:"GET",url:url,success:callback,dataType:"script",cache:cache,scriptCharset:scriptCharset});}
jQuery.fn.parseSpecialChars=function(sValue,bNoURLconv){if(!sValue)return'';if(sValue.indexOf('<')!=-1)sValue=sValue.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');sValue=sValue.replace(/&lt;span(.*?)&gt;/gi,'').replace(/&lt;\/span&gt;/gi,'');sValue=sValue.replace(/&lt;h3&gt;/gi,'<h3>').replace(/&lt;\/h3&gt;/gi,'</h3>');sValue=sValue.replace(/&lt;p&gt;/gi,'<p>').replace(/&lt;\/p&gt;/gi,'</p>');sValue=sValue.replace(/&lt;br \/&gt;/gi,'<br />');sValue=sValue.replace(/&lt;strong&gt;/gi,'<strong>').replace(/&lt;\/strong&gt;/gi,'</strong>');sValue=sValue.replace(/&lt;em&gt;/gi,'<em>').replace(/&lt;\/em&gt;/gi,'</em>');sValue=sValue.replace(/&lt;ul&gt;/gi,'<ul>').replace(/&lt;\/ul&gt;/gi,'</ul>');sValue=sValue.replace(/&lt;ol&gt;/gi,'<ol>').replace(/&lt;\/ol&gt;/gi,'</ol>');sValue=sValue.replace(/&lt;li&gt;/gi,'<li>').replace(/&lt;\/li&gt;/gi,'</li>');sValue=sValue.replace(/&lt;sub&gt;/gi,'<sub>').replace(/&lt;\/sub&gt;/gi,'</sub>');sValue=sValue.replace(/&lt;sup&gt;/gi,'<sup>').replace(/&lt;\/sup&gt;/gi,'</sup>');sValue=sValue.replace(/&quot;/gi,'"');sValue=sValue.replace(/&amp;/gi,'&');if(!bNoURLconv){sValue=sValue.replace(/&lt;a href="(http:\/\/)?mailto:(.*?)"( target="_blank")?&gt;(.*?)&lt;\/a&gt;/gi,'<a href="mailto:$2">$4</a>');sValue=sValue.replace(/&lt;a href="(.*?)"( target="_blank")?&gt;(.*?)&lt;\/a&gt;/gi,'<a href="$1" target="_blank">$3</a>');sValue=sValue.replace(/(http(s)?:\/\/|(www\.))(([\-0-9a-zA-Z]+\.)+)(([a-zA-Z])+)((\/(&amp;|[\.,;][#\?=&:\-_0-9a-zA-Z\+\%]|[#\?=&:\-_0-9a-zA-Z\+\%])*)*)/g,'<a href="http$2://$3$4$6$8" target="_blank">$3$4$6$8</a>');sValue=sValue.replace(/([-_0-9a-zA-Z\.]+)@(([-_0-9a-zA-Z]+\.)+)([a-zA-Z]+)/g,'<a href="mailto:$1@$2$4">$1@$2$4</a>');sValue=sValue.replace(/<a href="mailto:<a href="mailto:(.*?)">(.*?)<\/a>"><a href="mailto:(.*?)">(.*?)<\/a><\/a>/gi,'<a href="mailto:$1">$3</a>');sValue=sValue.replace(/<a href="mailto:<a href="mailto:(.*?)">(.*?)<\/a>">(.*?)<\/a>/gi,'<a href="mailto:$1">$3</a>');sValue=sValue.replace(/<a href="<a href="(.*?)" target="_blank">(.*?)<\/a>" target="_blank"><a href="(.*?)" target="_blank">(.*?)<\/a>(.*?)<\/a>/gi,'<a href="$1" target="_blank">$3</a>');sValue=sValue.replace(/<a href="<a href="(.*?)" target="_blank">(.*?)<\/a>" target="_blank">(.*?)<\/a>/gi,'<a href="$1" target="_blank">$3</a>');}
else{sValue=sValue.replace(/&lt;a href="mailto:(.*?)"( target="_blank")?&gt;(.*?)&lt;\/a&gt;/gi,'<a href="mailto:$1">$3</a>');sValue=sValue.replace(/&lt;a href="(.*?)"( target="_blank")?&gt;(.*?)&lt;\/a&gt;/gi,'<a href="$1">$3</a>');}
return sValue;}
String.prototype.showDiag=function(sType,oCB){var sImg='ok';var jBtn=undefined;if((sType===0)||(sType==='warn'))sImg='warning';else if(sType==='err')sImg='error';else if(sType==='info')sImg='info';else if(sType==='confirm'){sImg='confirm';jBtn=jQuery('<a href="#" class="jso_actionButton" title="confirm">Ja</a><a href="#" class="jso_actionButton" title="abort">Nein</a>').click(function(){jClose.click();if(oCB)return oCB(jQuery(this).text().indexOf('Ja')>-1,this);else return false;}).css({'float':'left','clear':'none','margin-right':'12px'});}
var sText=this.toString();jLoaderContainer=$('<div class="jsc_overlaySlide"></div>').css('opacity',0.5);jLoader=$('<div class="jsc_overlaySlideContent"></div>').css('z-index','2600').append('<p class="jsc_showDiag">'+sText+'</p>');jImg=$('<img />').addClass("jsc_showDiag").attr('src','http://data.dci-se.de/img/icons/'+sImg).prependTo(jLoader);if(jBtn){jLoader.children('p.jsc_showDiag').append('<br />&nbsp;<br />');jBtn.appendTo(jLoader.children('p.jsc_showDiag'));window.aes.initElements(jLoader,'',2);}
var jClose=$('<a/>').attr({'href':'#','class':'jsc_overlaySlideContentClose'}).html('').click(function(){$('.jsc_activeInOverlay').removeClass('jsc_activeInOverlay');jLoaderContainer.fadeOut('fast',function(){$(this).remove();});jLoader.fadeOut('fast',function(){$(this).remove();});return false;}).appendTo(jLoader);$('body').append(jLoaderContainer);$('body').append(jLoader);jLoader.css('margin-top',(-Math.round(jLoader.height()/2)+'px'));if(jQuery.browser.msie&&(parseInt(jQuery.browser.version,10)<7))jLoader.css('position','absolute');jLoaderContainer.fadeIn('fast');jLoader.fadeIn('fast');}
String.prototype.HSC=function(){return this.replace(/&/g,'&amp;').replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');}
String.prototype.HSCback=function(bNoURLconv){if(!bNoURLconv)bNoURLconv=false;return jQuery.fn.parseSpecialChars(this,bNoURLconv);}
String.prototype.addGetParam=function(sKey,sVal){if(!this)return'';else if(!sKey||!sVal)return this;var sSep=this.indexOf('?')>-1?'&':'?';return this+sSep+sKey+'='+sVal;}
jQuery.fn.overlaySlide=function(jParent,sItemClassName){var that=$(this);var iCurrent=$(this).index('.'+sItemClassName);var iI=0;jParent.find('.'+sItemClassName).each(function(){if($(this).html()==that.html())
{iCurrent=iI;}
iI++;});var iMax=jParent.find('.'+sItemClassName).length;jLoaderContainer=$('<div class="jsc_overlaySlide"></div>').css('opacity',0.5);$(this).addClass('jsc_activeInOverlay');jLoader=$('<div class="jsc_overlaySlideContent"></div>').css('z-index','102').append($(this).html());var jClose=$('<a/>').attr({'href':'#','class':'jsc_overlaySlideContentClose'}).html('').click(function(){$('.jsc_activeInOverlay').removeClass('jsc_activeInOverlay');jLoaderContainer.fadeOut('fast',function(){$(this).remove();});jLoader.fadeOut('fast',function(){$(this).remove();});return false;}).appendTo(jLoader);if(iMax>1)
{jLoader.append('<div class="jsc_overlaySlidePosition">'+(iCurrent+1)+'/'+iMax+'</div>');if(iCurrent>0)
{var jPrev=$('<a></a>').attr('href','#').addClass('jsc_overlaySlidePrev').click(function(){var jCurrent=$('.jsc_activeInOverlay');jCurrent.removeClass('jsc_activeInOverlay');jPrevItem=jCurrent.prev('.'+sItemClassName+':first');if(!jPrevItem.length)jPrevItem=jCurrent.parent('*').prev('.'+sItemClassName+':first');jLoader.fadeOut('fast');jLoaderContainer.fadeOut('fast',function(){jPrevItem.overlaySlide(jParent,sItemClassName);});return false;}).appendTo(jLoader);}
else
{jLoader.append('<div class="jsc_overlaySlidePrevInactive"></div>')}
if((iCurrent+1)<iMax)
{var jNext=$('<a></a>').attr('href','#').addClass('jsc_overlaySlideNext').click(function(){var jCurrent=$('.jsc_activeInOverlay');jCurrent.removeClass('jsc_activeInOverlay');jNextItem=jCurrent.next('.'+sItemClassName+':first');if(!jNextItem.length)jNextItem=jCurrent.next('*').children('.'+sItemClassName+':first');jLoader.fadeOut('fast');jLoaderContainer.fadeOut('fast',function(){jNextItem.overlaySlide(jParent,sItemClassName);});return false;}).appendTo(jLoader);}
else
{jLoader.append('<div class="jsc_overlaySlideNextInactive"></div>')}}
$('body').append(jLoaderContainer);$('body').append(jLoader);jLoader.css('margin-top',(-Math.round(jLoader.height()/2)+'px'));if(jQuery.browser.msie&&(parseInt(jQuery.browser.version,10)<7))jLoader.css('position','absolute');jLoaderContainer.fadeIn('fast');jLoader.fadeIn('fast');}
jQuery.extend(jQuery.template.helpers,{'getWAi':function(sValue,sID,sInd){if(sValue&&sValue.length>0&&sID&&sID.length>0&&sInd&&sInd.length>0){sValue='<div id="waiTicker_'+sID+'_'+sValue+'_'+sInd+'"></div>';}else{sValue="";}
return sValue;},'showNetworks':function(sValue){if(!sValue)return'';return'<div class="jso_showNetworks">'+sValue+'</div>';},'showPeople':function(sValue){if(!sValue)return'';return sValue;},'showSchulungen':function(sValue){if(!sValue)return'';return'<div class="jso_showSchulungen">'+sValue+'</div>';},'showNews':function(sValue){if(!sValue)return'';return'<div class="jso_showNews">'+sValue+'</div>';},'showGalleryFull':function(sValue){if(!sValue)return'';return'<div class="jso_SlideGalleryFull">'+sValue+'</div>';},'showGallery':function(sValue){if(!sValue)return'';if(sValue.indexOf('type="file"')!=-1)
{return'<div class="jso_slideGallery {type:\'file\'}">'+sValue+'</div>';}
else
{return'<div class="jso_slideGallery {type:\'img\'}">'+sValue+'</div>';}},'wrap':function(sValue,sBefore,sAfter,bRequired,sAlt){sBefore=sBefore.replace(/&lt;/g,'<').replace(/&gt;/g,'>');sAfter=sAfter.replace(/&lt;/g,'<').replace(/&gt;/g,'>');var bReq=bRequired?true:false;if(sValue||!bReq)sValue=sBefore+sValue+sAfter;else if(sAlt)sValue=sAlt;return sValue;},'if':function(sValue,sAlt,bZeroIsEmpty){if(!sValue||(bZeroIsEmpty&&(0===Number(sValue))))sValue=sAlt;return sValue;},'startNoIf':function(sValue,bZeroIsEmpty){if(bZeroIsEmpty&&(0===Number(sValue)))sValue='';if(!sValue)return'';else{return'<!--'+"\n";}},'endNoIf':function(sValue,bZeroIsEmpty){if(bZeroIsEmpty&&(0===Number(sValue)))sValue='';if(!sValue)return'';else{return'-->';}},'startif':function(sValue,bZeroIsEmpty){if(bZeroIsEmpty&&(0===Number(sValue)))sValue='';if(sValue)return'';else{return'<!--'+"\n";}},'endif':function(sValue,bZeroIsEmpty){if(bZeroIsEmpty&&(0===Number(sValue)))sValue='';if(sValue)return'';else{return'-->';}},'startifFileExt':function(sValue,sExts){if(!sValue||sValue=='')return'';var aExts=sExts.split('/');var aExt=sValue.split('::');var sExt=aExt[0].substr(aExt[0].lastIndexOf('.')+1).toLowerCase();if(!sValue)return'';else if(jQuery.inArray(sExt,aExts)!=-1)return'';else{return'<!--'+"\n";}},'endifFileExt':function(sValue,sExts){if(!sValue||sValue=='')return'';var aExts=sExts.split('/');var aExt=sValue.split('::');var sExt=aExt[0].substr(aExt[0].lastIndexOf('.')+1).toLowerCase();if(!sValue)return'';else if(jQuery.inArray(sExt,aExts)!=-1)return'';else{return'-->';}},'ucEach':function(sValue){if(!sValue||sValue=='')return'';var aVal=sValue.split('_');sValue="";jQuery.each(aVal,function(iIndex,sVal){aVal[iIndex]=sVal.substring(0,1).toUpperCase()+sVal.substring(1);});return aVal.join(' ');},'wrapEach':function(sValue,sBefore,sAfter,bRequired){if(!sValue)return'';sBefore=sBefore.replace(/&lt;/g,'<').replace(/&gt;/g,'>');sAfter=sAfter.replace(/&lt;/g,'<').replace(/&gt;/g,'>');var jData=jQuery('<div />').append(sValue);var sData='';var bReq=bRequired?true:false;var iC=0;jData.children('div, li, p, span').each(function(){var jThis=jQuery(this);var oMeta=jThis.metadata();oMeta['_counter']=++iC;sData+=jQuery.template(sBefore).apply(oMeta)+jThis.html()+(sAfter?jQuery.template(sAfter).apply(oMeta):'');});return sData;},'numberFormat':function(sValue,sZero){var fVal=parseFloat(sValue);if(!fVal&&sZero)return sZero;else{return fVal.formattedStr();}},'formatNumber':function(sValue,sZero){var fVal=parseFloat(sValue);if(!fVal&&sZero)return sZero;else{return fVal.formattedStr();}},'nl2br':function(sValue){if(sValue){sValue=sValue.replace(/(http(s)?:\/\/|(www\.))(([\-0-9a-zA-Z]+\.)+)(([a-zA-Z])+)((\/(&amp;|[\.,;][#\?=&:\-_0-9a-zA-Z\+\%]|[#\?=&:\-_0-9a-zA-Z\+\%])*)*)/g,'<a href="http$2://$3$4$6$8" target="_blank">$3$4$6$8</a>');sValue=sValue.replace(/([-_0-9a-zA-Z\.]+)@(([-_0-9a-zA-Z]+\.)+)([a-zA-Z]+)/g,'<a href="mailto:$1@$2$4">$1@$2$4</a>');return sValue.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,'$1<br />$2');}
else return'';},'nl2list':function(sValue){if(sValue)return'<ul><li>'+sValue.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)(.+?)/g,'$1</li><li>$3')+'</li></ul>';else return'';},'nl2comma':function(sValue){if(sValue)return sValue.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,'$1, $2');else return'';},'range':function(sValue,sSep,sAppend){if(!sAppend)sAppend='';if(!sSep)sSep='-';if(!sValue)return'';var aVal=sValue.split(':');if(aVal[0]&&aVal[1]){if(aVal[0]==aVal[1])return aVal[0]+sAppend;else return aVal[0]+sAppend+' '+sSep+' '+aVal[1]+sAppend;}
else if(aVal[0]){return aVal[0]+sAppend;}},'pdfThumb':function(sValue,sVersion){if(!sValue)return'';var aValue=sValue.split('::');var sValue=aValue[0].substr(0,aValue[0].length-4)+".jpg";if(sVersion){var iPos=sValue.lastIndexOf('/');sValue=sValue.substring(0,iPos+1)+sVersion+'_'+sValue.substring(iPos+1);}
return sValue;},'rte':function(sValue){if(!sValue)return'';return'<span class="mceEditor">'+sValue.HSCback()+'</span>';},'file':function(sValue){if(!sValue||(sValue=='::'))return'';var aValue=sValue.split('::');sValue=aValue.shift();var sLabel=jQuery.trim(aValue.join('::'));var oFileExt=['ai','doc','docx','dx','exe','flv','in','mov','mp3','pdf','ps','txt','wma','xls','xlsx','zip'];if(!sLabel)sLabel=sValue.indexOf('/')>-1?sValue.substr(sValue.lastIndexOf('/')+1):sValue;var sExt=sValue.substr(sValue.lastIndexOf('.')+1).toLowerCase();var sImg='none';for(var iI in oFileExt)if(oFileExt[iI]==sExt)sImg=sExt;if(sLabel.length>22)sLabel=sLabel.substr(0,19)+'...';return'<a href="'+sValue+'" target="_blank" class="jsc_file"><img src="http://data.dci-se.de/img/icons/files/'+sImg+'.gif" alt="'+sExt+'" />&nbsp;&nbsp;'+sLabel+'</a>';},'cleanFile':function(sValue){if(!sValue)return'';var aValue=sValue.split('::');return aValue.shift();},'image':function(sValue,bTb,sVer){if(!sValue)return'';var sAlt=sValue.substring(sValue.lastIndexOf('/'),sValue.lastIndexOf('.')).replace('_',' ');var sImg=sValue;if(sVer){iPos=sValue.lastIndexOf('/');sImg=sValue.substring(0,iPos+1)+sVer+'_'+sValue.substring(iPos+1);}
if(bTb){iPos=sValue.lastIndexOf('/');sBig=sValue.substring(0,iPos+1)+'big_'+sValue.substring(iPos+1);return'<a href="'+sBig+'" class="thickbox"><img src="'+sImg+'" alt="'+sAlt+'" /></a>';}
return'<img src="'+sImg+'" alt="'+sAlt+'" />';},'imageVersion':function(sValue,sVer,sWrapperClass){if(!sVer)sVer='big';if(!sValue)return'';iPos=sValue.lastIndexOf('/');sValue=sValue.substring(0,iPos+1)+sVer+'_'+sValue.substring(iPos+1);return sWrapperClass?'<div class="'+sWrapperClass+'" style="background-image: url('+sValue+');"></div>':sValue;},'imageHeadLink':function(sValue){if(sValue.replace(/: :/g,'').length===0)return'';var aValue=sValue.split(': :');sValue=aValue.shift();var sLink=aValue.shift();var sLabel=jQuery.trim(aValue.join(': :'));return'<span class="jsc_imageHeadLink"><h2>'+sLabel+'</h2><p><a href="'+sLink+'" target="_blank"><img src="'+sValue+'" alt="'+sLabel+'" title="'+sLabel+'" /></a><br /><a href="'+sLink+'" target="_blank">'+window.oL.moreInfos+'</a></p></span>';},'url':function(sValue,sAltLabel,sClass){if(!sValue)return'';var sLabel=sValue;if(sValue.substr(0,7)=='http://')sLabel=sValue.substr(7);else if(sValue.substr(0,8)=='https://')sLabel=sValue.substr(8);else sValue='http://'+sValue;if(sAltLabel)sLabel=sAltLabel;return'<a href="'+sValue+'" target="_blank"'+(sClass?' class="'+sClass+'"':'')+'>'+sLabel+'</a>';},'url_plain':function(sValue){if(!sValue)return'';if((sValue.substr(0,7)!='http://')&&(sValue.substr(0,8)!='https://'))sValue='http://'+sValue;return sValue;},'email':function(sValue,sClass){if(!sValue)return'';return'<a href="mailto:'+sValue+'"'+(sClass?' class="'+sClass+'"':'')+'>'+sValue+'</a>';},'unixDate':function(sValue){if(!sValue)return'';if(!Number(sValue))return'';var oTime=new Date(sValue*1000);return oTime.getDate()+'.'+(oTime.getMonth()+1)+'.'+oTime.getFullYear();},'maxChars':function(sValue,iMax,sAppend,bStrip){if(!sValue)return'';if(!sAppend)sAppend='...';if(bStrip){if(sValue.indexOf('<')!=-1)sValue=sValue.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');sValue=sValue.replace(/&lt;span(.*?)&gt;/gi,'').replace(/&lt;\/span&gt;/gi,'');sValue=sValue.replace(/&lt;h3&gt;/gi,'').replace(/&lt;\/h3&gt;/gi,'');sValue=sValue.replace(/&lt;p&gt;/gi,'').replace(/&lt;\/p&gt;/gi,'');sValue=sValue.replace(/&lt;br \/&gt;/gi,'');sValue=sValue.replace(/&lt;strong&gt;/gi,'').replace(/&lt;\/strong&gt;/gi,'');sValue=sValue.replace(/&lt;em&gt;/gi,'').replace(/&lt;\/em&gt;/gi,'');sValue=sValue.replace(/&lt;ul&gt;/gi,'').replace(/&lt;\/ul&gt;/gi,'');sValue=sValue.replace(/&lt;ol&gt;/gi,'').replace(/&lt;\/ol&gt;/gi,'');sValue=sValue.replace(/&lt;li&gt;/gi,'').replace(/&lt;\/li&gt;/gi,'');sValue=sValue.replace(/&quot;/gi,'"');sValue=sValue.replace(/&amp;/gi,'&');}
if(sValue.length>iMax)sValue=sValue.substr(0,iMax-sAppend.length)+sAppend;return sValue;},'maxCharsRTE':function(sVal,iMax,sAppend,bStrip){if(!sVal)return'';var sValue=sVal.HSCback();if(!sAppend)sAppend='...';if(bStrip){if(sValue.indexOf('<')!=-1)sValue=sValue.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');sValue=sValue.replace(/&lt;span(.*?)&gt;/gi,'').replace(/&lt;\/span&gt;/gi,'');sValue=sValue.replace(/&lt;h3&gt;/gi,'').replace(/&lt;\/h3&gt;/gi,'');sValue=sValue.replace(/&lt;p&gt;/gi,'').replace(/&lt;\/p&gt;/gi,'');sValue=sValue.replace(/&lt;br \/&gt;/gi,'');sValue=sValue.replace(/&lt;strong&gt;/gi,'').replace(/&lt;\/strong&gt;/gi,'');sValue=sValue.replace(/&lt;em&gt;/gi,'').replace(/&lt;\/em&gt;/gi,'');sValue=sValue.replace(/&lt;ul&gt;/gi,'').replace(/&lt;\/ul&gt;/gi,'');sValue=sValue.replace(/&lt;ol&gt;/gi,'').replace(/&lt;\/ol&gt;/gi,'');sValue=sValue.replace(/&lt;li&gt;/gi,'').replace(/&lt;\/li&gt;/gi,'');sValue=sValue.replace(/&quot;/gi,'"');sValue=sValue.replace(/&amp;/gi,'&');}
if(sValue.length>iMax)sValue=sValue.substr(0,iMax-sAppend.length)+sAppend;return sValue;}});window.jso_templates='';var appendTemplate=function(sData){window.jso_templates+=sData;}
if(!window.jso)window.jso=new Object();if(!window.jso_form_data)window.jso_form_data=new Object();window.jso['']=function(oUpdate,bAjax,sHtml,fId){this.jE=undefined;this.sPath=undefined;this.sObjPath=undefined;this.oChildren=undefined;this.oExternals=new Object();var that=this;var oMessages=new Object();var aMsgHandles=new Array();var oProtected=new Array();this.iObjs=0;var oJSDs=undefined;var _iObjId=++_iGlobalId;this.getId=function(){return _iObjId;}
this.$=function(fObjId,iObjId){if(fObjId!=fId)return function(sName,xxValue,oObj){alert('Wrong ID');return null;};return function(sName,xxValue,oObj){var iObj=iObjId;alert(iObj);if(xxValue){if(!oProtected[iObjId])oProtected[iObjId]=new Object();oProtected[iObjId][sName]=xxValue;}
else{while(!oProtected[iObj]&&iObj>0)iObj--;if(oProtected[iObj]){while(!oProtected[iObj][sName]&&iObj>0)iObj--;return oProtected[iObj][sName]?oProtected[iObj][sName]:null;}
else return null;}};}
if(bAjax){oUpdate.setChildLoaded(this.jE);}
var iLoading=0;var iBusy=0;this.setLoading=function(iSetLoading){iLoading=iSetLoading;}
this.setChildLoaded=function(jChild){}
this.setChildReady=function(jChild){}
var oReady=new Array();this.childrenReady=function(oCallback){oReady.push(oCallback);};this.parentReady=function(oCallback){oUpdate.childrenReady(oCallback);};var childrenReady=function(){for(var iI=0;iI<oReady.length;iI++){oReady[iI](that);}};this.allReady=function(oCallback){var oP=this.callerObj();while(1){var oT=oP.callerObj();if(oT)oP=oT;else break;}
oP.childrenReady(oCallback);};this.initializeChildren=function(){this.oChildren=window.aes.initElements(this.jE,this.sPath,0);if(iBusy==0){}
if(iLoading==0){}
childrenReady();return'';}
this.initializeElements=function(jElems){this.oChildren=window.aes.initElements(this.jE,this.sPath,jElems.filter(window.aes.gP('jso')));childrenReady();return this.oChildren;}
this.initializeNextChildren=function(){this.oChildren=window.aes.initElements(this.jE,this.sPath,2);childrenReady();}
this.initializeAllChildren=function(){this.oChildren=window.aes.initElements(this.jE,this.sPath,1);childrenReady();}
this.initializeByParam=function(){var oParams=this.getParams();if(oParams.parseJSDs)this.parseJSDs();else if(oParams.all)this.initializeAllChildren();else if(oParams.next)this.initializeNextChildren();else this.initializeChildren();}
this.childObjs=function(sFilter){return window.aes.getObjs(this.jE.children(window.aes.gP('jso',sFilter)));}
this.findObjs=function(sFilter){return window.aes.getObjs(this.jE.find(window.aes.gP('jso',sFilter)));}
this.callerObj=function(){return oUpdate;}
this.parentObj=function(){return window.aes.getObj(this.jE.parent());}
this.replaceTag=function(sNewTag,aAttrs){if(!aAttrs)aAttrs=new Array();var jNew=jQuery(document.createElement(sNewTag)).insertAfter(this.jE).append(this.jE.children());var jOld=this.jE.remove();this.jE=jNew.attr({'id':jOld.attr('id'),'class':jOld.attr('class'),'style':jOld.attr('style')});this.oE=this.jE.get(0);for(var iI=0;iI<aAttrs.length;iI++)this.jE.attr(aAttrs[iI],jOld.attr(aAttrs[iI]));jQuery.data(this.oE,'obj',this);return this;}
this.getXML=function(){return sHtml;}
this.registerMessage=function(sMsg,oCb){if(!oMessages[sMsg])oMessages[sMsg]=new Array();oMessages[sMsg].push(oCb);return this;}
this.sendMessage=function(sMsg,oData){var aRtn=new Array();if(oMessages[sMsg]){if(typeof oData=='undefined')oData={};for(var iI=0;iI<oMessages[sMsg].length;iI++)aRtn.push(oMessages[sMsg][iI](sMsg,oData));}
return aRtn;}
this.addInheritMessage=function(sMsg){aInheritMessages.push(sMsg);}
this.clearInheritMessage=function(sMsg){if(!sMsg)bClearAllInherit=true;else obClearInherit[sMsg]=true;}
this.getInheritMessages=function(){return aInheritMessages;}
this.listenInheritMessage=function(sMsg,oCb){oListenTo[sMsg]=oCb;}
var messageHandler=function(sMsg,oData){that.sendMessage(sMsg,oData);}
this.handleMessage=function(oObj,sMsg){oObj.registerMessage(sMsg,messageHandler);}
this.loaded=function(){var aCbs=this.jE.data('objInit');if(aCbs){for(var sC in aCbs)aCbs[sC].call(this.jE,this);}
this.jE.data('objInit',null);this.jE.data('loaded',true);}
this.getObjName=function(){return this.sPath.substr(this.sPath.lastIndexOf('/')+1);}
this.findTplPath=function(sObj){}
this.getTplPath=function(sSub,sObj){var oMeta=this.jE.metadata();var aPath=new Array();if(oMeta.tpl){aPath=oMeta.tpl.split('_');}
else{if(sSub&&(sSub.substr(0,1)!='-'))sSub='-'+sSub;else sSub='';var sPath=this.sPath;if(sObj&&(this.sPath.substr(this.sPath.lastIndexOf('/')+1)!=sObj)){sPath=this.sPath.substr(0,this.sPath.lastIndexOf('/')+1)+sObj;}
sPath=sPath+sSub;aPath=sPath.substr(1).split('/');}
while(!jQuery('#jst_'+aPath.join('_')).length&&aPath.length){aPath.splice(aPath.length-2,1);}
return aPath.length?aPath.join('_'):'';}
this.getTpl=function(sSub,sObj,bString){var sTpl=this.getTplPath(sSub,sObj);var oTpl=undefined;if(sTpl){if(bString)oTpl=decodeURI(jQuery('#jst_'+sTpl).html());else oTpl=jQuery.template(decodeURI(jQuery('#jst_'+sTpl).html()));}
return oTpl;}
this.parseTpl=function(oParams,sTpl,jElem){if(!sTpl)sTpl=this.getTplPath();else{if(sTpl.substr(0,1)=='/')sTpl=sTpl.substr(1);sTpl=sTpl.replace(/\//g,'_');}
oParams['_parseTpl']='true';oParams['_obj_id']=_iObjId;if(jElem){jElem.html(jQuery.template(decodeURI(jQuery('#jst_'+sTpl).html())),oParams);return'';}
else{var jHtml=jQuery('<div />').html(jQuery.template(decodeURI(jQuery('#jst_'+sTpl).html())),oParams);return jHtml.html();}}
this.makeTplParams=function(jElem,sName,oParams){if(!oParams)oParams=new Object();var aA=new Array('src','title','href','target','rel','alt');var jPre=jElem.children('pre');oParams[sName]=(jPre.length)?jPre.html():jElem.html();for(var iI=0;iI<aA.length;iI++){if(jElem[0][aA[iI]])oParams[sName+'['+aA[iI]+']']=jElem[0][aA[iI]];}
oParams['_obj_id']=_iObjId;}
this.makePlainTplParams=function(oElem,sName,oParams){if(!oParams)oParams=new Object();var oPre=oElem.children[0];var bPre=oPre?(oPre.tagName.toLowerCase().indexOf('pre')==-1?false:true):false;oParams[sName]=bPre?oPre.innerHTML:oElem.innerHTML;var aA=new Array('src','title','href','target','rel','alt');for(var iI=0;iI<aA.length;iI++){if(oElem[aA[iI]])oParams[sName+'['+aA[iI]+']']=oElem[aA[iI]];}
oParams['_obj_id']=_iObjId;}
this.extendJSDs=function(oAdditionalJSDs,sNamespace){if(!oJSDs)this.getJSDs();if(sNamespace){var oAddJSDs={};for(var sI in oAdditionalJSDs)oAddJSDs[sNamespace+'.'+sI]=oAdditionalJSDs[sI]
jQuery.extend(oJSDs,oAddJSDs);}
else jQuery.extend(oJSDs,oAdditionalJSDs);return this;}
this.getJSDs=function(){if(!oJSDs){oJSDs=new Object();oJSDs['_obj_id']=_iObjId;var jChildren=this.jE.children();var aoDel=[];for(var iI=0;iI<jChildren.length;iI++){if(jChildren[iI].className.indexOf('jsd_')>-1){var sP=jChildren[iI].className.substr(4);var oPre=jChildren[iI].children[0];oJSDs[sP]=(oPre&&(oPre.nodeName.toLowerCase()==='pre'))?oPre.innerHTML:jChildren[iI].innerHTML;aoDel.push(jChildren[iI]);}}
for(var iI=0;iI<aoDel.length;iI++)this.jE[0].removeChild(aoDel[iI]);}
return oJSDs;}
this.parseJSDs=function(sTpl,bExternals){if(!sTpl)sTpl=this.getTplPath();if(!sTpl)return;if(sTpl.substr(0,1)=='/')sTpl=sTpl.substr(1);bExternals=(bExternals!==false);sTpl=sTpl.replace(/\//g,'_');var oParams=this.getJSDs();oParams['_parseJSDs']='true';oParams['_parseJSDs_rand']=Math.round(Math.random()*1000000);var sTmpTpl=decodeURI(jQuery('#jst_'+sTpl).html().replace(/%/g,'%25')).replace(/%7B/g,'{').replace(/%7D/g,'}').replace(/%28/g,'(').replace(/%29/g,')');if(this.jE.children().length){jQuery(this.jE).prepend(jQuery.template(sTmpTpl),oParams);}
else jQuery(this.jE).html(jQuery.template(sTmpTpl),oParams);}
this.addExternal=function(sName,jElem,fPos){if(fPos<0)this.jE.find('.jst_'+sName+'').append(jElem);else this.jE.find('.jst_'+sName+'').prepend(jElem);return jElem;}
this.getInContext=function(sContext){}
this.getWH=function(jStartNode){var iX=Math.random();if(!jStartNode||(arguments.length==0))jStartNode=this.jE;var jNode=jStartNode;var aShow=new Array();while(jNode.length){var bShow=jNode.get(0).style.display=='none'?false:true;aShow.push(bShow);if(!bShow)jNode.show();if(jNode.parent('body').length){jNode.parent().show();break;}
jNode=jNode.parent();}
var oRtn={width:jStartNode.width(),height:jStartNode.height(),outerWidthWOM:jStartNode.outerWidth(),outerHeightWOM:jStartNode.outerHeight(),outerWidth:jStartNode.outerWidth(true),outerHeight:jStartNode.outerHeight(true),innerWidth:jStartNode.innerWidth(),innerHeight:jStartNode.innerHeight()};jNode=jStartNode;while(jNode.length){if(!aShow[0])jNode.hide();aShow.shift();if(jNode.parent('body').length)break;jNode=jNode.parent();}
return oRtn;}
this._show=function(){var jNode=this.jE;var aShow=new Array();while(jNode.length){aShow.push((jNode.css('display')=='none')?false:true);jNode.show();if(jNode.parent('body').length)break;jNode=jNode.parent();}
return aShow;}
this._hide=function(aShow){if(!aShow)return;var jNode=this.jE;while(jNode.length){if(!aShow[0])jNode.hide();aShow.shift();if(jNode.parent('body').length)break;jNode=jNode.parent();}}
this.getHtml=function(){if(that.jE.length){return that.jE.html();}
return'';}
this.getParams=function(){var oRg=/\bjsp_\S+\b/g;var oParams=new Object();var sClasses=this.jE.attr('class');var sParam;while(sParam=oRg.exec(sClasses)){oParams[String(sParam).substr(4)]=true;}
return oParams;}
var oCaller=this.callerObj();var aInheritMessages=new Array();var obClearInherit={};var bClearAllInherit=false;var oListenTo={};if(oCaller)aInheritMessages=oCaller.getInheritMessages();if(aInheritMessages.length){for(var iI=0;iI<aInheritMessages.length;iI++){oCaller.registerMessage(aInheritMessages[iI],function(sMsg,oData){if(obClearInherit[sMsg]||bClearAllInherit)return'';var xRtn=that.sendMessage(sMsg,oData);if(oListenTo[sMsg])oListenTo[sMsg](sMsg,xRtn);return xRtn;});}}}
window.jso['/']=function(){this.jso=function(){window.aes.initElements(this.jE,this.sPath,2);}}
window.jso['/init']=function(){this.init=function(){this.sPath='';this.initializeChildren();}}
window.aSchedule=new Array();window.aes={bScheduleStarted:false,oScheduler:null,startSchedule:function(){window.aes.bScheduleStarted=true;window.aes.oScheduler=window.aes.executeSchedule();},addScheduleEntry:function(oCallback){window.aSchedule.push(oCallback);if(!window.aes.oScheduler&&window.aes.bScheduleStarted){window.aes.oScheduler=window.setTimeout(window.aes.executeSchedule,25);}},executeSchedule:function(){if(window.aSchedule.length==0){window.aes.oScheduler=null;return;}
var iC=1;window.aSchedule.shift().call();window.aes.oScheduler=window.setTimeout(window.aes.executeSchedule,5);},sFilterJSO:'[class*=" jso_"], [class^="jso_"]',sFilterJSD:'[class*=" jsd_"], [class^="jsd_"]',gP:function(sType,sFilter){if(!sFilter)sFilter='';if(!sType)sType='jso';return'[class*=" '+sType+'_'+sFilter+'"], [class^="'+sType+'_'+sFilter+'"]';},getObjById:function(sId){return jQuery.data(document.getElementById(sId),'obj');},getObj:function(jObj){return jQuery.data(jQuery(jObj).get(0),'obj');},getObjs:function(jE){var aRtn=new Array();jQuery(jE).each(function(){aRtn.push(jQuery.data(this,'obj'));});return aRtn;},aAllReady:[],regAllReady:function(oCb){window.aes.aAllReady.push(oCb);},execAllReady:function(){for(var iI=0;iI<window.aes.aAllReady.length;iI++){window.aes.aAllReady[iI]();}},getJSOs:function(jParent,bAll){if(bAll)
return jQuery(jParent).find(window.aes.sFilterJSO);else
return jQuery(jParent).children(window.aes.sFilterJSO);},getNextJSOs:function(jParent){return jQuery(jParent).closestJSOs();},initElements:function(jParent,sPath,iMode){var x=Math.random();if(!jParent.length)return;var oUpdate=window.aes.getObj(jParent);var aO=new Array();var jO=undefined;if(arguments.length<2)sPath='';else if(sPath&&(sPath.substr(0,1)!='/'))sPath='/'+sPath;if(arguments.length<3)iMode=0;if(typeof iMode=='object'){jO=iMode;}
else if(iMode==1){jO=window.aes.getJSOs(jParent,true);}
else if(iMode==2){jO=window.aes.getNextJSOs(jParent);var sT='';jO.each(function(){sT+='-'+jQuery(this).attr('class')+'-';});}
else{jO=window.aes.getJSOs(jParent);}
if(location.hash==='#speed')console.timeEnd('initElements_Before');jO.each(function(){var jE=jQuery(this);var y=Math.random();if(location.hash==='#speed'){console.time('initElement__'+jE.attr('class').split(' ')[0]+'__'+y);}
if(!jE.parent().length)return;if(jE.closest('#jst').length)return;var sObj=String(/\bjso_\S+\b/.exec(jE.attr('class'))).substr(4);var sThisPath=sPath;var aPath=sThisPath.split('/');if(window.jso['*/'+sObj]===true){sThisPath='';aPath=[''];}
else if(typeof window.jso[sThisPath+'/'+sObj]=='string'){var sTmpPath=window.jso[sThisPath+'/'+sObj];if(sTmpPath.substr(0,1)=='_'){sTmpPath=(sTmpPath.length>1)?'/'+sTmpPath.substr(1):'';sThisPath=sTmpPath;}
else if(sTmpPath=='/')sTmpPath='';aPath=sTmpPath.split('/');}
var aPathes=new Array();while(aPath.length>0){var sTmpPath=aPath.join('/')+'/'+sObj;if(window.jso[sTmpPath])aPathes.push(sTmpPath);aPath.pop();}
var oTmp=undefined;if(aPathes.length==0){var oObj=window.jso['/'];oObj.prototype=new window.jso[''](oUpdate,false,jE.outerHTML());oObj.prototype.jE=jE;oObj.prototype.oE=this;oObj.prototype.sPath=sThisPath+'/'+sObj;oObj.prototype.sObjPath=sMain;oTmp=new oObj();jQuery.data(this,'obj',oTmp);oTmp.jso();aO.push(oTmp);}
else{var sMain=aPathes.shift();var oObj=window.jso[sMain];oObj.prototype=new window.jso[''](oUpdate,false,jE.outerHTML());oObj.prototype.jE=jE;oObj.prototype.oE=this;oObj.prototype.sPath=sThisPath+'/'+sObj;oObj.prototype.sObjPath=sMain;if(window.jso['_'+sObj]){var aPrototypes=window.jso['_'+sObj].split(',');for(var iI=0;iI<aPrototypes.length;iI++){if(window.jso[sTmpPath])aPathes.push(aPrototypes[iI]);}}
for(var iI=aPathes.length-1;iI>=0;iI--){var oPrototype=window.jso[aPathes[iI]];oPrototype.prototype=oObj.prototype;oObj.prototype=new oPrototype(oObj.prototype);}
oObj.prototype.constructor=oObj;oTmp=new oObj(oObj.prototype);jQuery.data(this,'obj',oTmp);var bCallCbs=true;if(location.hash==='#speed')console.time('construct__'+jE.attr('class').split(' ')[0]+'__'+y);if(oTmp[sObj])bCallCbs=oTmp[sObj]();if(location.hash==='#speed')console.timeEnd('construct__'+jE.attr('class').split(' ')[0]+'__'+y);if(bCallCbs!==false){oTmp['loaded']();}
aO.push(oTmp);}
if(location.hash==='#speed'){console.debug('--------------',jE.attr('class'),'--------------');console.timeEnd('initElement__'+jE.attr('class').split(' ')[0]+'__'+y);}});if(!oUpdate){window.aes.execAllReady();window.aes.startSchedule();}
return aO;}}
window.bAni=true;jQuery(function(){if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8))window.bAni=false;jQuery('html').attr('id','jso_jsc');jQuery.extend(jQuery.template.regx,{standard:/\$\{([\w-\[\]]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g});});if(document.location.href.substr(document.location.href.length-4,4)=='#tra'){window.aes.addScheduleEntry(function(){$('body').append('<div style="font-size: 200px !important; position:absolute; left:100px; top:100px; z-index:1000; color:#ff0000 !important;">TRA !</div>');});}
if(document.location.hash==='#hb'){setTimeout(function(){var jL=jQuery('<span />').css({'position':'absolute','top':'-30px','width':'10px','height':'30px','font-size':'25px','color':'red','font-weight':'bold'});var sT='Herzlichen Glückwunsch, Stinker!';for(var iI=0;iI<sT.length;iI++){(function(){var sL=sT.substr(iI,1);var iC=iI;setTimeout(function(){jL.clone().text(sL).css('left',(200+30*iC)+'px').appendTo('body').animate({'top':'300px'},750);},200*iC);})();}},1000);}
if(!window.jso)window.jso=new Object();window.jso['/initWAi']=function(){var that=this;this.initWAi=function(){var jC=that.jE.children('div:first');jC.addClass('waiTicker');if(typeof WAiLoadTicker=="function")WAiLoadTicker(jC.attr('id'));}}
window.jso['/EntriesPDF']=function(){var that=this;this.EntriesPDF=function(){that.jE.click(function(){var jPdf=that.jE.parent().next('*').clone();jPdf.find('.mini').remove();jPdf.find('.globalLogo').each(function(){var jLogo=$(this);var sLogo=jLogo.css('backgroundImage').replace(/&quot;/g,"").replace(/"/g,"").replace(/url\(|\)$/ig,"");var jImg=jQuery('<img/>').css('margin-right','10px').addClass('globalLogo').attr('src',sLogo);jLogo.before(jImg);jLogo.remove();});var sPdfData='<html><head><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/clients/'+window.oTypoCfg["client"]+'/ma/css/index.css" media="screen" /><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/ma/index.css" media="screen" /><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/1.1/core.css" media="screen" /><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/ma/pdf.css" media="screen" /></head><body>';sPdfData+=jPdf.html();sBaseUrl=document.location.href.replace('http://','');if(sBaseUrl.indexOf('/')!=-1)sBaseUrl=sBaseUrl.split('/')[0];if(sPdfData.indexOf(sBaseUrl+'/uploads')==-1)sPdfData=sPdfData.replace(/uploads/g,'http://'+sBaseUrl+'/uploads');if(sPdfData.indexOf('"uploads')!=-1)sPdfData=sPdfData.replace(/\"uploads/g,'"http://'+sBaseUrl+'/uploads');sPdfData+='</body></html>';sPdfData=sPdfData.replace(/„/g,'"').replace(/“/g,'"').replace(/‚/g,'"').replace(/’/g,'"').replace(/–/g,'-').replace(/&ndash;/g,'-');sPdfData=sPdfData.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');var jLoader=$('<img style="position:absolute;right:4px;top:14px;" src="http://data.dci-se.de/img/loading_small.gif" border="0" />');that.jE.before(jLoader);$.post("fileadmin/services/pdfgen_client.php",{'task':'normal_print','html':'<html>'+sPdfData+'</html>'},function(sFile){that.jE.attr('href','http://pdfgen.dci-system-design.de/tmp_pdf/'+sFile);that.jE.children('span').text(window.oL.pdfdl);that.jE.unbind('click');jLoader.remove();});return false;});}}
window.jso['/showEntries']=function(){var that=this;this.showEntries=function(){var oParams=this.getParams();this.initializeAllChildren();var sContext='';if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');}
this.parseJSDs(this.getTplPath(sContext));this.initializeNextChildren();}}
window.jso['/showRelations']=function(){var that=this;this.showRelations=function(){var oParams=this.getParams();this.initializeAllChildren();var sContext='';if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');}
this.parseJSDs(this.getTplPath(sContext));this.initializeNextChildren();}}
window.jso['/Entry']=function(){var that=this;this.Entry=function(){var oParams=this.getParams();var sContext='';if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');}
this.parseJSDs(this.getTplPath(sContext));var sTmp=that.jE.html();that.jE.before(sTmp);that.jE.remove();}}
window.jso['/Relation']=function(){var that=this;this.Relation=function(){var oParams=this.getParams();var sContext='';if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');}
this.parseJSDs(this.getTplPath(sContext));var sTmp=that.jE.html();that.jE.before(sTmp);that.jE.remove();}}
window.jso['/incTpl']=function(){var that=this;var oMeta=that.jE.metadata();var oParams=that.getParams();this.incTpl=function(){var sContext='';if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');that.jE.attr('title','');}
if(!oMeta.tpl&&!sContext){that.jE.remove();return;}
if(oParams.passthrough){that.extendJSDs(that.callerObj().getJSDs(),'parent');}
if(sContext)this.parseJSDs(this.getTplPath(sContext));else this.parseJSDs();}}
window.jso['/newsFilter']=function(){var that=this;this.newsFilter=function(){that.jE.children('input').click(function(){var sField=$(this).parent().metadata().field;var jNews=$(this).parents('.jso_showNews:first');var jInput=$(this);if($(this).is(':checked'))
{jNews.find('div.'+sField+':contains("'+$(this).attr('name')+'")').each(function(){$(this).closest('.jsc_newsEntry').fadeIn('fast');});}
else
{jNews.find('div.'+sField+':contains("'+$(this).attr('name')+'")').each(function(){$(this).closest('.jsc_newsEntry').fadeOut('fast');});}});}}
window.jso['/showPartners']=function(){var that=this;this.showPartners=function(){var oSections=new Object();var jNeverDOM=jQuery('<div />');jNeverDOM[0].innerHTML=that.jE.html().replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>');that.jE.empty();jNeverDOM.children('span.slide').each(function(){var sType=$(this).attr('type');if(!oSections[sType])
oSections[sType]=sType;});$.each(oSections,function(sKey,sVal){var jSlideGallery=$('<div class="jso_slideGallery {\'type\':\'logo\'}"></div>');jNeverDOM.children('span.slide[type='+sKey+']').each(function(){var sHtml=jSlideGallery.html()+'&lt;span class=&quot;slide&quot; type=&quot;'+sKey+'&quot;&gt;'+
$(this).html().replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;')+'&lt;/span&gt;';jSlideGallery.html(sHtml);});jSlideGallery.prependTo(that.jE).before('<h2>'+sKey+'</h2>');});that.initializeChildren();}}
window.jso['/showSchulungen']=function(){var that=this;this.showSchulungen=function(){that.jE.children('div.jsc_entry').each(function(){var sValue=$(this).html();$(this).html($(this).parseSpecialChars(sValue));jType=$(this).find('span.type');var sPlace=$(this).find('span.place');var sFrom=$(this).find('span.visiblefrom');var sTo=$(this).find('span.visibleto');$(this).find('span.expired').remove();var iUID=$(this).find('span.uid').text();var sLogo=$(this).find('span.logo').text();if(sLogo!=''&&iUID!=''){var iPos=sLogo.lastIndexOf('/');var sPath1=sLogo.substr(0,iPos);var sPath2=sLogo.substr(iPos+1);var oLogo=$('<a class="logo" style="background-image:url('+sPath1+"/mini_"+sPath2+');"></a>').attr('href',window.oCfg['Partnerships']['company']+iUID).prependTo($(this));}
if(sPlace.length>0&&sFrom.length>0&&sTo.length>0)
{if($(this).find('span.time').length==0)$(this).prepend('<span class="time"></span>');if(sFrom.text()==sTo.text())$(this).find('span.time').text(sPlace.text()+' - '+sFrom.text());else $(this).find('span.time').text(sPlace.text()+' - '+sFrom.text()+' - '+sTo.text());sFrom.remove();sPlace.remove();sTo.remove();}
if(jType.text()=='live')
var sTitle='vor Ort';else if(jType.text()=='online')
var sTitle='online';if(jType.text()!='')var jIcon=$('<img/>').attr({'title':sTitle,'src':'http://data.dci-se.de/img/icons/schulung_'+jType.text().replace(' ','')+'.png'}).prependTo($(this));jType.remove();});}}
window.jso['/showNetworks']=function(){var that=this;this.showNetworks=function(){var jNeverDOM=jQuery('<div />');var aNetworks=['twitter','facebook','igoogle','myspace','xing','youtube'];jNeverDOM[0].innerHTML=that.jE.text().replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>');that.jE.empty();jNeverDOM.children('span').each(function(){var jElem=jQuery(this);if(jQuery.inArray(jElem.attr('class'),aNetworks)===-1)return;var sURL=jElem.text();if(sURL.length==0)return;if((sURL.indexOf('http://')==-1)&&(sURL.indexOf('https://')==-1))sURL='http://'+sURL;var jLink=$('<a/>').attr({'target':'_blank','href':sURL});var jImg=$('<img/>').attr('src','http://data.dci-se.de/img/icons/social_'+jElem.attr('class')+'.png').appendTo(jLink);that.jE.append(jLink);});}}
window.jso['/showPeople']=function(){var that=this;this.showPeople=function(){var oMeta=that.jE.metadata();var sGroup=oMeta.groupby;var sHide=oMeta.hide;var jNeverDOM=jQuery('<div />');var aFields=['imagepeople','name','aufgabe','phone','mobile','email','spezialgebiete','skills','interessen'];if(oMeta.hsc)jNeverDOM[0].innerHTML=that.jE.html().replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>');else jNeverDOM[0].innerHTML=that.jE.text().replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>');that.jE.empty();jNeverDOM.children('div').children('*:not(span)').remove();oSortGroup=new Object();jNeverDOM.find('span.'+sGroup).each(function(){var sName=$(this).text();oSortGroup[sName]=sName;});$.each(oSortGroup,function(key,value){var jH2=$('<h2 />').text(value);that.jE.prepend(jH2);jNeverDOM.find('span.'+sGroup).each(function(){if($(this).text()==value)
{var jPerson=$(this).parent().clone();$(this).parent().remove();jPerson.find('span.'+sGroup).remove();jPerson.find('*').each(function(){if(jQuery.inArray($(this).attr('class'),aFields)===-1)$(this).remove();var sHtml=$(this).html().replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');$(this).html(sHtml);});var jPic=jPerson.find('span.imagepeople');var sPic=jPic.text();if(sPic!='')
{var iBig=sPic.lastIndexOf('/');var sHref=sPic.replace(sPic.substr(0,iBig)+'/',sPic.substr(0,iBig)+'/big_');if(oMeta.picVersion)sPic=jQuery.template.helpers.imageVersion(sPic,oMeta.picVersion);var jThickbox=$('<a></a>').addClass('thickbox').append('<img src="'+sPic+'" border="0" style="max-width:59px;max-height:59px;">').attr('href',sHref);jPic.empty().append(jThickbox);}
else
{jPic.empty().append('<img src="http://data.dci-se.de/clients/channelpartner/ma/img/no_photo.gif" border="0" width="59" height="59">');}
var jHidden=jPerson.find('span.'+sHide).prev('span:first');var bMore=true;var jHiddenSpans=jHidden.nextAll('span');var jEmptySpans=jHidden.nextAll('span:empty');if(jEmptySpans.length==jHiddenSpans.length)var bMore=false;jHiddenSpans.detach();var jInvisible=$('<div/>').css('display','none').addClass('jsc_notVisible').append(jHiddenSpans).appendTo(jPerson);var jNotHidden=jPerson.children('span').detach();var jVisible=$('<div/>').css('display','block').addClass('jsc_visible').append(jNotHidden).prependTo(jPerson);if(sHide&&bMore)
{jEmptySpans.remove();jPerson.find('div.jsc_notVisible > span').each(function(){$(this).prepend('<h3>'+$(this).attr('title')+'</h3>');});var jReadMore=$('<a/>').attr('href','#').addClass('jsc_readMoreHidden').text(oL.moreInfos).click(function(){var jHiddenSpans=$(this).siblings('.jsc_notVisible:first');if(jHiddenSpans.css('display')=='none')
{jHiddenSpans.fadeIn('slow');$(this).parents('.jso_slideContainer').each(function(){$(this).getObj().setHeightRelative(jHiddenSpans.height()+30);});$(this).addClass('jsc_readMoreVisible').removeClass('jsc_readMoreHidden').text(oL.lessInfos);}
else
{jHiddenSpans.fadeOut('slow');setTimeout(function(){jReadMore.parents('.jso_slideContainer').each(function(){$(this).getObj().setHeightRelative(-jHiddenSpans.height()-30);});},200);$(this).addClass('jsc_readMoreHidden').removeClass('jsc_readMoreVisible').text(oL.moreInfos);}
return false;}).appendTo(jPerson);}
jPerson.find('span').each(function(){var sInner=$(this).html();if($(this).attr('class')!='imagepeople')
{$(this).html($(this).parseSpecialChars(sInner));}});$(jH2).after(jPerson);}});});}}
window.jso['/ajaxRequest']=function(){var that=this;var iDel=that.jE.metadata().del;var bSelect=that.jE.get(0).tagName.toLowerCase().indexOf('select')!=-1?true:false;var sHandler=bSelect?'change':'click';this.ajaxRequest=function(){that.jE.bind(sHandler,function(){var sUrl=bSelect?that.jE.val():that.jE.attr('href');if(window.get&&window.get.uid)sUrl=sUrl+"&uid="+window.get.uid;jQuery.get(sUrl,function(jsonData){jsonData=$.parseJSON(jsonData);if(jsonData["error"]){jsonData["error"].showDiag(0);}
else{if(iDel==1){that.jE.parent().fadeOut('fast',function(){$(this).remove();jsonData["success"].showDiag(1);});}
else
{jsonData["success"].showDiag(1);}}});return false;});};}
window.jso['/ajaxContent']=function(){var that=this;this.ajaxContent=function(){var oMeta=that.jE.metadata();if(oMeta.cfg)
var sJSON=oMeta.cfg;else
var sJSON='';var sPlainURL='';if(oMeta.plain_url)sPlainURL=oMeta.plain_url;var sMethod='POST';if(oMeta.method)sMethod=oMeta.method;if(window.oCfg["AjaxContent"]||sPlainURL)
{var sURL='';if(sPlainURL)sURL=sPlainURL;else sURL=window.oCfg["AjaxContent"][oMeta.url];if(!sURL){that.jE.remove();return;}
var ajaxLoad=function(){var oParent=that.jE.parents('.jso_subtabBox').getObj();var iUID=oParent?oParent.getJSDs().uid:undefined;that.jE.empty().css('height','30px').css('position','relative');var oLoader=$('<img/>').attr({'src':'http://data.dci-se.de/img/loading_small.gif','border':'0'}).css({'position':'absolute','left':'50%','top':'2px','margin':'0 0 0 -8px'}).appendTo(that.jE);if((sMethod=='GET')&&isNaN(Number(iUID))){var oGet=location.href.parseQuery();if(oGet.uid)iUID=Number(oGet.uid);}
oPosts={};if(!isNaN(Number(iUID)))oPosts['uid']=iUID;if(sJSON)oPosts['json']=sJSON;$.ajax({type:sMethod,url:sURL,data:oPosts,success:function(sData){oLoader.remove();that.jE.empty().css('height','auto').css('position','static');var jData=jQuery(sData);if(jData.find('*:not(:empty)').length>0)
{that.jE.append(jData);that.initializeNextChildren();that.jE.slideDown('fast',function(){var oSlide=that.jE.closest('.jso_Slide').getObj();if(oSlide){oSlide.checkHeight();}});}
else
{var oSlide=that.jE.closest('.jso_Slide').getObj();that.jE.prev('h2').remove();that.jE.hide();if(oSlide){oSlide.hideIfEmpty();oSlide.checkHeight();}}}});};window.aes.addScheduleEntry(ajaxLoad);if(oMeta.reg&&oMeta.reg.msg&&oMeta.reg.rel){var oObj=jQuery('.'+oMeta.reg.rel).getObj();if(oObj)oObj.registerMessage(oMeta.reg.msg,function(sMsg,oData){ajaxLoad();});}}}}
window.jso['/readMore']=function(){var that=this;this.readMore=function(){if(that.jE.html()!='')
{var sDataLabelVisible=that.jE.attr('data-label-visible')?that.jE.attr('data-label-visible'):'';var sDataLabelHide=that.jE.attr('data-label-hidden')?that.jE.attr('data-label-hidden'):'';var bSmall=false;if(that.jE.hasClass('jsp_small')==true)bSmall=true;var bInitAll=false;if(that.jE.hasClass('jsp_initAll')==true)bInitAll=true;var jh2=that.jE.prevAll('h2:first').css('position','relative');if(!jh2.length)
var jh2=that.jE.parents('*').prevAll('h2:first');var jReadMore=$('<a/>').attr('href','#').click(function(){var oLink=$(this);if($(this).hasClass('jsc_readMoreHidden'))
{if(that.jE.closest('.jso_slideContainer').length){var oObj=that.jE.closest('.jso_slideContainer').getObj();if(oObj){that.jE.show();oObj.setHeightRelative(that.jE.height());that.jE.hide();}}
if(!window.bAni)that.jE.show();else that.jE.slideDown();$(this).removeClass('jsc_readMoreHidden').addClass('jsc_readMoreVisible');if(bSmall==false)$(this).html(sDataLabelVisible);}
else if($(this).hasClass('jsc_readMoreVisible'))
{if(that.jE.closest('.jso_slideContainer').length){var oObj=that.jE.closest('.jso_slideContainer').getObj();if(oObj){oObj.setHeightRelative(-1*that.jE.height());}}
if(!window.bAni)that.jE.hide();else that.jE.slideUp('fast');$(this).removeClass('jsc_readMoreVisible').addClass('jsc_readMoreHidden');if(bSmall==false)$(this).html(sDataLabelHide);}
return false;});if(that.jE.css('display')=='block')
{jReadMore.addClass('jsc_readMoreVisible');if(bSmall==false)jReadMore.html(sDataLabelVisible);}
else if(that.jE.css('display')=='none')
{jReadMore.addClass('jsc_readMoreHidden');if(bSmall==false)jReadMore.html(sDataLabelHide);}
jReadMore.appendTo(jh2);jh2.click(function(){jReadMore.click();}).css('cursor','pointer');if(bInitAll==true)that.initializeAllChildren();}}}
window.jso['/showNewsArchive']=function(){var that=this;this.showNewsArchive=function(){var sMeta=that.jE.metadata().type;that.jE.find('div.jsc_newsEntry').each(function(){$(this).children('div').each(function(){var sValue=$(this).html();$(this).html($(this).parseSpecialChars(sValue));});if($(this).index()>2)
{$(this).css('display','none');}
var sImg=$(this).children('div.newsLogo').text();$(this).children('div.newsLogo,div.newsShortCopy').remove();var sPlace=$(this).children('div.newsPlace');var sVisibleFrom=$(this).children('div.newsVisibleFrom');var sVisibleTo=$(this).children('div.newsVisibleTo');if(sVisibleFrom.text()!=''&&!that.jE.closest('form.jso_Form').length)
{if(sVisibleTo.text().length>0)
{$(this).children('div.newsCreated').text(sVisibleFrom.text()+' - '+sVisibleTo.text());}
else
{$(this).children('div.newsCreated').text(sVisibleFrom.text());}}
var jLink=$('<a></a>').attr('href','#').click(function(){$(this).parents('div.jsc_newsEntry:first').overlaySlide($(this).parents('div.jso_showNewsArchive:first'),'jsc_newsEntry');return false;});$(this).children('div.newsTitle').wrap(jLink);});var iVisible=that.jE.find('.jsc_newsEntry:visible').length;var jH2=that.jE.parent().prevAll('h2:first');if(that.jE.find('.jsc_newsEntry').length>iVisible)
{var jMore=$('<a/>').attr('href','#').text('weiter').click(function(){var iVisible=3;var iFirst=that.jE.find('.jsc_newsEntry:visible:first').index();var sSelOut='';var sSelIn='';for(var i=iFirst;i<iFirst+iVisible;i++)
{if(i>iFirst)
{sSelOut+=',.jsc_newsEntry:eq('+i+')';sSelIn+=',.jsc_newsEntry:eq('+(i+iVisible)+')';}
else
{sSelOut+='.jsc_newsEntry:eq('+i+')';sSelIn+='.jsc_newsEntry:eq('+(i+iVisible)+')';}}
that.jE.find(sSelOut).fadeOut('fast',function(){that.jE.find(sSelIn).fadeIn('fast');});if(that.jE.find('.jsc_newsEntry:eq('+iFirst+(2*iVisible)+')').length==0)$(this).fadeOut('fast');if(that.jE.find('.jsc_newsEntry:eq('+(iFirst+iVisible)+')').length>0)$(this).siblings('a').fadeIn('fast');return false;}).appendTo(jH2);var jPrev=$('<a/>').attr('href','#').text('zurück').click(function(){var iVisible=3;var iFirst=that.jE.find('.jsc_newsEntry:visible:first').index();var iLast=that.jE.find('.jsc_newsEntry:visible:first').index();var sSelOut='';var sSelIn='';for(var i=iFirst;i<iFirst+iVisible;i++)
{if(i>iFirst)
{sSelOut+=',.jsc_newsEntry:eq('+i+')';sSelIn+=',.jsc_newsEntry:eq('+(i-iVisible)+')';}
else
{sSelOut+='.jsc_newsEntry:eq('+i+')';sSelIn+='.jsc_newsEntry:eq('+(i-iVisible)+')';}}
that.jE.find(sSelOut).fadeOut('fast',function(){that.jE.find(sSelIn).fadeIn('fast');});if(that.jE.find('.jsc_newsEntry:eq('+((iLast+1)-(iVisible*2))+')').prevAll('.jsc_newsEntry').length==0)$(this).fadeOut('fast');if(that.jE.find('.jsc_newsEntry:eq('+(iLast-iVisible)+')').nextAll('.jsc_newsEntry').length>0)$(this).siblings('a').fadeIn('fast');return false;}).hide().appendTo(jH2);}}}
window.jso['/showNews']=function(){var that=this;this.showNews=function(){var sMeta=that.jE.metadata().type;that.jE.find('div.jsc_newsEntry').each(function(){$(this).children('div').each(function(){var sValue=$(this).html();$(this).html($(this).parseSpecialChars(sValue));});var sImg=$(this).children('div.newsLogo').text();if(sMeta=='overview')
{var jLink=$('<a class="logo" style="background-image:url('+sImg+');"></a>').attr('href',window.oCfg['Partnerships']['company']+$(this).children('div.newsUID').text()).append('<div></div>');$(this).children('div.newsLogo').before(jLink).remove();}
else
{$(this).children('div.newsLogo').remove();}
var sPlace=$(this).children('div.newsPlace');var sVisibleFrom=$(this).children('div.newsVisibleFrom');var sVisibleTo=$(this).children('div.newsVisibleTo');if(sVisibleFrom.text()!=''&&!that.jE.closest('form.jso_Form').length)
{var sHead=$(this).children('div.newsCompany').text();if(sPlace.text().length>0)sHead=sHead+' | '+sPlace.text();if($(this).children('div.schulungstyp').text()=='locally')
{sHead='<img style="float:none;width:auto;height:auto;border:0;" src="http://data.dci-se.de/img/icons/schulung_live.png">'+sHead;}
else if($(this).children('div.schulungstyp').text()!='')
{sHead='<img style="float:none;width:auto;height:auto;border:0;" src="http://data.dci-se.de/img/icons/schulung_online.png">'+sHead;}
if(sVisibleTo.text().length>0)
{$(this).children('div.newsCreated').html(sHead+' | '+sVisibleFrom.text()+' - '+sVisibleTo.text());}
else
{$(this).children('div.newsCreated').html(sHead+' | '+sVisibleFrom.text());}}
var jLink=$('<a />').attr('href','#').text('mehr').click(function(){$(this).parents('div.jsc_newsEntry:first').overlaySlide($(this).parents('div.jso_showNews:first'),'jsc_newsEntry');return false;});if(!that.jE.closest('form.jso_Form').length)
{$(this).children('div.newsShortCopy').append(jLink);}});if(!that.jE.closest('form.jso_Form').length&&sMeta=='overview')
{var sHref=that.jE.find('div.jsc_newsEntry:first > div.newsAll').html();if(sHref&&sHref!='')
{var jLink=$('<a />').addClass('jsc_all').attr('href',sHref).text('Alle '+that.jE.find('div.jsc_newsHeader').text());if(sMeta=='overview')that.jE.append('<br/>').append(jLink);}
that.jE.css({'padding-left':'10px','border-left':'1px dotted #D5D5D5'});that.jE.parent('div.jsc_Col').prevAll('div.jsc_Col:last').children('div.jso_showNews').css({'padding-left':'10px','border':'0px'});that.initializeNextChildren();}}}
window.jso['/prepareGmaps']=function(){var that=this;this.prepareGmaps=function(){var oMeta=that.jE.metadata();var oFields=oMeta.fields;var oPointers=new Object();var sId=oMeta.id;if(!sId)return;var iMax=-1;var iC=0;var iPage=-1;var ajPages=[];that.ajElems={};var showPage=function(iNewPage){if(!ajPages[iNewPage-1])return false;if(that.jE.children('.jso_googleMaps').length){that.jE.children('.jso_googleMaps').fadeOut(125,function(){that.jE.empty().append(ajPages[iNewPage-1]).children('.jso_googleMaps').fadeIn(125);});}
else that.jE.empty().append(ajPages[iNewPage-1]).children('.jso_googleMaps');return true;}
var oCb=function(oParent){var oObj=this.getObj().getJSDs();that.ajElems[oObj["uid"]]=this;oPointers[oObj["uid"]]=new Object();jQuery.each(oFields,function(sKey,sVal){oPointers[oObj["uid"]][sKey]=oObj[sVal];});if(iMax==++iC){that.jE.show().css('background','none');ajPages[iPage-1]=jQuery('<div></div>').addClass('jso_googleMaps').attr('style',that.jE.attr('style')).html(jQuery.toJSON(oPointers));that.jE.empty().append(ajPages[iPage-1]);that.initializeElements(ajPages[iPage-1]);}}
window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){that.jE.empty().css('background','url(http://data.dci-se.de/img/loading_maps.gif) no-repeat scroll center center #FFFFFF');iC=0;iMax=oData.elems.length;iPage=oData.page;oPointers=new Object();oData.elems.objInit(oCb);}).registerMessage('on_gotoPage',function(sMsg,oData){iPage=oData.iPage;showPage(iPage);});});}}
window.jso['/googleMaps']=function(){var that=this;var oPointers=jQuery.parseJSON(that.jE.html());var iW=0;var iH=0;var iId='gmapsid_'+String(Math.random()).substr(2);var bSingle=that.jE.parent().hasClass('jso_prepareGmaps')?false:true;var oMap;var oGeoCoder;var oLatLngBounds;this.initGmaps=function(){iW=that.jE.width()!=0?that.jE.width():that.jE.css('width').replace('px','');iH=that.jE.height()!=0?that.jE.height():that.jE.css('height').replace('px','');that.jE.css('background-image','');oMap=new GMap2(document.getElementById(iId),{size:new GSize(iW,iH)});oMap.addControl(new GLargeMapControl());oGeocoder=new GClientGeocoder();oLatLngBounds=new GLatLngBounds();jQuery.each(oPointers,function(iUid,oData){that.initMarker(iUid,oData);});}
this.googleMaps=function(){that.jE.empty().attr('id',iId).css('background','url(http://data.dci-se.de/img/loading_maps.gif) no-repeat scroll center center #FFFFFF');window.aes.addScheduleEntry(function(){setTimeout(function(){that.initGmaps();},1000);});}
this.initMarker=function(iUid,oData){var sAdd=oData["name"]+" "+oData["country"]+" "+oData["zip"]+" "+oData["city"]+" "+oData["street_nr"];oGeocoder.getLatLng(sAdd,function(oPoint){if(!oPoint&&bSingle==true){that.jE.empty().css('background','url(http://data.dci-se.de/img/icons/no_adress.gif) no-repeat scroll center center #FFFFFF');}
else if(oPoint){var iA=oPoint.lat();var iB=oPoint.lng();oLatLngBounds.extend(new GLatLng(iA,iB));if(bSingle==false)oMap.setCenter(oLatLngBounds.getCenter(),Math.min(14,oMap.getBoundsZoomLevel(oLatLngBounds)));else oMap.setCenter(oLatLngBounds.getCenter(),14);if(bSingle==false)
{var oMarker=new GMarker(new GLatLng(iA,iB));oMap.addOverlay(oMarker);var sT='';var iLeft=0;var iTop=0;var iBody=0;$('body').mousemove(function(e){iTop=e.pageY;iLeft=e.pageX+20;iBody=$('body').width();if(iLeft+150>iBody)
iLeft=e.pageX-170;});GEvent.addListener(oMarker,"mouseover",function(){$('.jsc_gmapsToolTip').fadeOut(500,function(){$(this).remove();});var jToolTip=$('<div></div>').addClass('jsc_gmapsToolTip');jToolTip.append('<div class="name">'+oData["name"]+'</div<div class="zipplace">'+oData["street_nr"]+'</div><div class="zipplace">'+oData["zip"]+' '+oData["city"]+'</div>');if(oData["thumb"]!='')jToolTip.prepend('<div style="background-image: url('+oData["thumb"]+');" class="thumb">&nbsp;</div>');var jClose=$('<a></a>').attr('href','#').addClass('close').click(function(){$('.jsc_gmapsToolTip').fadeOut(500,function(){$(this).remove();});return false;}).appendTo(jToolTip);var oP=that.jE.parent();var oPMeta=oP.metadata();var sBase=oPMeta.base_url;var iPage=oPMeta.overlay;var jOverlay=$('<a></a>').addClass('jso_overlay').attr('href',sBase+'index.php?id='+iPage+'&company='+iUid+'#Companies=2').text(oL.googleMaps.openOverlay).appendTo(jToolTip);var jSlide=$('<a></a>').attr('href','#').text(oL.googleMaps.show).click(function(){var oP=that.jE.parent();var oPMeta=oP.metadata();var sRel=oPMeta.rel;var sClick=oPMeta.click;var oObj=that.callerObj().ajElems[iUid];if(oObj)oObj.objInit(function(oParent){var oObj=this.getObj().getJSDs();if(oObj["uid"]==iUid){jRel=this.getObj().jE;jRel.find('a:contains('+sClick+')').click();var iTop=jRel.offset().top;$('html,body').animate({scrollTop:iTop-25},500);}});return false;}).appendTo(jToolTip);jToolTip.css({'left':iLeft,'top':iTop}).appendTo('body').hide().fadeIn(500);});}
else
{var sHtml="";sHtml+="<div class='twGmapInfo'>";sHtml+="<form action='http://maps.google.de/maps' method='get' target='_blank'><br>";sHtml+="<label style='font-weight: bold;color:#404040;' for='saddr'>"+oL.googleMaps.calcRoute+"</label><br>";sHtml+="<input type='text' name='saddr' id='saddr' value='"+oL.googleMaps.startAddress+"'";sHtml+="onFocus='this.value=\"\";'";sHtml+="style='width: 115px; color:#666;' />";sHtml+="&nbsp;&nbsp;<input type='hidden' name='daddr' value='"+sAdd+"@"+iA+","+iB+"'></input>";sHtml+="<input type='submit' value='"+oL.googleMaps.calc+"'/></form>";sHtml+="</div>";oMap.openInfoWindow(oLatLngBounds.getCenter(),sHtml);}}});}}
window.jso['/slideGalleryHeadline']=function(){var that=this;this.slideGalleryHeadline=function(){if(that.jE.find('input').length){that.initializeNextChildren();return;}
else
{var sHeadline=that.jE.find('p:first').text();var sLink=that.jE.find('p:last a').attr('href');var oH=$('<h2></h2>').html(sHeadline).append('<div style="float:right"><a href="'+sLink+'" target="_blank">mehr Infos</a></div>');if(sHeadline!='')
{that.jE.before(oH).remove();}
else
{that.jE.remove();}}}}
window.jso['/hideLabel']=function(){var that=this;this.hideLabel=function(){if(that.jE.closest('form.jso_Form').length){that.initializeNextChildren();return;}
that.jE.children('h2,br').remove();}}
window.jso['/slideGallery']=function(){var that=this;this.slideGallery=function(){var jNeverDOM=jQuery('<div />');var aFields=['cid','name','src','size','uid'];jNeverDOM[0].innerHTML=that.jE.html().replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>');that.jE.empty();jNeverDOM.children('span.slide').each(function(){var jThis=$(this);jThis.children('*').each(function(){if(jQuery.inArray($(this).attr('class'),aFields)==-1)$(this).remove();});jThis.detach().appendTo(that.jE);});if(that.jE.children('span.slide:first').html()!=''&&that.jE.find('span.src:first').html()!='')
{that.jE.prevAll('p:empty').remove();that.jE.prevAll('br:first').remove();var sId='slideGal_'+that.jE.parents('div.jso_subtabBox:first').index()+'_'+that.jE.parents('div.jso_Slide:first').index()+'_'+that.jE.parents('div.jsc_Col:first').index()+'_'+that.jE.index();that.jE.attr('id',sId);if(that.jE.metadata().type=='img')
{that.jE.children('.slide:not(:empty)').each(function(){var sText=$(this).children('.src').text();if(sText)
{var iBig=sText.lastIndexOf('/');var sBigText=sText.replace(sText.substr(0,iBig)+'/',sText.substr(0,iBig)+'/big_');}
var sTitle=$(this).children('.name').text();var oA=$('<a title="'+sTitle+'" href="'+sBigText+'" class="thickbox"></a>').attr('rel',sId);var oImg=$('<img src="'+sText+'" alt="" />').appendTo(oA);$(this).before(oA).remove();});}
else if(that.jE.metadata().type=='logo')
{that.jE.children('.slide:not(:empty)').each(function(){var sText=$(this).children('.src').text();var iCID=$(this).children('.cid').text();if(sText)
{var iBig=sText.lastIndexOf('/');var sBigText=sText.replace(sText.substr(0,iBig)+'/',sText.substr(0,iBig)+'/big_');}
var sTitle=$(this).children('.name').text();var oA=$('<a title="'+sTitle+'" href="'+window.oCfg['Partnerships']['company']+iCID+'"></a>').attr('rel',sId);var oDiv=$('<div style="background: url('+sText+') no-repeat scroll center center #FFFFFF; border: 1px solid #E5E5E5; height: 45px; width: 100px; margin: 0 5px;"/>').appendTo(oA);$(this).before(oA).remove();});}
else if(that.jE.metadata().type=='formLogo')
{that.jE.children('.slide:not(:empty)').each(function(){var sText=$(this).children('.src').text();var iCID=$(this).children('.cid').text();var iUID=$(this).children('.uid').text();if(sText)
{var iBig=sText.lastIndexOf('/');var sBigText=sText.replace(sText.substr(0,iBig)+'/',sText.substr(0,iBig)+'/big_');}
var oDiv=$('<div class="{\'uid\':\''+iUID+'\'}" style="background: url('+sText+') no-repeat scroll center center #FFFFFF; border: 1px solid #E5E5E5; height: 45px; width: 100px; margin: 0 5px;"/>');$(this).before(oDiv).remove();});}
else if(that.jE.metadata().type=='file')
{that.jE.children('.slide').each(function(){var sLink=$(this).children('.src').text();var sTitle=$(this).children('.name').text();var sSize=$(this).children('.size').text();sSize=Math.round(sSize/1024);if(sSize>1024)
{sSize=Math.round(sSize/1024)+'MB';}
else
{sSize+='KB';}
var oFileExtGeneral=['pdf','doc','docx','ppt','xls','xlsx'];var oFileExtImages=['gif','jpeg','jpg','png','bmp'];var sExt=sLink.substr(sLink.lastIndexOf('.')+1).toLowerCase();var sImg='none';for(var iI in oFileExtGeneral)if(oFileExtGeneral[iI]==sExt)sImg=sExt;for(var iI in oFileExtImages)if(oFileExtImages[iI]==sExt)sImg='picture';if(sImg=='none')sImg='file';var oLink=$('<a href="'+sLink+'" target="_blank">'+sExt.toUpperCase()+'&nbsp;'+sSize+'</a>').mouseover(function(){$(this).css('background','transparent url(http://data.dci-se.de/img/arrow_active.gif) no-repeat scroll right 5px');}).mouseout(function(){$(this).css('background','transparent url(http://data.dci-se.de/img/arrow.gif) no-repeat scroll right 5px');});var oFile=$('<div></div>').append('<img src="http://data.dci-se.de/img/icons/files/big_'+sImg+'.png" alt="'+sExt+'" />').append('<span>'+sTitle+'</span>').append(oLink);$(this).before(oFile).remove();});}
oArrowLeft=$('<img class="jso_slideGalleryArrowLeft" src="http://data.dci-se.de/img/slideGallery_left.gif" />').css('visibility','hidden');oArrowRight=$('<img class="jso_slideGalleryArrowRight" src="http://data.dci-se.de/img/slideGallery_right.gif" />').css('visibility','hidden');that.jE.before(oArrowLeft);that.jE.before(oArrowRight);var bArrows=that.getParams().showArrows;if(bArrows){oArrowLeft.css('visibility','visible');oArrowRight.css('visibility','visible');}
var iH=that.getWH().height;if(oArrowLeft.get(0).height!=iH){oArrowLeft.height(iH);oArrowRight.height(iH);}
that.jE.mouseenter(function(){$(this).css('cursor','e-resize');var iInner=0;that.jE.find('div,img').each(function(){iInner+=$(this).width();});if(iInner>that.jE.width())
{that.jE.prevAll('.jso_slideGalleryArrowLeft:first,.jso_slideGalleryArrowRight:first').css('visibility','visible');}});that.jE.mouseleave(function(){$(this).css('cursor','normal');if(!bArrows)that.jE.prevAll('.jso_slideGalleryArrowLeft:first,.jso_slideGalleryArrowRight:first').css('visibility','hidden');});that.jE.mousemove(function(e){var iWidth=that.jE.width();var lastSlide=that.jE.children('*:last-child');if(lastSlide.length){var maxWidth=lastSlide[0].offsetLeft+lastSlide.outerWidth()+2;var left=(e.pageX-that.jE.offset().left)*(maxWidth-iWidth)/iWidth;that.jE.scrollLeft(left);}});}
else
{that.jE.prev('h2').remove();that.jE.remove();}}}
window.jso['/hoverImg']=function(){var that=this;this.hoverImg=function(){var sDef=this.jE.attr('src');var sHov=sDef.substr(0,sDef.lastIndexOf('.'))+'_hover'+sDef.substr(sDef.lastIndexOf('.'));var oHov=new Image();oHov.src=sHov;jQuery(oHov).load(function(){if(oHov.width){that.jE.mouseover(function(){that.jE.attr('src',sHov);}).mouseout(function(){that.jE.attr('src',sDef);});}});}
return this;}
window.jso['/resultTab']=function(){var that=this;this.resultTab=function(){this.jE.addClass('jsc_Tab');if(this.jE.html()==''){var sHtml=window.cookieFunc.readCookie('jso_resultTab');if(!sHtml)this.jE.hide();else{this.jE.html(sHtml).addClass('passive').prepend('<img src="http://data.dci-se.de/img/bullets/actions/results.png" alt="" />').append('<img src="http://data.dci-se.de/img/bullets/close.png" alt="" class="jsc_bullet" />');this.jE.children('img.jsc_bullet').click(function(){window.cookieFunc.eraseCookie('jso_resultTab');that.jE.fadeOut();});}
window.cookieFunc.createCookie('jso_resultTab_lastURL',window.location.href);}
else{var oA=this.jE.children('a');var iInd=document.title.lastIndexOf('(');var sTitle=(iInd>-1)?' '+document.title.substr(iInd-1):'';oA.text(oA.text()+sTitle);window.cookieFunc.createCookie('jso_resultTab',this.jE.html());this.jE.prepend('<img src="http://data.dci-se.de/img/bullets/actions/results.png" alt="" />').append('<img src="http://data.dci-se.de/img/bullets/close.png" alt="" class="jsc_bullet" />');this.jE.children('img.jsc_bullet').click(function(){window.cookieFunc.eraseCookie('jso_resultTab');var sGoTo=window.cookieFunc.readCookie('jso_resultTab_lastURL');if(sGoTo)window.location.href=sGoTo;else window.location.href='/';});}
this.jE.children('img.jsc_bullet').mouseover(function(){jQuery(this).attr('src','http://data.dci-se.de/img/bullets/close_active.png');}).mouseout(function(){jQuery(this).attr('src','http://data.dci-se.de/img/bullets/close.png');});}}
window.jso['/zettelTab']=function(){var that=this;var oMeta=this.jE.metadata();var aZettel=[];var oZettel=new Object();var aTypes=oMeta.types?oMeta.types:[];var updateZettel=function(sMsg,sZettel,sType){if(aTypes.length>0){oZettel[sType]=sZettel?sZettel.split('\n'):[];oZettel[sType].pop();that.jE.find('> a > span').text(oL.zettel+' ('+getEntries()+')');}else{aZettel=sZettel?sZettel.split('\n'):[];aZettel.pop();that.jE.find('> a > span').text(oL.zettel+' ('+getEntries()+')');}
if(sZettel)that.jE.fadeIn();else if(getEntries()==0)that.jE.fadeOut();}
var getEntries=function(){var iMax=0;if(aTypes.length>0){jQuery.each(aTypes,function(iIndex,sType){if(oZettel[sType])iMax=iMax+oZettel[sType].length;});}else{iMax=aZettel.length;}
return iMax;}
this.zettelTab=function(){this.jE.addClass('jsc_Tab');that.jE.hide().html('<a href="#"><img src="http://data.dci-se.de/img/bullets/actions/zettel.png" alt="" /><span>'+oL.zettel+'</span></a>').children('a').click(function(){this.blur();if(aTypes.length>0){var sUrl=oMeta.base_url;jQuery.each(aTypes,function(iIndex,sType){sUrl=sUrl.replace('${'+sType+'}',oZettel[sType].join(','));});location.href=sUrl;}else{location.href=oMeta.base_url+aZettel.join(',');}
return false;});if(aTypes.length>0){jQuery.each(aTypes,function(iIndex,sType){updateZettel('',window.cookieFunc.readCookie('merkzettel_'+sType),sType);});}else{updateZettel('',window.cookieFunc.readCookie('merkzettel'),'');}
jQuery('.jso_ToolBar .jso_Zettel, .jso_resultBar .jso_Zettel').objInit(function(oP){oP.registerMessage('update',function(sMsg,oData){updateZettel('',oData.sZettel,oData.sType);});oP.registerMessage('count',getEntries);});}}
window.jso['/resultBox']=function(){var that=this;var oT=undefined;this.resultBox=function(){var jHandler=that.jE.children(':first');var jContent=that.jE.children(':last');var bInit=false;jHandler.click(function(){if(!bInit){that.initializeNextChildren();bInit=true;}
jContent.fadeIn();jHandler.addClass('active');});that.jE.mouseenter(function(){if(oT){clearTimeout(oT);oT=undefined;}});that.jE.mouseleave(function(){oT=setTimeout(function(){jContent.fadeOut();jHandler.removeClass('active');},250);});}}
window.jso['/resultCtr']=function(){var that=this;var ajSets=new Array();var aInit=new Array();var oMeta=this.jE.metadata();var iSet=0;var iSets=0;var iPP=0;var iWidth=0;var aUIDs=[];var jCtr=undefined;var jCtrB=undefined;var jLoading=jQuery('<img />').attr('src','http://data.dci-se.de/img/loading_small.gif').css({'position':'absolute','left':'50%','top':'2px','margin':'0 0 0 -8px'});var jLoadingB=jLoading.clone();var jProgress=jQuery('<div />').css({'position':'absolute','right':'2px','top':'1px','height':'19px','background-color':'#ffffff'});var jProgressB=jProgress.clone();var iProgress=0;var iProgressM=0;var showNavLoader=function(){jCtr.children(':not(.jsc_leftBorder, .jsc_rightBorder)').hide();jCtrB.children(':not(.jsc_leftBorder, .jsc_rightBorder)').hide();jLoading.appendTo(jCtr).fadeIn();jLoadingB.appendTo(jCtrB).fadeIn();};var createProgress=function(iMax){iProgressM=iMax;jCtr.children(':not(.jsc_leftBorder, .jsc_rightBorder)').hide();jCtrB.children(':not(.jsc_leftBorder, .jsc_rightBorder)').hide();jProgress.css('width',(iWidth-4)+'px');jProgressB.css('width',(iWidth-4)+'px');jProgress.appendTo(jCtr).show();jProgressB.appendTo(jCtrB).show();iProgress=0;}
var incProgress=function(){iProgress++;if(iProgress==iProgressM){restoreNav();}
else{jProgress.css('width',((iWidth-2)*(1-iProgress/iProgressM))+'px');jProgressB.css('width',((iWidth-2)*(1-iProgress/iProgressM))+'px');}}
var restoreNav=function(){jLoading.hide().detach();jLoadingB.hide().detach();jProgress.hide().detach();jProgressB.hide().detach();jCtr.children().show().css('width','auto');jCtrB.children().show().css('width','auto');};this.resultCtr=function(){var iC=parseInt(oMeta.num);iPP=oMeta.pp;if(isNaN(iC))iC=this.jE.children().length;if(!iPP){this.initializeChildren();return;}
iSets=Math.ceil(iC/iPP);aUIDs[1]=[];var jChildren=this.jE.children().addClass('jsp_schedule').detach().each(function(){var iUid=$(this).getJSD('uid');if(iUid)aUIDs[1].push(iUid);});var jSelect=undefined;var bSel=that.jE.prev('select.jsc_resultCtr-Pages').length>0?true:false;if(bSel)jSelect=that.jE.prev('select.jsc_resultCtr-Pages');else jSelect=jQuery('<select />');jCtr=jQuery('<div />').addClass('jsc_resultCtr-Nav').insertBefore(this.jE).append('<img src="http://data.dci-se.de/img/resultCtr-bg_left.png"  alt="" class="jsc_leftBorder" />'+'<img src="http://data.dci-se.de/img/resultCtr-bg_right.png" alt="" class="jsc_rightBorder" />');jSelect.appendTo(jCtr).change(function(){var jAct=jQuery(this).children('option:selected');if(jAct.hasClass('jsp_ajax')){var iAct=parseInt(jAct.text());var sVal=jAct.attr('value');showNavLoader();jQuery.get(sVal.addGetParam('type',55),function(sData,sStatus){jCtr.find('> span > select > option:eq('+(iAct-1)+')').attr('value',iAct).removeClass('jsp_ajax');jCtrB.find('> span > select > option:eq('+(iAct-1)+')').attr('value',iAct).removeClass('jsp_ajax');aUIDs[iAct]=[];if(jQuery.browser.msie&&(jQuery.browser.version<9)&&(sData.indexOf('<!--WTS_RESCTR-->')>-1)){sData='<div>'+sData.split('<!--WTS_RESCTR-->')[1]+'</div>';}
ajSets[iAct-1]=jQuery(sData).find((that.jE.attr('id')?'#'+that.jE.attr('id'):'')+'.jso_resultCtr').children().addClass('jsp_schedule').each(function(){var iUid=$(this).getJSD('uid');if(iUid)aUIDs[iAct].push(iUid);});that.gotoPage(iAct);});}
else that.gotoPage(jQuery(this).val());this.blur();});for(var iI=0;iI<iSets;iI++){ajSets.push(iI>0?undefined:jChildren.slice(iI*iPP,(iI+1)*iPP));aInit.push(false);if(!bSel)jQuery('<option />').attr('value',iI+1).text(' '+(iI+1)+' ').appendTo(jSelect);}
jQuery('<img class="jsc_first" width="13" src="http://data.dci-se.de/img/navMenu-result_first.gif" style="cursor: pointer;" alt="&lt;">').click(function(){jSelect.val(jSelect.children('option:first').val()).change();return false;}).insertAfter(jSelect);jQuery('<img class="jsc_prev" width="13" src="http://data.dci-se.de/img/navMenu-result_prev.gif" style="cursor: pointer;" alt="&laquo;">').click(function(){jSelect.val(jSelect.children('option:eq('+(iSet-2)+')').val()).change();return false;}).insertAfter(jSelect);jQuery('<img class="jsc_last" width="13" src="http://data.dci-se.de/img/navMenu-result_last.gif" style="cursor: pointer;" alt="&lt;">').click(function(){jSelect.val(jSelect.children('option:last').val()).change();return false;}).insertBefore(jSelect);jQuery('<img class="jsc_next" width="13" src="http://data.dci-se.de/img/navMenu-result_next.gif" style="cursor: pointer;" alt="&raquo;">').click(function(){jSelect.val(jSelect.children('option:eq('+(iSet)+')').val()).change();return false;}).insertBefore(jSelect);jSelect.wrap('<span></span>').before('&nbsp;&nbsp;'+window.oL.resultCtr_page+' ').after(' '+window.oL.resultCtr_of+' '+iSets+'&nbsp;&nbsp;');iWidth=jCtr.width()+2;jCtr.css('width',iWidth+'px');jCtrB=this.jE.prev('.jsc_resultCtr-Nav').clone(true).insertAfter(this.jE);if(iC<=iPP){this.jE.prev('.jsc_resultCtr-Nav').hide();this.jE.next('.jsc_resultCtr-Nav').hide();}
window.aes.addScheduleEntry(function(){that.gotoPage(1);});}
this.getUIDs=function(){return aUIDs[iSet]?aUIDs[iSet]:[];}
this.gotoPage=function(iPage){iPage=parseInt(iPage);if((iPage>0)&&(iPage<=iSets)&&(iPage!=iSet)&&ajSets[iPage-1]){var aRtn=this.sendMessage('on_gotoPage',{'iCurr':iSet,'iPage':iPage,'aoResults':ajSets[iPage-1],'bInit':!aInit[iPage-1]});var aErr=new Array();for(var iI=0;iI<aRtn.length;iI++){if((typeof aRtn[iI]=='object')&&(aRtn[iI][0]=='error'))aErr.push(aRtn[iI][1]);else if((typeof aRtn[iI]=='boolean')&&(aRtn[iI]==false))aErr.push(false);}
if(aErr.length){this.sendMessage('error_gotoPage',{'iCurr':iCurr,'iPage':iPage,'aErr':aErr});return;}
$('html,body').animate({scrollTop:0},250);var iOld=iSet;iSet=iPage;that.jE.append(ajSets[iSet-1]);if(!aInit[iSet-1]){ajSets[iSet-1].css('visibility','hidden');createProgress(ajSets[iSet-1].length);ajSets[iSet-1].objInit(incProgress);that.sendMessage('before_initElements',{"elems":ajSets[iSet-1],"page":iSet});aInit[iSet-1]=true;this.initializeElements(ajSets[iSet-1]);ajSets[iSet-1].css({'visibility':'visible','display':'none'});if(ajSets[iOld-1])ajSets[iOld-1].fadeOut(250,function(){ajSets[iOld-1].detach();ajSets[iSet-1].show();});else ajSets[iSet-1].show();}
else{if(ajSets[iOld-1]){ajSets[iOld-1].fadeOut(125,function(){ajSets[iOld-1].detach();ajSets[iSet-1].fadeIn(125);});}
else ajSets[iSet-1].show();}
that.jE.prev('div.jsc_resultCtr-Nav').find('select').val(iSet);that.jE.next('div.jsc_resultCtr-Nav').find('select').val(iSet);}}}
window.jso['/FilterBox']=function(){var that=this;var oMeta=that.jE.metadata();this.FilterBox=function(){var sURL=location.href;var oQry=sURL.parseQuery();var sBaseUrl=sURL.replace('&reverse=true','').replace('?reverse=true','');that.jE.html('<ul class="jsc_menuBox" style="height: auto;"><li><h1><a href="'+sBaseUrl+'">'+oL.tools.sort_asc+'</a></h1></li><li><h1><a href="'+sBaseUrl.addGetParam('reverse','true')+'">'+oL.tools.sort_desc+'</a></h1></li></ul>');if(oQry.reverse==='true'){that.jE.find('> ul > li:last > h1 > a').addClass('active');}
else{that.jE.find('> ul > li:first > h1 > a').addClass('active');}}}
window.jso['/resultBar']=function(){var that=this;this.resultBar=function(){that.jE.addClass('jsc_resultBar');that.initializeNextChildren();if(jQuery('.jso_resultTitle').length){var aResTitles=jQuery('.jso_resultTitle').text().replace(/(\r\n|\n\r|\r|\n)/g,"\n\n").split("\n\n");that.jE.children('h1').text(aResTitles[aResTitles.length-1]);}
if(that.jE.nextAll('.jso_resultCtr:first').length){var iRes=that.jE.nextAll('.jso_resultCtr:first').metadata().num;if(iRes)that.jE.children('h1').text(that.jE.children('h1').text()+' ('+iRes+')');}}}
window.jso['/resultBar/SortBox']=function(){var that=this;var oMeta=that.jE.metadata();this.SortBox=function(){var sURL=location.href;var oQry=sURL.parseQuery();var sBaseUrl=sURL.replace('&reverse=true','').replace('?reverse=true','');that.jE.html('<ul><li><a class="jsc_asc" href="'+sBaseUrl+'">aufsteigend</a></li><li><a class="jsc_desc" href="'+sBaseUrl.addGetParam('reverse','true')+'">absteigend</a></li></ul>');if(oQry.reverse==='true'){that.jE.find('a.jsc_desc').addClass('active');}
else{that.jE.find('a.jsc_asc').addClass('active');}}}
window.jso['/selectResults']=function(){var that=this;var oMeta=that.jE.metadata();var oSelected={};var aIcons=[];var jSelAll=this.jE.children('input[name=select_all]');var aAllUIDs=undefined;var oResCtr=undefined;if(!oMeta.maxSel)oMeta.maxSel=15;this.getSelected=function(){var aSelected=[];for(var iUid in oSelected)if(oSelected[iUid]===true)aSelected.push(iUid);if((aSelected.length===0)&&that.getParams().ifNoneNone){return[];}
else if(aSelected.length===0){aAllUIDs=oResCtr?oResCtr.getUIDs():[];if(aAllUIDs&&aAllUIDs.length)aSelected=aAllUIDs;else{for(var iUid in oSelected)aSelected.push(iUid);}}
return aSelected;}
var updateCounter=function(){var sText=jSelAll.next('label').html();if(sText.substr(sText.length-1)===')'){var iSelected=0;for(var iTempUid in oSelected)if(oSelected[iTempUid]===true)iSelected++;jSelAll.next('label').html(sText.substr(0,sText.lastIndexOf(' ')+1)+iSelected+')');}
that.sendMessage('updateCounter',iSelected);}
this.selectResults=function(){if(oMeta.rel||oMeta.id){var jResCtr=jQuery('.'+oMeta.rel).parent('.jso_resultCtr');if(oMeta.id)jResCtr=jQuery('#'+oMeta.id);if(jResCtr.length){jResCtr.objInit(function(oParent){oResCtr=oParent;oParent.registerMessage('on_gotoPage',function(sMsg,oData){var bAll=true;for(var iI=0;iI<oData.aoResults.length;iI++){var iTempUid=jQuery(oData.aoResults[iI]).getJSD('uid');if(iTempUid&&(oSelected[iTempUid]!==true))bAll=false;}
jSelAll.attr('checked',bAll);});});}
var jObj=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/icons/cb_off.gif').css('cursor','pointer').attr('title',oL.icons.select);var oCb=function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();var iUid=oParent.getJSDs().uid;oSelected[iUid]=false;if(oObj){var jTmp=jObj.clone().click(function(){if(this.src=='http://data.dci-se.de/img/icons/cb_off.gif'){var iSelected=0;for(var iTempUid in oSelected)if(oSelected[iTempUid]===true)iSelected++;if(iSelected>=oMeta.maxSel){alert('Maximale Anzahl ('+oMeta.maxSel+') ausgewählt!');return;}
oSelected[iUid]=true;this.src='http://data.dci-se.de/img/icons/cb_on.gif';var bAll=true;for(var iI=0;iI<aIcons.length;iI++)if(aIcons[iI].is(':visible')){if(oSelected[aIcons[iI].data('iUid')]===false)bAll=false;}
if(bAll)jSelAll.attr('checked',true);}
else{oSelected[iUid]=false;this.src='http://data.dci-se.de/img/icons/cb_off.gif';jSelAll.attr('checked',false);}
updateCounter();return false;}).data('iUid',iUid);oObj.addElement(jTmp);aIcons.push(jTmp);}};if(oMeta.rel)jQuery('.'+oMeta.rel).objInit(oCb);else if(oMeta.id){window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(oCb);});});}
jSelAll.change(function(){if(this.checked==true){var iSelected=0;for(var iTempUid in oSelected)if(oSelected[iTempUid]===true)iSelected++;for(var iI=0;iI<aIcons.length;iI++){if(aIcons[iI].is(':visible')){if(iSelected>=oMeta.maxSel){alert('Maximale Anzahl ('+oMeta.maxSel+') ausgewählt. Es wurden nicht alle Einträge auf der Seite ausgewählt.');this.checked=false;break;}
aIcons[iI].attr('src','http://data.dci-se.de/img/icons/cb_on.gif');oSelected[aIcons[iI].data('iUid')]=true;iSelected++;}}}
else{for(var iI=0;iI<aIcons.length;iI++){if(aIcons[iI].is(':visible')){aIcons[iI].attr('src','http://data.dci-se.de/img/icons/cb_off.gif');oSelected[aIcons[iI].data('iUid')]=false;}}}
updateCounter();});}}}
window.jso['/defButton']=function(){var that=this;var sColor='';this.jImgLeft=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/defButton-left.gif');this.jImgRight=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/defButton-right.gif');this.initDefButton=function(bHideMouseover){that=this;this.jImgLeft.css({'left':'-3px'}).appendTo(this.jE);this.jImgRight.css({'right':'-3px'}).appendTo(this.jE);var sSrc=this.jImgRight.attr('src');if(!bHideMouseover){this.jE.mouseenter(function(){that.jImgRight.attr('src',sSrc.replace('.gif','_active.gif'));}).mouseleave(function(){that.jImgRight.attr('src',sSrc);});}
return this;}
this.defButton=function(){this.jE.addClass('jsc_defButton');this.initDefButton();}
this.defButtonBlink=function(){sColor=that.jE.css('color');for(var iI=0;iI<2;iI++){that.jE.animate({'color':'red'},200).animate({'color':sColor},50);}}}
window.jso['_actionButton']='/defButton,/Link';window.jso['/actionButton']=function(superClass){this.jImgLeft=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/actionButton-left.png');this.jImgRight=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/actionButton-right.png');var that=this;var oMeta=that.jE.metadata();this.actionButton=function(){var that=this;var sTitle=this.jE.attr('title');this.jE.attr('title','')
this.jE.click(function(){if(((that.jE.siblings('form').length>0)||oMeta.check_all)&&bChanges)
{return confirm(window.oL.form.confirmClose);}});this.jE.prepend('<img class="jsc_bullet"" src="http://data.dci-se.de/img/bullets/actions/'+(sTitle?sTitle:'default')+'.png" alt="" />');this.initDefButton(true).jE.addClass('jsc_actionButton');this.jImgLeft.css({'left':'-5px'});this.jImgRight.css({'right':'-5px'});if(oMeta.params){var oParams=that.parseParams();var sHref=that.jE.attr('href');for(var sParam in oParams){sHref=sHref.addGetParam(sParam,oParams[sParam]);}
that.jE.attr('href',sHref);}
that.jE.mouseenter(function(){that.mouseenter();});that.jE.mouseleave(function(){that.mouseleave();});this.initHover();}
this.initHover=function(){setTimeout(function(){var oImg=new Image();oImg.src='http://data.dci-se.de/img/actionButton-left_hover.png';var oImg2=new Image();oImg2.src='http://data.dci-se.de/img/actionButton-right_hover.png';var oImg3=new Image();oImg3.src='http://data.dci-se.de/img/actionButton-bg_x_hover.png';},1000);}
this.mouseenter=function(){this.jImgLeft.attr('src','http://data.dci-se.de/img/actionButton-left_hover.png');this.jImgRight.attr('src','http://data.dci-se.de/img/actionButton-right_hover.png');this.jE.css('background-image','url(http://data.dci-se.de/img/actionButton-bg_x_hover.png)');}
this.mouseleave=function(){this.jImgLeft.attr('src','http://data.dci-se.de/img/actionButton-left.png');this.jImgRight.attr('src','http://data.dci-se.de/img/actionButton-right.png');this.jE.css('background-image','url(http://data.dci-se.de/img/actionButton-bg_x.png)');}}
window.jso['/menuBox/selectBox/actionButton']=function(superClass){var that=this;this.actionButton=function(){superClass.actionButton.call(this);this.jE.click(function(){var oObj=that.jE.closest('.jso_selectBox').getObj();if(oObj){var aCats=oObj.getChecked();var oCfg=oObj.getCfg();document.location.href=oCfg.sBaseUrl+'&'+oCfg.sParam+'='+aCats.join(',');}
return false;});}}
window.jso['/IconBar']=function(){var that=this;this.IconBar=function(){window.aes.regAllReady(function(){if(that.jE.children().length){that.initIconBar();that.initializeNextChildren();that.jE.children('li').filter(function(){if(jQuery('.jsc_borderLeft, .jsc_borderRight',this).length)return false;return(jQuery('a',this).css('display')!=='none')&&(jQuery('img',this).css('display')!=='none');}).not(':last').addClass('jsc_sep').append('<span class="jsc_sep"></span>');}});}
this.initIconBar=function(){if(that.jE.children().length&&!that.jE.hasClass('jsc_IconBar')){that.jE.addClass('jsc_IconBar');if(!that.jE.find('.jsc_borderLeft').length)that.jE.prepend('<li><span class="jsc_borderLeft"></span></li>')
if(!that.jE.find('.jsc_borderRight').length)that.jE.append('<li><span class="jsc_borderRight"></span></li>');}}
this.addElement=function(jElem,bPrepend){jElem.wrap('<li></li>').parent()[bPrepend?'prependTo':'appendTo'](that.jE);that.initIconBar();that.initializeElements(jElem);}}
window.jso['/Close']=function(){var that=this;this.Close=function(){this.jE.css('cursor','pointer').click(function(){that.jE.closest('.jso_selectBox').getObj().callerObj().sendMessage('show');});}}
window.jso['/Phone']=function(){var that=this;var oMeta=that.jE.metadata();var CantDetect=((navigator.userAgent.indexOf('Safari')!=-1)||(navigator.userAgent.indexOf('Opera')!=-1));var activex=false;function skypeCheck(){if(CantDetect){return true;}else if(!activex){var skypeMime=navigator.mimeTypes["application/x-skype"];if(typeof(skypeMime)=="object")return true;else return false;}else{if(isSkypeInstalled())return true;}
return false;}
this.Phone=function(){this.jE.text('');if(oMeta.rel||oMeta.id){var jObj=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/icons/phone.gif').attr('title',oL.icons.phone);var oCb=function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();var that=this;if(oObj)oObj.addElement(jObj.clone().click(function(){alert(window.oL.phone+': '+jQuery(oParent.getXML()).find('.jsd_phone').text());}));}
if(oMeta.rel)jQuery('.'+oMeta.rel).objInit(oCb);else if(oMeta.id){window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(oCb);});});}}}}
window.jso['/eMail']=function(){var that=this;var oMeta=that.jE.metadata();this.eMail=function(){this.jE.text('');if(oMeta.rel||oMeta.id){var jObj=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/icons/mail.gif').attr('title',oL.icons.mail).wrap('<a href="" target="_blank"></a>').parent();var oCb=function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();if(oObj){oObj.addElement(jObj.clone().attr('href','mailto:'+oParent.getJSDs().email));}};if(oMeta.rel)jQuery('.'+oMeta.rel).objInit(oCb);else if(oMeta.id){window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(oCb);});});}}}}
window.jso['/showFormValue']=function(){var that=this;var oMeta=that.jE.metadata();this.showFormValue=function(){if(window.jso_form_data[oMeta.field])that.jE.after(window.jso_form_data[oMeta.field]).remove();}}
window.jso['/addWAiPreview']=function(){var that=this;var oMeta=that.jE.metadata();var aIcons=[];this.addWAiPreview=function(oParentMeta){if(oParentMeta){jQuery.extend(oMeta,oParentMeta);}
else this.jE.text('');var sUrl='';if(oMeta.id_cfg&&window.oCfg[oMeta.id_cfg])sUrl=window.oCfg[oMeta.id_cfg].NewsUrl;if((oMeta.rel||oMeta.id)&&sUrl){var jObj=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/icons/active_view.gif').css('cursor','pointer');var iWithWAi=0;var jParents=oMeta.rel;if(typeof oMeta.rel==='string')jParents=jQuery('.'+oMeta.rel);var oCb=function(oParent,oXML,oPre,aOverlays,iI){var iUid=oParent.getJSDs().wai_ownerid;var jTmp=null;if(oMeta.container){if(typeof oMeta.container==='string')jTmp=this.find(oMeta.container).data('ownerid',iUid);else jTmp=oMeta.container.data('ownerid',iUid);}
else{jTmp=jObj.clone().data('ownerid',iUid);if(jTmp){var oObj=this.find('.jso_IconBar:eq(0)').getObj();oObj.addElement(jTmp,true);jTmp.parent().hide();}}
if(jTmp){var jE=jTmp;var jXML=jQuery('data > Newsletter[OwnerID='+jE.data('ownerid')+']:first',oXML);if(jXML.length){var iSlide=iWithWAi++;jTmp.mouseenter(function(){oPre.showPreview(jXML,jE,function(){oPre.hidePreview();return WAiOverlayOld(iSlide,aOverlays[0],aOverlays[1]);});}).parent().fadeIn();var sSubj=jXML.attr('AnbieterName')+' - '+jXML.attr('Betreffzeile');var sLink=jXML.attr('Url');if(!sSubj)sSubj='';if(!sLink)sLink='';aOverlays[0].push(sLink);aOverlays[1].push(sSubj);}
else jTmp.parent().hide();}};var jResCtr=jQuery('#'+oMeta.id);var bLoaded=false;var oLoaded=null;jResCtr.objInit(function(oResCtr){oResCtr.registerMessage('before_initElements',function(sMsg,oData){if(!bLoaded)oLoaded=oData;});});WAiLoad(sUrl,function(oXML){var oPre=new WAiPreview({'maxWidth':400,'ratio':0.666,'displaySideways':!(oMeta.displaySideways===false)});var aOverlays=[[],[]];var iI=0;bLoaded=true;if(oLoaded)oLoaded.elems.objInit(function(oParent){oCb.call(this,oParent,oXML,oPre,aOverlays,iI++);});if(oMeta.rel)jParents.objInit(function(oParent){oCb.call(this,oParent,oXML,oPre,aOverlays,iI++);});else if(oMeta.id){jResCtr.objInit(function(oResCtr){oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(function(oParent){oCb.call(this,oParent,oXML,oPre,aOverlays,iI++);});});});}});}}}
window.jso['/Slides/slideContainer/Slide/addWAiPreview']=function(oSuper){var that=this;var oMeta=that.jE.metadata();this.addWAiPreview=function(){var oParentMeta={'rel':that.jE.closest('.jso_subtabBox'),'container':that.jE};if(!oParentMeta.rel.length)return;if(that.getParams().preview)oSuper.addWAiPreview(oParentMeta);if(that.jE.get(0).tagName.toLowerCase()=='img'){var iUid=oParentMeta.rel.getObj().getJSDs().wai_ownerid;that.jE.attr('src','http://data.dci-se.de/img/transparent.gif');var sUrl='';if(oMeta.id_cfg&&window.oCfg[oMeta.id_cfg])sUrl=window.oCfg[oMeta.id_cfg].NewsUrl;WAiLoad(sUrl,function(oXML){var updateHeight=function(){var oSlide=that.jE.closest('.jso_Slide').getObj();if(oSlide){oSlide.checkHeight();}};var jXML=jQuery('data > Newsletter[OwnerID='+iUid+']:first',oXML);var sPrev=jXML.attr('GrossVorschau');if(sPrev){that.jE.hide().attr('src',sPrev);if(that.jE[0].complete==true)that.jE.fadeIn('medium',updateHeight);else that.jE.load(function(){that.jE.fadeIn('medium',updateHeight);});}
else that.jE.slideUp('fast',updateHeight);});}
else if(that.jE.get(0).tagName.toLowerCase()=='a'){that.jE.click(function(){return false;});}}}
var aWAiOverlays=[[],[]];var oWAiPrev=null;window.jso['/createWAiPreview']=function(){var that=this;var oMeta=that.jE.metadata();if(!oWAiPrev)oWAiPrev=new WAiPreview({'maxWidth':400,'ratio':0.666,'displaySideways':!(oMeta.displaySideways===false)});this.createWAiPreview=function(){var oP=that.jE.closest('.jso_subtabBox').getObj();var iS=aWAiOverlays[0].length;var jXML=jQuery('<div />').attr({'AnbieterName':oP.getJSDs()['wai_anbietername'],'Betreffzeile':oP.getJSDs()['wai_title'],'KurzDatum':oP.getJSDs()['wai_shortdate'],'Url':oP.getJSDs()['wai_nlurl'].replace(/&amp;/g,'&'),'GrossVorschau':oP.getJSDs()['wai_bigpreview']});that.jE.mouseenter(function(){oWAiPrev.showPreview(jXML,that.jE,function(){oWAiPrev.hidePreview();return WAiOverlayOld(iS,aWAiOverlays[0],aWAiOverlays[1]);});});var sSubj=jXML.attr('AnbieterName')+' - '+jXML.attr('Betreffzeile');var sLink=jXML.attr('Url');if(!sSubj)sSubj='';if(!sLink)sLink='';aWAiOverlays[0].push(sLink);aWAiOverlays[1].push(sSubj);}}
window.jso['/Logger']=function(){var that=this;var oMeta=that.jE.metadata();if(oMeta.id_cfg&&window.oCfg[oMeta.id_cfg]){jQuery.extend(oMeta,window.oCfg[oMeta.id_cfg]);}
this.Logger=function(){if(!oMeta.actions)oMeta.actions={};var jResCtr=oMeta.id?jQuery('#'+oMeta.id):null;for(var sAction in oMeta.actions){(function(){var iP=parseInt(oMeta.actions[sAction][1]);var sO=oMeta.actions[sAction][2]?oMeta.actions[sAction][2]:'';var sA=sAction;var sP=oMeta.actions[sAction][0];var initElem=function(oParent){var oObj=oParent;var iUid=0;var bDone=false;if(sO){iUid=oParent.jE.closest(sP).getObj().getJSDs().uid;}
else iUid=oParent.getJSDs().uid;if(oObj){if(iP===-2){oObj.jE.click(function(){jQuery.post(oMeta.api,{'a':sA,'v':iUid});});}
else{if(oObj.getCurrPage&&((oObj.getCurrPage()===iP)||(iP===-1))){jQuery.post(oMeta.api,{'a':sA,'v':iUid,'d':oObj.getCurrPage()});}
oObj.registerMessage('on_gotoSlide',function(sMsg,oData){bDone=true;if((oData.iPage===iP)||(iP===-1)){jQuery.post(oMeta.api,{'a':sA,'v':iUid,'d':oData.iPage});}});}}};if(!oMeta.id||!jResCtr.length){if(iP===-2){jQuery(sP).objInit(function(oObj){var iUid=oObj.getJSDs().uid;if(sO)oObj.jE.find(sO).click(function(){jQuery.post(oMeta.api,{'a':sA,'v':iUid});});else oObj.jE.click(function(){jQuery.post(oMeta.api,{'a':sA,'v':iUid});});});}
else if(sO){jQuery(sP).objInit(function(oParent){this.find(sO).objInit(initElem);});}
else{jQuery(sP).objInit(initElem);}}
else{jResCtr.objInit(function(oResCtr){oResCtr.registerMessage('before_initElements',function(sMsg,oData){setTimeout(function(){if(iP===-2){oData.elems.objInit(function(oObj){var iUid=oObj.getJSDs().uid;if(sO)oObj.jE.find(sO).click(function(){jQuery.post(oMeta.api,{'a':sA,'v':iUid});});else oObj.jE.click(function(){jQuery.post(oMeta.api,{'a':sA,'v':iUid});});});}
else if(sO){oData.elems.objInit(function(oParent){this.find(sO).objInit(initElem);});}
else{oData.elems.objInit(initElem);}},100);});});}})();}}}
window.jso['/ToolBar/showSub']=function(){var that=this;var jShow=this.jE.children('div');var jImg=this.jE.children(':header, p, img, a').children('img');var oTime=null;var bInit=false;this.showSub=function(){this.jE.children(':header, p, img, a').css('cursor','pointer').click(function(){if(!bInit){that.initializeNextChildren();bInit=true;}
if(jImg.attr('src')==='http://data.dci-se.de/img/bullets/down.gif'){jShow.fadeIn('fast');jImg.attr('src','http://data.dci-se.de/img/bullets/up.gif');}
else{jShow.fadeOut('fast');jImg.attr('src','http://data.dci-se.de/img/bullets/down.gif');}
return false;});this.jE.mouseleave(function(){oTime=setTimeout(function(){oTime=null;jShow.fadeOut('slow');jImg.attr('src','http://data.dci-se.de/img/bullets/down.gif');},1000);}).mouseenter(function(){if(oTime){clearTimeout(oTime);oTime=null;}
else if(jShow.filter(':animated').length){jShow.stop(true).fadeTo('fast',1);jImg.attr('src','http://data.dci-se.de/img/bullets/up.gif');}});}}
window.jso['_ToolBar']='/Box'
window.jso['/ToolBar']=function(){var that=this;this.ToolBar=function(){this.initializeNextChildren();this.jE.addClass('jsc_ToolBar');this.initBox(undefined,'ToolBar');}}
window.jso['/ToolBar/Sort']=function(){var that=this;this.Sort=function(){that.jE.addClass('jsc_Sort');that.jE.change(this.execSort);}
this.execSort=function(){var aVal=that.jE.val().split(',');if(aVal[0].length){var jElems=new Object();var aElems=new Array();var iI=0;var numSort=function(a,b){a=parseFloat(a.substr(0,a.indexOf('__-__')));b=parseFloat(b.substr(0,b.indexOf('__-__')));return a-b;}
that.callerObj().jE.nextAll('div.jso_subtabBox').each(function(){var jE=jQuery(this);var sVal=jE.getObj().getJSDs()[aVal[0]];if(aVal[2]=='num')sVal=parseFloat(sVal);jElems[sVal+'__-__'+(++iI)]=jE;aElems.push(sVal+'__-__'+iI);});if(aVal[2]=='num')aElems.sort(numSort);else aElems.sort();if(aVal[1]!='desc')aElems.reverse();for(var iI in aElems)that.callerObj().jE.after(jElems[aElems[iI]]);}}}
window.jso['/ToolBar/Filter']=function(){var that=this;var bRadios=false;var iShown=0;var sNot=this.getTpl('','',true);var jNot=sNot?jQuery(sNot):undefined;this.Filter=function(){that.jE.addClass('jsc_Filter');bRadios=that.jE.children('input').length?true:false;if(bRadios){that.jE.children('input:first').click();that.jE.children('input').click(this.execFilter);}
else that.jE.change(this.execFilter);if(jNot){this.initializeElements(jNot);that.callerObj().jE.after(jNot);}
that.callerObj().parentReady(function(){var jCurr=that.jE.children('input:first');that.execFilter('plain');while((iShown==0)&&jCurr.length){jCurr=jCurr.attr('checked','').nextAll('input:first').attr('checked','checked');that.execFilter('plain');}
if(iShown==0){that.jE.children('input:first').attr('checked','checked');that.execFilter('plain');}});}
this.execFilter=function(sType){if(typeof sType!='string')sType='slide';if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8))sType='plain';if(jNot)jNot.hide();var sMasterVal=undefined;var sName=undefined;if(that.jE.children('input').length){sMasterVal=that.jE.children('input:checked').attr('value');sName=that.jE.children('input:first').attr('name');}
else{sMasterVal=that.jE.val();sName=that.jE.attr('name');}
if(!sMasterVal)sMasterVal='';if(sMasterVal.length){iShown=0;sMasterVal=parseInt(sMasterVal);that.callerObj().jE.nextAll('div.jso_subtabBox').find('> div.jsc_Box-Inner > div.jso_slideContainer > div.jso_Slide:eq(1) > div.jso_verttabBox > div.jso_slideContainer > div.jso_Slide').each(function(){var jE=jQuery(this);var oP=jE.closest('div.jso_subtabBox').getObj();var oParams=jE.getObj().getJSDs();var sVal=oParams[sName]?parseInt(oParams[sName]):parseInt(oP.getJSDs()[sName]);var oFilter=oP.jE.data('Filter');if(!oFilter)oFilter=new Object();oFilter[sName]=(sMasterVal==sVal)?true:false;var bShow=true;for(var sI in oFilter)if(oFilter[sI]===false)bShow=false;if(bShow){oP.show({'sType':sType});iShown++;}
else oP.hide({'sType':sType});oP.jE.data('Filter',oFilter);});that.callerObj().jE.find('.jso_Filter_Show').text(iShown);that.sendMessage('filter',sMasterVal);if(iShown==0)if(jNot)((sType=='plain')?jNot.show():jNot.slideDown());}}}
window.jso['/diagMessage']=function(){var that=this;var oMeta=that.jE.metadata();this.diagMessage=function(){var sMsg=oL['diagMessages'][oMeta.msg];var sListenTo=oMeta.getListener;var oGet=location.href.parseQuery();if(window.get&&(typeof window.get==='object'))oGet=window.get;if(oGet[sListenTo]&&oGet[sListenTo]==0&&(location.href.substr(location.href.length-(sListenTo.length+2))==sListenTo+'=0'))sMsg.showDiag(0);}}
window.jso['/Link']=function(){var that=this;var oMeta=that.jE.metadata();this.parseParams=function(){var oGet=location.href.parseQuery();if(window.get&&(typeof window.get==='object')){oGet=window.get;}
var oParams={};for(var sParam in oMeta.params){if(!jQuery.isArray(oMeta.params[sParam])){oParams[sParam]=oMeta.params[sParam];}
else if(jQuery.isArray(oMeta.params[sParam])){if(oMeta.params[sParam][0]==='get'){if(oGet[oMeta.params[sParam][1]])oParams[sParam]=oGet[oMeta.params[sParam][1]];}
else if(oMeta.params[sParam][0]==='ref'){var aRel=oMeta.params[sParam][1].split('.');var oObj=jQuery('#'+aRel[0]).getObj();if(oObj){aRel=oObj[aRel[1]]();if(jQuery.isArray(aRel)&&(aRel.length>0)){oParams[sParam]=aRel.join(',');}
else if(!jQuery.isArray(aRel)&&aRel)oParams[sParam]=aRel;if(oMeta.params[sParam][2]===true){var oLabel=that.jE.children().length?that.jE.children():that.jE;var sOrg=oLabel.text();oObj.registerMessage('updateCounter',function(sMsg,iCount){oLabel.text(sOrg+' ('+iCount+')');});}}}}}
return oParams;}
this.Link=function(){if(oMeta.base_url){window.aes.addScheduleEntry(function(){that.parseParams();});this.jE.die('click').click(function(){var oParams=that.parseParams();var sHref=oMeta.base_url;var sSep=sHref.indexOf('?')>-1?'&':'?';for(var sParam in oParams){sHref+=sSep+sParam+'='+oParams[sParam];sSep='&';}
if(oMeta.append){if((oMeta.append.substr(0,1)=='&')&&(sHref.indexOf('?')===-1)){sHref+='?'+oMeta.append.substr(1);}
else sHref+=oMeta.append;}
that.jE.attr('href',sHref);if(oMeta.click){var aRel=oMeta.click.split('.');var oObj=jQuery('#'+aRel[0]).getObj();if(oObj&&!oObj[aRel[1]](oParams))return false;}});}}}
window.jso['/goTo']=function(){var that=this;this.goTo=function(){that.jE.addClass('jsc_goTo');that.jE.change(function(){if(that.jE.parent('form').length&&!that.jE.siblings().length){that.jE.parent('form').submit();}
else if(that.jE.val()){document.location.href=that.jE.val();that.jE.children('option:first').attr('selected','selected');}});}}
window.jso['/Box']=function(){var that=this;var iOrgW=undefined;var oT=undefined;var oParams=undefined;var zIndex=-1;this.Box=function(){oParams=this.getParams();if(oParams['parseJSDs'])this.parseJSDs(this.getTplPath('Inner'));else if(oParams['next']){this.initializeNextChildren();}
else this.initializeChildren();this.initBox();}
this.initBox=function(oAltParams,sContext){oParams=this.getParams();var iInnerHeight='';if(!sContext)sContext='';var oTpl=this.getTpl(sContext,'Box');if(!oTpl)return;if(this.jE.children().length){var oTmp=document.createElement('span');var oChildren=this.jE.children().get();for(var iI in oChildren)oTmp.appendChild(oChildren[iI]);this.jE.html(oTpl,{});for(var iI in oChildren)this.jE.find('.jst_Box').get(0).appendChild(oChildren[iI]);this.jE.addClass('jsc_Box');}
else this.jE.html(oTpl,{});if(oParams['noShadow']||(oAltParams&&oAltParams['noShadow'])){this.jE.css('padding-right','0').children('.jsc_Shadow_Top_Right, .jsc_Shadow_Bottom_Right, .jsc_Shadow_Bottom_Left, .jsc_Shadow_Right, .jsc_Shadow_Bottom').css('display','none');}
else{this.jE.css('padding-right','7px');var iInnerHeight=this.jE.children('.jsc_Box-Inner').height();if(!iInnerHeight&&!this.jE.children('.jsc_Box-Inner:visible').length){this.jE.show();iInnerHeight=this.jE.children('.jsc_Box-Inner').height();if(!iInnerHeight&&!this.jE.closest('.jsc_Box-Inner:visible').length){var jE=this.jE.parent().closest('.jso_selectBox').show();iInnerHeight=this.jE.children('.jsc_Box-Inner').height();jE.hide();}
this.jE.hide();}}
if(oParams['leftShadow']||(oAltParams&&oAltParams['leftShadow'])){this.jE.css('padding-left','6px').children('.jsc_Shadow_Left').css({'display':'block','height':iInnerHeight+'px'});this.jE.children('.jsc_Shadow_Bottom_Left').css('left','6px');}
zIndex=parseInt(this.jE.css('z-index'));if(!zIndex||(zIndex=='auto')||isNaN(zIndex))zIndex=0;}
this.hide=function(oAnimation){if(!oAnimation)oAnimation={};if(oAnimation.sType=='special_move_yeah'){if(!oT)oT=setTimeout(function(){that.jE.stop(true).css('z-index',(zIndex+20)).fadeOut(650);},200);}
else if(oAnimation.sType=='slide'){if(this.jE.filter(':visible').length)this.jE.slideUp();}
else if(oAnimation.sType=='plain'){if(this.jE.filter(':visible').length)this.jE.hide();}
else{this.jE.stop(true,true).fadeOut();}}
this.show=function(oAnimation){if(!oAnimation)oAnimation={};if(oAnimation.sType=='special_move_yeah'){if(oT){clearTimeout(oT);oT=undefined;}
if((!that.jE.filter(':visible').length)||(that.jE.css('opacity')<1)){if(!iOrgW)iOrgW=this.jE.show().children('div.jsc_Box-Inner').width();var sO=this.jE.css('overflow');if(!sO)sO='visible';if(!iOrgW)iOrgW=215;this.jE.stop(true).show().css({'opacity':1,'z-index':(zIndex+22),'overflow':'hidden'}).children('div.jsc_Box-Inner').stop(true).css({'width':0,'background-color':'#e5e5e5'}).animate({'width':iOrgW+'px','backgroundColor':'#ffffff'},400,function(){that.jE.css({'z-index':(zIndex+21),'overflow':sO});});}}
else if(oAnimation.sType=='slide'){if(!this.jE.filter(':visible').length)this.jE.slideDown();}
else if(oAnimation.sType=='plain'){if(!this.jE.filter(':visible').length)this.jE.show();}
else{this.jE.stop(true,true).fadeIn();}}
return this;}
window.jso['*/menuBox']=true;window.jso['/menuBox']=function(){var that=this;var sCurr='';var oMeta=this.jE.metadata();var oTime=null;var oNoSubTime=null;var jSubs=undefined;var oDelayTimer=null;this.getCurrTitle=function(){return sCurr;}
this.getCfg=function(){return{sParam:oMeta.param,sBaseUrl:oMeta.base_url};}
this.menuBox=function(){if(location.hash==='#speed')console.time('menuBox');jSubs=this.jE.addClass('jsc_menuBox').find('> li > *:not(.jso_selectBox) > a, > li > ul > li > *:not(.jso_selectBox) > a');jSubs.not('.jsc_noSub').each(function(){jQuery(this).parent().next('.jso_selectBox').hide();}).click(function(){var jE=jQuery(this);var oObj=jE.data('obj_show');if(typeof oObj=='undefined'){var jN=jE.parent().next('.jso_selectBox');if(jN.length){sCurr=jE.text();oObj=that.initializeElements(jN);if(oObj){oObj=oObj[0];jE.data('obj_show',oObj);}
else{jE.data('obj_show',null);}}}
jSubs.removeClass('active');if(oObj){jE.addClass('active');that.sendMessage('show',oObj);}
else that.sendMessage('show');clearTimeout(oNoSubTime);oNoSubTime=null;return false;});jSubs.mouseenter(function(){if(jQuery(this).hasClass('active'))return;oNoSubTime=setTimeout(function(){that.sendMessage('show');},250);}).mouseleave(function(){clearTimeout(oNoSubTime);oNoSubTime=null;});this.jE.parent().mouseleave(function(){if(oTime){clearTimeout(oTime);oTime=null;}
oTime=setTimeout(function(){jSubs.removeClass('active');that.sendMessage('show');},1000);}).mouseenter(function(){if(oTime){clearTimeout(oTime);oTime=null;}});this.registerMessage('show',function(sMsg,oData){if(oData.jE&&that.jE.siblings('.jso_menuBox').length)that.jE.siblings('.jso_menuBox').getObj().sendMessage('show',{});if(!oData.jE)jSubs.removeClass('active');});if(location.hash==='#speed')console.timeEnd('menuBox');}
return this;}
window.jso['_selectBox']='/Box';window.jso['/selectBox']=function(superClass){var that=this;var sTitle='';var oParams=this.getParams();var oCfg=that.jE.closest('.jso_menuBox').getObj().getCfg();var oLinks=undefined;var bInit=false;this.jE.addClass('jsc_selectBox');this.getCfg=function(){return oCfg;}
var msgShow=function(sMsg,oData){if(oData===that){if(!bInit)that.initSelectBox();for(var iI=0;iI<oLinks.length;iI++){oLinks[iI].jE.removeClass('active');}
that.show({'sType':'fade'});}
else{that.sendMessage('show');that.hide({'sType':'fade'});}}
this.selectBox=function(){that=this;this.callerObj().registerMessage('show',msgShow);sTitle=this.callerObj().getCurrTitle();if(!oCfg.sParam)oCfg.sParam=oParams.notMultiple?'category':'categories';if(!oCfg.sBaseUrl)oCfg.sBaseUrl=that.jE.find('a:first').attr('href');};this.initSelectBox=function(){if(bInit)return;bInit=true;var oTpl=new Object();var iId=this.getId();oTpl['title']=sTitle;that.jE.children('li').each(function(){var jE=jQuery(this);var oP=new Object();var jL=jE.children('a');var iParam=-1;var sHref='';if(sHref.indexOf('?')>0){try{iParam=sHref.parseQuery()[oCfg.sParam];}
catch(E){}
if(iParam===undefined)iParam=-1;}
jE.addClass("{ 'title': '"+jL.text().replace(/'/g,"\\'")+"', 'href': '"+jL.attr('href')+"', 'class': '"+jL.attr('class')+"', 'param': "+iParam+", '_obj_id': "+iId+" }");jL.remove();});oTpl['items']=this.jE.html();var sHtml=this.parseTpl(oTpl,this.getTplPath(oParams.notMultiple?'':'Multiple'));this.replaceTag('div').jE.html(sHtml);this.initializeNextChildren();oLinks=this.findObjs('selectItem');for(var iI=0;iI<oLinks.length;iI++){}}
this.getChecked=function(){if(!bInit)that.initSelectBox();var aChkd=new Array();for(var iI=0;iI<oLinks.length;iI++){if(oLinks[iI].jE.children('input[type=checkbox]').filter(':checked').length)aChkd.push(oLinks[iI].jE.children('input[type=checkbox]').val());}
return aChkd;}}
window.jso['/menuBox/selectBox/selectItem']=function(superClass){var that=this;var oTimer=null;this.getCurrTitle=function(){return this.sCurr;}
this.sCurr='';this.selectItem=function(){this.jE.addClass('jsc_selectItem').children('a.jsc_noSub').attr('title',this.jE.children('a').text());this.jE.children('a:not(.jsc_noSub)').click(function(){var jE=jQuery(this);var oObj=jE.data('obj_show');that.jE.siblings('li').removeClass('active');if(oObj){that.callerObj().sendMessage('show',oObj);that.jE.addClass('active');}
else that.callerObj().sendMessage('show');clearTimeout(oTimer);oTimer=null;this.blur();return false;});this.jE.children('a').mouseenter(function(){if(jQuery(this).parent().hasClass('active'))return;oTimer=setTimeout(function(){that.callerObj().sendMessage('show');},250);}).mouseleave(function(){clearTimeout(oTimer);oTimer=null;});if(this.jE.children('ul').length){that.sCurr=this.jE.children('a').text();oObj=that.initializeElements(this.jE.children('ul'));if(oObj){oObj=oObj[0];this.jE.children('a').data('obj_show',oObj);}
else{this.jE.children('a').data('obj_show',null);}}
this.jE.children('a').html(this.jE.children('a').html().replace('/',' / '));this.handleMessage(this.callerObj(),'show');}}
window.jso['/navMenu']=function(){var that=this;var oP=undefined;this.setActive=function(sMsg,iLink){that.jE.find('a').removeClass('active').filter(':eq('+(iLink-1)+')').addClass('active');}
this.navMenu=function(){this.initNavMenu();}
this.setAdditionalElem=function(jElem,bBefore){var that=this;this.parentReady(function(){if(bBefore)jElem.parent().prependTo(that.jE);else jElem.parent().appendTo(that.jE);});jElem.click(function(){this.blur();that.onAdditionalGoto(oP,this);return false;});}
this.getNavElement=function(iI,iMax,oC){var jElem=jQuery(document.createElement('a')).appendTo(jQuery(document.createElement('li')).appendTo(that.jE)).attr('href','#').html(oC.aSlides[iI]);return jElem;}
this.onGoto=function(oP,oLink){oP.gotoSlide(jQuery.data(oLink,'page'));}
this.initNavMenu=function(){var that=this;oP=this.parentObj();if(!oP)oP=this.callerObj();oP.registerMessage('show',this.setActive);this.parentReady(function(){var oC=oP.getContainer();var iMax=oP.getPageCount();for(var iI=1;iI<=iMax;iI++){jQuery.data(that.getNavElement(iI,iMax,oC).click(function(){this.blur();that.onGoto(oP,this);return false;}).get(0),'page',iI);}});}}
window.jso['*/subtabBox']=true;window.jso['_subtabBox']='/Box,/Slides';window.jso['/subtabBox']=function(){var that=this;var bDelayed=false;var jPrev=null;var oParams=this.getParams();var sContext='';this.subtabBox=function(){var iP=this.jE.index('.jso_subtabBox');if(oParams.schedule){bDelayed=true;this.jE.addClass('jsc_subtabBox').css('opacity',0.25);window.aes.addScheduleEntry(this.initSubtabBox);return false;}
else{this.jE.addClass('jsc_subtabBox');this.initSubtabBox();}}
this.initSubtabBox=function(){if(bDelayed){if(window.bAni)that.jE.height('auto').animate({'opacity':1},'medium',function(){that.jE.css('filter','');});else that.jE.height('auto').css('opacity',1).css('filter','');}
if(oParams.inContext&&that.jE.attr('title').length){sContext=that.jE.attr('title');that.jE.attr('title','');}
that.parseJSDs(that.getTplPath(sContext));that.jE.children('.jso_slideContainer').addClass('jsp_fade').addClass('jsp_varHeight');that.initializeNextChildren();var oBoxParams=new Object();oBoxParams['noShadow']=true;if(that.getContainer())that.initSlides();if(that.jE.hasClass('wtsContentBoxWrapper'))that.initBox(oBoxParams,'NEW');else
that.initBox(oBoxParams);if(bDelayed)that.loaded();}
return this;}
window.jso['/subtabBox/navMenu']=function(){var that=this;var iC=-1;var oParams=this.getParams();this.setActive=function(sMsg,iLink){if(iC>1)that.jE.find('a').removeClass('active').filter(':eq('+(iLink-1)+')').addClass('active');}
this.getNavElement=function(iI,iMax,oC){var jElem=jQuery(document.createElement('a')).appendTo(jQuery(document.createElement('li')).appendTo(this.jE)).attr('href','#').html(''+oC.aSlides[iI]);if((jQuery.trim(oC.oSlides[iI-1].jE.text())=='')&&(iI>1)&&!oParams.dontHide){that.callerObj().setHidden(iI);jElem.hide();}
if(iC==-1)iC=iMax;return jElem;}
this.onGoto=function(oP,oLink){oP.gotoSlide(jQuery(oLink).hasClass('active')?1:jQuery.data(oLink,'page'));}
this.navMenu=function(){var sP=this.sPath;var sO=this.sObjPath;this.jE.addClass('jsc_navMenu');this.initNavMenu();this.parentReady(function(){that.jE.children('li').filter(function(){return jQuery('a',this).css('display')!=='none';}).not(':last').addClass('jsc_sep').append('<span class="jsc_sep"></span>');that.jE.prepend('<li><span class="jsc_borderLeft"></span></li>');that.jE.append('<li><span class="jsc_borderRight""></span></li>');});}}
window.jso['_verttabBox']='/Slides';window.jso['/Slides/slideContainer/Slide/verttabBox']='_';window.jso['/Slides/slideContainer/Page/verttabBox']='_';window.jso['/verttabBox']=function(){var that=this;var iMin=-1;this.setMinHeight=function(iMinHeight){}
this.getMinHeight=function(){var bHidden=that.jE.parent(':hidden').length;if(bHidden)that.jE.parent().show();var iH=that.jE.children('.jso_navMenu, .jso_treeMenu').outerHeight(true)-2;if(bHidden)that.jE.parent().hide();return(iH>iMin)&&(iMin!=-1)?iMin:iH;}
this.verttabBox=function(){this.jE.addClass('jsc_verttabBox').children('.jso_slideContainer').addClass('jsp_fade jsp_varHeight');var sContext='';if(this.getParams().inContext&&this.jE.attr('title').length){sContext=this.jE.attr('title');this.jE.attr('title','');}
this.parseJSDs(this.getTplPath(sContext));this.initializeChildren();if(this.getContainer())this.initSlides();}
return this;}
window.jso['/Form/verttabBox/navMenu']='/verttabBox/navMenu';window.jso['/verttabBox/navMenu']=function(){var that=this;this.getNavElement=function(iI,iMax,oC){var jElem=jQuery(document.createElement('a')).appendTo(that.jE).attr('href','#').html(oC.aSlides[iI]);if(jQuery.trim(oC.oSlides[iI-1].jE.text())==''){that.callerObj().setHidden(iI);jElem.hide();}
return jElem;}
this.navMenu=function(){var sP=this.sPath;var sO=this.sObjPath;this.parentReady(function(){var oC=that.callerObj().getContainer();var oSlides=oC.oSlides;for(var iI=0;iI<oSlides.length;iI++){(function(){var iSlide=iI;oSlides[iI].registerMessage('valid',function(sMsg,oData){that.valid(sMsg,oData,iSlide);});})();}
that.callerObj().registerMessage('setHidden',function(sMsg,oData){that.jE.children('a:eq('+(oData-1)+')').hide();});});this.initNavMenu();}
this.valid=function(sMsg,oData,iI){if(!oData.bValid){that.jE.children('a:eq('+(iI)+')').css('color','red');}
else that.jE.children('a:eq('+(iI)+')').css('color','');}}
window.jso['/treeMenu']=function(){var that=this;var oP=undefined;var jMenu=jQuery('<ul />');this.setActive=function(sMsg,iLink){that.jE.find('a').removeClass('active').filter('.jsc_Slide_'+iLink).addClass('active');}
this.treeMenu=function(){this.initTreeMenu();}
this.getNavElement=function(iI,iMax,oC){if(oC.oSlides[iI-1].jE.prev('.jso_PageTitle').length){var oMeta=oC.oSlides[iI-1].jE.prev('.jso_PageTitle').metadata();var bIns=true;var jElem=jQuery(document.createElement('a')).attr({'href':'#',id:'treeMenu_'+that.getId()+'_'+oMeta.uid}).html(oC.aSlides[iI]).addClass('jsc_Slide_'+iI);var jSpan=jQuery('#treeMenu_'+that.getId()+'_'+oMeta.uid);jElem.click(function(){this.blur();oP.gotoSlide(iI);return false;});if(jSpan.length){jSpan.replaceWith(jElem);}
else{jIns=jElem.wrap('<li />').parent();for(var iUid in oMeta.rootline){var jParent=jQuery('#treeMenu_'+that.getId()+'_'+iUid);if(jParent.length){bIns=false;if(!jParent.next('ul').length)jParent.after('<ul />');jParent.next('ul').append(jIns);break;}
else{jIns=jIns.wrap('<ul />').parent().wrap('<li />').parent();jQuery('<span />').attr('id','treeMenu_'+that.getId()+'_'+iUid).html(oMeta.rootline[iUid]).prependTo(jIns);}}
if(bIns)jMenu.append(jIns);}
if(!oC.oSlides[iI-1].getParams().ajax){var iJ=0;var oJ=oC.oSlides[iI-1].getJSDs();for(var sI in oJ)if(sI.substr(0,1)!='_')iJ++;if(jQuery('#jst #jst_'+oC.oSlides[iI-1].oMeta.tpl+' .jso_ajaxContent').length)iJ++;if(iJ==0){oP.setHidden(iI);jElem.unbind('click').click(function(){jQuery(this).blur();return false;}).addClass('inactive');oMeta.active=0;}}
if(oMeta.active==1){oP.setInitialPage(iI);}}}
this.onGoto=function(oP,oLink){oP.gotoSlide(jQuery.data(oLink,'page'));}
this.initTreeMenu=function(){that.jE.addClass('jsc_treeMenu');oP=this.parentObj();oP.registerMessage('show',this.setActive);this.parentReady(function(){var oC=oP.getContainer();var iMax=oP.getPageCount();that.jE.html(jMenu);for(var iI=1;iI<=iMax;iI++){that.getNavElement(iI,iMax,oC);}
jMenu.find('li > ul').parent('li').addClass('jsc_hasSub');jMenu.find('li:last-child').addClass('jsc_isLast');});setTimeout(function(){that.jE.css('bottom',0);},250);}}
window.jso['/PageTitle']=function(){var that=this;this.getTitle=function(){return that.jE.text();}
this.PageTitle=function(){that.jE.css('display','none');}}
window.jso['_Page']='/Box,/Slides/slideContainer/Slide';window.jso['/Page']=function(){var that=this;var oParams=this.getParams();this.Page=function(){if(oParams['parseJSDs'])this.parseJSDs(this.getTplPath('Inner'));else if(oParams['all'])this.initializeAllChildren();else if(oParams['next'])this.initializeNextChildren();else this.initializeChildren();this.initBox();}}
window.jso['/Slides/slideContainer/Page']=function(){var that=this;var oParams=this.getParams();this.Page=function(){if(that.jE.parent('.jso_slideContainer').length)this.initSlide(true);if(!oParams.delay){if(oParams['parseJSDs'])this.parseJSDs(this.getTplPath('Inner'));else if(oParams['all'])this.initializeAllChildren();else if(oParams['next'])this.initializeNextChildren();else this.initializeChildren();}}}
window.jso['*/Pages']=true;window.jso['_Pages']='/Box,/Slides';window.jso['/Pages']=function(){var that=this;var oParams=this.getParams();this.Pages=function(){this.jE.addClass('jsc_Pages');this.initPages();}
this.initPages=function(){var sContext='';if(that.jE.attr('data-context')&&that.jE.attr('data-context').length){sContext=that.jE.attr('data-context');that.jE.attr('data-context','');}
var sTplPath=that.getTplPath(sContext);if(sTplPath)that.parseJSDs(sTplPath);that.jE.children('.jso_slideContainer').addClass('jsp_fade').addClass('jsp_varHeight');that.initializeNextChildren();if(that.getContainer())that.initSlides();that.initBox({'noShadow':true},sContext);}
return this;}
if(!window.jso)window.jso=new Object();window.jso['/Form/Slides']='_';window.jso['/Slides']=function(){var iCount=-1;var iCurr=0;var oContainer=null;var that=this;var iAutoSlide=9000;var oParams=this.getParams();var iInitPage=undefined;var aHidden=new Array();this.setHidden=function(iPage){aHidden[iPage]=true;that.sendMessage('setHidden',iPage);var iHidden=0;for(var iI=0;iI<aHidden.length;iI++)if(aHidden[iI]===true)iHidden++;if(iHidden===iCount){var iAdd=0;if(this.getMinHeight)iAdd=this.getMinHeight();if(iAdd>0)oContainer.setHeightRelative(iAdd-oContainer.jE.outerHeight(true));else oContainer.setHeightRelative(-1*oContainer.jE.outerHeight(true)).jE.fadeOut();}
else if(iPage===iCurr)that.gotoSlide(1);}
this.setPageCount=function(iCountIn){iCount=iCountIn;}
this.getPageCount=function(){return iCount;}
this.getVisiblePageCount=function(){var iHidden=0;for(var iI=0;iI<aHidden.length;iI++)if(aHidden[iI]===true)iHidden++;return iCount-iHidden;}
this.getCurrPage=function(){return iCurr;}
this.setContainer=function(oContainerIn){oContainer=oContainerIn;}
this.getContainer=function(){return oContainer;}
this.initAutoSlide=function(){var oTimer=undefined;var bIn=false;var bGo=false;var bRes=false;that.jE.mouseenter(function(){bIn=true;});that.registerMessage('show',function(){bRes=true;bGo=false;if(oTimer){clearTimeout(oTimer);oTimer=undefined;}});that.jE.mouseleave(function(){bIn=false;if(bRes){if(oTimer)clearTimeout(oTimer);oTimer=setTimeout(autoSlide,iAutoSlide);}
else if(bGo){bGo=false;autoSlide();}
bRes=false;});var autoSlide=function(){if(!bIn){that.nextSlide(true);if(oTimer)clearTimeout(oTimer);oTimer=setTimeout(autoSlide,iAutoSlide);bRes=false;}
else{bGo=true;if(oTimer){clearTimeout(oTimer);oTimer=undefined;}}}
oTimer=setTimeout(autoSlide,iAutoSlide);}
this.gotoSlide=function(iPage){var aRtn=this.sendMessage('on_gotoSlide',{'iCurr':iCurr,'iPage':iPage});var aErr=new Array();for(var iI=0;iI<aRtn.length;iI++){if((typeof aRtn[iI]=='object')&&(aRtn[iI][0]=='error'))aErr.push(aRtn[iI][1]);else if((typeof aRtn[iI]=='boolean')&&(aRtn[iI]==false))aErr.push(false);}
if(aErr.length){this.sendMessage('error_gotoSlide',{'iCurr':iCurr,'iPage':iPage,'aErr':aErr});}
else{var iP=iPage;while(aHidden[iP]&&(iP>-1)){if(iP>=iPage)iP+=1;else iP-=1;if(iP>iCount)iP=iPage-1;else if(iP<1)iP=-1;}
iPage=iP;if((iPage>0)&&oContainer.oSlides[iPage-1]){oContainer.oSlides[iPage-1].ready(function(){if((iPage>0)&&(iPage<=iCount)){iCurr=iPage;that.sendMessage('show',iPage);if(oParams.store&&that.jE.attr('id'))window.cookieFunc.createCookie('jso_Slide_'+that.jE.attr('id'),iPage);}});}}}
this.nextSlide=function(bToFirst){if(iCurr<iCount)this.gotoSlide(iCurr+1);else if(bToFirst)this.gotoSlide(1);}
this.prevSlide=function(bToLast){if(iCurr>1)this.gotoSlide(iCurr-1);else if(bToLast)this.gotoSlide(iCount);}
this.Slides=function(){this.jE.addClass('jsc_Slides');this.initializeChildren();this.initSlides();}
this.setInitialPage=function(iPage){iInitPage=iPage;}
this.initSlides=function(){var oMeta=that.jE.metadata();this.handleMessage(oContainer,'loading');this.handleMessage(oContainer,'loaded');var sFr='';try{var oParsed=location.href.parseUrl();if(oParsed)sFr=oParsed.fragment;}
catch(oErr){}
var aFr=Array();if(sFr)aFr=String('http://www.example.org/index.php?'+sFr).parseQuery();if(aFr['_obj_id_'+this.getId()]){var iSlide=parseInt(aFr['_obj_id_'+this.getId()]);if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else if(this.jE.attr('id')&&aFr[this.jE.attr('id')]){var iSlide=parseInt(aFr[this.jE.attr('id')]);if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else if((this.jE.attr('class').search(/jsid_/)>-1)&&aFr[this.jE.attr('class').replace(/^(.+?)jsid_(.+?) (.+?)$/g,'$2')]){var iSlide=parseInt(aFr[this.jE.attr('class').replace(/^(.+?)jsid_(.+?) (.+?)$/g,'$2')]);if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else if(oParams.store&&this.jE.attr('id')){var iSlide=parseInt(window.cookieFunc.readCookie('jso_Slide_'+this.jE.attr('id')));if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else if(iInitPage){var iSlide=parseInt(iInitPage);if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else if(oMeta.init_page){var iSlide=parseInt(oMeta.init_page);if(isNaN(iSlide)||(iSlide<1))iSlide=1;this.gotoSlide(iSlide);}
else this.gotoSlide(1);if(oParams.autoSlide){this.initAutoSlide();}}}
window.jso['/Box/subtabBox/slideContainer']='_Slides';window.jso['/subtabBox/slideContainer']='_Slides';window.jso['/verttabBox/slideContainer']='_Slides';window.jso['/Pages/slideContainer']='_Slides';window.jso['/Form/verttabBox/slideContainer']='_Slides';window.jso['/Slides/slideContainer']=function(){var that=this;var iW=NaN;var iCurrSl=0;var bActive=false;var oParams=this.getParams();var oTimer=null;var sOverfl=this.jE.css('overflow');var iFadeSpeed=400;var iMin=0;this.aSlides=new Array();this.oSlides=new Array();var oCSS={'border-width':'0 1px'};var oSlideCSS={'display':'none'};var oBorderCSS={'display':'block','margin-left':'1px','height':'1px','background-color':'#e8e8e8'};this.setHeightRelative=function(iNewHeight){if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)){that.jE.stop(true,true).css({'height':(that.jE.height()+iNewHeight)+'px'});}
else{that.jE.stop(true,true).animate({'height':'+='+iNewHeight},iFadeSpeed);}
if(that.jE.parent().closest('.jso_slideContainer').length){that.jE.parent().closest('.jso_slideContainer').getObj().setHeightRelative(iNewHeight);}
return this;}
this.setMinHeight=function(iNewHeight,bStatic){if(oParams['varHeight']&&(iNewHeight>that.jE.height())){if(bStatic)that.jE.stop(true).css({'height':iNewHeight});else that.jE.stop(true).animate({'height':iNewHeight},iFadeSpeed);}
return this;}
this.setHeight=function(iNewHeight){if(iNewHeight<=iMin)return this;if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)){that.jE.stop(true,true).animate({'height':iNewHeight},iFadeSpeed);}
else{that.jE.stop(true,true).animate({'height':iNewHeight},iFadeSpeed);}
if(that.jE.parent().closest('.jso_slideContainer').length){that.jE.parent().closest('.jso_slideContainer').getObj().setHeightRelative(iNewHeight-that.jE.height());}
return this;}
this.showSlide=function(sMsg,iSlide){if(iCurrSl==iSlide)return;that.jE.children('.jso_Slide').hide();that.oSlides[iSlide-1].jE.css('position','absolute');var oDimensions=that.oSlides[iSlide-1].getWH();if(iCurrSl==0){var iNewHeight=oDimensions.outerHeight;if(oDimensions.height==0)iNewHeight=0;if(iNewHeight<iMin)iNewHeight=iMin;if(that.jE.parent().closest('.jso_slideContainer').length){var oObj=that.jE.parent().closest('.jso_slideContainer').getObj();if(oObj)oObj.setHeightRelative(iNewHeight-that.jE.height());}
that.jE.stop(true).css('height',iNewHeight+'px');that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').fadeIn(iFadeSpeed);}
else if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)){var iCurrHeight=that.jE.height();var iNewHeight=oDimensions.outerHeight;if(oDimensions.height==0)iNewHeight=0;if(iNewHeight<iMin)iNewHeight=iMin;var alertHeight=function(){if(that.jE.parent().closest('.jso_slideContainer').length){that.jE.parent().closest('.jso_slideContainer').getObj().setHeightRelative(iNewHeight-iCurrHeight);}}
that.jE.css({'height':iNewHeight});alertHeight();that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').hide();that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').show();}
else if(oParams['fade']){if(oTimer){clearTimeout(oTimer);oTimer=null;}
if(oParams['varHeight']){var iCurrHeight=that.jE.height();var iNewHeight=oDimensions.outerHeight;if(oDimensions.height==0)iNewHeight=0;if(iNewHeight<iMin)iNewHeight=iMin;var alertHeight=function(){if(that.jE.parent().closest('.jso_slideContainer').length){that.jE.parent().closest('.jso_slideContainer').getObj().setHeightRelative(iNewHeight-iCurrHeight);}}
if(iCurrHeight>iNewHeight){oTimer=setTimeout(function(){that.jE.stop(true).animate({'height':iNewHeight},iFadeSpeed);alertHeight();},iFadeSpeed/3);that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).show().css('opacity',1).fadeOut(iFadeSpeed);that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').stop(true).hide().fadeIn(iFadeSpeed,function(){that.jE.css('opacity',1);});}
else if(iCurrHeight<iNewHeight){that.jE.stop(true).animate({'height':iNewHeight},iFadeSpeed);alertHeight();that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').show();var iTmpSlide=iCurrSl;oTimer=setTimeout(function(){that.jE.children('.jso_Slide:eq('+(iTmpSlide-1)+')').stop(true).show().css('opacity',1).fadeOut(iFadeSpeed);that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).hide().fadeIn(iFadeSpeed,function(){that.jE.css('opacity',1);});},iFadeSpeed/3);}
else{that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).show().css('opacity',1).fadeOut(iFadeSpeed);that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').stop(true).hide().fadeIn(iFadeSpeed,function(){that.jE.css('opacity',1);});that.jE.stop(true).animate({'height':iNewHeight},iFadeSpeed);alertHeight();}}
else{that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).show().css('opacity',1).fadeOut(iFadeSpeed);that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').stop(true).hide().fadeIn(iFadeSpeed,function(){that.jE.css('opacity',1);});}}
else{that.jE.css('overflow','hidden');if(iCurrSl<iSlide){that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).show().css('left',0).animate({'left':-1*iW},function(){jQuery(this).hide();that.jE.css('overflow',sOverfl);});that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').stop(true).css('left',iW).show().animate({'left':0});}
else{that.jE.children('.jso_Slide:eq('+(iCurrSl-1)+')').stop(true).show().css('left',0).animate({'left':iW},function(){jQuery(this).hide();that.jE.css('overflow',sOverfl);});that.jE.children('.jso_Slide:eq('+(iSlide-1)+')').stop(true).css('left',-1*iW).show().animate({'left':0});}}
iCurrSl=iSlide;}
this.slideContainer=function(){this.jE.addClass('jsc_slideContainer');var oW=this.getWH();iW=oW.width;that.jE.css('width',iW+'px');this.initializeChildren();this.oSlides=this.childObjs('Slide');var iMax=0;for(var iI=0;iI<that.oSlides.length;iI++){if(!oParams['varHeight']){var iH=that.oSlides[iI].jE.height();if(iH>iMax)iMax=iH;}
that.aSlides[iI+1]=that.oSlides[iI].getTitle();if(that.aSlides[iI+1]=='Firmenprofil'){var jT=that.oSlides[iI].jE;setTimeout(function(){},500);}
this.handleMessage(that.oSlides[iI],'loading');this.handleMessage(that.oSlides[iI],'loaded');}
this.jE.children('.jso_Slide').css(oSlideCSS);if(this.jE.children('.jso_Slide:first').length){var oD=this.jE.children('.jso_Slide:first').getObj().getWH();this.jE.children('.jso_Slide').css('width',(iW-(oD.outerWidth-oD.width)));}
var oP=this.callerObj();if(!oP.setPageCount)return;if(oParams['varHeight']){if(oP.getMinHeight){this.parentReady(function(){iMin=oP.getMinHeight();that.jE.css('height',iMin);});}}
else{if(oP.getMinHeight){this.parentReady(function(){var iMin=oP.getMinHeight();if(iMin>iMax)iMax=iMin;for(var iI=0;iI<that.oSlides.length;iI++)that.oSlides[iI].jE.css('height',iMax+'px');that.jE.css('height',iMax);});}
else{for(var iI=0;iI<that.oSlides.length;iI++)that.oSlides[iI].jE.css('height',iMax+'px');this.jE.css('height',iMax);}}
if(oParams['Corners']){this.jE.css(oCSS);this.jE.before(jQuery(document.createElement('span')).css(oBorderCSS).css({'top':'-1px','width':iW}));this.jE.after(jQuery(document.createElement('span')).css(oBorderCSS).css({'bottom':'-1px','width':iW}));}
oP.setPageCount(this.jE.children('.jso_Slide').length);oP.setContainer(this);oP.registerMessage('show',this.showSlide);}
return this;}
window.jso['/Slides/slideContainer/Slide']=function(){var that=this;var oParams=this.getParams();var iSlide=this.jE.prevAll('.jso_Slide').length+1;this.oMeta=that.jE.metadata();this.sAjaxURL='';var sTitle=undefined;var oReadyRunning=false;this.getTitle=function(){if(sTitle)return sTitle;return this.jE.children('h1:first').length?this.jE.children('h1:first').text():this.jE.text();}
this.checkHeight=function(){if(this.callerObj().callerObj().getCurrPage()==iSlide)this.callerObj().setHeight(that.jE.outerHeight(true));}
this.hideIfEmpty=function(){if(jQuery.trim(that.jE.text())=='')this.parentObj().parentObj().setHidden(iSlide);}
this.ready=function(oCallback){var oParams=this.getParams();if(oParams['ajax']){if(!this.jE.attr('href'))return;if(oReadyRunning)return;oReadyRunning=true;this.sendMessage('loading');jQuery.get(this.jE.attr('href'),{'ajax':true},function(sData){that.sAjaxURL=that.jE.attr('href');that.replaceTag('div');sData=sData.replace(/^.*<body.*>(.+?)<\/body>.*$/,'$1');if(sData.indexOf('<!--SE_AJAX_RESPONSE-->')!=-1){sData=sData.substring(sData.indexOf('<!--SE_AJAX_RESPONSE-->')+23,sData.lastIndexOf('<!--/SE_AJAX_RESPONSE-->'));}
var jData=null;if(jQuery.trim(sData))jData=jQuery(sData);if(jData&&jData.filter('img').length){jData.load(function(){that.sendMessage('loaded');that.jE.removeClass('jsp_ajax').addClass('jsp_ajaxLoaded').html(jData);that.initializeByParam();oCallback();});}
else if(jData){jData.ready(function(){that.sendMessage('loaded');that.jE.removeClass('jsp_ajax').addClass('jsp_ajaxLoaded').html(jData);that.initializeByParam();oCallback();});}
else{that.sendMessage('loaded');that.jE.removeClass('jsp_ajax').addClass('jsp_ajaxLoaded').html('');that.initializeByParam();oCallback();}
oReadyRunning=false;});}
else{if(oParams.delay){if(oParams['parseJSDs']){this.parseJSDs();this.initializeAllChildren();}
else if(oParams['all'])this.initializeAllChildren();else if(oParams['next'])this.initializeNextChildren();else this.initializeChildren();that.jE.removeClass('jsp_delay');oParams.delay=false;}
if(that.jE.closest('.jso_verttabBox').length&&that.jE.find('img').length){var oImgs={};var bLoad=false;var jImgs=that.jE.find('img:not([src="'+document.location.protocol+'//'+document.location.host+'/"], [src=""])');jImgs.each(function(){if(!this.complete&&!oImgs[this.src]){if(!bLoad)that.sendMessage('loading');oImgs[this.src]=false;bLoad=true;jQuery(this).load(function(){oImgs[this.src]=true;var bLoaded=true;for(var sI in oImgs)if(!oImgs[sI])bLoaded=false;if(!bLoaded&&bLoad){var bTmpLoaded=true;jImgs.each(function(){if(this.complete===false)bTmpLoaded=false;});bLoaded=bTmpLoaded;}
if(bLoaded&&bLoad){bLoad=false;setTimeout(function(){that.sendMessage('loaded');oCallback();},250);}});}});if(bLoad){setTimeout(function(){var bTmpLoaded=true;jImgs.each(function(){if(this.complete===false)bTmpLoaded=false;});if(bTmpLoaded){that.sendMessage('loaded');oCallback();}},1000);}
if(!bLoad)oCallback();}
else oCallback();}}
this.Slide=function(){if(!oParams.ajax&&!oParams.delay){if(oParams['parseJSDs']){this.parseJSDs();this.initializeNextChildren();}
else if(oParams['all'])this.initializeAllChildren();else if(oParams['next'])this.initializeNextChildren();else this.initializeChildren();}
this.initSlide();}
this.initSlide=function(bAddClass){if(bAddClass)that.jE.addClass('jso_Slide');that.jE.addClass('jsc_Slide');if(oParams['validate']){this.parentObj().parentObj().registerMessage('on_gotoSlide',this.validate);}
this.listenInheritMessage('validate',this.validateForm);this.parentReady(function(){if(that.jE.prev('.jso_PageTitle').length){var oPrev=that.sPath;var oRoot=that.sObjPath;sTitle=window.aes.getObj(that.jE.prev('.jso_PageTitle')).getTitle();}
iSlide=that.jE.prevAll('.jso_Slide').length+1;});}
this.validate=function(sMsg,oData){var aErr=new Array();if((iSlide==oData.iCurr))aErr=that.sendMessage('validate');var bErr=aErr.join('').replace(/,/g,'').length?true:false;that.sendMessage('valid',{bValid:!bErr});return bErr?new Array('error',aErr.join(', ')):true;}
this.validateForm=function(sMsg,aData){var aErr=aData;var bErr=aErr.join('').replace(/,/g,'').length?true:false;that.sendMessage('valid',{bValid:!bErr});return aErr;}}
window.jso['/DebugIt']=function(){this.DebugIt=function(){alert(this.sPath+'--------'+this.jE.text());}}
window.jso['/Slides/navMenu']=function(){var that=this;this.getNavElement=function(iI,iMax,oC){var jElem=jQuery(document.createElement('a')).appendTo(jQuery(document.createElement('li')).appendTo(this.jE)).attr('href','#').html(iI);return jElem;}
this.onAdditionalGoto=function(oP,oLink){if(jQuery(oLink).hasClass('jsc_prev'))oP.prevSlide(true);else if(jQuery(oLink).hasClass('jsc_next'))oP.nextSlide(true);}
this.navMenu=function(){this.initNavMenu();var jPrev=jQuery(document.createElement('img')).appendTo(jQuery(document.createElement('li'))).addClass('jsc_prev').attr('src','http://data.dci-se.de/img/navMenu-subtab_prev.gif').css('margin-right','1px').css('cursor','pointer');var jNext=jQuery(document.createElement('img')).appendTo(jQuery(document.createElement('li'))).addClass('jsc_next').attr('src','http://data.dci-se.de/img/navMenu-subtab_next.gif').css('margin-right','1px').css('cursor','pointer');jPrev.before('<img class="jsc_borderLeft" src="http://data.dci-se.de/img/navMenu-subtab_corner_left.gif" />');jNext.after('<img class="jsc_borderRight" src="http://data.dci-se.de/img/navMenu-subtab_corner_right.gif" />');this.setAdditionalElem(jPrev,true);this.setAdditionalElem(jNext);}}
window.jso['/navBrowser']=function(){var that=this;var sHtml='<a href="#" class="jsc_goPrev"></a><a href="#" class="jsc_goNext"></a><span>&nbsp;</span>';var oP=undefined;gotoPage=function(sMsg,iSlide){if(!oP)return;var iPageCount=oP.getPageCount();if(iPageCount==iSlide)that.jE.children('a.jsc_goNext').removeClass('jsc_active');else that.jE.children('a.jsc_goNext').addClass('jsc_active');if((1==iSlide))that.jE.children('a.jsc_goPrev').removeClass('jsc_active');else that.jE.children('a.jsc_goPrev').addClass('jsc_active');that.jE.children('span').text(iSlide+'/'+iPageCount);}
this.navBrowser=function(){that.jE.html(sHtml).addClass('jsc_navBrowser');oP=this.parentObj();if(oP){this.jE.children('a.jsc_goPrev').click(function(){oP.gotoSlide(oP.getCurrPage()-1);this.blur();return false;});this.jE.children('a.jsc_goNext').click(function(){oP.gotoSlide(oP.getCurrPage()+1);this.blur();return false;});oP.registerMessage('show',gotoPage);}}}
window.jso['/gotoButton']=function(){var that=this;var oMeta=that.jE.metadata();this.gotoButton=function(){var iPage=parseInt(oMeta.page);if(that.jE.closest('.jso_verttabBox')){var oSubtabs=that.jE.closest('.jso_verttabBox').getObj();that.jE.click(function(){if(oSubtabs&&iPage&&!isNaN(iPage)){if(oSubtabs.getCurrPage()===iPage)oSubtabs.gotoSlide(1);else oSubtabs.gotoSlide(iPage);}
return false;});}
else if(that.jE.closest('.jso_subtabBox')){var oSubtabs=that.jE.closest('.jso_subtabBox').getObj();that.jE.click(function(){if(oSubtabs&&iPage&&!isNaN(iPage)){if(oSubtabs.getCurrPage()===iPage)oSubtabs.gotoSlide(1);else oSubtabs.gotoSlide(iPage);}
return false;});}}}
window.jso['/Slides/navButtons']=function(){var oP=null;var that=this;var oCSS={'position':'absolute','left':'20px'};var oLinkCSS={'background-color':'#808080','display':'block','float':'left','padding':'3px 7px','margin-right':'1px','color':'white','text-decoration':'none','font-size':'11px','line-height':'14px'};this.setActive=function(sMsg,iLink){that.jE.children('a').removeClass('active').css('font-weight','normal').filter(':eq('+(iLink-1)+')').addClass('active').css('font-weight','bold');}
this.navButtons=function(){oP=this.parentObj();var oOffset=oP.getContainer().jE.position();oP.registerMessage('show',this.setActive);this.jE.css(oCSS).css('top',(oOffset.top+1)+'px');for(var iI=1;iI<=oP.getPageCount();iI++){jQuery.data(jQuery(document.createElement('a')).attr('href','#').css(oLinkCSS).html(iI).click(function(){oP.gotoSlide(jQuery.data(this,'page'));return false;}).appendTo(this.jE).mouseenter(mouseOver).mouseleave(mouseOut).get(0),'page',iI);}}
var mouseOver=function(){jQuery(this).css('font-weight','bold');}
var mouseOut=function(){if(!jQuery(this).hasClass('active'))jQuery(this).css('font-weight','normal');}}
window.jso['/navButton']=function(superClass){var oP=this.parentObj();var that=this;var oParams=this.getParams();checkFirst=function(sMsg,iSlide){if((oP.getPageCount()==iSlide)&&oParams['next'])that.jE.hide();else if((1==iSlide)&&oParams['prev'])that.jE.hide();else that.jE.show();}
oP.registerMessage('show',checkFirst);}
window.jso['/Slides/navButton']=function(superClass){var oP=null;var that=this;var sDef='next';var sType;var sText;var oNewPage;var oCSS={'position':'absolute','width':'20px','height':'20px','font-size':'25px','line-height':'16px','text-align':'center','cursor':'pointer'};var oTitleCSS={'position':'absolute','top':0,'overflow':'hidden','padding':'3px 10px','background-color':'#808080','color':'white','font-size':'11px','white-space':'nowrap','line-height':'14px'};var setDefaults=function(){if(sType=='prev'){oTitleCSS.left='20px';oCSS.left='-20px';sText='&laquo;';oNewPage=function(){return oP.getCurrPage()-1;};}
else if(sType=='next'){oTitleCSS.right='20px';oCSS.right='-20px';sText='&raquo;';oNewPage=function(){return oP.getCurrPage()+1;};}}
this.navButton=function(){oP=this.parentObj();var oParams=this.getParams();if(oParams['next'])sType='next';else if(oParams['prev'])sType='prev';else sType=sDef;setDefaults.call(this);this.jE.css(oCSS);var jContainer=oP.getContainer().jE;var oOffset=jContainer.position();var iHeight=jContainer.outerHeight();var iTop=Math.round(oOffset.top+(iHeight/2)-(this.jE.height()/2));this.jE.css('top',iTop).html(sText).click(function(){oP.gotoSlide((jQuery.isFunction(oNewPage)?oNewPage.call(that):oNewPage));});oP.registerMessage('show',fadeMouseover);oP.registerMessage('error_gotoSlide',errorMouseover);addMouseOver.call(this);}
var addMouseOver=function(){this.jE.mouseenter(function(){eventMouseLeave.call(that);});this.jE.mouseleave(function(){that.jE.css('color','').children('span').stop(true).animate({'width':0},function(){jQuery(this).remove();});});}
var eventMouseLeave=function(){var oContainer=oP.getContainer();var sTitle=oContainer.aSlides[(jQuery.isFunction(oNewPage)?oNewPage.call(this):oNewPage)];if(sTitle){var jTitle=jQuery(document.createElement('span')).css(oTitleCSS).appendTo(this.jE).text(sTitle);var iW=jTitle.width();if(jQuery.browser.msie||jQuery.browser.opera)iW=(6*sTitle.length)+'px';jTitle.css('width',0).animate({'width':iW});}
this.jE.css('color','red');}
var fadeMouseover=function(){var iSlide=(jQuery.isFunction(oNewPage)?oNewPage.call(that):oNewPage);var oContainer=oP.getContainer();var sTitle=oContainer.aSlides[iSlide];if(sTitle){that.jE.children('span').stop(true).fadeOut('fast',function(){jQuery(this).remove();var jTitle=jQuery(document.createElement('span')).css(oTitleCSS).appendTo(that.jE).text(sTitle);var iW=jTitle.width();if(jQuery.browser.msie||jQuery.browser.opera)iW=(6*sTitle.length)+'px';jTitle.fadeIn('fast');});}}
var errorMouseover=function(){that.jE.children('span').animate({'color':'white'},50,function(){jQuery(this).animate({'color':'red'},50,function(){jQuery(this).animate({'color':'white'},50,function(){jQuery(this).animate({'color':'red'},50,function(){jQuery(this).animate({'color':'white'},50);});});});});}
return this;}
window.jso['/loadingAnimation']=function(superClass){var oP=this.parentObj();var that=this;var oC=undefined;showLoader=function(sMsg){if(!oC)oC=oP.getContainer();if(oC&&(oC.jE.height()<20))oC.setMinHeight(20,true);that.jE.fadeIn(250);}
hideLoader=function(sMsg){that.jE.fadeOut(250);}
this.jE.html('<img src="http://data.dci-se.de/img/loading_small.gif" />').addClass('jsc_loadingAnimation')
oP.registerMessage('loading',showLoader);oP.registerMessage('loaded',hideLoader);}
if(!window.jso)window.jso=new Object();var bChanges=false;var bManageEntriesChange=false;window.jso['_FormAC']='/inlineLabel'
window.jso['/FormAC']=function(){var that=this;var oMeta=that.jE.metadata();this.FormAC=function(){that.inlineLabel();that.jE.autocomplete({"source":oMeta.source,"minLength":oMeta.minLength});}}
window.jso['_FormDate']='/FormText'
window.jso['/FormDate']=function(){var that=this;this.FormDate=function(){that.jE.change(function(){bChanges=true;if(jQuery.browser.msie)
{var aCheck=that.jE.jVal().split('.');if(aCheck.length==3&&that.jE.jVal().length==10)
that.jE.prev('label').css('color','#565656');else
that.jE.prev('label').css('color','#ff0000');}});$.datepicker.regional['de']={clearText:'löschen',clearStatus:'aktuelles Datum löschen',closeText:'schließen',closeStatus:'ohne Änderungen schließen',prevText:'&#x3c;zurück',prevStatus:'letzten Monat zeigen',nextText:'Vor&#x3e;',nextStatus:'nächsten Monat zeigen',currentText:'heute',currentStatus:'',monthNames:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],monthNamesShort:['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],monthStatus:'anderen Monat anzeigen',yearStatus:'anderes Jahr anzeigen',weekHeader:'Wo',weekStatus:'Woche des Monats',dayNames:['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],dayNamesShort:['So','Mo','Di','Mi','Do','Fr','Sa'],dayNamesMin:['So','Mo','Di','Mi','Do','Fr','Sa'],dayStatus:'Setze DD als ersten Wochentag',dateStatus:'Wähle D, M d',dateFormat:'dd.mm.yy',firstDay:1,initStatus:'Wähle ein Datum',isRTL:false};$.datepicker.setDefaults($.datepicker.regional['de']);if(jQuery.browser.msie)
{if(that.jE.jVal()=='')that.jE.jVal('TT.MM.JJJJ');}
else
{that.jE.datepicker({dateFormat:'dd.mm.yy'});that.jE.keydown(function(){return false;});}
var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('realSubmit',function(){that.jE.jVal(that.val());});}
that.val=function(sVal){if((arguments.length==0)||(typeof sVal==="undefined")){var aTime=that.jE.jVal().split('.');var oTime=new Date(parseFloat(aTime[2]),parseFloat(aTime[1])-1,parseFloat(aTime[0]));var iRtn=Math.round(oTime.getTime()/1000)
return isNaN(iRtn)?0:iRtn;}
else{if(String(sVal).indexOf('.')>-1)that.jE.jVal(sVal);else{var oTime=new Date(sVal*1000);that.jE.jVal(oTime.getDate()+'.'+(oTime.getMonth()+1)+'.'+oTime.getFullYear());}
return that.jE;}}}
window.jso['/FormPartners']=function(){var that=this;this.FormPartners=function(){that.initializeChildren();that.jE.children('.jso_slideGallery').children('div').each(function(){var jThis=jQuery(this);jThis.css('cursor','pointer');jThis.click(function(){if(!confirm(window.oL.form.confirmDelete))return false;var jLink=$(this);var sAction=document.location.href;$.post(sAction,{'deletePartner':$(this).metadata().uid},function(sReturn){if(sReturn=='done')
{jLink.fadeOut('fast');}});});});}}
window.jso['/SubForm']=function(){var that=this;var oMeta=that.jE.metadata();var sMasterField=oMeta.masterField;var oRequired=oMeta.required;var iObjId=that.getId();var oData=new Object();var iActive=0;var sType=that.jE.text();var sFormLink=that.jE.attr('href');var iSubFid=jQuery.url.setUrl(sFormLink).param('id');var iFid=jQuery.url.setUrl(that.jE.closest('.jso_Form').attr('action')).param('id');that.jE.empty();that.replaceTag('div');var jLeftCol=jQuery('<div></div>').addClass('jsc_Col').addClass(oMeta.colType?oMeta.colType:'jsc_bigger').appendTo(that.jE);var jRightCol=jQuery('<div></div>').addClass('jsc_Col').appendTo(that.jE);this.clearInheritMessage('validate');this.addInheritMessage('validate');this.sURL=sFormLink+'&fid='+iFid+'&type=55&name='+sType;var sLang=jQuery.url.setUrl(that.jE.closest('.jso_Form').attr('action')).param('lang');if(sLang)this.sURL+='&lang='+sLang;this.SubForm=function(){var jSpan=jQuery('<span />');var jDiv=jQuery('<div />');var that=this;window.aes.addScheduleEntry(function(){jQuery.get(that.sURL,function(sData){jLeftCol.prepend(sData);that.initializeNextChildren();var jSubmit=that.jE.find('.jso_FormSubmit').unbind('click').click(function(oEvt){oEvt.preventDefault();if(!that.submit()){jQuery(this).getObj().defButtonBlink();alert(window.oL.form.requiredMissing);}
return false;});setTimeout(function(){if(window.jso_form_data["form_uid"+iSubFid])oData=window.jso_form_data["form_uid"+iSubFid];jQuery.each(oData,function(iKey,oVal){that.createEntry(parseInt(iKey),oVal[sMasterField]?oVal[sMasterField]:'--');});var oSlide=that.jE.closest('.jso_Slide').getObj();if(oSlide)oSlide.checkHeight();},250);});});}
this.sort=function(){var aSort=[];jRightCol.children('.jsc_entry').each(function(){var jItem=$(this);var iId=parseInt(jItem.attr('id').replace('jsid_SubForm_'+iObjId+'_',''));aSort.push(iId);});jQuery.post(that.sURL+'&multiple=sort',{'__sort':$.toJSON(aSort)},function(oRtn){alert(oRtn.success);},'json');}
this.submit=function(aJSON){if(!aJSON)
{var aErr=that.sendMessage('validate');if(aErr&&aErr.join('').replace(/,/g,'').length){return false;}
that.sendMessage('beforeSubmit');var aJSON=that.getFormElementValues();that.sendMessage('afterSubmit');}
var jsonData=aJSON[0];var jsonParams=aJSON[1];if(iActive==0)jsonData.push({"name":"uid","value":-1});else jsonData.push({"name":"uid","value":iActive});jQuery.post(that.sURL,jsonData,function(oRtn){if(oRtn.error)alert('Fehler: '+oRtn.error);else{if(iActive==0){iActive=oRtn.uid;that.createEntry(iActive,jsonParams[sMasterField]);oData[iActive]={};for(var iI=0;iI<oRtn.fields.length;iI++)oData[iActive][oRtn.fields[iI]]='';}
else that.updateEntry(iActive,jsonParams[sMasterField]);jQuery.each(oData[iActive],function(sKey,sVal){var jFrmEl=jLeftCol.find('#form_uid'+iSubFid+iFid+'_'+sKey).length?jLeftCol.find('#form_uid'+iSubFid+iFid+'_'+sKey):jLeftCol.find('#form_uid'+iSubFid+'_'+sKey);oData[iActive][sKey]=jFrmEl.val()?jFrmEl.val():jsonParams[sKey];});alert(oRtn.success);iActive=0;that.emptyForm();}},'json');return true;}
this.getFormElementValues=function(){var jsonData=jLeftCol.find('*').serializeArray();var jsonParams={};jQuery.each(jsonData,function(index,value){jsonParams[value.name]=value.value;});return new Array(jsonData,jsonParams);}
this.emptyForm=function(){jLeftCol.find('input, textarea').not(':checkbox, :radio, .jso_FormSlideGallery input.jso_FormFile').val('').change();jLeftCol.find('input:checkbox, input:radio').attr('checked',false);}
this.copyValues=function(){that.emptyForm();jQuery.each(oData[iActive],function(sKey,sVal){if(sVal){jLeftCol.find('#form_uid'+iSubFid+'_'+sKey).val(sVal).change();jLeftCol.find('#form_uid'+iSubFid+iFid+'_'+sKey).val(sVal).change();}});}
this.createEntry=function(iUid,sUpdate){var jEntry=jQuery('<div></div>').addClass('jsc_entry').attr('id','jsid_SubForm_'+iObjId+'_'+iUid);var jDelete=jQuery('<a/>').addClass('jsc_ManageEntriesDel').attr('href','#').html('<img src="http://data.dci-se.de/img/icons/delete.png" border="0">').attr('title',window.oL.del).click(function(){if(!confirm(window.oL.form.confirmDelete))return false;var jsonData={"uid":iUid};jQuery.post(that.sURL,jsonData,function(oRtn){if(oRtn.error)alert('Fehler: '+oRtn.error);else{alert(oRtn.success);jEntry.fadeOut(500,function(){jQuery(this).remove();});delete oData[iUid];if(iActive==iUid){iActive=0;that.emptyForm();}}},'json');return false;}).appendTo(jEntry);var jClone=jQuery('<a/>').css('margin-left','5px').addClass('jsc_ManageEntriesClone').attr('href','#').html('<img src="http://data.dci-se.de/img/icons/copy.gif" border="0">').attr('title',window.oL.clone).click(function(){var jsonParams={};jQuery.each(window.jso_form_data['form_uid'+iSubFid][iUid],function(sKey,sVal){jsonParams[sKey]=sVal;});jsonParams[sMasterField]='Kopie: '+jsonParams[sMasterField];var jsonData=new Array();jQuery.each(jsonParams,function(key,value){jsonData.push({'name':key,'value':value});});that.submit(new Array(jsonData,jsonParams));return false;}).appendTo(jEntry);var jEdit=jQuery('<a/>').css('margin-left','5px').addClass('jsc_ManageEntriesEdit').attr('href','#').html('<img src="http://data.dci-se.de/img/matrix/btn_edit.png" border="0">').attr('title',window.oL.edit).click(function(){iActive=iUid;that.copyValues();that.sendMessage('validate');return false;}).appendTo(jEntry);jEntry.append('<br/>');var jName=jQuery('<span></span>').text(sUpdate).appendTo(jEntry);jRightCol.prepend(jEntry);if(oMeta.sort&&oMeta.sort==true){jRightCol.sortable({axis:'y',items:'.jsc_entry',stop:function(){that.sort();}});jEntry.mouseover(function(){$(this).css('cursor','move');}).mouseout(function(){$(this).css('cursor','pointer');});}}
this.updateEntry=function(iUid,sUpdate){jQuery('#jsid_SubForm_'+iObjId+'_'+iUid+' > span',jRightCol).text(sUpdate);}}
window.jso['/FormManageEntries']=function(){var that=this;var oMeta=that.jE.metadata();var sName=oMeta.field;var iUID=oMeta.uid;var sStore=oMeta.store;var sDAD=oMeta.draganddrop;var sIdentity=oMeta.name;var sMasterField=oMeta.masterField;var oRequired=oMeta.required;if(that.jE.closest('.jso_Slide').getObj().sAjaxURL.length>0)
var sAction=that.jE.closest('.jso_Slide').getObj().sAjaxURL;else
var sAction=document.location.href;this.setupExistingEntries=function(oObject){if(oObject)
{var jClone=$('<a/>').addClass('jsc_ManageEntriesClone').attr('href','#').html('<img src="http://data.dci-se.de/img/icons/copy.gif" border="0">').attr('title',window.oL.clone).click(function(){var jLeftCol=that.jE.find('div.jsc_Col:first');jRightCol=jLeftCol.next('.jsc_Col');if(sStore=='xml')
{var jCopy=$(this).parent('.jsc_entry').clone();jCopy.addClass('jsp_notInitialized').removeClass('jsp_isActive');jCopy.children('*:not(span)').remove();jCopy.find('span').css('display','');var jMaster=jCopy.children('span[class='+sMasterField+']');jMaster.html('Kopie: '+jMaster.html());var jTA=that.jE.find('textarea[class=jsp_hidden]');var jTemp=$('<div></div>').append(jTA.val()).prepend(jCopy);jTA.val(jTemp.html());jRightCol.prepend(jCopy);that.setupExistingEntries(jRightCol);bChanges=true;var iTop=that.jE.offset().top;$('html').animate({scrollTop:iTop-25},250,function(){alert(window.oL.form.cloned);});return false;}
else if(sStore=='mysql')
{var sData='<div class="jsc_entry jsp_notInitialized">';var oData=new Object();$(this).siblings('span').each(function(){var sField=$(this).attr('class');var sValue=$(this).html();var sTitle=$(this).attr('title');if(sField==sMasterField)sValue='Kopie: '+sValue;if(sField!='uid'){oData[sField]=sValue;sData+='<span title="'+sTitle+'" class="'+sField+'">'+sValue+'</span>';}});$.post(sAction,{'identity':sIdentity,'data':$.toJSON(oData)},function(sReturn){if(sReturn!='')
{sData=sData+'<span class="uid">'+sReturn+'</span></div>';jRightCol.prepend(sData);that.setupExistingEntries(jRightCol);bChanges=true;var iTop=that.jE.offset().top;$('html').animate({scrollTop:iTop-25},250,function(){alert(window.oL.form.cloned);});}});return false;}}).css({'margin-right':'5px','font-weight':'bold'});var jDelete=$('<a/>').addClass('jsc_ManageEntriesDel').attr('href','#').html('<img src="http://data.dci-se.de/img/icons/delete.png" border="0">').attr('title',window.oL.del).click(function(){if(!confirm(window.oL.form.confirmDelete))return false;var iUID=$(this).siblings('span.uid').text();var iIndex=$(this).parent('div.jsc_entry').index();if(sStore=='xml')
{var jTA=that.jE.find('textarea[class=jsp_hidden]');var jTemp=$('<div></div>').append(jTA.val());jTemp.find('div.jsc_entry:eq('+iIndex+')').remove();jTA.val(jTemp.html());$(this).parent('div.jsc_entry').remove();bChanges=true;}
else if(sStore=='mysql')
{var jLink=$(this);$.ajax({type:'POST',url:sAction,data:'identity='+sIdentity+'&delete='+iUID,success:function(sData){if(sData!='')
{jLink.parent('div.jsc_entry').remove();bChanges=true;}}});}
var jLeftCol=that.jE.find('div.jsc_Col:first');var jFormElements=jLeftCol.find('select,input[type=hidden],input:checked,input:text,textarea:not(.jsp_hidden)');jFormElements.filter(':not([type=radio],[type=checkbox])').val('').change();jFormElements.removeAttr('checked');that.jE.find('.jsp_isActive').removeClass('jsp_isActive');return false;}).css({'margin-right':'5px','font-weight':'bold'});var jEdit=$('<a/>').addClass('jsc_ManageEntriesEdit').attr('href','#').html('<img src="http://data.dci-se.de/img/matrix/btn_edit.png" border="0">').attr('title',window.oL.edit).click(function(){bManageEntriesChange=true;$(this).parent().siblings().removeClass('jsp_isActive');$(this).parent().addClass('jsp_isActive');var iUID=$(this).siblings('span.uid').text();if(sStore=='mysql')
{var jTA=that.jE.find('textarea[class=jsp_hidden]');jTA.val(iUID);}
var jLeftCol=that.jE.find('div.jsc_Col:first');$(this).siblings('*:not(a)').each(function(){if(jLeftCol.find('input[type=checkbox]').length>0||jLeftCol.find('input[type=radio]').length>0)jLeftCol.find('*[name=__'+$(this).attr('class')+'[]][value='+$(this).text()+']').attr("checked","checked");jLeftCol.find('*[name=__'+$(this).attr('class')+']').val($(this).text()).change();});return false;}).css({'margin-right':'5px','font-weight':'bold'});oObject.children('div.jsp_notInitialized').each(function(){if(sDAD)
{$(this).mouseover(function(){$(this).css('cursor','n-resize');});$(this).mouseout(function(){$(this).css('cursor','default');});}
$(this).prepend('<br/>').prepend(jDelete.clone(true)).prepend(jEdit.clone(true)).prepend(jClone.clone(true));$(this).removeClass('jsp_notInitialized');$(this).children('span:not(.'+sMasterField+')').css('display','none');});if(sDAD)
{var jLeftCol=that.jE.find('div.jsc_Col:first');jRightCol=jLeftCol.next('.jsc_Col');jRightCol.css('margin-top','30px');oObject.sortable({axis:'y',update:function(event,ui){var jLeftCol=that.jE.find('div.jsc_Col:first');jRightCol=jLeftCol.next('.jsc_Col');var jTA=that.jE.find('textarea[class=jsp_hidden]');var jNew=jRightCol.clone();jNew.find('a,br').remove();jNew.find('div.jsc_entry').addClass('jsp_notInitialized');jNew.find('*').removeAttr('style');jTA.val(jNew.html());bChanges=true;}});}}}
this.FormManageEntries=function(){var jThat=that.jE.children();that.jE.children().detach();jLeftCol=$('<div class="jsc_Col '+(oMeta.colType?oMeta.colType:'jsc_bigger')+'"></div>').append(jThat);jRightCol=$('<div class="jsc_Col"></div>');that.jE.empty().append(jLeftCol).append(jRightCol);var jTA=$('<textarea></textarea>').css({'width':'1px','height':'1px','visibility':'hidden'}).addClass('jsp_hidden').appendTo(jLeftCol);var jSave=$('<a/>').addClass('jsc_actionButton').html('<img class="jsc_bullet" border="0" src="http://data.dci-se.de/img/bullets/actions/save.png" alt="">'+window.oL.form.AddSave+'<img style="left: -3px;" border="0" src="http://data.dci-se.de/img/actionButton-left.png"><img border="0" style="right: -3px;" src="http://data.dci-se.de/img/actionButton-right.png">').click(function(){bManageEntriesChange=false;jLeftCol=$(this).parent('.jsc_Col');jRightCol=jLeftCol.next('.jsc_Col');if(typeof oRequired!='undefined')
{if(oRequired.length>0)
{var bCheck=false;$.each(oRequired,function(iIndex,sValue){if(jLeftCol.find('*[name=__'+sValue+']').val()=='')bCheck=true;});if(bCheck==true){alert('Sie haben nicht alle Pflichtfelder ausgefüllt!');return false;}}}
if(jRightCol.find('.jsp_isActive').length)
{var jFormElements=jLeftCol.find('select,input[type=hidden],input:checked,input:text,textarea:not(.jsp_hidden)');if(sStore=='xml')
{var iIndex=jRightCol.find('.jsp_isActive').index();var jTA=that.jE.find('textarea[class=jsp_hidden]');var jTemp=$('<div></div>').append(jTA.val());var jActiveEntry=jRightCol.find('.jsp_isActive');jFormElements.each(function(){var sField=$(this).attr('name').replace('__','').replace('[]','');var sValue=$(this).val();jTemp.find('div.jsc_entry:eq('+iIndex+')').children('.'+sField).text(sValue);jActiveEntry.children('.'+sField).text(sValue);});jTA.val(jTemp.html());jActiveEntry.removeClass('jsp_isActive');bChanges=true;}
else if(sStore=='mysql')
{var jTA=that.jE.find('textarea[class=jsp_hidden]');var oData=new Object();var iUID=jTA.val();var jActiveEntry=jRightCol.find('.jsp_isActive');jFormElements.each(function(){var sField=$(this).attr('name').replace('__','');var sValue=$(this).val();oData[sField]=sValue;jActiveEntry.children('.'+sField).text(sValue);});$.post(sAction,{'identity':sIdentity,'data':$.toJSON(oData),'uid':iUID},function(sReturn){if(sReturn!='')
{jTA.val('');bChanges=true;jActiveEntry.removeClass('jsp_isActive');}});}
jFormElements.filter(':not([type=radio],[type=checkbox],[type=hidden][class!=jso_FormImage][class!=jso_FormFile])').val('').change();jFormElements.removeAttr('checked');}
else
{var jFormElements=jLeftCol.find('select,input[type=hidden],input:checked,input:text,textarea:not(.jsp_hidden)');if(sStore=='xml')
{var sData='<div class="jsc_entry jsp_notInitialized">';var jTmp=$('<div />');jFormElements.each(function(){var sTitle=$(this).prevAll('label:first').text();var jSpan=$('<span />').addClass($(this).attr('name').replace('__','').replace('[]','')).text($(this).val()).attr('title',sTitle).appendTo(jTmp);});sData+=jTmp.html();sData+='</div>';var jTA=that.jE.find('textarea[class=jsp_hidden]');var jTemp=$('<div></div>').append(jTA.val()).prepend(sData);jTA.val(jTemp.html());jRightCol.prepend(sData);that.setupExistingEntries(jRightCol);bChanges=true;}
else if(sStore=='mysql')
{var sData='<div class="jsc_entry jsp_notInitialized">';var oData=new Object();var jTmp=$('<div />');jFormElements.each(function(){var sField=$(this).attr('name').replace('__','');var sValue=$(this).val();var sTitle=$(this).prevAll('label:first').text();oData[sField]=sValue;var jSpan=$('<span />').attr('title',sTitle).addClass(sField).text(sValue).appendTo(jTmp);});sData+=jTmp.html();$.post(sAction,{'identity':sIdentity,'data':$.toJSON(oData)},function(sReturn){if(sReturn!='')
{sData=sData+'<span class="uid">'+sReturn+'</span></div>';jRightCol.prepend(sData);that.setupExistingEntries(jRightCol);bChanges=true;}});}
jFormElements.filter(':not([type=radio],[type=checkbox],[type=hidden][class!=jso_FormImage][class!=jso_FormFile])').val('').change();jFormElements.removeAttr('checked');}
var iTop=that.jE.offset().top;$('html').animate({scrollTop:iTop-25},250,function(){alert(window.oL.form.entrySaved);});}).prependTo(jLeftCol);jSave.css('float','left').after('<span class="jsc_FormSubmit-Space">&nbsp;</span>');var jSaveClone=jSave.clone(true);jSaveClone.appendTo(jLeftCol);var jFormElements=jLeftCol.find('select,input[type=hidden],input:checked,input:text,textarea:not(.jsp_hidden)');jFormElements.change(function(){bManageEntriesChange=true;});if(sIdentity)
{$.each(jFormElements,function(){var sID=$(this).attr('id');var aParts=sID.split('___');var sNewID=aParts[0]+'_'+sIdentity+'___'+aParts[1];$(this).attr('id',sNewID);$(this).prev('label:first').attr('for',sNewID);});}
that.initializeNextChildren();if(sStore=='xml')
{var sXML=window.jso_form_data['form_uid'+iUID+'_'+sName];jTA.attr({'name':sName,'id':'form_uid'+iUID+'_'+sName}).val(sXML);if(sXML)jRightCol.append(sXML);that.setupExistingEntries(jRightCol);}
else if(sStore=='mysql')
{$.ajax({type:'POST',url:sAction,data:'identity='+sIdentity,success:function(sData){if(sData!='')
{var jRightCol=that.jE.find('.jsc_Col:last');jRightCol.append(sData);that.setupExistingEntries(jRightCol);}}});}}}
window.jso['/FormSocial']=function(){var that=this;this.FormSocial=function(){var oMeta=that.jE.metadata();var iUID=oMeta.uid;var sXML=window.jso_form_data['form_uid'+iUID+'_socialxml'];if(!sXML)sXML='';var aNetworks=['twitter','facebook','igoogle','myspace','xing','youtube'];var jTA=$('<textarea/>').attr({'name':'socialxml','id':'form_uid'+iUID+'_socialxml'}).val(sXML);that.jE.append(jTA);for(var i=0;i<aNetworks.length;i++)
{var jFormUrl=$('<input/>').addClass('jso_FormUrl').attr('name','__'+aNetworks[i].toLowerCase()).keyup(function(){var jTA=$('<div></div>').append(that.jE.find('textarea').val());var sName=$(this).attr('name').replace('__','');var oNetwork=jTA.find('span.'+sName);if(oNetwork.length>0)
{oNetwork.text($(this).val());}
else
{var jSpan=$('<span/>').addClass(sName).text($(this).val());jTA.append(jSpan);}
var sReturn=jTA.html();that.jE.find('textarea').val(sReturn);}).prependTo(that.jE);var jImg=$('<img/>').attr('src','http://data.dci-se.de/img/icons/social_'+aNetworks[i].toLowerCase()+'.png');jFormUrl.before(jImg);var sVal=$('<span/>').append(that.jE.find('textarea').val());if($(sVal).find('span.'+aNetworks[i].toLowerCase()).length>0)
jFormUrl.val($(sVal).find('span.'+aNetworks[i].toLowerCase()).html());}
that.initializeChildren();}}
window.jso['/inlineLabel']=function(){var that=this;this.inlineLabel=function(){if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8))var sVal=that.jE.val();else var sVal=that.jE.get(0).defaultValue;if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);that.jE.focus(function(){if(that.jE.val()==sVal){that.jE.val('').css('color','#000000');}}).blur(function(){if(that.jE.val()==''){that.jE.val(sVal).css('color','#A9A9A9');}});this.parentReady(function(){that.callerObj().registerMessage('validate',function(){if(that.jE.val()==sVal)that.jE.val('');});});if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}}}
window.jso['/Form']=function(){var that=this;var oParams=this.getParams();var oMeta=that.jE.metadata();this.addInheritMessage('validate');this.Form=function(){if(oParams['all'])this.initializeAllChildren();else if(oParams['next']){this.initializeNextChildren();}
else this.initializeChildren();this.jE.submit(this.submit);if(oMeta.autosave&&oMeta.autosave.msg&&oMeta.autosave.rel){var oObj=jQuery('.'+oMeta.autosave.rel).not(that.jE).getObj();if(oObj)oObj.registerMessage(oMeta.autosave.msg,function(sMsg,oData){if(that.jE.parents('body').length){if(!that.submit())return false;}});}}
this.submit=function(){var aErr=that.sendMessage('validate');if(aErr&&aErr.join('').replace(/,/g,'').length){return false;}
else{var aErr=that.sendMessage('beforeSubmit');if(aErr&&aErr.join('').replace(/,/g,'').length)return false;if(oParams.ajax){var oPostParams=that.jE.find('input, textarea, select').not('.jso_SubForm *').serialize();jQuery.post(that.jE.attr('action'),oPostParams,function(sData,sStatus){if(typeof sData=='object'){if(sData.success){if(!oParams.silent)alert(sData.success);that.sendMessage('submitSuccess');}
else if(sData.error)alert('Fehler: '+sData.error);}
else if(sData.indexOf('jso_alert')>-1){sData=sData.substr(sData.indexOf('~~~~')+4);sData=sData.substr(0,sData.indexOf('~~~~'));alert(sData);}
else if(sData.length==0)alert('Formular abgesendet.');else if(sData.indexOf('<b>Fatal error</b>:')>-1)alert('Fehler');else{that.jE.html(sData);}},'json');}
else{that.sendMessage('realSubmit');that.jE.unbind('submit',that.submit);that.jE.submit();}
bChanges=false;that.sendMessage('afterSubmit');return true;}}}
window.jso['_FormSubmit']='/defButton,/actionButton';window.jso['/FormSubmit']=function(){var that=this;var oParams=this.getParams();this.jImgLeft=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/actionButton-left.png');this.jImgRight=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/actionButton-right.png');this.FormSubmit=function(){if(!that.jE.children('img').length){var sTitle=that.jE.attr('title');that.jE.attr('title','');this.jE.prepend('<img class="jsc_bullet" src="http://data.dci-se.de/img/bullets/actions/'+(sTitle?sTitle:'save')+'.png" alt="" />');this.initDefButton(true).jE.addClass('jsc_actionButton');this.jImgLeft.css({'left':'-5px'});this.jImgRight.css({'right':'-5px'});}
this.jE.click(function(){var oC=that.jE.closest('.jso_Form').getObj();if(oC.submit)if(!oC.submit()){that.defButtonBlink();alert(window.oL.form.requiredMissing);}
that.jE.blur();return false;});if(oParams.submitOnInit)that.jE.click();that.jE.mouseenter(function(){that.mouseenter();});that.jE.mouseleave(function(){that.mouseleave();});this.initHover();}}
window.jso['/FormLabel']=function(){var that=this;var jMaster=undefined;var iZ=2;this.setRequired=function(){this.jE.html(this.jE.html()+'  <sup>*</sup>');}
var showValid=function(sMsg,oD){if(oD.bValid){that.jE.css('color','');that.jE.children('span.jsc_Error').remove();}
else{that.jE.css('color','red');that.jE.children('span.jsc_Error').remove();var iMarginBottom=parseInt(jMaster.css('margin-bottom').substr(0,jMaster.css('margin-bottom').length-2));var aShow=that._show();var jErr=jQuery('<span />').addClass('jsc_Error').css('top',(that.jE.outerHeight(true)+jMaster.outerHeight(true)-iMarginBottom-1)+'px').text(oD.sMsg).appendTo(that.jE);jErr.html(jErr.html().replace("\n",'<br />'));that._hide(aShow);}}
this.FormLabel=function(){if(!that.jE.attr('for'))return;if(jQuery('#'+that.jE.attr('for')).length){jMaster=jQuery('#'+that.jE.attr('for'));jMaster.objInit(function(){var oMaster=jMaster.getObj();that.jE.mouseenter(that.showTooltip).mouseleave(that.hideTooltip);jMaster.mouseenter(that.showTooltip).mouseleave(that.hideTooltip);if(oMaster){oMaster.registerMessage('valid',showValid);if(oMaster.getParams().required)that.setRequired();}});}
var iZ_ind=parseInt(that.jE.css('z-index'));if(!isNaN(iZ_ind))iZ=iZ_ind;}
this.showTooltip=function(){that.jE.css('z-index',iZ+1).children('span.jsc_Error').stop(true,true).css('opacity',0).fadeIn(150,function(){jQuery(this).css('opacity',1);});}
this.hideTooltip=function(){that.jE.css('z-index',iZ).children('span.jsc_Error').stop(true,true).css('opacity',1).fadeOut(150,function(){jQuery(this).css('opacity',0);});}}
window.jso['/FormText']=function(){var that=this;var oParams=this.getParams();this.validate=function(){if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});}}
this.FormText=function(){that.jE.change(function(){bChanges=true;});if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);this.callerObj().registerMessage('validate',this.validate);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}}}
window.jso['/FormNumber']=function(){var that=this;var oParams=this.getParams();var oMeta=this.jE.metadata();this.validate=function(){var sValidateVal=(window.oL._lang=='de')?that.jE.val().replace(',','.'):that.jE.val();if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else if(that.jE.attr('value').length&&isNaN(Number(sValidateVal))){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.noNumber});return that.jE.attr('name')+': '+window.oL.form.noNumber;}
else{that.sendMessage('valid',{bValid:true});}}
this.FormNumber=function(){that.jE.change(function(){bChanges=true;});if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);if(oMeta.slider&&oMeta.slider==true)
{that.jE.hide();if(that.jE.val()!=''){var iVal=that.jE.val();}
else{var iVal=oMeta.min;}
var jInfo=jQuery('<span />').css({'font-size':'11px','display':'block','padding-bottom':'10px','padding-top':'5px'}).text('bis '+iVal);var jSlider=jQuery('<div />').slider({range:"min",min:oMeta.min,max:oMeta.max,step:(oMeta.step?oMeta.step:1),values:iVal,slide:function(event,ui){var iValue=ui.value;that.jE.val(iValue);jInfo.text('bis '+iValue);}});that.jE.after(jSlider).after(jInfo);}
if(window.oL._lang=='de')that.jE.val(that.jE.val().replace('.',','));this.callerObj().registerMessage('validate',this.validate);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}
if(window.oL._lang=='de'){var jForm=that.jE.closest('.jso_Form');var sVal=null;if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){sVal=that.jE.val();that.jE.val(sVal.replace(',','.'));}).registerMessage('afterSubmit',function(){if(sVal)that.jE.val(sVal);});}}}
window.jso['/FormRange']=function(){var that=this;var oParams=this.getParams();var oMeta=this.jE.metadata();var jRangeText;this.validate=function(){if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else if(that.jE.attr('value').length){var bVal=true;var aRange=that.jE.val().split(':');for(var iC=0;iC<aRange.length;iC++)if((aRange[iC].length==0)||isNaN(Number(aRange[iC])))bVal=false;if(!bVal){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.noRange});return that.jE.attr('name')+': '+window.oL.form.noRange;}
else that.sendMessage('valid',{bValid:true});}
else{that.sendMessage('valid',{bValid:true});}}
this.FormRange=function(){that.jE.change(function(){bChanges=true;});if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);if(oMeta.slider&&oMeta.slider==true)
{that.jE.hide();if(that.jE.val()!=''){var aVal=that.jE.val().split(':');if(isNaN(aVal[0])||!aVal[0])aVal[0]=oMeta.min;if(isNaN(aVal[1])||!aVal[1])aVal[1]=oMeta.max;}
else{var aVal=[oMeta.min,oMeta.max];}
var jInfo=jQuery('<span />').css({'font-size':'11px','display':'block','padding-bottom':'10px','padding-top':'5px'}).text(aVal[0]+' bis '+aVal[1]);var jSlider=jQuery('<div />').slider({range:true,min:oMeta.min,max:oMeta.max,step:(oMeta.step?oMeta.step:1),values:[aVal[0],aVal[1]],slide:function(event,ui){var oValues=ui.values;that.jE.val(oValues[0]+':'+oValues[1]);jInfo.text(oValues[0]+' bis '+oValues[1]);}});that.jE.after(jSlider).after(jInfo);}
else
{if(that.jE.val()!=''){var aVal=that.jE.val().split(':');if(isNaN(aVal[0])||!aVal[0])aVal[0]=oMeta.min;if(isNaN(aVal[1])||!aVal[1])aVal[1]=oMeta.max;}
else{var aVal=[oMeta.min,oMeta.max];}
that.jE.hide();jRangeText=$('<div></div>').addClass('jsc_FormRangeText');var jL1=$('<span></span>').text('von ').appendTo(jRangeText);var jI1=$('<input />').addClass('jso_FormNumber').val(aVal[0]).appendTo(jRangeText);var jL2=$('<span></span>').text(' bis ').appendTo(jRangeText);var jI2=$('<input />').addClass('jso_FormNumber').val(aVal[1]).appendTo(jRangeText);jI1.change(function(){var sVal=$(this).val();if(sVal!=''&&parseInt(sVal)>=0)that.jE.val(sVal+':'+jI2.val());});jI2.change(function(){var sVal=$(this).val();if(sVal!=''&&parseInt(sVal)>=0)that.jE.val(jI1.val()+':'+sVal);});that.jE.after(jRangeText);}
this.callerObj().registerMessage('validate',this.validate);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}}}
window.jso['/FormTextarea']=function(){var that=this;var oParams=this.getParams();var iMaxCharacters=parseInt(that.jE.metadata().max);var jLabel=null;var checkCharacters=function(){if(iMaxCharacters)
{var sVal=that.jE.val();var iMyCharacters=sVal.length;if(iMyCharacters>iMaxCharacters){that.jE.val(sVal.substr(0,iMaxCharacters));iMyCharacters=iMaxCharacters;}
if(!jLabel.length)return;var sTmpLabel=jLabel.html().split('&nbsp;')[0];jLabel.html(sTmpLabel+'&nbsp;('+(iMaxCharacters-iMyCharacters)+' '+oL.form.availableChars+')');}}
if(that.jE.metadata().max)
{var iMaxCharacters=parseInt(that.jE.metadata().max);var iMyCharacters=0;if(window.jso_form_data[that.jE.attr('id')])iMyCharacters=window.jso_form_data[that.jE.attr('id')].length;var sTmpLabel=$('.jso_FormLabel').filter('[for='+that.jE.attr('id')+']').html();$('.jso_FormLabel').filter('[for='+that.jE.attr('id')+']').html(sTmpLabel+'&nbsp;('+(iMaxCharacters-iMyCharacters)+' '+oL.form.availableChars+')');}
if(!isNaN(iMaxCharacters)&&(iMaxCharacters>0)){that.jE.keyup(function(){checkCharacters();});that.jE.change(function(){checkCharacters();});}
var initRTE=function(bLoaded){if(!that.jE.tinymce&&(bLoaded!==true)){jQuery.xLazyLoader({js:'http://data.dci-se.de/js/lib/tiny_mce/jquery.tinymce.js?id='+Math.round(Math.random()*10000),success:function(){initRTE(true);}});}
else if(!that.jE.tinymce&&(bLoaded===true)){alert('Fehler beim initialiseren des Editors');}
else{that.jE.val(that.jE.val().HSC().HSCback(true).replace(/^(<p>&lt;br( _mce_bogus="1")?&gt;<\/p>){1,}$/gi,'').replace(/&lt;br _mce_bogus="1"&gt;/gi,''));var oD=that.getWH();that.jE.css('width',oD.width+'px');that.jE.tinymce({script_url:'http://data.dci-se.de/js/lib/tiny_mce/tiny_mce.js?id='+Math.round(Math.random()*10000),content_css:'http://data.dci-se.de/css/lib/rte.css',plugins:'paste',height:oD.height,language:window.oL.__lang,valid_elements:"a[href|target=_blank],strong/b,br[data-mce-bogus],h3,p,ul,ol,li,em/i",theme:"advanced",theme_advanced_buttons1:"head3,bold,italic,|,link,unlink,|,bullist,numlist,|,outdent,indent,|,undo,redo",theme_advanced_buttons2:"",theme_advanced_buttons3:"",setup:function(ed){ed.onChange.add(function(ed,l){if(this.isDirty())bChanges=true;});},theme_advanced_toolbar_location:'top',paste_convert_headers_to_strong:true,paste_remove_spans:true,paste_remove_styles:true,paste_strip_class_attributes:"all"});}};this.validate=function(){if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});}}
this.FormTextarea=function(){that.jE.change(function(){bChanges=true;});if(jQuery('.jso_FormLabel').filter('[for='+this.jE.attr('id')+']').length){jLabel=jQuery('.jso_FormLabel').filter('[for='+this.jE.attr('id')+']');}
if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);if(oParams.rte)initRTE();this.callerObj().registerMessage('validate',this.validate);}}
window.jso['/FormEmail']=function(){var that=this;var oParams=this.getParams();this.validate=function(){that.jE.val(jQuery.trim(that.jE.val()));if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else if(that.jE.attr('value').length&&(that.jE.attr('value').search('^[-_0-9a-zA-Z\\.]+@([-_0-9a-zA-Z]+\\.)+[a-zA-Z]+$')==-1)){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.noEmail});return that.jE.attr('name')+' ist keine gültige E-Mail-Adresse';}
else{that.sendMessage('valid',{bValid:true});}}
this.FormEmail=function(){that.jE.change(function(){bChanges=true;});if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);this.callerObj().registerMessage('validate',this.validate);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}}}
window.jso['/FormUrl']=function(){var that=this;var oParams=this.getParams();this.validate=function(){that.jE.val(jQuery.trim(that.jE.val()));if(oParams['required']&&!that.jE.attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.required});return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});}}
this.FormUrl=function(){that.jE.change(function(){bChanges=true;});if(window.jso_form_data[that.jE.attr('id')])that.jE.val(window.jso_form_data[that.jE.attr('id')]);this.callerObj().registerMessage('validate',this.validate);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version)<8)&&that.jE.closest('.jso_Form').length){that.jE.keydown(function(oEvent){if(oEvent.keyCode=='13'){that.jE.closest('.jso_Form').submit();}});}}}
window.jso['/FormSelect']=function(){var that=this;var oParams=this.getParams();var metaMax=that.jE.metadata().max;this.val=function(sVal){if(that.jE.get(0).tagName==='SELECT'){return(arguments.length>0)?that.jE.jVal(sVal):that.jE.jVal();}
else{if((arguments.length==0)||(typeof sVal==="undefined")){var aVal=[];that.jE.children('input[type=checkbox]:checked, input[type=radio]:checked').each(function(){aVal.push(this.value);});return aVal.join(',');}
else{var aChecked=sVal.split(',');if(sVal.search("\n")!=-1)aChecked=sVal.split("\n");that.jE.children('input').attr('checked',false);for(var iI=0;iI<aChecked.length;iI++){aChecked[iI]=jQuery.trim(aChecked[iI]);if(aChecked[iI]=='')continue;if(that.jE.children('input[value="'+aChecked[iI]+'"]').length){that.jE.children('input[value="'+aChecked[iI]+'"]').attr('checked','checked');}
else if(that.jE.children('#'+that.jE.attr('id')+'_'+aChecked[iI]).length){that.jE.children('#'+that.jE.attr('id')+'_'+aChecked[iI]).attr('checked','checked');}}
return this.jE;}}}
this.validate=function(){if(that.jE.get(0).tagName==='SELECT'){if(oParams['required']&&!that.jE.jVal()){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.minSel});return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});}}
else if(oParams['required']&&!that.jE.children('input[type=checkbox]:checked, input[type=radio]:checked').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.minSel});return that.jE.attr('name')+' ist Pflichtfeld';}
else{if(metaMax)
{if(that.jE.children('input[type=checkbox]:checked, input[type=radio]:checked').length>metaMax)
{that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.maxSel+metaMax});return that.jE.attr('name')+' maximale Anzahl überschritten';}
else
{that.sendMessage('valid',{bValid:true});}}
else
{that.sendMessage('valid',{bValid:true});}}}
this.FormSelect=function(){that.jE.change(function(){bChanges=true;});this.jE.addClass('jsc_FormSelectDiv');that.jE.children('input[type=checkbox], input[type=radio]').each(function(){var jThis=jQuery(this);if((jThis.val()=='')&&jQuery('.jsc_FormLabel[for='+jThis.attr('id')+']').length){jQuery(this).val(jQuery('.jsc_FormLabel[for='+jThis.attr('id')+']').text());}});if(window.jso_form_data[that.jE.attr('id')]){this.val(window.jso_form_data[that.jE.attr('id')]);}
this.callerObj().registerMessage('validate',this.validate);}}
window.jso['/FormImage']=function(){var that=this;var oParams=this.getParams();var oUpload=undefined;var sBorderColor=that.jE.css('border-color');var sHead='';var sLink='';var sImg='';var jHead=undefined;var jLink=undefined;this.validate=function(){if(oParams['required']&&!that.jE.children('input').attr('value').length){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.uploadImage});that.jE.css('border-color','red');return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});that.jE.css('border-color',sBorderColor);}}
this.setVal=function(sValue){if(arguments.length>0){var aValue=sValue.split(': :');if(aValue[0]!=undefined)sImg=aValue[0];if(aValue[1]!=undefined)sLink=aValue[1];if(aValue[2]!=undefined)sHead=aValue.slice(2).join(': :');if(jHead)jHead.val(sHead);if(jLink)jLink.val(sLink);}
else sValue=sImg+': :'+sLink+': :'+sHead;if(!oParams.showHeadLink)sValue=sImg;that.jE.children('input').val(sValue);that.jE.css('background-image',(sImg?'url("'+sImg+'")':'none'));return this;}
this.FormImage=function(){that.jE.children('input').change(function(){that.setVal(jQuery(this).val());});if(oParams.showHeadLink){jQuery('.jso_FormLabel[for='+this.jE.children('input').attr('id')+']').addClass('jsc_groupHead');var sId='id__'+String(Math.random()).substr(2)+'_';jHead=jQuery('<input />').attr({'name':'__head','id':sId+'head'}).addClass('jso_FormText').css('marginBottom','14px').insertBefore(that.jE).change(function(){sHead=jQuery(this).val();that.jE.children('input[type=hidden]').val(sImg+": :"+sLink+": :"+sHead);}).before(jQuery('<label />').attr('for',sId+'head').html(window.oL.form.imageTitle).addClass('jsc_FormLabel'));jLink=jQuery('<input />').attr({'name':'__link','id':sId+'link'}).addClass('jso_FormText').css('marginBottom','35px').insertAfter(that.jE).change(function(){sLink=jQuery(this).val();that.jE.children('input[type=hidden]').val(sImg+": :"+sLink+": :"+sHead);}).before(jQuery('<label />').attr('for',sId+'link').html(window.oL.form.imageLink).addClass('jsc_FormLabel'));}
that.jE.find('li.del').children().andSelf().attr('title',window.oL.icons.upload_del);that.jE.find('li.upload').children().andSelf().attr('title',window.oL.icons.upload_do);if(that.jE.children('input').val()!=''){that.setVal(that.jE.children('input').val());}
else if(window.jso_form_data[that.jE.children('input').attr('id')]){that.setVal(window.jso_form_data[that.jE.children('input').attr('id')]);}
if(oParams.required)that.jE.find('li.del').css('display','none');if(that.jE.parents('.jso_SubForm').length){var sURL=that.jE.closest('.jso_SubForm').getObj().sURL;}
else var sURL=that.jE.closest('form').attr('action');sURL=sURL.addGetParam('ajax','true');var jLoad=jQuery('<span />').addClass('jsc_Overlay').css('opacity',0.5).appendTo(that.jE).hide().append(jQuery('<img src="http://data.dci-se.de/img/loading.gif" alt="loading ..." />').css('opacity',0.5));oUpload=new AjaxUpload(that.jE.find('li.upload'),{action:sURL,name:that.jE.children('input').attr('name'),data:{uploaded_file:that.jE.children('input').attr('name')},'onChange':function(sFile,sExt){jLoad.fadeIn('fast');},onComplete:function(sFile,sResponse){jLoad.fadeOut('fast');if(sResponse.indexOf('jso_alert')>-1){sResponse=sResponse.substr(sResponse.indexOf('~~~~')+4);sResponse=sResponse.substr(0,sResponse.indexOf('~~~~'));alert(sResponse);}
else if((sResponse.indexOf('<form')>-1)||(sResponse=='')){alert(window.oL.form.uploadError);}
else{sImg=sResponse;bChanges=true;that.setVal();}}});that.jE.find('li.del').click(function(){if(!confirm(window.oL.form.confirmDelete))return false;sImg='';that.setVal();});this.callerObj().registerMessage('validate',this.validate);that.jE.children('input').data('obj',this);}}
window.jso['/FormSlideGallery']=function(){var that=this;var jFormFile=that.jE.children();var oData=that.jE.metadata();var sName=jFormFile.find('input[type=hidden]').attr('name');var jXML=null;var oMore=null;this.FormSlideGallery=function(){jFormFile=jFormFile.clone();var sHiddenId=that.jE.find('input[type=hidden]:first').attr('id');sHiddenId=sHiddenId.substr(sHiddenId.indexOf('_')+4);var iFormId=parseInt(sHiddenId.substr(0,sHiddenId.indexOf('_')));jXML=jQuery('<textarea id="form_uid'+iFormId+'_'+sName.replace('__','')+'" name="'+sName.replace('__','')+'"></textarea>').prependTo(that.jE);jXML.hide().val('<span class="slide" type="'+oData.type+'"><span class="src"></span><span class="name"></span><span class="size"></span></span>');jXML.change(function(){initFromXML();});oMore=$('<a href="#" class="jso_actionButton" title="erweitern">'+window.oL.addentry+'</a>').click(function(){var oClone=jFormFile.clone();var oTempTA=$('<div />').html(jXML.val());oTempTA.append('<span class="slide" type="'+oData.type+'"><span class="src"></span><span class="name"></span><span class="size"></span></span>');jXML.val($(oTempTA).html());$(this).before(oClone);setTimeout(function(){var oSlide=that.jE.closest('.jso_Slide').getObj();if(oSlide)oSlide.checkHeight();},50);that.initializeElements(oClone);that.oChildren[0].registerMessage('update',updateXML);return false;});that.jE.append(oMore);var sXML=window.jso_form_data[that.jE.find('> div.jso_FormFile > input[type=hidden]').attr('id').replace('__','')];window.jso_form_data[that.jE.find('> div.jso_FormFile > input[type=hidden]').attr('id')]='';jXML.val(sXML);initFromXML();oMore.removeClass('jso_actionButton');}
var initFromXML=function(){var sXML=jXML.val();that.jE.children('.jso_FormFile').remove();jFormFile.clone().insertBefore(oMore);if(sXML&&jQuery(sXML).children('span').length){var bFirst=true;jQuery(sXML).each(function(){var sSrc=jQuery('span.src',this).text();if(!sSrc)return true;var jElem=bFirst?that.jE.children('div.jso_FormFile:first'):jFormFile.clone().insertBefore(oMore);var sName=jQuery('span.name',this).text();jElem.children('input[type=hidden]').val(sSrc+(sName?'::'+sName:''));bFirst=false;});}
else jXML.val('<span class="slide" type="'+oData.type+'"><span class="src"></span><span class="name"></span><span class="size"></span></span>');that.initializeNextChildren();for(var iI=0;iI<that.oChildren.length;iI++){that.oChildren[iI].registerMessage('update',updateXML);}}
var updateXML=function(sMsg,oData){var iIndex=oData.el.prevAll('.jso_FormFile').length;sText=jXML.val();var jTA=jQuery('<div />').html(sText);if(oData.value===false||oData.value==''){jTA.find('.slide:eq('+iIndex+')').remove();oData.el.remove();}
else{if(oData.size!==-1)jTA.children('.slide:eq('+iIndex+')').children('span.size').text(oData.size);jTA.children('.slide:eq('+iIndex+')').children('span.src').text(oData.value);jTA.children('.slide:eq('+iIndex+')').children('span.name').text(oData.label);}
jXML.val(jTA.html());}}
window.jso['/FormFile']=function(){var that=this;var oParams=this.getParams();var oUpload=undefined;var sLabel='';var sValue='';var sBorderColor=that.jE.css('border-color');var iIndex=-1;var oFileExt=['ai','doc','docx','dx','exe','flv','in','mov','mp3','pdf','ps','txt','wma','xls','xlsx','zip'];var sendUpdateMessage=function(iSize){that.sendMessage('update',{'el':that.jE,'size':iSize?iSize:-1,'value':sValue,'label':sLabel});}
this.validate=function(){var sVal=jQuery.trim(that.jE.children('input[type=hidden]').val().split("::")[0]);if(oParams['required']&&!sVal){that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.uploadFile});that.jE.css('border-color','red');return that.jE.attr('name')+' ist Pflichtfeld';}
else{that.sendMessage('valid',{bValid:true});that.jE.css('border-color',sBorderColor);}}
this.setBasename=function(){var sFile=that.jE.children('input[type=hidden]').val().split("::")[0];var sOrgF=sFile;if(sFile.indexOf('/')!=-1){sFile=sFile.substr(sFile.lastIndexOf('/')+1);}
if(sFile){var sExt=sFile.substr(sFile.lastIndexOf('.')+1).toLowerCase();var sImg='none';for(var iI in oFileExt)if(oFileExt[iI]==sExt)sImg=sExt;var jInfo=that.jE.children('span:not(.jsc_Info, .jsc_Overlay)');jInfo.html('<a href="'+sOrgF+'" target="_blank"><img src="http://data.dci-se.de/img/icons/files/'+sImg+'.gif" alt="'+sExt+'" /> '+sFile+'</a>');var jLink=jInfo.children('a');var iMaxW=that.getWH(jInfo).width;while(jLink.width()>iMaxW){sFile=sFile.substr(0,sFile.length-1);jLink.html('<img src="http://data.dci-se.de/img/icons/files/'+sImg+'.gif" alt="'+sExt+'" /> '+sFile+'...');}}
else{that.jE.children('span:not(.jsc_Info, .jsc_Overlay)').html('<img src="http://data.dci-se.de/img/icons/files/no_file.gif" alt="" /> '+window.oL.form.noFile);}}
this.FormFile=function(){that.jE.append('<span>&nbsp;</span>');that.jE.children('input').change(function(){that.setBasename();var aValue=that.jE.children('input[type=hidden]').val().split('::');sValue=aValue.shift();sLabel=jQuery.trim(aValue.join('::'));that.jE.children('input[name=__label]').val(sLabel);});jQuery('<input />').attr('name','__label').addClass('jsc_FormText').appendTo(that.jE).change(function(){sLabel=jQuery(this).val();that.jE.children('input[type=hidden]').val(that.jE.children('input').val().split('::')[0]+"::"+sLabel);sendUpdateMessage();}).before(jQuery('<label>&nbsp;&nbsp;'+window.oL.form.alternativeTitle+': </label>').addClass('jsc_FormLabel'));if((that.jE.children('input[type=hidden]').val()=='')&&(window.jso_form_data[that.jE.children('input').attr('id')])){that.jE.children('input[type=hidden]').val(window.jso_form_data[that.jE.children('input').attr('id')]);}
that.setBasename();var aValue=that.jE.children('input[type=hidden]').val().split('::');sValue=aValue.shift();sLabel=jQuery.trim(aValue.join('::'));that.jE.children('input[name=__label]').val(sLabel);if(oParams.required)that.jE.find('li.del').css('display','none');if(that.jE.parents('.jso_SubForm').length){var sURL=that.jE.closest('.jso_SubForm').getObj().sURL;}
else var sURL=that.jE.closest('form').attr('action');sURL=sURL.addGetParam('ajax','true');var jLoad=jQuery('<span />').addClass('jsc_Overlay').css('opacity',0.5).appendTo(that.jE).hide().append(jQuery('<img src="http://data.dci-se.de/img/loading.gif" alt="loading ..." />').css('opacity',0.5));if(that.jE.parent('div.jso_FormSlideGallery').length)
{iIndex=that.jE.prevAll('.jso_FormFile').length;}
oUpload=new AjaxUpload(that.jE.find('li.upload'),{action:sURL,name:that.jE.children('input').attr('name'),data:{uploaded_file:that.jE.children('input').attr('name'),index:iIndex},'onChange':function(sFile,sExt){jLoad.fadeTo('fast',0.5);},onComplete:function(sFile,sResponse){jLoad.fadeOut('fast');if(sResponse.indexOf('jso_alert')>-1){sResponse=sResponse.substr(sResponse.indexOf('~~~~')+4);sResponse=sResponse.substr(0,sResponse.indexOf('~~~~'));alert(sResponse);sendUpdateMessage(false);}
else if((sResponse.indexOf('<form')>-1)||(sResponse=='')){alert(window.oL.form.uploadError);sendUpdateMessage(false);}
else{var aTmpResponse=sResponse.split('::');var sSize=aTmpResponse[1];sValue=aTmpResponse[0];bChanges=true;that.jE.children('input[type=hidden]').val(sResponse+'::'+sLabel);that.setBasename();sendUpdateMessage(sSize);}}});that.jE.find('li.del').click(function(){if(!confirm(window.oL.form.confirmDelete))return false;sValue=false;that.jE.children('input').val('');that.setBasename();sendUpdateMessage();});that.jE.find('li.del').children().andSelf().attr('title',window.oL.icons.upload_del);that.jE.find('li.upload').children().andSelf().attr('title',window.oL.icons.upload_do);this.callerObj().registerMessage('validate',this.validate);var aShow=that._show();var oMeta=this.jE.metadata();var iMarginBottom=parseInt(that.jE.css('margin-bottom').substr(0,that.jE.css('margin-bottom').length-2));jQuery('<span />').addClass('jsc_Info').css('top',(that.jE.outerHeight(true)-iMarginBottom-2)+'px').html(window.oL.form.allowedExt+': '+oMeta.extensions+'<br />'+window.oL.form.allowedSize+': '+oMeta.max_filesize).appendTo(that.jE);that._hide(aShow);that.jE.mouseenter(that.showTooltip).mouseleave(that.hideTooltip);jQuery(oUpload['_input']).mouseenter(that.showTooltip).mouseleave(that.hideTooltip);that.jE.children('input').data('obj',this);}
this.showTooltip=function(){that.jE.children('span.jsc_Info').stop(true,true).css('opacity',0).fadeIn(150,function(){jQuery(this).css('opacity',1);});}
this.hideTooltip=function(){that.jE.children('span.jsc_Info').stop(true,true).css('opacity',1).fadeOut(150,function(){jQuery(this).css('opacity',0);});}}
window.jso['/FormRSS']=function(){var that=this;var sAction=document.location.href;this.FormRSS=function(){if(that.jE.closest('.jso_Slide').getObj().sAjaxURL.length>0)
sAction=that.jE.closest('.jso_Slide').getObj().sAjaxURL;that.jE.change(function(){var sVal=that.jE.val();that.sendMessage('valid',{bValid:true});jQuery.post(sAction.addGetParam('ajax','true'),{"__rss_feed":"true","field":that.jE.attr('name'),"feed":that.jE.val()},function(sReturn){if(sReturn!=='ok'){alert(window.oL.form.noRSS);that.sendMessage('valid',{bValid:false,sMsg:window.oL.form.noRSS});}});});}}
window.jso['/Filter']=function(){var that=this;this.Filter=function(){var jForm=that.jE.closest('.jso_Form');if(jForm.length){var sForm=jForm.attr('action');jForm.getObj().registerMessage('beforeSubmit',function(){jForm.attr('action',sForm);});}
that.initializeChildren();var sUrl=document.location.href;var oURL=jQuery.url.setUrl(sUrl);var sParam='';that.jE.find('*').each(function(){var jItem=$(this);var oMeta=jItem.metadata();if(oMeta&&oMeta.name){if(sParam=oURL.param('filter['+oMeta.name+']')){jItem.getObj().setValue(unescape(sParam).replace(/\+/g,' '));}}});}}
window.jso['_FilterSideBar']='/Filter';window.jso['/FilterSideBar']=function(){var that=this;this.FilterSideBar=function(){this.Filter();}}
window.jso['/FilterElem']=function(){var that=this;this.FilterElem=function(){var jFilterSideBar=that.jE.closest('.jso_FilterSideBar');}}
window.jso['/FilterRangeSlider']=function(){var that=this;var oMeta=that.jE.metadata();var oRange=oMeta.range;var iStep=oMeta.step;var sName=oMeta.name;var jI1=$('<input />').val(oRange[0]).attr('id','__filter'+oMeta.name+'_1');var jI2=$('<input />').val(oRange[1]).attr('id','__filter'+oMeta.name+'_2');var jSlider=$('<div></div>');var jFilterText1=$('<div class="jsc_FilterText"></div>');var jFilterText2=$('<div class="jsc_FilterText"></div>');this.FilterRangeSlider=function(){jI1.appendTo(jFilterText1);jI2.appendTo(jFilterText2);jFilterText1.appendTo(that.jE);jFilterText2.appendTo(that.jE);jSlider.appendTo(that.jE);jFilterText1.before('<label class="jsc_label1 jso_FormLabel" for="'+('__filter'+oMeta.name+'_1')+'">von</label>');jFilterText1.after('<br /><div style="height:4px;"></div>');jFilterText2.before('<label class="jsc_label2 jso_FormLabel" for="'+('__filter'+oMeta.name+'_2')+'">bis</label>');that.initializeChildren();jSlider.slider({range:true,min:oRange[0],max:oRange[1],step:iStep,values:[oRange[0],oRange[1]],slide:function(event,ui){var oValues=ui.values;jI1.val(oValues[0]);jI2.val(oValues[1]);}});jI1.change(function(){if($(this).val()<jI2.val()&&$(this).val()>=oRange[0]){jSlider.slider("values",[$(this).val(),jI2.val()]);}});jI2.change(function(){if($(this).val()>jI1.val()&&$(this).val()<=oRange[1]){jSlider.slider("values",[jI1.val(),$(this).val()]);}});jSlider.find('a:first').css('background-image','url(http://data.dci-se.de/img/slider-right.png)');jSlider.find('a:last').css('background-image','url(http://data.dci-se.de/img/slider-left.png)');var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var jH=that.jE.children('input[type=hidden]');if(jI1.val()+':'+jI2.val()!=oRange[0]+':'+oRange[1]){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(jI1.val()+':'+jI2.val()).appendTo(that.jE);else
jH.val(jI1.val()+':'+jI2.val());}
else if(jH.length>0){jH.remove();}});}
this.getValues=function(){return jI1.val()+' bis '+jI2.val();}
this.setValue=function(sValue){var aValue=sValue.split(':');jI1.val(aValue[0]);jI2.val(aValue[1]);jSlider.slider("values",[jI1.val(),jI2.val()]);}}
window.jso['/FilterMaxSlider']=function(){var that=this;var oMeta=that.jE.metadata();var oRange=oMeta.range;var iStep=oMeta.step;var sName=oMeta.name;var jI=$('<input />').val(oRange[0]).attr('id','__filter'+oMeta.name);var jSlider=$('<div></div>');this.FilterMaxSlider=function(){jI.appendTo(that.jE);jSlider.appendTo(that.jE);jI.before('<label for="'+'__filter'+oMeta.name+'">bis</label>');that.initializeChildren();jSlider.slider({range:"min",min:oRange[0],max:oRange[1],step:iStep,value:oRange[0],slide:function(event,ui){var iValue=ui.value;jI.val(iValue);}});jI.change(function(){if($(this).val()<=oRange[1]){jSlider.slider("value",$(this).val());}});jSlider.find('a').css('background-image','url(http://data.dci-se.de/img/slider-left.png)');var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var jH=that.jE.children('input[type=hidden]');if(jI.val()!=oRange[0]){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(jI.val()).appendTo(that.jE);else
jH.val(jI.val());}
else if(jH.length>0){jH.remove();}});}
this.getValues=function(){return'bis '+jI.val();}
this.setValue=function(iValue){jI.val(iValue);jSlider.slider("value",jI.val());}}
window.jso['/FilterAutoComplete']=function(){var that=this;var oMeta=that.jE.metadata();var sName=oMeta.name;var oAttr=this.getJSDs();var jI=$('<input />');this.FilterAutoComplete=function(){jI.appendTo(that.jE);jI.click(function(){$(this).val('');});var aAuto=[];jQuery.each(oAttr,function(sKey,sLabel){if(sKey.substr(0,1)!='_')aAuto.push(sLabel);});jI.autocomplete({source:aAuto});var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var sVal=jI.val();jQuery.each(oAttr,function(sKey,sLabel){var jH=that.jE.children('input[type=hidden]');if(sLabel==sVal){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(sKey).appendTo(that.jE);else
jH.val(sKey);}
else if(jH.length>0){jH.remove();}});});}
this.getValues=function(){return jI.val();}
this.setValue=function(sValue){jQuery.each(oAttr,function(sKey,sLabel){if(sKey==sValue)jI.val(sLabel);});}}
window.jso['/FilterText']=function(){var that=this;var oMeta=that.jE.metadata();var sName=oMeta.name;var jI=$('<input />');this.FilterText=function(){jI.appendTo(that.jE);var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var jH=that.jE.children('input[type=hidden]');if(jI.val()!=''){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(jI.val()).appendTo(that.jE);else
jH.val(jI.val());}
else if(jH.length>0){jH.remove();}});}
this.getValues=function(){return jI.val();}
this.setValue=function(sValue){jI.val(sValue);}}
window.jso['/FilterDropDown']=function(){var that=this;var oMeta=that.jE.metadata();var sName=oMeta.name;this.FilterDropDown=function(){var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var jH=that.jE.children('input[type=hidden]');if(that.jE.find('select').val()!=''){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(that.jE.find('select').val()).appendTo(that.jE);else
jH.val(that.jE.find('select').val());}
else if(jH.length>0){jH.remove();}});}
this.getValues=function(){return that.jE.find('option:selected').text();}
this.setValue=function(sValue){that.jE.find('option').each(function(){if($(this).val()==sValue)$(this).attr('selected','selected');});}}
window.jso['/FilterCB']=function(){var that=this;var oMeta=that.jE.metadata();var sName=oMeta.name;this.FilterCB=function(){var jLabel=that.jE.find('.jso_FormLabel');jLabel.each(function(){var jL=$(this);var iI=jL.parent().index()+1;jL.siblings('input').attr('id','__filter'+oMeta.name+'_'+iI);jL.attr('for','__filter'+oMeta.name+'_'+iI);});that.initializeChildren();var jForm=that.jE.closest('.jso_Form');if(jForm.length)jForm.getObj().registerMessage('beforeSubmit',function(){var jInputs=that.jE.find('input:checked');if(jInputs.length){var aVals=[];that.jE.find('input:checked').each(function(){aVals.push($(this).val());});var jH=that.jE.children('input[type=hidden]');if(aVals.length>0){if(jH.length<=0)
var jHiddenEl=$('<input />').attr({'type':'hidden','name':'filter['+oMeta.name+']'}).val(aVals.join(',')).appendTo(that.jE);else
jH.val(aVals.join(','));}
else if(jH.length>0){jH.remove();}}});}
this.getValues=function(){var sValues='';that.jE.find('input:checked').each(function(){sValues+=$(this).next('label').text()+', ';});sValues=sValues.substr(0,sValues.length-2);return sValues;}
this.setValue=function(sValue){var aValues=sValue.split(',');jQuery.each(aValues,function(iKey,iVal){that.jE.find('input[value='+iVal+']').attr('checked','checked');});}}
window.jso['/loginUser']=function(){var that=this;var oCb=null;var jLog=null;this.login=function(oCallback){if(!jLog)return;oCb=oCallback;jLog.click();}
this.userLogged=function(){tb_remove();if(oCb)setTimeout(oCb,250);oCb=null;that.jE.remove();}
this.loginUser=function(){if(window.oCfg.Login)jLog=jQuery('<a class="thickbox" href="'+window.oCfg.Login+'&amp;notify=true&amp;TB_iframe=true&amp;width=400&amp;height=200">&nbsp;</a>');}}
window.jso['/testLoginUser']=function(){var that=this;var doSomething=function(){alert('logged');}
this.testLoginUser=function(){that.jE.click(function(){if(jQuery('#jsid_loginUser').length){var oLog=jQuery('#jsid_loginUser').getObj();if(oLog)oLog.login(doSomething);else alert('err');}
else doSomething();});}}
window.jso['/breadCrumb']=function(){var that=this;this.breadCrumb=function(){var jCrumbs=that.jE.html().split('::');that.jE.empty();that.jE.append('<img src="http://data.dci-se.de/img/breadcrumb_bg_left.gif" class="jsc_breadCrumbLeft">');that.jE.append('<img src="http://data.dci-se.de/img/breadcrumb_bg_right.gif" class="jsc_breadCrumbRight">');var sHome=document.location.href.replace('http://','').split('/');that.jE.append('<a href="http://'+sHome[0]+'"><img src="http://data.dci-se.de/img/breadcrumb_home.png" class="jsc_breadCrumbHome"></a>');$(jCrumbs).each(function(key,value){var jCrumb=$('<div></div>').append('<img src="http://data.dci-se.de/img/breadcrumb_trenner.gif"><span>'+value+'</span>');that.jE.append(jCrumb);});}}
window.jso['/Partner']=function(){var that=this;this.Partner=function(){oMeta=that.jE.metadata();if(oMeta.rel){var jObj=jQuery(document.createElement('img')).attr({'title':oL.icons.partner,'src':'http://data.dci-se.de/img/icons/partner.gif'});jQuery('.'+oMeta.rel).objInit(function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();if(oObj){oObj.addElement(jObj.clone().click(function(){var addPartner=function(){$.ajax({'type':'POST','url':window.oCfg['Partnerships']['new'],'data':'comp1='+oParent.getJSDs().uid,'success':function(sData){alert(sData);}});}
if(jQuery('#jsid_loginUser').length){var oLog=jQuery('#jsid_loginUser').getObj();if(oLog)oLog.login(addPartner);}
else addPartner();}));}});}}}
window.jso['/Niederlassung']=function(){var that=this;this.Niederlassung=function(){oMeta=that.jE.metadata();var sAPI=oMeta.type?oMeta.type:'partner';var sMid=oMeta.mid?oMeta.mid:'mid';if(oMeta.rel){var jObj=jQuery(document.createElement('img')).attr({'title':oL.icons.partner,'src':'http://data.dci-se.de/img/icons/partner.gif'});jQuery('.'+oMeta.rel).objInit(function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();if(oObj){oObj.addElement(jObj.clone().click(function(){var addPartner=function(){$.get(window.oCfg["AjaxContent"][sAPI]+'&'+sMid+'='+oParent.getJSDs().uid+"&type=55",function(jsonData){jsonData=$.parseJSON(jsonData);if(jsonData["error"]){jsonData["error"].showDiag(0);}
else{jsonData["success"].showDiag(1);}});}
if(jQuery('#jsid_loginUser').length){var oLog=jQuery('#jsid_loginUser').getObj();if(oLog)oLog.login(addPartner);}
else addPartner();}));}});}}}
window.jso['/pdf']=function(){var that=this;var oMeta=that.jE.metadata();this.pdf=function(){this.jE.text('');if(oMeta.rel||oMeta.id){var jObj=jQuery(document.createElement('img')).attr('src','http://data.dci-se.de/img/icons/pdf.gif').attr('title',oL.icons.pdf).wrap('<a href="#" target=""></a>');var oCb=function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();if(oObj){$('.navMenu:eq(1) > a').click();oObj.addElement(jObj.clone().click(function(){oPdfData=jQuery('<div></div>');oParent.jE.clone().find('.jsp_print').each(function(){$(this).css({'margin-left':'15px','position':'static','clear':'both','display':'block'});$(this).prev().css({'margin-bottom':'10px','padding':'10px','padding-left':'15px','position':'static','clear':'both','display':'block'});$(this).find('.jsp_no-print').each(function(){$(this).remove();});oPdfData.append($(this).prev());oPdfData.append('<br /><br />');oPdfData.append($(this));});var oNewPdf=$('<html>');var oHead=$('<head>').html('<link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/ma/index.css" media="screen" /><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/1.0/core.css" media="screen" /><link rel="stylesheet" type="text/css" href="http://data.dci-se.de/css/ma/pdf.css" media="screen" />').appendTo(oNewPdf);var bProduct=false;if(jQuery(oParent.getXML()).find('.jsd_logo').text()!=''){var sLogo=jQuery(oParent.getXML()).find('.jsd_logo').text();var sHeader=jQuery(oParent.getXML()).find('.jsd_company').text()}
else
{var sLogo=jQuery(oParent.getXML()).find('.jsd_image_1').text();var sHeader=jQuery(oParent.getXML()).find('.jsd_title').text();bProduct=true;if(jQuery(oParent.getXML()).find('.jsd_comp_company').text()!=''){sHeader+='<br/>Hersteller: '+jQuery(oParent.getXML()).find('.jsd_comp_company').text();}}
var oBody=$('<body>').html('<div style="padding:10px 0px 10px 0px;border-bottom:1px solid #CBCBCB;width:672px;height:65px;">'+(sLogo?'<img class="printlogo" src="'+sLogo+'" border="0">':'')+'<div style="position:absolute;top:15px;width:170px;left:120px;float:left;"><strong>'+sHeader+'</strong><br>'+(bProduct?jQuery(oParent.getXML()).find('.jsd_comp_zip').text():jQuery(oParent.getXML()).find('.jsd_zip').text())+' '+(bProduct?jQuery(oParent.getXML()).find('.jsd_comp_city').text():jQuery(oParent.getXML()).find('.jsd_city').text())+'<br/>'+(bProduct?jQuery(oParent.getXML()).find('.jsd_comp_street_number').text():jQuery(oParent.getXML()).find('.jsd_street_number').text())+'</div><div style="position:absolute;top:15px;left:300px;float:right;width:365px;">'+(bProduct?'Telefon: '+jQuery(oParent.getXML()).find('.jsd_comp_phone').text()+'<br/>Fax: '+jQuery(oParent.getXML()).find('.jsd_comp_fax').text()+'<br/>E-Mail: '+jQuery(oParent.getXML()).find('.jsd_comp_email').text():jQuery(oParent.getXML()).find('.jsd_company_short_desc').text())+'</div></div><br><br><div style="margin-right: 0px; width: 672px;" class="jsc_Box-Inner jst_Box"><div style="width: 672px; margin-right: 0px; display: block;" class="jso_slideContainer jsc_CompanyProfile jsp_fade jsp_varHeight jsc_slideContainer"><div style="width: 668px; height: 380px; display: block; " class="jso_slideContainer jsp_fade jsp_varHeight jsc_slideContainer">'+oPdfData.html()+'</div></div></div>').appendTo(oNewPdf);var sPdfData=oNewPdf.html();sBaseUrl=document.location.href.replace('http://','');if(sBaseUrl.indexOf('/')!=-1)
{sBaseUrl=sBaseUrl.split('/')[0];}
if(sPdfData.indexOf(sBaseUrl+'/uploads')==-1)
{sPdfData=sPdfData.replace(/uploads/g,'http://'+sBaseUrl+'/uploads');}
sPdfData=sPdfData.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');jLoaderContainer=$('<div style="display:none;height:'+$('#container').height()+'px;background-color:#000000;position:absolute;top:0px;left:0px;z-index:101;"></div>').css({'opacity':0.5,'width':'100%'});jLoader=$('<div></div>').css('z-index','102').attr('align','center').html('&nbsp;&nbsp;<img style="padding-top:10px;" src="http://data.dci-se.de/img/loading_small.gif" border="0">').css({'border':'4px solid #525252','opacity':1,'vertical-align':'middle','position':'fixed','left':'50%','top':'50%','margin-left':'-175px','margin-top':'-17px','z-index':'102','background-color':'#ffffff','display':'none','height':'35px','width':'350px'});$('body').append(jLoaderContainer);$('body').append(jLoader);if(jQuery.browser.msie&&(parseInt(jQuery.browser.version,10)<7))jLoader.css('position','absolute');jLoaderContainer.fadeIn('fast');jLoader.fadeIn('fast');$.post("fileadmin/services/pdfgen_client.php",{'task':'normal_print','html':'<html>'+sPdfData+'</html>'},function(post_answer){jLoaderLink=$('<a href="http://pdfgen.dci-system-design.de/tmp_pdf/'+post_answer+'" target="_blank">'+window.oL.pdfdl+'</a>').click(function(){jLoaderContainer.fadeOut('fast');jLoader.fadeOut('fast');});jLoaderDiv=$('<div></div>').css('padding-top','10px').html('&nbsp;&nbsp;'+window.oL.pdfgen+'&nbsp;').append(jLoaderLink);jLoader.html('').append(jLoaderDiv);});}));}};if(oMeta.rel)jQuery('.'+oMeta.rel).objInit(oCb);else if(oMeta.id){window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(oCb);});});}}}}
window.jso['/Zettel']=function(){var that=this;var oMeta=that.jE.metadata();var sCookie=oMeta.type?'merkzettel_'+oMeta.type:'merkzettel';var sMerkzettel=window.cookieFunc.readCookie(sCookie);var iMerkzettel=0;this.Zettel=function(){if(oMeta.rel||oMeta.id){var jObj=jQuery(document.createElement('img')).attr('title',oL.icons.zettel);var oCb=function(oParent){var oObj=this.find('.jso_IconBar:eq(0)').getObj();if(oObj){var sMerkzettel=window.cookieFunc.readCookie(sCookie);if(sMerkzettel)
{var aMerkzettel=sMerkzettel.split('\n');if(jQuery.inArray(oParent.getJSDs().uid,aMerkzettel)!=-1)
{jObj.attr('src','http://data.dci-se.de/img/icons/zettel_active.gif').attr('title',oL.icons.zettel_active);}
else
{jObj.attr('src','http://data.dci-se.de/img/icons/zettel.gif').attr('title',oL.icons.zettel);}}
else
{jObj.attr('src','http://data.dci-se.de/img/icons/zettel.gif').attr('title',oL.icons.zettel);}
oObj.addElement(jObj.clone().click(function(){var sMerkzettel=window.cookieFunc.readCookie(sCookie);if(sMerkzettel)
{var aMerkzettel=sMerkzettel.split('\n');var iMerkzettel=aMerkzettel.length-1;if(jQuery.inArray(oParent.getJSDs().uid,aMerkzettel)==-1)
{window.cookieFunc.createCookie(sCookie,sMerkzettel+oParent.getJSDs().uid+'\n','');$(this).attr('src','http://data.dci-se.de/img/icons/zettel_active.gif').attr('title',oL.icons.zettel_active);iMerkzettel++;}
else
{$(this).attr('src','http://data.dci-se.de/img/icons/zettel.gif').attr('title',oL.icons.zettel);if(that.jE.children('a').css('display')=='none')
{oParent.jE.slideUp('fast');}
var sUpdateMerkzettel='';for(i=0;i<aMerkzettel.length;i++)
{if(aMerkzettel[i]!=oParent.getJSDs().uid&&aMerkzettel[i]!='')
{sUpdateMerkzettel+=aMerkzettel[i].trim()+'\n';}}
window.cookieFunc.createCookie(sCookie,sUpdateMerkzettel,'');iMerkzettel--;}}
else
{window.cookieFunc.createCookie(sCookie,oParent.getJSDs().uid+'\n','');$(this).attr('src','http://data.dci-se.de/img/icons/zettel_active.gif').attr('title',oL.icons.zettel_active);var iMerkzettel=1;}
that.jE.children('a').html('Merkzettel ('+iMerkzettel+')');that.sendMessage('update',{'sZettel':window.cookieFunc.readCookie(sCookie),'sType':(oMeta.type?oMeta.type:'')});}));}};if(oMeta.rel)jQuery('.'+oMeta.rel).objInit(oCb);else if(oMeta.id){window.aes.addScheduleEntry(function(){var oResCtr=jQuery('#'+oMeta.id).getObj();if(oResCtr)oResCtr.registerMessage('before_initElements',function(sMsg,oData){oData.elems.objInit(oCb);});});}}}}
window.jso['/ToolBar/Zettel']=function(){}
window.oCfg.Base={'pids':{'company_profile':33,'company_sel_categories':285,'reg_company_sysfolder':2,'result_category':38,'result_company':287}}
window.oCfg.ResultsLogger={'api':'/index.php?id=528','actions':{'profile_view':['.jsid_Companies',2],'profile_view_int':['.jsid_Companies',-1,'> div.jsc_Box-Inner > div.jso_slideContainer > div.jso_Slide:eq(1) > div.jso_verttabBox'],'profile_view_pdf':['.jsid_Companies',-2,'> div.jsc_Box-Inner > ul.jso_IconBar > li > img[src$="pdf.gif"]'],'profile_view_mail':['.jsid_Companies',-2,'> div.jsc_Box-Inner > ul.jsc_IconBar > li > a:has(img[src$="mail.gif"])'],'profile_view_zettel':['.jsid_Companies',-2,'> div.jsc_Box-Inner > ul.jsc_IconBar > li > img[src$="zettel.gif"]'],'profile_view_tel':['.jsid_Companies',-2,'img[title="Telefon"]'],'profile_clicked_homepage':['.jsid_Companies',-2,'.jsid_homepage_link'],'profile_clicked_mail':['.jsid_Companies',-2,'.jsid_mail_link']}}
window.oCfg.ProdResLogger={'api':'/index.php?id=528','actions':{'prod_profile_view':['.jsid_Products',2],'prod_profile_view_int':['.jsid_Products',-1,'> div.jsc_Box-Inner > div.jso_slideContainer > div.jso_Slide:eq(1) > div.jso_verttabBox'],'prod_profile_view_pdf':['.jsid_Products',-2,'> div.jsc_Box-Inner > ul.jso_IconBar > li > img[src$="pdf.gif"]'],'prod_profile_view_mail':['.jsid_Products',-2,'> div.jsc_Box-Inner > ul.jsc_IconBar > li > a:has(img[src$="mail.gif"])'],'prod_profile_view_tel':['.jsid_Products',-2,'> div.jsc_Box-Inner > ul.jsc_IconBar > li > img[src$="phone.gif"]'],'prod_profile_view_zettel':['.jsid_Products',-2,'> div.jsc_Box-Inner > ul.jsc_IconBar > li > img[src$="zettel.gif"]']}}
window.jso['/OptimizeFormSpeed']=function(){var that=this;this.OptimizeFormSpeed=function(){that.jE.hide();var jTabs=this.jE.next('.jso_verttabBox');if(jTabs.length){jTabs.children('.jso_slideContainer').children('.jso_Page').not(':first').addClass('jsp_delay');}
this.parentReady(function(){var oObj=jTabs.getObj();if(oObj&&(jTabs.getObj().getVisiblePageCount()>1)){var ajSlides=[];var iI=1;var jCont=jQuery('<div></div>');jTabs.children('.jso_slideContainer').children('.jso_Slide').not(':first').each(function(){iI++;var jE=jQuery(this);var jR=jQuery('<div class="jso_Slide" style="display: hidden;"></div>');jE.before(jR);jE.appendTo(jCont);ajSlides[iI]=[jE,jR];});oObj.registerMessage('on_gotoSlide',function(sMsg,oData){if(ajSlides[oData.iPage]&&(ajSlides[oData.iPage].length===2)){ajSlides[oData.iPage][0].insertBefore(ajSlides[oData.iPage][1]);ajSlides[oData.iPage][1].remove();ajSlides[oData.iPage]=[];}});}});}}
