window.status=":: New England Dental Center | WELCOME ::";
function noRightClick()
{
	if (event.button==2)
	{
		alert("New England Dental Center LLP\nAll Rights Reserved Copyright 2004")
	}
}
document.onmousedown=noRightClick;

function menuppal (cual) {
  eval("window."+cual+".style.filter='Alpha(Opacity=0,FinishOpacity=90,Style=2);'");
  document.all.music.src='boton.wav';
}
function menuppal2 (cual) {
  eval("window."+cual+".style.filter='Alpha(Opacity=100,FinishOpacity=100,Style=2);'");
}
function overdire (imgbot,imgsrc) {
 document[imgbot].src=imgsrc;
}

function openWin(url,width,height,scrole) {
    var left = (screen.availWidth - width) / 2;
    var top = (screen.availHeight - height) / 2;
    var name= "Uploads"; 
    
    var features = 
    	      "fullscreen=" + 0 +
                 ",toolbar=" + 0 +
                 ",location=" + 0 +
                 ",status=" + 0 +
                 ",menubar=" + 0 +
                 ",scrollbars=" + scrole +
                 ",resizable=" + 0 +
                 ",width=" + width +
                 ",height=" + height +
                 ",left=" + left +
                 ",top=" + top;
                  window.open(url,name,features);	
}

// home rotativa
var sorteo;

function rotarimg02() {
	sorteo01= Math.floor(Math.random()*5)+1;  //imagen header
	eval("document.imgheader.src='images/internas/home_rot/img_head0" + sorteo01 + ".jpg'")
}

function ver(di) {
	switch(di) {
		case "1":
			if( --i<0 )
				i = fotos.length - 1;
			break;
		case "2":
			i = (i+1) % fotos.length
			break;
	}
	document.fot.src='images/internas/gallerys/gallery_crown/gallery_'+fotos[i]+'.jpg' 
}

function rotar_imgcrown() {
	var fotos=new Array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29');//numero de fotos
	sorteo01= Math.floor(Math.random()*fotos.length );
	eval("document.imgcrown.src='images/internas/gallerys/gallery_crown/gallery_" + fotos[sorteo01] + ".jpg'");
}

function rotarimg01() {
sorteo01= Math.floor(Math.random()*9)+1;  //imagen after before
eval("document.img01.src='images/internas/home_rot/img_afterbefore0"+sorteo01+".jpg'")
sorteo02= Math.floor(Math.random()*5)+1; //imagen principal
eval("document.imgppal.src='images/internas/home_rot/img_ppal0"+sorteo02+".jpg'")
sorteo03= Math.floor(Math.random()*4)+1; //imagen productos
eval("document.imgproductos.src='images/internas/home_rot/img_producto0"+sorteo03+".jpg'")
switch (sorteo03) {
   case 1 :
     window.precio.value="$ 18.70";
	 window.detalles.value="BreathRx Starter Kit";
	 break
   case 2 :
     window.precio.value="$ 9.49";
     window.detalles.value="BreathRx Toothpaste 4.0 OZ";
 	 break
   case 3 :
     window.precio.value="$ 9.89"; 
	 window.detalles.value="Britesmile Rinse 14 OZ bottles";
     break
   case 4 :
     window.precio.value="$ 10.19";
	 window.detalles.value="Britesmile Toothpaste 4.2 OZ Tubes";
 	 break
    case 5 :
     window.precio.value="$ 39.58";
	 window.detalles.value="Britesmile Whitening Pen";
 	 break
   default :
      window.precio.value="ERROR";
      window.detalles.value="ERROR";
	} 
}
