browsername=navigator.appName;
if (browsername.indexOf("Netscape")!=-1) {browsername="NS"}
else
{if (browsername.indexOf("Microsoft")!=-1) {browsername="MSIE"}
else {browsername="N/A"}};

browserversion="0";
if (navigator.appVersion.indexOf("2.")!=-1) {browserversion="2"};
if (navigator.appVersion.indexOf("3.")!=-1) {browserversion="3"};
if (navigator.appVersion.indexOf("4.")!=-1) {browserversion="4"};
if (navigator.appVersion.indexOf("5.")!=-1) {browserversion="5"};
if (navigator.appVersion.indexOf("6.")!=-1) {browserversion="6"};


	if (browsername=="MSIE") {
	document.write ("<link rel='stylesheet' href='../../inc/main_ie.css' type='text/css'></link>")
	}
	else {
	document.write ("<link rel='stylesheet' href='../../inc/main_nn.css' type='text/css'>")
	};
	
function popwindow(hfile, wname, ifile) 
{

	  var img = new Image();
	  img.src = ifile;
	  var i = 1;
	
	  var iWidth = 100;
	  var iHeight = 100;
          wname = "Image"; 
	  var sRe = "yes";
	
	  if (browsername!="MSIE") 
		  for(i=0; i<500; i++);
	
	  if (img.width <50) {
	  	iWidth = 580;
	  	iHeight = 460;
		sRe = "yes";
	  } else { 
	  	iWidth = img.width+300;
	  	iHeight = img.height+250;
	  }
	
	  var spara = 'resizable='+sRe+',scrollbars=yes,width='+iWidth+',height='+iHeight;
	
	  var a = window.open(hfile, wname, spara);

          if (a != null) {
	    a.focus();}
}

function popwindowH(hfile, wname, ifile) 
{

	  var img = new Image();
	  img.src = ifile;
	  var i = 1;
	
	  var iWidth = 100;
	  var iHeight = 100;
	  wname = "Image";
	  var sRe = "yes";
	
	  if (browsername!="MSIE") 
		  for(i=0; i<500; i++);
	
	  if (img.width <50) {
	  	iWidth = 580;
	  	iHeight = 460;
		sRe = "yes";
	  } else { 
	  	iWidth = img.width+300;
	  	iHeight = img.height+250;
	  }
	
	  var spara = 'resizable='+sRe+',scrollbars=yes,width='+iWidth+',height='+iHeight;
	
	  var a = window.open("../htm/bc/"+hfile, wname, spara);

	  if (a != null) {
	    a.focus();
}
}

function doLocateFrame(scTitle, scID)
{
	top.document.title = 'The Merck Veterinary Manual -' + scTitle;
    if (parent.location.href == self.location.href) {
    if (window.location.href.replace)
        window.location.replace('../../index.jsp?cfile=htm/bc/'+scID+'.htm');
    else
        // causes problems with back button, but works
        window.location.href = '../../index.jsp?cfile=htm/bc/'+scID+'.html';
	}
// if(parent.frames.length==0) top.location='../../index.jsp?cfile=htm/bc/'+scID+'.htm';
}

var aWindow;
function TableWin(sURL) {
aWindow = window.open(sURL, 'Table', 'resizable=yes,scrollbars=yes,width=650,height=500');
if (aWindow != null) {
	aWindow.focus();
}
}
function TableWinH(sURL) {
aWindow = window.open("../htm/bc/"+sURL, 'Table', 'resizable=yes,scrollbars=yes,width=650,height=500');
if (aWindow != null) {
	aWindow.focus();
}
}