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 TheCottagess=null;var TheCottagesdescgoster=0;var TheCottagesthumbgoster=0;var TheCottagescwidth=0;var TheCottagescheight=0;var TheCottagescalc=0;var TheCottagestam=0;var TheCottageskalan=0;var TheCottageskalany=0;var TheCottagests="";var TheCottagesds="";var TheCottagesjbtype=0;var TheCottagesrealcurrent=0;var TheCottagestimeo=null;TheCottagesthumbs_obj=null;TheCottagesmoving_obj=null;TheCottagesTotalThumbWidth=0;TheCottagesTotalThumbHeight=0;TheCottagesMoveIcWidth=0;var TBW=0;var CursorStr="default";var TheCottagesDescCalcWidth=0;var TheCottagesDescCalcHeight=0;var TheCottagesDescCalcIcWidth=0;var TheCottagesDescCalcIcHeight=0;var MoveWidth=0;var ThumbAreaWidth=340;var ThumbAreaHeight=340;TheCottagesimgarr=new Array();TheCottagesthumbimgstr=new Array();TheCottagesimgstr=new Array();TheCottageslinkstr=new Array();TheCottagesclslinkstr=new Array();TheCottagestitarr=new Array();TheCottagesdesarr=new Array();TheCottagesimgarr[0]=new Image();TheCottagesimgarr[0].c=0;TheCottagesimgarr[0].onload = TheCottagessecondcomplate;TheCottagesimgarr[0].src=TheCottagesfoldername+'drugrehab2.jpg';TheCottagesimgstr[0]=TheCottagesfoldername+'drugrehab2.jpg';TheCottagesthumbimgstr[0]=TheCottagesfoldername+'drugrehab2.jpg';TheCottageslinkstr[0]='';TheCottagesclslinkstr[0]='';TheCottagestitarr[0]="";TheCottagesdesarr[0]="";TheCottagesimgarr[1]=new Image();TheCottagesimgarr[1].c=0;TheCottagesimgarr[1].onload = TheCottagessecondcomplate;TheCottagesimgarr[1].src=TheCottagesfoldername+'drugrehab7.jpg';TheCottagesimgstr[1]=TheCottagesfoldername+'drugrehab7.jpg';TheCottagesthumbimgstr[1]=TheCottagesfoldername+'drugrehab7.jpg';TheCottageslinkstr[1]='';TheCottagesclslinkstr[1]='';TheCottagestitarr[1]="";TheCottagesdesarr[1]="";TheCottagesimgarr[2]=new Image();TheCottagesimgarr[2].c=0;TheCottagesimgarr[2].onload = TheCottagessecondcomplate;TheCottagesimgarr[2].src=TheCottagesfoldername+'drugrehab6.jpg';TheCottagesimgstr[2]=TheCottagesfoldername+'drugrehab6.jpg';TheCottagesthumbimgstr[2]=TheCottagesfoldername+'drugrehab6.jpg';TheCottageslinkstr[2]='';TheCottagesclslinkstr[2]='';TheCottagestitarr[2]="";TheCottagesdesarr[2]="";TheCottagesimgarr[3]=new Image();TheCottagesimgarr[3].c=0;TheCottagesimgarr[3].onload = TheCottagessecondcomplate;TheCottagesimgarr[3].src=TheCottagesfoldername+'drugrehab3.jpg';TheCottagesimgstr[3]=TheCottagesfoldername+'drugrehab3.jpg';TheCottagesthumbimgstr[3]=TheCottagesfoldername+'drugrehab3.jpg';TheCottageslinkstr[3]='';TheCottagesclslinkstr[3]='';TheCottagestitarr[3]="";TheCottagesdesarr[3]="";TheCottagesimgarr[4]=new Image();TheCottagesimgarr[4].c=0;TheCottagesimgarr[4].onload = TheCottagessecondcomplate;TheCottagesimgarr[4].src=TheCottagesfoldername+'drugrehab.gif';TheCottagesimgstr[4]=TheCottagesfoldername+'drugrehab.gif';TheCottagesthumbimgstr[4]=TheCottagesfoldername+'drugrehab.gif';TheCottageslinkstr[4]='';TheCottagesclslinkstr[4]='';TheCottagestitarr[4]="";TheCottagesdesarr[4]="";TheCottagesimgarr[5]=new Image();TheCottagesimgarr[5].c=0;TheCottagesimgarr[5].onload = TheCottagessecondcomplate;TheCottagesimgarr[5].src=TheCottagesfoldername+'drugrehab4.jpg';TheCottagesimgstr[5]=TheCottagesfoldername+'drugrehab4.jpg';TheCottagesthumbimgstr[5]=TheCottagesfoldername+'drugrehab4.jpg';TheCottageslinkstr[5]='';TheCottagesclslinkstr[5]='';TheCottagestitarr[5]="";TheCottagesdesarr[5]="";TheCottagesimgarr[6]=new Image();TheCottagesimgarr[6].c=0;TheCottagesimgarr[6].onload = TheCottagessecondcomplate;TheCottagesimgarr[6].src=TheCottagesfoldername+'drugrehab5.jpg';TheCottagesimgstr[6]=TheCottagesfoldername+'drugrehab5.jpg';TheCottagesthumbimgstr[6]=TheCottagesfoldername+'drugrehab5.jpg';TheCottageslinkstr[6]='';TheCottagesclslinkstr[6]='';TheCottagestitarr[6]="";TheCottagesdesarr[6]="";if((IEB==true)&&(scompat == "BackCompat" )){    TheCottagescwidth=300;    TheCottagescheight=177;}else{    TheCottagescwidth=300-2*(0);    TheCottagescheight=177-2*(0);}var TheCottagesicwidth=300-2*(0);var TheCottagesicheight=177-2*(0);TheCottagesDescCalcWidth=260;TheCottagesDescCalcHeight=80;if((IEB==true)&&(scompat == "BackCompat" )){	TheCottagesDescCalcIcWidth=TheCottagesDescCalcWidth;	TheCottagesDescCalcIcHeight=TheCottagesDescCalcHeight;}else{    TheCottagesDescCalcIcWidth=TheCottagesDescCalcWidth-2*(2)-2*(3);    TheCottagesDescCalcIcHeight=TheCottagesDescCalcHeight-2*(2)-2*(3);}document.write('<div style="position:relative;width:'+TheCottagescwidth+'px;height:'+TheCottagescheight+'px;overflow:hidden;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'CCCCCC'+';'+''+''+'">');document.write('<div id="TheCottagesdv" style="position:relative;width:'+TheCottagesicwidth+'px;height:'+TheCottagesicheight+'px;overflow:hidden;padding:0px;margin:0px;z-index:1;'+''+'"'+' onfilterchange=TheCottagesFadeBitti()'+'></div>');for(i=0;i<7;i++){	if(0==0){TheCottagesds=TheCottagesds+TheCottageslinkstr[i];if(TheCottageslinkstr[i].length>2){CursorStr="pointer";}else{CursorStr="default";}}	TheCottagesds=TheCottagesds+'<div id="TheCottagesdesc'+i+'" style="position:absolute;top:'+120+'px;left:'+10+'px;width:'+TheCottagesDescCalcWidth+'px;height:'+TheCottagesDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:'+CursorStr+';z-index:20;">';	TheCottagesds=TheCottagesds+'<div style="position:absolute;left:0px;top:0px;width:'+TheCottagesDescCalcWidth+'px;height:'+TheCottagesDescCalcHeight+'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>';	TheCottagesds=TheCottagesds+'<div style="position:relative;left:0px;top:0px;width:'+TheCottagesDescCalcIcWidth+'px;height:'+TheCottagesDescCalcIcHeight+'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;">';	TheCottagesds=TheCottagesds+'<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'14px'+';font-weight:'+'bold'+';text-decoration:'+'none'+';">'+TheCottagestitarr[i]+'</span><br />'+TheCottagesdesarr[i];	TheCottagesds=TheCottagesds+'</div>';	TheCottagesds=TheCottagesds+'</div>';	if(0==0){TheCottagesds=TheCottagesds+TheCottagesclslinkstr[i];}	}document.write(''+TheCottagesds);function TheCottagesShowCurrentDesc(){	if((TheCottagesdescgoster==1)&&( (TheCottagestitarr[TheCottagesrealcurrent].length>0) || (TheCottagesdesarr[TheCottagesrealcurrent].length>0)  ))	{		after_des=document.getElementById('TheCottagesdesc'+TheCottagesrealcurrent);		after_des.style.visibility="visible";		}}function TheCottagesHideCurrentDesc(){	before_des=document.getElementById('TheCottagesdesc'+TheCottagesvcurr);	before_des.style.visibility="hidden";}function TheCottagesHighlightCurrTumb(){	if((0==1)&&(0==0))	{		TheCottagesbeforethumb=document.getElementById('TheCottagesthumb'+TheCottagesvcurr);		TheCottagesafterthumb=document.getElementById('TheCottagesthumb'+TheCottagesrealcurrent);		TheCottagesbeforethumb.style.borderColor='999999';		TheCottagesafterthumb.style.borderColor='990000';	}}document.write('</div>');function TheCottageszindx(){	TheCottagesobjn.style.visibility="visible";	TheCottagesobjc.style.zIndex=2;	TheCottagesobjn.style.zIndex=3;    }function TheCottagesThumbOut(tobj,nm){	if((TheCottagesvcurr==nm)&&(0==0))	{}	else	{		tobj.style.borderColor='999999';	}}function TheCottagesThumbOver(tobj,nm){	tobj.style.borderColor='990000';}function TheCottagesSonrakiClick(c,n){	TheCottagesvcurr=c;	TheCottagesvnext=n;			TheCottagesobjc=document.getElementById('TheCottagesd'+TheCottagesvcurr);	TheCottagesobjn=document.getElementById('TheCottagesd'+TheCottagesvnext);}function TheCottagesSonraki(){	TheCottagesvcurr=TheCottagesvnext;	TheCottagesvnext=TheCottagesvnext+1;		if(TheCottagesvnext>=7)	{		TheCottagesvnext=0;		TheCottagestam=1;	}		TheCottagesobjc=document.getElementById('TheCottagesd'+TheCottagesvcurr);	TheCottagesobjn=document.getElementById('TheCottagesd'+TheCottagesvnext);		      }function TheCottagessecondcomplate(){	this.c=1;}function TheCottagesdevam(fm,pt){	if((TheCottagesimgarr[TheCottagesvnext].c==1)&&(TheCottagesimgarr[TheCottagesvcurr].c==1))	{		TheCottagestimeo=setTimeout(fm+'()',pt);	}	else	{		setTimeout('TheCottagesdevam("'+fm+'")',500);	}	var TheCottagescagain=1;	for(i=0;i<7;i++)	{		if(TheCottagesimgarr[i].c==1){}		else{TheCottagescagain=0;}	}	if(TheCottagescagain==1){TheCottagestam=1;}}function ThumbClick(clicked_img,tobj){	if(TheCottagesjbtype==1){return;}	clearTimeout(TheCottagestimeo);	TheCottagesSonrakiClick(TheCottagesrealcurrent,clicked_img);	if(TheCottagesfademi==1)        {            if(IEB==true)            {		if(TheCottagestam==0)		{	    		TheCottagesdevam("TheCottagesdotrans",6000);		}		else		{			TheCottagesdotrans();		}            }            else            {		if(TheCottagestam==0)		{    			TheCottagesdevam("TheCottagesbeftrans",6000);		}		else		{			TheCottagesbeftrans();		}            }        }	else if(TheCottagesfademi==2)	{		if(TheCottagestam==0)		{ 			TheCottagesdevam("TheCottagesDoSlide",6000);		}		else		{			TheCottagesDoSlide();		}	}	else if(TheCottagesfademi==3)	{		if(TheCottagestam==0)		{ 			TheCottagesdevam("TheCottagesDoScrollUp",6000);		}		else		{			TheCottagesDoScrollUp();		}	}	else if(TheCottagesfademi==4)	{		if(TheCottagestam==0)		{ 			TheCottagesdevam("TheCottagesDoBlindX",6000);		}		else		{			TheCottagesDoBlindX();		}	}	else if(TheCottagesfademi==5)	{		if(TheCottagestam==0)		{ 			TheCottagesdevam("TheCottagesDoBlindY",6000);		}		else		{			TheCottagesDoBlindY();		}	}	}function TheCottagessl(){TheCottagesfademi=2;TheCottagesvcurr=0;TheCottagesvnext=0;TheCottagesvssdiv=null;stepc=20*(4);TheCottagesdif=0.00;TheCottagesop=1.00;TheCottagesdif=(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:'+TheCottagesicwidth+'px;height:'+TheCottagesicheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'left'+';vertical-align:'+'top'+';">';dstr3='<img id="TheCottagesimg';dstr4='" src="';dstr5='"  border="0" style="position:relative;border-style:'+'solid'+';border-width:'+'0'+'px;border-color:'+'#CCCCCC'+';'+""+'" alt=""></img>';dstr56='</td></tr></table>';dstr6='</div>';this.TheCottagesdotrans=TheCottagesdotrans;this.TheCottagesinitte=TheCottagesinitte;this.TheCottagesinitte2=TheCottagesinitte2;this.TheCottagesbeftrans=TheCottagesbeftrans;this.TheCottagesdotransff=TheCottagesdotransff;}function TheCottagesFadeBitti(){	TheCottagesjbtype=0;	TheCottagesShowCurrentDesc();	}function TheCottagesdotrans(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();	if(IEB==true){TheCottagesvssdiv.filters[0].apply();}	TheCottagesobjc.style.visibility="hidden";	TheCottagesobjn.style.visibility="visible";	if(IEB==true){TheCottagesvssdiv.filters[0].play();}	TheCottagesrealcurrent=TheCottagesvnext;	TheCottagesHighlightCurrTumb();	TheCottagesSonraki();			if(TheCottagestam==0){TheCottagesdevam("TheCottagesdotrans",((1000*4)+6000));}	else	{		TheCottagestimeo=setTimeout('TheCottagesdotrans()',((1000*4)+6000));	} 	}function TheCottagesdotransff(){	TheCottagesop=TheCottagesop-TheCottagesdif;		if(TheCottagesop<(0.00)){TheCottagesop=0.00;}	TheCottagesobjc.style.opacity = TheCottagesop;	TheCottagesobjn.style.opacity = 1.00-TheCottagesop;	if(TheCottagesop>(0.00))	{		setTimeout('TheCottagesdotransff()',50);	}	else	{		TheCottagesobjc.style.zIndex=2;		TheCottagesobjn.style.zIndex=3;		TheCottagesrealcurrent=TheCottagesvnext;		TheCottagesShowCurrentDesc();		TheCottagesHighlightCurrTumb();				TheCottagesSonraki();			        if(TheCottagestam==0){TheCottagesdevam("TheCottagesbeftrans",6000);}        	else {TheCottagestimeo=setTimeout('TheCottagesbeftrans()',6000);}		TheCottagesjbtype=0;  					}}function TheCottagesbeftrans(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();    	TheCottagesop=1.00;	TheCottagesobjc.style.visibility="visible";	TheCottagesobjn.style.visibility="visible";		TheCottagesobjc.style.zIndex=3;	TheCottagesobjn.style.zIndex=2;		TheCottagesobjc.style.opacity = 1.00;		TheCottagesobjn.style.opacity = 1.00;			TheCottagesdotransff();	}function TheCottagesDoSlide(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();	TheCottageskalan=TheCottageskalan-Math.ceil(TheCottageskalan/4);	TheCottagesobjc.style.left=""+(TheCottageskalan-TheCottagesicwidth)+"px";	TheCottagesobjn.style.left=""+TheCottageskalan+"px";		if(TheCottageskalan<=0)	{		TheCottagesrealcurrent=TheCottagesvnext;		TheCottagesShowCurrentDesc();		TheCottagesHighlightCurrTumb();    		TheCottagesSonraki();		TheCottageskalan=TheCottagesicwidth;		TheCottagesobjn.style.left=""+TheCottageskalan+"px";	        		TheCottageszindx();          		TheCottagesjbtype=0;        		if(TheCottagestam==0){TheCottagesdevam("TheCottagesDoSlide",6000);}		else {TheCottagestimeo=setTimeout('TheCottagesDoSlide()',6000);}	}	else	{		setTimeout('TheCottagesDoSlide()',50);    	} }function TheCottagesDoScrollUp(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();	TheCottageskalan=TheCottageskalan-Math.ceil(TheCottageskalan/4);	TheCottagesobjc.style.top=""+(TheCottageskalan-TheCottagesicheight)+"px";	TheCottagesobjn.style.top=""+TheCottageskalan+"px";	    if(TheCottageskalan<=0)    {	TheCottagesrealcurrent=TheCottagesvnext;	TheCottagesShowCurrentDesc();	TheCottagesHighlightCurrTumb();        TheCottagesSonraki();        TheCottageskalan=TheCottagesicheight;	TheCottagesobjn.style.top=""+TheCottageskalan+"px";	        TheCottageszindx();                 	TheCottagesjbtype=0;        if(TheCottagestam==0){TheCottagesdevam('TheCottagesDoScrollUp',6000);}        else{TheCottagestimeo=setTimeout('TheCottagesDoScrollUp()',6000);}        }    else    {        setTimeout('TheCottagesDoScrollUp()',50);        }}function TheCottagesDoBlindX(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();   	TheCottageskalan=TheCottageskalan-Math.ceil(TheCottageskalan/4);	TheCottagesobjc.style.left=""+(TheCottagesicwidth-TheCottageskalan)+"px";	TheCottagesobjn.style.left=""+TheCottageskalan+"px";	    if(TheCottageskalan<=0)    {		TheCottagesrealcurrent=TheCottagesvnext;		TheCottagesShowCurrentDesc();	TheCottagesHighlightCurrTumb();            TheCottagesSonraki();        TheCottageskalan=TheCottagesicwidth;	TheCottagesobjn.style.left=""+TheCottageskalan+"px";		    	        TheCottageszindx();	TheCottagesjbtype=0;                  if(TheCottagestam==0){TheCottagesdevam("TheCottagesDoBlindX",6000);}        else{TheCottagestimeo=setTimeout('TheCottagesDoBlindX()',6000);}    }    else    {        setTimeout('TheCottagesDoBlindX()',50);        }}function TheCottagesDoBlindY(){	TheCottagesjbtype=1;	TheCottagesHideCurrentDesc();  	TheCottageskalan=TheCottageskalan-Math.ceil(TheCottageskalan/4);	TheCottagesobjc.style.top=""+(TheCottagesicheight-TheCottageskalan)+"px";	TheCottagesobjn.style.top=""+TheCottageskalan+"px";	    if(TheCottageskalan<=0)    {		TheCottagesrealcurrent=TheCottagesvnext;		TheCottagesShowCurrentDesc();TheCottagesHighlightCurrTumb();        TheCottagesSonraki();        TheCottageskalan=TheCottagesicheight;	    TheCottagesobjn.style.top=""+TheCottageskalan+"px";                TheCottageszindx();                 	TheCottagesjbtype=0;        if(TheCottagestam==0){TheCottagesdevam("TheCottagesDoBlindY",6000);}        else{TheCottagestimeo=setTimeout('TheCottagesDoBlindY()',6000);}        }    else    {        setTimeout('TheCottagesDoBlindY()',50);        } }function TheCottagesinitte2(){	TheCottagesthumbs_obj=document.getElementById('TheCottagesthumbsid');	TheCottagesmoving_obj=document.getElementById('TheCottagesmovingdiv');	TheCottagesvssdiv=document.getElementById("TheCottagesdv");	if(7>0)	{		TheCottagesobjc=document.getElementById('TheCottagesd'+0);			TheCottagesobjc.style.visibility="visible";		}	if(7>1)	{		TheCottagesvcurr=0;		TheCottagesvnext=0;		TheCottagesrealcurrent=0;        if(TheCottagesfademi==0)        {			TheCottagesvcurr=0;			TheCottagesvnext=1;			TheCottagesrealcurrent=0;			setTimeout('TheCottagesdotrans()',6000);                }        else if(TheCottagesfademi==1)        {            if(IEB==true)            {	    		TheCottagesSonraki();			TheCottagesShowCurrentDesc();			TheCottagesHighlightCurrTumb();	    		TheCottagesdevam("TheCottagesdotrans",6000);                       }            else            {	    		TheCottagesSonraki();			TheCottagesShowCurrentDesc();			TheCottagesHighlightCurrTumb();	    		TheCottagesdevam("TheCottagesbeftrans",6000);                        }        }         else if(TheCottagesfademi==2)        {		TheCottageskalan=TheCottagesicwidth;     		TheCottagesSonraki();		TheCottagesrealcurrent=0;		TheCottagesShowCurrentDesc();		TheCottagesHighlightCurrTumb();		TheCottagesobjn.style.left=""+TheCottageskalan+"px";          			TheCottageszindx();            		TheCottagesdevam("TheCottagesDoSlide",6000);		   	                }        else if(TheCottagesfademi==3)        {		TheCottageskalan=TheCottagesicheight;            		TheCottagesSonraki();		TheCottagesrealcurrent=0;		TheCottagesShowCurrentDesc();		TheCottagesHighlightCurrTumb();		TheCottagesobjn.style.top=""+TheCottageskalan+"px";            			TheCottageszindx();                        		TheCottagesdevam("TheCottagesDoScrollUp",6000);               }                  else if(TheCottagesfademi==4)        {                        TheCottageskalan=TheCottagesicwidth;                        TheCottagesSonraki();		TheCottagesrealcurrent=0;		TheCottagesShowCurrentDesc();TheCottagesHighlightCurrTumb();        	TheCottagesobjn.style.left=""+TheCottageskalan+"px";	            	            TheCottageszindx();                                   TheCottagesdevam("TheCottagesDoBlindX",6000);                 }            else if(TheCottagesfademi==5)        {                        TheCottageskalan=TheCottagesicheight;                        TheCottagesSonraki();		TheCottagesrealcurrent=0;		TheCottagesShowCurrentDesc();TheCottagesHighlightCurrTumb();        	TheCottagesobjn.style.top=""+TheCottageskalan+"px";            	            TheCottageszindx();                                  TheCottagesdevam("TheCottagesDoBlindY",6000);                 }												}}function TheCottagesinitte(){	i=0;	innertxt="";	for(i=0;i<7;i++)	{		innertxt=innertxt+dstr1+"TheCottagesd"+i+dstr2+dstr23+TheCottageslinkstr[i]+dstr3+i+dstr4+TheCottagesimgstr[i]+dstr5+TheCottagesclslinkstr[i]+dstr56+dstr6;	}	spage=document.getElementById('TheCottagesdv');	spage.innerHTML=""+innertxt;    setTimeout('TheCottagesinitte2()',100);}function TheCottagesBas(){        TheCottagess=new TheCottagessl();        TheCottagess.TheCottagesinitte();}setTimeout('TheCottagesBas()',100);