uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var intcomplate=0;imgarr=new Array();altarr=new Array();linkarr=new Array();targetarr=new Array();titarr=new Array();desarr=new Array();imgarr[0]="";altarr[0]="";linkarr[0]="";targetarr[0]="";titarr[0]="";desarr[0]="";imgarr[1]="alaro_Page_05.jpg";altarr[1]="";linkarr[1]="";targetarr[1]="_self";titarr[1]="Wohnen";desarr[1]="";imgarr[2]="modell.jpg";altarr[2]="";linkarr[2]="";targetarr[2]="_self";titarr[2]="Architektur";desarr[2]="";imgarr[3]="cielodebonai.jpg";altarr[3]="Geniessen";linkarr[3]="";targetarr[3]="_self";titarr[3]="";desarr[3]="";var gnrated='';var stepcount=20;var currstep=10;var timeo=null;var horvert=0;var llllll=0;var lllllll=0;var llllllll=0;var ll=new Array();var lll=new Array();var llll=new Array();var startposx=new Array();var lllll=new Array();var i=0;var lllllllll=0;var DescCalcLeftBir=0;var DescCalcLeft=0;var DescCalcWidth=0;var DescCalcHeight=0;var DescCalcIcWidth=0;var DescCalcIcHeight=0;var hpiece='';var ds="";var IEDescOpacity=100;var FFOpacity=1.0;var DescFadeEffectTimer=null;var AutoPlayTimer=null;var AutoPlayCurrent=1;var icerdemi=0;function WriteDesc(){	if(linkarr[i].length>2){ds=ds+'<a href="'+linkarr[i]+'" target="'+targetarr[i]+'" style="text-decoration:none;">';}	ds=ds+'<div id="adesc'+i+'" style="position:absolute;top:'+80+'px;left:0px;width:'+DescCalcWidth+'px;height:'+DescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="outall()">';	ds=ds+'<div style="position:absolute;left:0px;top:0px;width:'+DescCalcWidth+'px;height:'+DescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'666666'+';opacity: '+0.50+';filter:alpha(opacity='+50+');" onMouseOut="outall()"></div>';	ds=ds+'<div style="position:relative;left:0px;top:0px;width:'+DescCalcIcWidth+';height:'+DescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'FF9900'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+20+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="outall()">';	ds=ds+'<span style="color:#'+'FF9900'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+50+';font-weight:'+'normal'+';text-decoration:'+'none'+';" onMouseOut="outall()">'+titarr[i]+'</span>';	if(titarr[i].length>0){ds=ds+'<br />';}			ds=ds+''+desarr[i];	ds=ds+'</div>';	ds=ds+'</div>';	if(linkarr[i].length>2){ds=ds+'</a>';}}function init_doc(fstr,hormuvertmi){	DescCalcLeftBir=5;		if((0==0)&&(horvert==0))	{		DescCalcLeft=5+4;	}	else	{		DescCalcLeft=5;	}	if(0==0)	{		DescCalcWidth=518-5-5;	}	else	{		DescCalcWidth=518-5-5;	}	if((horvert==1)&&(0==1))	{		DescCalcHeight=220-80-5;	}	else	{		DescCalcHeight=220-80-5;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		DescCalcIcWidth=DescCalcWidth;		DescCalcIcHeight=DescCalcHeight;	}	else	{		DescCalcIcWidth=DescCalcWidth-2*(2)-2*(3);		DescCalcIcHeight=DescCalcHeight-2*(2)-2*(3);	}	folderset=fstr;	var tmpleftpad=0;	var tmptoppad=0;	hpiece=hpiece+'<div style="position:relative;width:'+518+'px;height:'+220+'px;border-style:solid;border-width:'+0+'px;border-color:#'+'666666'+';">';	hpiece=hpiece+'<div style="position:relative;width:'+518+'px;height:'+220+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="outall()" onMouseOut="mouse_divout()">';	if(0==1)	{		for(i=1;i<=3;i++) 		{			WriteDesc();		}	}	for(i=1;i<=3;i++)	{		if(horvert==0)		{			if(i==1){tmpleftpad=0;}else{tmpleftpad=4;}			tmptoppad=0;		}		else		{			tmpleftpad=0;			if(i==1){tmptoppad=0;}else{tmptoppad=4;}		}		gnrated=gnrated+'<div id="po'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="mouse_over('+i+')" onMouseOut="outall()"><div style="background-color:#FFFFFF;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+linkarr[i]+'" target="'+targetarr[i]+'"><img width="'+518+'" height="'+220+'" src="'+folderset+imgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+altarr[i]+'"></img></a>';		if(0==0)		{			ds="";			WriteDesc();			gnrated=gnrated+ds;		}		gnrated=gnrated+'</div></div>';	}	hpiece=hpiece+gnrated;	if(0==1)	{		hpiece=hpiece+ds;	}	hpiece=hpiece+'</div>';	hpiece=hpiece+'</div>';	document.write(''+hpiece);	setTimeout("init_position("+parseInt(hormuvertmi)+")",50);}function init_position(hv){	horvert=hv;	for(i=1;i<=3;i++)	{		ll[i]=document.getElementById('po'+i);		lll[i]=document.getElementById('adesc'+i);		if((ll[i]==null)||(lll[i]==null))		{		    setTimeout("init_position("+parseInt(hv)+")",200);		    return;		}	}		if(horvert==0)	{		llllll=parseInt(     (518-((3-1)*4))     /(3));		lllllll=llllll+4;		llllllll=parseInt(((518-518)/(3-1)));	}	else	{		llllll=parseInt(     (280-((3-1)*4))     /(3));		lllllll=llllll+4;		llllllll=parseInt(((280-220)/(3-1)));	}	for(i=1;i<=3;i++)	{		ll[i]=document.getElementById('po'+i);		sx=(lllllll*(i-1))-4;		if(horvert==0)		{			if(i==1)			{				ll[i].style.left="0px";			}			else			{				ll[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				ll[i].style.top="0px";			}			else			{				ll[i].style.top=""+sx+"px";			}		}		startposx[i]=sx;		lllll[i]=startposx[i];		if(i==1)		{			lll[i].style.left=""+DescCalcLeftBir+"px";		}		else		{			lll[i].style.left=""+DescCalcLeft+"px";		}			}	intcomplate=1;	if(1==1)	{		DoAutoPlay();	}}function DoAutoPlay(){	mouse_over(AutoPlayCurrent);	AutoPlayCurrent=AutoPlayCurrent+1;	if(AutoPlayCurrent>3)	{		AutoPlayCurrent=1;	}	AutoPlayTimer=setTimeout("DoAutoPlay()",4000);}function do_FadeAnim(){	if(lllllllll<1)	{		return;	}	IEDescOpacity=IEDescOpacity+5;	FFOpacity=FFOpacity+0.05;	if(IEB==true)	{		if(IEDescOpacity>100)		{			IEDescOpacity=100;			return;		}	}	else	{		if(FFOpacity>1.00)		{			FFOpacity=1.00;			return;		}	}	if(IEB==true)	{		lll[lllllllll].filters.item(0).opacity=IEDescOpacity;	}	else	{		lll[lllllllll].style.opacity = FFOpacity;	}	DescFadeEffectTimer=setTimeout("do_FadeAnim()",20);}function do_anim(){	if(currstep<=0)	{		if(lllllllll>=1)		{			if(horvert==0)			{				if(lllllllll==1)				{					lll[lllllllll].style.left=""+DescCalcLeftBir+"px";				}				else				{					lll[lllllllll].style.left=""+DescCalcLeft+"px";				}			}			else			{				if(0==0)				{					lll[lllllllll].style.left=""+(DescCalcLeft+parseInt(ll[lllllllll].style.left))+"px";					var DesvertTop=0;					if((lllllllll>1) &&(lllllllll!=3)){DesvertTop=80+4;}else{DesvertTop=80;}					lll[lllllllll].style.top=""+(DesvertTop)+"px";				}				else				{					lll[lllllllll].style.left=""+(DescCalcLeft)+"px";					lll[lllllllll].style.top=""+80+"px";				}			}			if((titarr[lllllllll].length>0)||(desarr[lllllllll].length>0))			{				if(2==2)				{					IEDescOpacity=0;					FFOpacity=0.00;					do_FadeAnim();					lll[lllllllll].style.visibility="visible";				}				else				{					lll[lllllllll].style.visibility="visible";				}			}			else			{				lll[lllllllll].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=3;i++)	{		lllll[i] = parseInt(lllll[i])+parseInt((llll[i]-lllll[i])/currstep);		if(horvert==0)		{			ll[i].style.left=""+lllll[i]+"px";		}		else		{			ll[i].style.top=""+lllll[i]+"px";		}	}	if((2==1)&&(lllllllll>=1))	{		var dtop=0;		if((titarr[lllllllll].length>0)||(desarr[lllllllll].length>0))		{    		lll[lllllllll].style.visibility="visible";        }        else        {            lll[lllllllll].style.visibility="hidden";        }		dtop= 80+        parseInt(DescCalcHeight-      ((DescCalcHeight/stepcount)*(stepcount-(currstep-1)))         );		lll[lllllllll].style.top=""+dtop+"px";	}	currstep--;	setTimeout("do_anim()",40);}function reposition(g){	for(i=1;i<=3;i++)	{		if(i<=g)		{			if(i==1)			{				llll[i]=0;			}			else			{				llll[i]=parseInt(((i-1)*llllllll)-4);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+llllllll;			}			if(horvert==0)			{				llll[i]=parseInt(((518)+(oncekix)));			}			else			{				llll[i]=parseInt(((220)+(oncekix)));			}		}			}	if((horvert==0)&&(3==g))	{		var bul1=llll[3]+4+518;		var bul2=518-bul1;		llll[3]=llll[3]+bul2;	}	if((horvert==1)&&(3==g))	{		var bul1=llll[3]+4+220;		var bul2=220-bul1;		llll[3]=llll[3]+bul2;	}	currstep=stepcount;	do_anim();}function mouse_over(g){	if(intcomplate==0){return;}	if(g==lllllllll){return;}	lllllllll=g;	clearTimeout(timeo);	if(1==1){if(icerdemi==1){clearTimeout(AutoPlayTimer);}}	for(i=1;i<=3;i++)	{		if(i!=g)		{			lll[i].style.visibility="hidden";			if(IEB==true)			{				lll[i].filters.item(0).opacity=100;			}			else			{				lll[i].style.opacity = 1.0;			}		}	}	reposition(g);}function outall(){	icerdemi=1;	clearTimeout(AutoPlayTimer);	clearTimeout(timeo);}function mouse_divout2(){	icerdemi=0;	clearTimeout(timeo);	if(1==1)	{		clearTimeout(AutoPlayTimer);		AutoPlayCurrent=1;		DoAutoPlay();	}	else	{	for(i=1;i<=3;i++)	{		lll[i].style.visibility="hidden";	}	for(i=1;i<=3;i++)	{		sx=(lllllll*(i-1))-4;		if(i==1)		{			llll[i]=0;		}		else		{			llll[i]=sx;		}			}	lllllllll=-1;	currstep=stepcount;	do_anim();	}}function mouse_divout(){	clearTimeout(timeo);	timeo=setTimeout("mouse_divout2()",300);}
