


// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This is the heavy modified script by Doctor San www.DoctorSan.com

var ie=document.all
var dom=document.getElementById
var ns4=document.layers

var bouncelimit=32 //(must be divisible by 8)
var direction="left"

function initbox(){
if (!dom&&!ie&&!ns4)
return
cen=(ie)? document.body.clientWidth/2-155 : (dom)?window.innerWidth/2-155  : window.innerWidth/2-155
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-250
crossobj.width=310
crossobj.left=cen

crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<125+scroll_top)
crossobj.top=parseInt(crossobj.top)+40
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}


function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}


function doPopup() {


var info='<table width="400" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000"> <tr> <td bgcolor="#000000" colspan="5"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#E09990" border="0" align="center"><b><font size="4"><font face="MS Sans Serif, Default Font"><font color="yellow">ศูนย์ผิวสวย คุณหมอ</font><br><font color="#0B800?B">นนทชัย คลินิก</font><br><font color="#000000">รักษาผิวหน้า</font></font></font></b></td> <td bgcolor="#E09990" align="center"><font color="#B50F90">ซอยข้างการไฟฟ้าฝ่ายผลิต เชิงสะพานพระราม 7<br>(ใกล้ยันฮี) บางกรวย นนทบุรี</font><br><br><font color="#BFFFE0"><u>เปิด</u>จ.- ศ. 16.30-20.00 น. ส. 9.00 - 19.00 น. อา. หยุด</font><br><b><font color="#030B06"> โทร. 02-446-0282 , 02-446-0875</font></b></td> </tr> </table> </td> </tr> <tr> <td bgcolor="#000000" valign="top" colspan="5" align="center"><b><font color="#E00CCE"><font size="4"><font face="MS Sans Serif, Default Font">เคล็ดลับ! </font></font></font> <font color="#FFDEE9">ผิวสวย</font><br><font color=FF0000>ทุกคน มีสิทธิ ที่จะมีผิวหน้าสวย ใส เนียนได้</font><br><font color="#FEAE5F">เริ่มต้นดูแลผิวหน้าคุณอย่างถูกต้องตั้งแต่วันนี้</font></b><br></td> </tr> <tr bgcolor="#090038"> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face002.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face003.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><a href="http://www.doctorsan.com" target="_blank"><img src="http://www.doctor.co.th/nonthachai/image/bright_face005.jpg" width="70" height="70" alt="" border="0"></a></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face007.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face009.jpg" width="70" height="70" alt="" border="0"></td> </tr> <tr bgcolor="#090038"> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face011.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face013.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><a href="http://www.doctorsan.com" target="_blank"><img src="http://www.doctor.co.th/YaBBImages/sexclick3.gif" width="70" height="25" alt="" border="0"></a></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face015.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face012.jpg" width="70" height="70" alt="" border="0"></td> </tr> <tr bgcolor="#090038"> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face010.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face008.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><a href="http://www.doctorsan.com" target="_blank"><img src="http://www.doctor.co.th/nonthachai/image/bright_face006.jpg" width="70" height="70" alt="" border="0"></a></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face004.jpg" width="70" height="70" alt="" border="0"></td> <td align="center"><br><img src="http://www.doctor.co.th/nonthachai/image/bright_face001.jpg" width="70" height="70" alt="" border="0"></td> </tr> <tr> <td bgcolor="#000000" valign="middle" colspan="5" align="center"><br><br><center><font color="#F09B44"><b>เรารับปรึกษาเรื่องการดูแลรักษาผิวหน้า</b></font></center><br><br><div align="right"><a href="#" onClick="dismissbox();return false"><font color="#FFFFFF">Close</font></a>&nbsp;&nbsp;<br></div></td> </tr> </table>';
if (ie) {
	document.all.dropin.innerHTML = info;
	document.all.dropin.left='200';
  }	
  	else if (ns4) {
		document.layers['dropin'].document.open();
		document.layers['dropin'].document.write(info);
		document.layers['dropin'].document.close();
	}
	else if (dom) {
		document.getElementById('dropin').innerHTML= info;
	}


initbox();
}