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 indexs=null;var indexdescgoster=0;var indexthumbgoster=0;var indexcwidth=0;var indexcheight=0;var indexcalc=0;var indextam=0;var indexkalan=0;var indexkalany=0;var indexts="";var indexds="";var indexjbtype=0;var indexrealcurrent=0;var indextimeo=null;indexthumbs_obj=null;indexmoving_obj=null;indexTotalThumbWidth=0;indexTotalThumbHeight=0;indexMoveIcWidth=0;var TBW=0;var CursorStr="default";var indexDescCalcWidth=0;var indexDescCalcHeight=0;var indexDescCalcIcWidth=0;var indexDescCalcIcHeight=0;var MoveWidth=0;var ThumbAreaWidth=340;var ThumbAreaHeight=340;indeximgarr=new Array();indexthumbimgstr=new Array();indeximgstr=new Array();indexlinkstr=new Array();indexclslinkstr=new Array();indextitarr=new Array();indexdesarr=new Array();indeximgarr[0]=new Image();indeximgarr[0].c=0;indeximgarr[0].onload = indexsecondcomplate;indeximgarr[0].src=indexfoldername+'surin_scuba_diving.jpg';indeximgstr[0]=indexfoldername+'surin_scuba_diving.jpg';indexthumbimgstr[0]=indexfoldername+'surin_scuba_diving.jpg';indexlinkstr[0]='';indexclslinkstr[0]='';indextitarr[0]="";indexdesarr[0]="";indeximgarr[1]=new Image();indeximgarr[1].c=0;indeximgarr[1].onload = indexsecondcomplate;indeximgarr[1].src=indexfoldername+'thailand_whale_shark_diving.jpg';indeximgstr[1]=indexfoldername+'thailand_whale_shark_diving.jpg';indexthumbimgstr[1]=indexfoldername+'thailand_whale_shark_diving.jpg';indexlinkstr[1]='';indexclslinkstr[1]='';indextitarr[1]="";indexdesarr[1]="";indeximgarr[2]=new Image();indeximgarr[2].c=0;indeximgarr[2].onload = indexsecondcomplate;indeximgarr[2].src=indexfoldername+'tropical_island_beach.jpg';indeximgstr[2]=indexfoldername+'tropical_island_beach.jpg';indexthumbimgstr[2]=indexfoldername+'tropical_island_beach.jpg';indexlinkstr[2]='';indexclslinkstr[2]='';indextitarr[2]="";indexdesarr[2]="";indeximgarr[3]=new Image();indeximgarr[3].c=0;indeximgarr[3].onload = indexsecondcomplate;indeximgarr[3].src=indexfoldername+'surin_islands.jpg';indeximgstr[3]=indexfoldername+'surin_islands.jpg';indexthumbimgstr[3]=indexfoldername+'surin_islands.jpg';indexlinkstr[3]='';indexclslinkstr[3]='';indextitarr[3]="";indexdesarr[3]="";indeximgarr[4]=new Image();indeximgarr[4].c=0;indeximgarr[4].onload = indexsecondcomplate;indeximgarr[4].src=indexfoldername+'thailand_snorkeling_girl.jpg';indeximgstr[4]=indexfoldername+'thailand_snorkeling_girl.jpg';indexthumbimgstr[4]=indexfoldername+'thailand_snorkeling_girl.jpg';indexlinkstr[4]='';indexclslinkstr[4]='';indextitarr[4]="";indexdesarr[4]="";indeximgarr[5]=new Image();indeximgarr[5].c=0;indeximgarr[5].onload = indexsecondcomplate;indeximgarr[5].src=indexfoldername+'gbb_house.jpg';indeximgstr[5]=indexfoldername+'gbb_house.jpg';indexthumbimgstr[5]=indexfoldername+'gbb_house.jpg';indexlinkstr[5]='';indexclslinkstr[5]='';indextitarr[5]="";indexdesarr[5]="";indeximgarr[6]=new Image();indeximgarr[6].c=0;indeximgarr[6].onload = indexsecondcomplate;indeximgarr[6].src=indexfoldername+'gbb_dining.jpg';indeximgstr[6]=indexfoldername+'gbb_dining.jpg';indexthumbimgstr[6]=indexfoldername+'gbb_dining.jpg';indexlinkstr[6]='';indexclslinkstr[6]='';indextitarr[6]="";indexdesarr[6]="";indeximgarr[7]=new Image();indeximgarr[7].c=0;indeximgarr[7].onload = indexsecondcomplate;indeximgarr[7].src=indexfoldername+'similan_manta_ray.jpg';indeximgstr[7]=indexfoldername+'similan_manta_ray.jpg';indexthumbimgstr[7]=indexfoldername+'similan_manta_ray.jpg';indexlinkstr[7]='';indexclslinkstr[7]='';indextitarr[7]="";indexdesarr[7]="";indeximgarr[8]=new Image();indeximgarr[8].c=0;indeximgarr[8].onload = indexsecondcomplate;indeximgarr[8].src=indexfoldername+'richelieu_smiles.jpg';indeximgstr[8]=indexfoldername+'richelieu_smiles.jpg';indexthumbimgstr[8]=indexfoldername+'richelieu_smiles.jpg';indexlinkstr[8]='';indexclslinkstr[8]='';indextitarr[8]="";indexdesarr[8]="";indeximgarr[9]=new Image();indeximgarr[9].c=0;indeximgarr[9].onload = indexsecondcomplate;indeximgarr[9].src=indexfoldername+'nat_coral1.jpg';indeximgstr[9]=indexfoldername+'nat_coral1.jpg';indexthumbimgstr[9]=indexfoldername+'nat_coral1.jpg';indexlinkstr[9]='';indexclslinkstr[9]='';indextitarr[9]="";indexdesarr[9]="";indeximgarr[10]=new Image();indeximgarr[10].c=0;indeximgarr[10].onload = indexsecondcomplate;indeximgarr[10].src=indexfoldername+'surin_snorkeling.jpg';indeximgstr[10]=indexfoldername+'surin_snorkeling.jpg';indexthumbimgstr[10]=indexfoldername+'surin_snorkeling.jpg';indexlinkstr[10]='';indexclslinkstr[10]='';indextitarr[10]="";indexdesarr[10]="";indeximgarr[11]=new Image();indeximgarr[11].c=0;indeximgarr[11].onload = indexsecondcomplate;indeximgarr[11].src=indexfoldername+'hornbill_view2.jpg';indeximgstr[11]=indexfoldername+'hornbill_view2.jpg';indexthumbimgstr[11]=indexfoldername+'hornbill_view2.jpg';indexlinkstr[11]='';indexclslinkstr[11]='';indextitarr[11]="";indexdesarr[11]="";if((IEB==true)&&(scompat == "BackCompat" )){    indexcwidth=300;    indexcheight=199;}else{    indexcwidth=300-2*(0);    indexcheight=199-2*(0);}var indexicwidth=300-2*(0);var indexicheight=199-2*(0);indexDescCalcWidth=260;indexDescCalcHeight=80;if((IEB==true)&&(scompat == "BackCompat" )){	indexDescCalcIcWidth=indexDescCalcWidth;	indexDescCalcIcHeight=indexDescCalcHeight;}else{    indexDescCalcIcWidth=indexDescCalcWidth-2*(2)-2*(3);    indexDescCalcIcHeight=indexDescCalcHeight-2*(2)-2*(3);}document.write('<div style="position:relative;width:'+indexcwidth+'px;height:'+indexcheight+'px;overflow:hidden;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'CCCCCC'+';'+''+''+'">');document.write('<div id="indexdv" style="position:relative;width:'+indexicwidth+'px;height:'+indexicheight+'px;overflow:hidden;padding:0px;margin:0px;z-index:1;'+'FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=2,enabled=false);'+'"'+' onfilterchange=indexFadeBitti()'+'></div>');for(i=0;i<12;i++){	if(0==0){indexds=indexds+indexlinkstr[i];if(indexlinkstr[i].length>2){CursorStr="pointer";}else{CursorStr="default";}}	indexds=indexds+'<div id="indexdesc'+i+'" style="position:absolute;top:'+120+'px;left:'+10+'px;width:'+indexDescCalcWidth+'px;height:'+indexDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:'+CursorStr+';z-index:20;">';	indexds=indexds+'<div style="position:absolute;left:0px;top:0px;width:'+indexDescCalcWidth+'px;height:'+indexDescCalcHeight+'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>';	indexds=indexds+'<div style="position:relative;left:0px;top:0px;width:'+indexDescCalcIcWidth+'px;height:'+indexDescCalcIcHeight+'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;">';	indexds=indexds+'<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+'14px'+';font-weight:'+'bold'+';text-decoration:'+'none'+';">'+indextitarr[i]+'</span><br />'+indexdesarr[i];	indexds=indexds+'</div>';	indexds=indexds+'</div>';	if(0==0){indexds=indexds+indexclslinkstr[i];}	}document.write(''+indexds);function indexShowCurrentDesc(){	if((indexdescgoster==1)&&( (indextitarr[indexrealcurrent].length>0) || (indexdesarr[indexrealcurrent].length>0)  ))	{		after_des=document.getElementById('indexdesc'+indexrealcurrent);		after_des.style.visibility="visible";		}}function indexHideCurrentDesc(){	before_des=document.getElementById('indexdesc'+indexvcurr);	before_des.style.visibility="hidden";}function indexHighlightCurrTumb(){	if((0==1)&&(0==0))	{		indexbeforethumb=document.getElementById('indexthumb'+indexvcurr);		indexafterthumb=document.getElementById('indexthumb'+indexrealcurrent);		indexbeforethumb.style.borderColor='999999';		indexafterthumb.style.borderColor='990000';	}}document.write('</div>');function indexzindx(){	indexobjn.style.visibility="visible";	indexobjc.style.zIndex=2;	indexobjn.style.zIndex=3;    }function indexThumbOut(tobj,nm){	if((indexvcurr==nm)&&(0==0))	{}	else	{		tobj.style.borderColor='999999';	}}function indexThumbOver(tobj,nm){	tobj.style.borderColor='990000';}function indexSonrakiClick(c,n){	indexvcurr=c;	indexvnext=n;			indexobjc=document.getElementById('indexd'+indexvcurr);	indexobjn=document.getElementById('indexd'+indexvnext);}function indexSonraki(){	indexvcurr=indexvnext;	indexvnext=indexvnext+1;		if(indexvnext>=12)	{		indexvnext=0;		indextam=1;	}		indexobjc=document.getElementById('indexd'+indexvcurr);	indexobjn=document.getElementById('indexd'+indexvnext);		      }function indexsecondcomplate(){	this.c=1;}function indexdevam(fm,pt){	if((indeximgarr[indexvnext].c==1)&&(indeximgarr[indexvcurr].c==1))	{		indextimeo=setTimeout(fm+'()',pt);	}	else	{		setTimeout('indexdevam("'+fm+'")',500);	}	var indexcagain=1;	for(i=0;i<12;i++)	{		if(indeximgarr[i].c==1){}		else{indexcagain=0;}	}	if(indexcagain==1){indextam=1;}}function ThumbClick(clicked_img,tobj){	if(indexjbtype==1){return;}	clearTimeout(indextimeo);	indexSonrakiClick(indexrealcurrent,clicked_img);	if(indexfademi==1)        {            if(IEB==true)            {		if(indextam==0)		{	    		indexdevam("indexdotrans",4000);		}		else		{			indexdotrans();		}            }            else            {		if(indextam==0)		{    			indexdevam("indexbeftrans",4000);		}		else		{			indexbeftrans();		}            }        }	else if(indexfademi==2)	{		if(indextam==0)		{ 			indexdevam("indexDoSlide",4000);		}		else		{			indexDoSlide();		}	}	else if(indexfademi==3)	{		if(indextam==0)		{ 			indexdevam("indexDoScrollUp",4000);		}		else		{			indexDoScrollUp();		}	}	else if(indexfademi==4)	{		if(indextam==0)		{ 			indexdevam("indexDoBlindX",4000);		}		else		{			indexDoBlindX();		}	}	else if(indexfademi==5)	{		if(indextam==0)		{ 			indexdevam("indexDoBlindY",4000);		}		else		{			indexDoBlindY();		}	}	}function indexsl(){indexfademi=1;indexvcurr=0;indexvnext=0;indexvssdiv=null;stepc=20*(2);indexdif=0.00;indexop=1.00;indexdif=(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:'+indexicwidth+'px;height:'+indexicheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'center'+';vertical-align:'+'middle'+';">';dstr3='<img id="indeximg';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.indexdotrans=indexdotrans;this.indexinitte=indexinitte;this.indexinitte2=indexinitte2;this.indexbeftrans=indexbeftrans;this.indexdotransff=indexdotransff;}function indexFadeBitti(){	indexjbtype=0;	indexShowCurrentDesc();	}function indexdotrans(){	indexjbtype=1;	indexHideCurrentDesc();	if(IEB==true){indexvssdiv.filters[0].apply();}	indexobjc.style.visibility="hidden";	indexobjn.style.visibility="visible";	if(IEB==true){indexvssdiv.filters[0].play();}	indexrealcurrent=indexvnext;	indexHighlightCurrTumb();	indexSonraki();			if(indextam==0){indexdevam("indexdotrans",((1000*2)+4000));}	else	{		indextimeo=setTimeout('indexdotrans()',((1000*2)+4000));	} 	}function indexdotransff(){	indexop=indexop-indexdif;		if(indexop<(0.00)){indexop=0.00;}	indexobjc.style.opacity = indexop;	indexobjn.style.opacity = 1.00-indexop;	if(indexop>(0.00))	{		setTimeout('indexdotransff()',50);	}	else	{		indexobjc.style.zIndex=2;		indexobjn.style.zIndex=3;		indexrealcurrent=indexvnext;		indexShowCurrentDesc();		indexHighlightCurrTumb();				indexSonraki();			        if(indextam==0){indexdevam("indexbeftrans",4000);}        	else {indextimeo=setTimeout('indexbeftrans()',4000);}		indexjbtype=0;  					}}function indexbeftrans(){	indexjbtype=1;	indexHideCurrentDesc();    	indexop=1.00;	indexobjc.style.visibility="visible";	indexobjn.style.visibility="visible";		indexobjc.style.zIndex=3;	indexobjn.style.zIndex=2;		indexobjc.style.opacity = 1.00;		indexobjn.style.opacity = 1.00;			indexdotransff();	}function indexDoSlide(){	indexjbtype=1;	indexHideCurrentDesc();	indexkalan=indexkalan-Math.ceil(indexkalan/2);	indexobjc.style.left=""+(indexkalan-indexicwidth)+"px";	indexobjn.style.left=""+indexkalan+"px";		if(indexkalan<=0)	{		indexrealcurrent=indexvnext;		indexShowCurrentDesc();		indexHighlightCurrTumb();    		indexSonraki();		indexkalan=indexicwidth;		indexobjn.style.left=""+indexkalan+"px";	        		indexzindx();          		indexjbtype=0;        		if(indextam==0){indexdevam("indexDoSlide",4000);}		else {indextimeo=setTimeout('indexDoSlide()',4000);}	}	else	{		setTimeout('indexDoSlide()',50);    	} }function indexDoScrollUp(){	indexjbtype=1;	indexHideCurrentDesc();	indexkalan=indexkalan-Math.ceil(indexkalan/2);	indexobjc.style.top=""+(indexkalan-indexicheight)+"px";	indexobjn.style.top=""+indexkalan+"px";	    if(indexkalan<=0)    {	indexrealcurrent=indexvnext;	indexShowCurrentDesc();	indexHighlightCurrTumb();        indexSonraki();        indexkalan=indexicheight;	indexobjn.style.top=""+indexkalan+"px";	        indexzindx();                 	indexjbtype=0;        if(indextam==0){indexdevam('indexDoScrollUp',4000);}        else{indextimeo=setTimeout('indexDoScrollUp()',4000);}        }    else    {        setTimeout('indexDoScrollUp()',50);        }}function indexDoBlindX(){	indexjbtype=1;	indexHideCurrentDesc();   	indexkalan=indexkalan-Math.ceil(indexkalan/2);	indexobjc.style.left=""+(indexicwidth-indexkalan)+"px";	indexobjn.style.left=""+indexkalan+"px";	    if(indexkalan<=0)    {		indexrealcurrent=indexvnext;		indexShowCurrentDesc();	indexHighlightCurrTumb();            indexSonraki();        indexkalan=indexicwidth;	indexobjn.style.left=""+indexkalan+"px";		    	        indexzindx();	indexjbtype=0;                  if(indextam==0){indexdevam("indexDoBlindX",4000);}        else{indextimeo=setTimeout('indexDoBlindX()',4000);}    }    else    {        setTimeout('indexDoBlindX()',50);        }}function indexDoBlindY(){	indexjbtype=1;	indexHideCurrentDesc();  	indexkalan=indexkalan-Math.ceil(indexkalan/2);	indexobjc.style.top=""+(indexicheight-indexkalan)+"px";	indexobjn.style.top=""+indexkalan+"px";	    if(indexkalan<=0)    {		indexrealcurrent=indexvnext;		indexShowCurrentDesc();indexHighlightCurrTumb();        indexSonraki();        indexkalan=indexicheight;	    indexobjn.style.top=""+indexkalan+"px";                indexzindx();                 	indexjbtype=0;        if(indextam==0){indexdevam("indexDoBlindY",4000);}        else{indextimeo=setTimeout('indexDoBlindY()',4000);}        }    else    {        setTimeout('indexDoBlindY()',50);        } }function indexinitte2(){	indexthumbs_obj=document.getElementById('indexthumbsid');	indexmoving_obj=document.getElementById('indexmovingdiv');	indexvssdiv=document.getElementById("indexdv");	if(12>0)	{		indexobjc=document.getElementById('indexd'+0);			indexobjc.style.visibility="visible";		}	if(12>1)	{		indexvcurr=0;		indexvnext=0;		indexrealcurrent=0;        if(indexfademi==0)        {			indexvcurr=0;			indexvnext=1;			indexrealcurrent=0;			setTimeout('indexdotrans()',4000);                }        else if(indexfademi==1)        {            if(IEB==true)            {	    		indexSonraki();			indexShowCurrentDesc();			indexHighlightCurrTumb();	    		indexdevam("indexdotrans",4000);                       }            else            {	    		indexSonraki();			indexShowCurrentDesc();			indexHighlightCurrTumb();	    		indexdevam("indexbeftrans",4000);                        }        }         else if(indexfademi==2)        {		indexkalan=indexicwidth;     		indexSonraki();		indexrealcurrent=0;		indexShowCurrentDesc();		indexHighlightCurrTumb();		indexobjn.style.left=""+indexkalan+"px";          			indexzindx();            		indexdevam("indexDoSlide",4000);		   	                }        else if(indexfademi==3)        {		indexkalan=indexicheight;            		indexSonraki();		indexrealcurrent=0;		indexShowCurrentDesc();		indexHighlightCurrTumb();		indexobjn.style.top=""+indexkalan+"px";            			indexzindx();                        		indexdevam("indexDoScrollUp",4000);               }                  else if(indexfademi==4)        {                        indexkalan=indexicwidth;                        indexSonraki();		indexrealcurrent=0;		indexShowCurrentDesc();indexHighlightCurrTumb();        	indexobjn.style.left=""+indexkalan+"px";	            	            indexzindx();                                   indexdevam("indexDoBlindX",4000);                 }            else if(indexfademi==5)        {                        indexkalan=indexicheight;                        indexSonraki();		indexrealcurrent=0;		indexShowCurrentDesc();indexHighlightCurrTumb();        	indexobjn.style.top=""+indexkalan+"px";            	            indexzindx();                                  indexdevam("indexDoBlindY",4000);                 }												}}function indexinitte(){	i=0;	innertxt="";	for(i=0;i<12;i++)	{		innertxt=innertxt+dstr1+"indexd"+i+dstr2+dstr23+indexlinkstr[i]+dstr3+i+dstr4+indeximgstr[i]+dstr5+indexclslinkstr[i]+dstr56+dstr6;	}	spage=document.getElementById('indexdv');	spage.innerHTML=""+innertxt;    setTimeout('indexinitte2()',100);}function indexBas(){        indexs=new indexsl();        indexs.indexinitte();}setTimeout('indexBas()',100);
