  
function getStyle() {
    browser = navigator.appName;
    appVer = parseInt(navigator.appVersion);
    ie = "Microsoft Internet Explorer";
    ns = "Netscape";
    if (browser == ns) {
       document.write('<link rel="stylesheet" type="text\/css" href="mps_ns.css">');
    } 	else  {
       document.write('<link rel="stylesheet" type="text\/css" href="mps.css">');
    }
 }   

function warn()
{
alert("This section of this website contains images of exposed patients which demonstrate results that might be achieved with surgery.  These images are intended to provide a visual sampling of the work of Dr. ROBERT M. TORNAMBE.  They might be considered offensive to some people and are not intended to be seen by minors.  Please return to the main menu if you are not either an adult or have parental consent.")
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function aBlk(){
    browser = navigator.appName;
    appVer = parseInt(navigator.appVersion);
    ie = "Microsoft Internet Explorer";
    ns = "Netscape";
    if (browser == ns) {       
     document.write('&nbsp;');
    }  else  {
            ;
    }
}

function getPic() {
  titleProc = new String(document.title).toLowerCase();
  var picName =titleProc.replace(' ','');
  var testName = picName.substr(0,6);
   if (testName=='breast')
         { var linkURL = 'gallery_br'+picName.substr(6,3)+'.htm'; }
   else if (titleProc.substr(0,4)=='lip ')
          { var linkURL = 'gallery_li'+picName.substr(3,3)+'.htm';  }      
   else { var linkURL = 'gallery_'+picName.substr(0,5)+'.htm';    }
 document.write('<table align=right border=0 cellpadding=0 cellspacing=0 width=106 height=110>');  
 document.write('<tr><td align=center><a href=\"'+linkURL+'\" target=_top onclick=\"warn()\">'); 
 document.write('<img src=\"procedure/'+picName+'.jpg\" height=100 width=100 border=0 '); 
 document.write('hspace=5 vspace=5  alt=\"View photos\">');
 document.write('<br>View Photos<\/a><\/tr><\/td><\/table>');  
}

function getLink() { 
  titleProc = new String(document.title).toLowerCase();
  var picName =titleProc.replace(' ','');
  var testName = picName.substr(0,6);
   if (testName=='breast')    // parse out "breast" procedures
         { var linkURL = 'gallery_br'+picName.substr(6,3)+'.htm'; }
   else if (titleProc.substr(0,4)=='lip ') //parse out "lip" procedures (except "liposuction")
          { var linkURL = 'gallery_li'+picName.substr(3,3)+'.htm';  }      
   else { var linkURL = 'gallery_'+picName.substr(0,5)+'.htm';    }
   document.write('<p><a href=\"'+linkURL+'\" target=_top onclick=\"warn()\">View photo<\/a><\/p>'); 
}

// window opener
function defaultWindowFeatures( width, height, left, top ) {
return "screenX=" + left + ",left=" + left + ",screenY=" + top + ",top=" + top
+ ",innerWidth=" + width + ",width=" + width + ",innerHeight=" + height + ",height=" + height 
+ ",menubar=no,directories=no,location=no,resizable=yes, status=no,titlebar=yes,toolbar=no";
}

function OpenWin( formname ) {
var url =  formname;
var newwindow;
newwindow = window.open("", "mapPage", defaultWindowFeatures(840,680,65,65) + ",scrollbars=no");
newwindow.location=url;
newwindow.focus();
}

function OpenForm( formname ) {
var url =  formname;
var newwindow;
newwindow = window.open("", "formPage", defaultWindowFeatures(840,680,65,65) + ",scrollbars=yes");
newwindow.location=url;
newwindow.focus();
newwindow.print()
}
