uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;OPB=(uagent.indexOf('opera') != -1)?true:false;CRB=(uagent.indexOf('chrome') != -1)?true:false;SFB=(uagent.indexOf('safari') != -1)?true:false;var scompat = document.compatMode;var aecs=null;var aecdescgoster=0;var aecthumbgoster=0;var aeccwidth=0;var aeccheight=0;var aeccalc=0;var aectam=0;var aeckalan=0;var aeckalany=0;var aects="";var aecds="";var aecjbtype=0;var aecrealcurrent=0;var aectimeo=null;aecthumbs_obj=null;aecmoving_obj=null;aecTotalThumbWidth=0;aecTotalThumbHeight=0;aecMoveIcWidth=0;var TBW=0;var aecDescCalcWidth=0;var aecDescCalcHeight=0;var aecDescCalcIcWidth=0;var aecDescCalcIcHeight=0;var MoveWidth=0;var ThumbAreaWidth=340;var ThumbAreaHeight=340;aecimgarr=new Array();aecthumbimgstr=new Array();aecimgstr=new Array();aeclinkstr=new Array();aecclslinkstr=new Array();aectitarr=new Array();aecdesarr=new Array();aecimgarr[0]=new Image();aecimgarr[0].c=0;aecimgarr[0].onload = aecsecondcomplate;aecimgarr[0].src=aecfoldername+'assets/images/web/aec.jpg';aecimgstr[0]=aecfoldername+'assets/images/web/aec.jpg';aecthumbimgstr[0]=aecfoldername+'assets/images/web/aec.jpg';aeclinkstr[0]='<a href="http://www.aec.org/search/exSearch.cfm?CFID=790411&CFTOKEN=46148854" target="_blank">';aecclslinkstr[0]='</a>';aectitarr[0]="";aecdesarr[0]="";aecimgarr[1]=new Image();aecimgarr[1].c=0;aecimgarr[1].onload = aecsecondcomplate;aecimgarr[1].src=aecfoldername+'assets/images/web/aec-2.jpg';aecimgstr[1]=aecfoldername+'assets/images/web/aec-2.jpg';aecthumbimgstr[1]=aecfoldername+'assets/images/web/aec-2.jpg';aeclinkstr[1]='<a href="http://www.aec.org/search/exSearch.cfm?CFID=790411&CFTOKEN=46148854" target="_blank">';aecclslinkstr[1]='</a>';aectitarr[1]="";aecdesarr[1]="";aecimgarr[2]=new Image();aecimgarr[2].c=0;aecimgarr[2].onload = aecsecondcomplate;aecimgarr[2].src=aecfoldername+'assets/images/web/aec-3.jpg';aecimgstr[2]=aecfoldername+'assets/images/web/aec-3.jpg';aecthumbimgstr[2]=aecfoldername+'assets/images/web/aec-3.jpg';aeclinkstr[2]='<a href="http://www.aec.org/search/exSearch.cfm?CFID=790411&CFTOKEN=46148854" target="_blank">';aecclslinkstr[2]='</a>';aectitarr[2]="";aecdesarr[2]="";if((IEB==true)&&(scompat == "BackCompat" )){    aeccwidth=398;    aeccheight=223;}else{    aeccwidth=398-2*(0);    aeccheight=223-2*(0);}var aecicwidth=398-2*(0);var aecicheight=223-2*(0);aecDescCalcWidth=260;aecDescCalcHeight=80;if((IEB==true)&&(scompat == "BackCompat" )){	aecDescCalcIcWidth=aecDescCalcWidth;	aecDescCalcIcHeight=aecDescCalcHeight;}else{    aecDescCalcIcWidth=aecDescCalcWidth-2*(2)-2*(3);    aecDescCalcIcHeight=aecDescCalcHeight-2*(2)-2*(3);}document.write('<div style="position:relative;width:'+aeccwidth+'px;height:'+aeccheight+'px;overflow:hidden;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'FFEEEE'+';'+''+''+'">');document.write('<div id="aecdv" style="position:relative;width:'+aecicwidth+'px;height:'+aecicheight+'px;overflow:hidden;padding:0px;margin:0px;z-index:1;'+''+'"'+' onfilterchange=aecFadeBitti()'+'></div>');for(i=0;i<3;i++){	aecds=aecds+'<div id="aecdesc'+i+'" style="position:absolute;top:'+120+'px;left:'+10+'px;width:'+aecDescCalcWidth+'px;height:'+aecDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:default;z-index:20;">';	aecds=aecds+'<div style="position:absolute;left:0px;top:0px;width:'+aecDescCalcWidth+'px;height:'+aecDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+'0.50'+';filter:alpha(opacity='+'50'+');-moz-opacity:'+'0.50'+';"></div>';	aecds=aecds+'<div style="position:relative;left:0px;top:0px;width:'+aecDescCalcIcWidth+'px;height:'+aecDescCalcIcHeight+'px;overflow:hidden;padding:'+3+'px;text-align:'+'left'+';border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'990000'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'13px'+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);-moz-opacity:1.0;">';	aecds=aecds+'<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'14px'+';font-weight:'+'bold'+';text-decoration:'+'none'+';">'+aectitarr[i]+'</span><br />'+aecdesarr[i];	aecds=aecds+'</div>';	aecds=aecds+'</div>';}document.write(''+aecds);function aecShowCurrentDesc(){	if((aecdescgoster==1)&&( (aectitarr[aecrealcurrent].length>0) || (aecdesarr[aecrealcurrent].length>0)  ))	{		after_des=document.getElementById('aecdesc'+aecrealcurrent);		after_des.style.visibility="visible";		}}function aecHideCurrentDesc(){	before_des=document.getElementById('aecdesc'+aecvcurr);	before_des.style.visibility="hidden";}function aecHighlightCurrTumb(){	if((0==1)&&(0==0))	{		aecbeforethumb=document.getElementById('aecthumb'+aecvcurr);		aecafterthumb=document.getElementById('aecthumb'+aecrealcurrent);		aecbeforethumb.style.borderColor='999999';		aecafterthumb.style.borderColor='990000';	}}document.write('</div>');function aeczindx(){	aecobjn.style.visibility="visible";	aecobjc.style.zIndex=2;	aecobjn.style.zIndex=3;    }function aecThumbOut(tobj,nm){	if((aecvcurr==nm)&&(0==0))	{}	else	{		tobj.style.borderColor='999999';	}}function aecThumbOver(tobj,nm){	tobj.style.borderColor='990000';}function aecSonrakiClick(c,n){	aecvcurr=c;	aecvnext=n;			aecobjc=document.getElementById('aecd'+aecvcurr);	aecobjn=document.getElementById('aecd'+aecvnext);}function aecSonraki(){	aecvcurr=aecvnext;	aecvnext=aecvnext+1;		if(aecvnext>=3)	{		aecvnext=0;		aectam=1;	}		aecobjc=document.getElementById('aecd'+aecvcurr);	aecobjn=document.getElementById('aecd'+aecvnext);		      }function aecsecondcomplate(){	this.c=1;}function aecdevam(fm,pt){	if((aecimgarr[aecvnext].c==1)&&(aecimgarr[aecvcurr].c==1))	{		aectimeo=setTimeout(fm+'()',pt);	}	else	{		setTimeout('aecdevam("'+fm+'")',500);	}	var aeccagain=1;	for(i=0;i<3;i++)	{		if(aecimgarr[i].c==1){}		else{aeccagain=0;}	}	if(aeccagain==1){aectam=1;}}function ThumbClick(clicked_img,tobj){	if(aecjbtype==1){return;}	clearTimeout(aectimeo);	aecSonrakiClick(aecrealcurrent,clicked_img);	if(aecfademi==1)        {            if(IEB==true)            {		if(aectam==0)		{	    		aecdevam("aecdotrans",4000);		}		else		{			aecdotrans();		}            }            else            {		if(aectam==0)		{    			aecdevam("aecbeftrans",4000);		}		else		{			aecbeftrans();		}            }        }	else if(aecfademi==2)	{		if(aectam==0)		{ 			aecdevam("aecDoSlide",4000);		}		else		{			aecDoSlide();		}	}	else if(aecfademi==3)	{		if(aectam==0)		{ 			aecdevam("aecDoScrollUp",4000);		}		else		{			aecDoScrollUp();		}	}	else if(aecfademi==4)	{		if(aectam==0)		{ 			aecdevam("aecDoBlindX",4000);		}		else		{			aecDoBlindX();		}	}	else if(aecfademi==5)	{		if(aectam==0)		{ 			aecdevam("aecDoBlindY",4000);		}		else		{			aecDoBlindY();		}	}	}function aecsl(){aecfademi=2;aecvcurr=0;aecvnext=0;aecvssdiv=null;stepc=20*(3);aecdif=0.00;aecop=1.00;aecdif=(1.00/stepc);dstr1='<div id="';dstr2='" style="position:absolute;visibility:hidden;'+'left:0px;top:0px;'+'padding:0px;margin:0px;overflow:hidden;">';dstr23='<table cellspacing="0" cellpadding="0" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;"><tr><td style="width:'+aecicwidth+'px;height:'+aecicheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'center'+';vertical-align:'+'middle'+';">';dstr3='<img id="aecimg';dstr4='" src="';dstr5='"  border="0" style="position:relative;border-style:'+'solid'+';border-width:'+'0'+'px;border-color:'+'#999999'+';'+""+'" alt=""></img>';dstr56='</td></tr></table>';dstr6='</div>';this.aecdotrans=aecdotrans;this.aecinitte=aecinitte;this.aecinitte2=aecinitte2;this.aecbeftrans=aecbeftrans;this.aecdotransff=aecdotransff;}function aecFadeBitti(){	aecjbtype=0;	aecShowCurrentDesc();	}function aecdotrans(){	aecjbtype=1;	aecHideCurrentDesc();	if(IEB==true){aecvssdiv.filters[0].apply();}	aecobjc.style.visibility="hidden";	aecobjn.style.visibility="visible";	if(IEB==true){aecvssdiv.filters[0].play();}	aecrealcurrent=aecvnext;	aecHighlightCurrTumb();	aecSonraki();			if(aectam==0){aecdevam("aecdotrans",((1000*3)+4000));}	else	{		aectimeo=setTimeout('aecdotrans()',((1000*3)+4000));	} 	}function aecdotransff(){	aecop=aecop-aecdif;		if(aecop<(0.00)){aecop=0.00;}	aecobjc.style.opacity = aecop;	aecobjn.style.opacity = 1.00-aecop;	if(aecop>(0.00))	{		setTimeout('aecdotransff()',50);	}	else	{		aecobjc.style.zIndex=2;		aecobjn.style.zIndex=3;		aecrealcurrent=aecvnext;		aecShowCurrentDesc();		aecHighlightCurrTumb();				aecSonraki();			        if(aectam==0){aecdevam("aecbeftrans",4000);}        	else {aectimeo=setTimeout('aecbeftrans()',4000);}		aecjbtype=0;  					}}function aecbeftrans(){	aecjbtype=1;	aecHideCurrentDesc();    	aecop=1.00;	aecobjc.style.visibility="visible";	aecobjn.style.visibility="visible";		aecobjc.style.zIndex=3;	aecobjn.style.zIndex=2;		aecobjc.style.opacity = 1.00;		aecobjn.style.opacity = 1.00;			aecdotransff();	}function aecDoSlide(){	aecjbtype=1;	aecHideCurrentDesc();	aeckalan=aeckalan-Math.ceil(aeckalan/3);	aecobjc.style.left=""+(aeckalan-aecicwidth)+"px";	aecobjn.style.left=""+aeckalan+"px";		if(aeckalan<=0)	{		aecrealcurrent=aecvnext;		aecShowCurrentDesc();		aecHighlightCurrTumb();    		aecSonraki();		aeckalan=aecicwidth;		aecobjn.style.left=""+aeckalan+"px";	        		aeczindx();          		aecjbtype=0;        		if(aectam==0){aecdevam("aecDoSlide",4000);}		else {aectimeo=setTimeout('aecDoSlide()',4000);}	}	else	{		setTimeout('aecDoSlide()',50);    	} }function aecDoScrollUp(){	aecjbtype=1;	aecHideCurrentDesc();	aeckalan=aeckalan-Math.ceil(aeckalan/3);	aecobjc.style.top=""+(aeckalan-aecicheight)+"px";	aecobjn.style.top=""+aeckalan+"px";	    if(aeckalan<=0)    {	aecrealcurrent=aecvnext;	aecShowCurrentDesc();	aecHighlightCurrTumb();        aecSonraki();        aeckalan=aecicheight;	aecobjn.style.top=""+aeckalan+"px";	        aeczindx();                 	aecjbtype=0;        if(aectam==0){aecdevam('aecDoScrollUp',4000);}        else{aectimeo=setTimeout('aecDoScrollUp()',4000);}        }    else    {        setTimeout('aecDoScrollUp()',50);        }}function aecDoBlindX(){	aecjbtype=1;	aecHideCurrentDesc();   	aeckalan=aeckalan-Math.ceil(aeckalan/3);	aecobjc.style.left=""+(aecicwidth-aeckalan)+"px";	aecobjn.style.left=""+aeckalan+"px";	    if(aeckalan<=0)    {		aecrealcurrent=aecvnext;		aecShowCurrentDesc();	aecHighlightCurrTumb();            aecSonraki();        aeckalan=aecicwidth;	aecobjn.style.left=""+aeckalan+"px";		    	        aeczindx();	aecjbtype=0;                  if(aectam==0){aecdevam("aecDoBlindX",4000);}        else{aectimeo=setTimeout('aecDoBlindX()',4000);}    }    else    {        setTimeout('aecDoBlindX()',50);        }}function aecDoBlindY(){	aecjbtype=1;	aecHideCurrentDesc();  	aeckalan=aeckalan-Math.ceil(aeckalan/3);	aecobjc.style.top=""+(aecicheight-aeckalan)+"px";	aecobjn.style.top=""+aeckalan+"px";	    if(aeckalan<=0)    {		aecrealcurrent=aecvnext;		aecShowCurrentDesc();aecHighlightCurrTumb();        aecSonraki();        aeckalan=aecicheight;	    aecobjn.style.top=""+aeckalan+"px";                aeczindx();                 	aecjbtype=0;        if(aectam==0){aecdevam("aecDoBlindY",4000);}        else{aectimeo=setTimeout('aecDoBlindY()',4000);}        }    else    {        setTimeout('aecDoBlindY()',50);        } }function aecinitte2(){	aecthumbs_obj=document.getElementById('aecthumbsid');	aecmoving_obj=document.getElementById('aecmovingdiv');	aecvssdiv=document.getElementById("aecdv");	if(3>0)	{		aecobjc=document.getElementById('aecd'+0);			aecobjc.style.visibility="visible";		}	if(3>1)	{		aecvcurr=0;		aecvnext=0;		aecrealcurrent=0;        if(aecfademi==0)        {			aecvcurr=0;			aecvnext=1;			aecrealcurrent=0;			setTimeout('aecdotrans()',4000);                }        else if(aecfademi==1)        {            if(IEB==true)            {	    		aecSonraki();			aecShowCurrentDesc();			aecHighlightCurrTumb();	    		aecdevam("aecdotrans",4000);                       }            else            {	    		aecSonraki();			aecShowCurrentDesc();			aecHighlightCurrTumb();	    		aecdevam("aecbeftrans",4000);                        }        }         else if(aecfademi==2)        {		aeckalan=aecicwidth;     		aecSonraki();		aecrealcurrent=0;		aecShowCurrentDesc();		aecHighlightCurrTumb();		aecobjn.style.left=""+aeckalan+"px";          			aeczindx();            		aecdevam("aecDoSlide",4000);		   	                }        else if(aecfademi==3)        {		aeckalan=aecicheight;            		aecSonraki();		aecrealcurrent=0;		aecShowCurrentDesc();		aecHighlightCurrTumb();		aecobjn.style.top=""+aeckalan+"px";            			aeczindx();                        		aecdevam("aecDoScrollUp",4000);               }                  else if(aecfademi==4)        {                        aeckalan=aecicwidth;                        aecSonraki();		aecrealcurrent=0;		aecShowCurrentDesc();aecHighlightCurrTumb();        	aecobjn.style.left=""+aeckalan+"px";	            	            aeczindx();                                   aecdevam("aecDoBlindX",4000);                 }            else if(aecfademi==5)        {                        aeckalan=aecicheight;                        aecSonraki();		aecrealcurrent=0;		aecShowCurrentDesc();aecHighlightCurrTumb();        	aecobjn.style.top=""+aeckalan+"px";            	            aeczindx();                                  aecdevam("aecDoBlindY",4000);                 }												}}function aecinitte(){	i=0;	innertxt="";	for(i=0;i<3;i++)	{		innertxt=innertxt+dstr1+"aecd"+i+dstr2+dstr23+aeclinkstr[i]+dstr3+i+dstr4+aecimgstr[i]+dstr5+dstr56+aecclslinkstr[i]+dstr6;	}	spage=document.getElementById('aecdv');	spage.innerHTML=""+innertxt;    setTimeout('aecinitte2()',100);}function aecBas(){        aecs=new aecsl();        aecs.aecinitte();}setTimeout('aecBas()',100);