//This array and function set is for the rollovers in the Top Navigation section

ver4 = (document.layers || document.all) ? 1 : 0;
 
 if (document.images) {
  navImageSrc = new Array (
		"mainnav_vcf_off.gif",
		"mainnav_vcf_on.gif",
		"mainnav_features_off.gif",
		"mainnav_features_on.gif",
		"mainnav_clinical_off.gif",
		"mainnav_clinical_on.gif",
		"mainnav_resources_off.gif",
		"mainnav_resources_on.gif",
		"mainnav_contact_off.gif",
		"mainnav_contact_on.gif"
		)
  navImageList = new Array ();
  for (counter in navImageSrc) {
   navImageList[counter] = new Image();
   navImageList[counter].src = "/portals/_default/skins/confidence-new/images/" + navImageSrc[counter];
  }
 }
 
 function imgRollOver(imName,over) {
  if (!document.images) {
   return
  }
  whichIm = document.images[imName];
  if (over) {
   whichIm.src = "/portals/_default/skins/confidence-new/images/" + imName + "_on.gif"
  } else {
   whichIm.src = "/portals/_default/skins/confidence-new/images/" + imName + "_off.gif"
  }
 }



var newwindow

function popitup(url , title) {

if (newwindow && !newwindow.closed) 

{ newwindow.focus(); newwindow.document.clear() } 

else 

{ newwindow=window.open('','','width=600,height=500,left=50,top=50,scrollbars=yes,status=no,location=no,menubar=no,resizeable=yes') }

newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor=\"#ffffff\"> <center>');

newwindow.document.writeln('<b>' + title + '</b><br><br>');

newwindow.document.writeln('<img src=' + url + '>');

newwindow.document.writeln('<br><br><a href=# onclick=window.close()><font face=tahoma size=2 color=#08676B><b>Close Window</b></font></a>');

newwindow.document.writeln('</td><\/center> <\/body> <\/html>');

newwindow.document.close();







}



function tidy()

{

if (newwindow && !newwindow.closed) { newwindow.close(); } 

}






function leavesite(id)
	{
	question = confirm("You are leaving DePuy Spine and visiting an external website where our Privacy Policy and Legal Notice do not apply.  You are solely responsible for your interactions with this website.  Do you wish to continue?");
	if (question !="0"){
		window.open(id)
		}
	}