<!--
function ContainerGroup(category_id, container_id){this.action=true;this.start=0;this.category_id=category_id;this.container_id=container_id;this.texts=[];this.elementIndex=1;this.ajax=new Ajax();this._wait(true);this.ajax.send('/root/content/content/containerGroup.xml', 'CATEGORY_ID='+this.category_id+';CONTAINER_ID='+this.container_id+';START='+this.start, 'containerGroup.setInit', [0]);};ContainerGroup.prototype.setStatistic=function(){setStatistik('GAL'+(this.category_id==-1?'':this.category_id), 'Galerie');};ContainerGroup.prototype.setMove=function(start){updateOms(728, 90);updateOms(120, 600);this.setStatistic();if(!this.action){this.action=true;this._wait(true);this.ajax.send('/root/content/content/containerGroup.xml', 'CATEGORY_ID='+this.category_id+';CONTAINER_ID='+this.container_id+';START='+start, 'containerGroup.setInit', [start]);}};ContainerGroup.prototype.setInit=function(parameter, start){if(parameter.length > 0){parameter=parameter.split('|');if(parameter.length > 0){this.start=parseInt(start);document.getElementById('ContainerGroup').style.display='block';this.texts=[];html='';next=false;count=parameter.length;if(count > 11){count=11;next=true;}if(this.start > 0){html+='<a href="javascript:containerGroup.setMove('+(this.start - 11)+')" class="Back" alt="zur&uuml;ck"></a>';}else{html+='<div class="BackOff"></div>';} for (i=0; i < count; i++){values=parameter[i].split('#');this.texts.push(values[0]);width=parseInt(values[2]) / 10;height=parseInt(values[3]) / 10;marginTop=(6 - height) / 2;marginLeft=(6 - width) / 2;html+='<a href="/aktuell/container/container/con/'+values[4]+'.html" onmouseover="javascript:containerGroup.setText('+i+')"><img name="ContainerGroup" src="/'+values[1]+'" alt="" style="margin-top:'+marginTop+'em;margin-left:'+marginLeft+'em;width:'+(width)+'em;height:'+(height)+'em" border="0"/></a>';}if(next){html+='<a href="javascript:containerGroup.setMove('+(this.start+11)+')" class="Next" alt="weiter"></a>';}else{html+='<div class="NextOff"></div>';}if(this.elementIndex==1){this.elementIndex=2;elementIndexOld=1;}else{this.elementIndex=1;elementIndexOld=2;}elementNew=document.getElementById('ContainerGroupBlock'+this.elementIndex);elementOld=document.getElementById('ContainerGroupBlock'+elementIndexOld);elementNew.innerHTML=html;this._setInit(elementNew, elementOld);}}};ContainerGroup.prototype._setInit=function(elementNew, elementOld){loadingComplete=true;images=document.images;for (i=0; i < images.length; i++){if(images[i].name=='ContainerGroup'&&!images[i].complete){loadingComplete=false;break;}}if(loadingComplete||this.count >=100){elementNew.style.visibility='visible';elementNew.style.display='block';elementOld.style.visibility='hidden';this.setText(0);this._wait(false);this.action=false;}else{var o=this;setTimeout(function(){o._setInit(elementNew, elementOld)}, 50);}};ContainerGroup.prototype.setText=function(index){ document.getElementById('ContainerGroupText').innerHTML='<p>'+this.texts[index]+'</p>';};ContainerGroup.prototype._wait=function(enabled){wait=document.getElementById('ContainerGroupWait');if(enabled){wait.style.visibility='visible';}else{wait.style.visibility='hidden';}};// -->
