function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { 
  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_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
//alert('called');
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll;
win = window.open(mypage,myname,settings);
win.focus();
}

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);

//New added August 07 to close sticky menus:
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//New added August 07 to swamp CareerOpps nav bck image:
function changeBG(id, img_name) { 
document.getElementById(id).style.backgroundImage="url(" + img_name + ")"; 

}

//New added August 07 to show more schools text field:
function changePage(newLoc)
	{
		nextPage = newLoc.options[newLoc.selectedIndex].value
		
		
		if (nextPage != "") 
		{
				if (nextPage =="more")
				{
				MM_showHideLayers('school_name','','show');
				return;
				}
							
			document.location.href = nextPage
		}		
		
		return;
	}

/////////////////////////////////////////////////////////////
//The value of the following variables can be used to change the text in the main boby of index_noflash.htm
//Please do not change the variable name,change only the text on the right side of the variable.
function BodyContent(imgname)
{
	if(imgname=="Medical"){
	var awmMedical='<p><span class=CopyLarger><b><i>Medical Devices and Diagnostics</i></b></span><ul><li style="margin: 5px 0 5px 0">Our Medical Devices and Diagnostics (MD&amp;D) companies help medical professionals restore the joys of life for their patients.</li> <li style="margin: 0px 0 5px 0">Our innovations include sutures and mechanical wound closure products, surgical equipment, interventional and diagnostic cardiology products, joint replacements, diagnostic equipment and supplies, and contact lenses. </li><li  style="margin: 0px 0 0px 0">Together, our MD&amp;D companies represent the world\’s largest and most diverse medical devices and diagnostics business.</li></ul></p>';
	
	}else if(imgname=="Consumer"){
	awmMedical='<p><span class=CopyLarger><b><i>Consumer</i></b></span><ul><li style="margin: 5px 0 5px 0">Companies in our Consumer business segment develop, manufacture, and market consumer products that bring science to the art of healthy living. </li> <li  style="margin: 0px 0 5px 0">Our Consumer product lines include personal and hygienic products, non-prescription drugs, products for skin and hair care, baby care, oral care, first aid, and sanitary protection. </li><li style="margin: 0px 0 0px 0">Combined, we are the world\'s premier consumer health care products business with leadership positions in 22 consumer health and beauty categories.</li></ul></p>';
	}else if(imgname=="Pharmaceutical"){
	awmMedical='<p><span class=CopyLarger><b><i>Pharmaceutical</i></b></span><ul><li style="margin: 5px 0 5px 0">Companies in our Pharmaceutical business segment develop, manufacture, and market prescription medications that offer patients new hope for longer and healthier lives. </li> <li style="margin: 0 0 5px 0">Our Pharmaceutical companies are therapeutic class leaders in central nervous system, pain management, and reproductive health.</li><li style="margin: 0 0 0px 0">We are global leaders in anemia management and immune-mediated inflammatory disorders and have promising new therapies in cardiology, oncology, and virology. </li></ul></p>';
	}else{
	awmMedical='<p><ul><li><font color=F30617>Decentralized by Design</font> – Learn how our decentralized structure provides the advantage of a small-company environment with big-company impact.</li> <li><font color=F30617>Broadly Based in Three Business Segments</font> – Consider the full breadth of our presence in health care as you learn about careers within our Pharmaceutical, Medical Devices and Diagnostics, and Consumer businesses.</li><li><font color=F30617>Flexible Career Paths</font> – Explore the career paths of more than twenty real employees to learn how single-function or cross-functional career paths have impacted their success.</li></ul></p>';
	}
	return awmMedical;
}
/////////////////////////////////////////////////////////////

function IncludeBreadCrumb()
{
   //commented the below lines to make the breadcrumb as links
	/*
	var temp = breadcrumb.split("> ");
	var len=temp.length;
	var curPage=temp[len-1];
	document.write("<div class='small'>");
	for(var i=0;i<(len-1);i++)
	{
	 document.write(temp[i]+"&nbsp;>&nbsp;");
	}
	document.write("<u>"+curPage+"</u>"+"</div>");
    */

	//Added the below three lines for changing the breadcrumb as links
	document.write("<div class='small'>");
	document.write(breadcrumb);
	document.write("</div>");


}
