// JavaScript Document
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function createlayer(id, left, top, zindex, bgclass, icons, refs, classname, menus)
{
	document.write('<div id=' + id + ' class="transparent" style=" float:right;width:186px;padding:10px; visibility:hidden; position:absolute; left:'+ left + 'px; top:'+ top + 'px; width:186px; height:110px; z-index:' + zindex + '" >'); 
	document.write('<div class=' + bgclass + '>'); 
  	document.write('<table width="100%">');
	for (i=0;i<icons.length;i++)
	{
    	document.write('<tr>'); 
		document.write('<td><img src="images/' + icons[i] +'" width="25"></td>');
		document.write('<td style="border-bottom: 1px solid #6D6459;"><a href="' + refs[i] + '" class="' + classname +'">'+ menus[i] + '</a></td>');
    	document.write('</tr>');
	}
	document.write('</table>'); 
	document.write('</div></div>');
}

var menus=new Array("Injectable Fillers", "Botox . Dysport", "Chemical Peel", "Laser Rejuvenation", "Laser Hair Removal", "CoolSculpting");
var refs = new Array("fillers-juvederm-radiesse-houston.php", "botox-dysport-houston.php", "chemical-peel-houston.php", "ipl-fotofacial-fraxel-houston.php", "laser-hair-removal-houston.php", "coolsculpting-houston.php");
icons = new Array("handright.gif", "handright.gif", "handright.gif", "handright.gif", "handright.gif", "handright.gif");
createlayer("services", 320, 380, 3, "grey", icons, refs, "submenutext", menus);

menus=new Array("Revale", "MD Forte", "Elta MD Sunscreens", "Clarisonic");
refs = new Array("products.php?page=revale", "products.php?page=md", "products.php?page=elta", "products.php?page=clarisonic");
icons = new Array("handright.gif", "handright.gif", "handright.gif", "handright.gif");
createlayer("products-submenu", 460, 380, 4, "grey", icons, refs, "submenutext", menus);
