
// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

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 : (dom)?window.innerWidth/2  : window.innerWidth/2
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-600
crossobj.width=310
crossobj.left=cen

crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? document.body.scrollTop+200 : window.pageYOffset+200
if (parseInt(crossobj.top)<125+scroll_top)
crossobj.top=parseInt(crossobj.top)+90
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",100)
}
}

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 updateWin(url) {
	updateWindow = window.open(url,'update','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=320,height=200');
 }

function openindex(width,height,theurl) { 
	OpenWindow=window.open(theurl, "newwin", "height="+height+", width=" + width + ",toolbar=no,scrollbars=" + 1 + ",menubar=no,resizable=yes");
self.name="main";
}
		 


function doPopup() {



var info='<TABLE CELLPADDING=0 CELLSPACING=0><TR><TD><TABLE CELLSPACING=0 CELLPADDING=0><TR><TD>'
+ '<DIV ALIGN="center">'
+ '<a href=javascript:dismissbox()>'
+ '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID="bambooframe" WIDTH="340" HEIGHT="340">'
+ '			<PARAM NAME="movie" VALUE="bambooframe.swf">'
+ '			<PARAM NAME="quality" VALUE="high">'
+ '          <param name="wmode" value="transparent">'
+ '          <param name="bgcolor" value="ffffff">'
+ '          <EMBED SRC="bambooframe.swf" QUALITY="high" WIDTH="340"  bgcolor="ffffff" HEIGHT="340" WMODE="transparent" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ ' 		 </EMBED>'
+ '         </OBJECT></a></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();
}

var remote = null;
 function checktimes() {
	window.open('http://www.lvcosmeticsurgery.com/extratimes.htm','FloatingWindow','width=206,height=299,toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no')
}

