	function MM_preloadImages() { //v3.0
	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() { //v3.0
	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) { //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_swapImage() { //v3.0
	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];}
	}
	//-->

	<!--
	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 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 for memu layers
function big(lyr) {
	document.all[lyr].style.height='185px'; 
}

function small(lyr) {
	document.all[lyr].style.height='22px';
}

function start() {
	document.all.providers.style.height='22px';
	document.all.locations.style.height='22px';
	document.all.services.style.height='22px'; 
	document.all.resourceCenter.style.height='22px';
	document.all.divH1N1.style.height='22px';
}

//FUNCTION TO RANDOMLY LOAD MAIN PICTURE
var imagenumber = 12 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix1.jpg"
images[2] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix2.jpg"
images[3] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix3.jpg"
images[4] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix4.jpg"
images[5] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix5.jpg"
images[6] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix6.jpg"
images[7] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix7.jpg"
images[8] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix8.jpg"
images[9] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix9.jpg"
images[10] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix10.jpg"
images[11] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix11.jpg"
images[12] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix12.jpg"
images[13] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix13.jpg"
images[14] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix14.jpg"
images[15] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix15.jpg"
images[16] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix16.jpg"
images[17] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix17.jpg"
images[18] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix18.jpg"
images[19] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/mainPix19.jpg"
var image = images[rand1]

//FUNCTION TO LOAD RANDOMLY EMPLOYEE QUOTES
var imagenumberQuote = 14 ;
var randomnumberQuote = Math.random() ;
var rand1Quote = Math.round( (imagenumberQuote-1) * randomnumberQuote) + 1 ;
images = new Array
images[1] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes1.jpg"
images[2] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes2.jpg"
images[3] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes3.jpg"
images[4] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes4.jpg"
images[5] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes5.jpg"
images[6] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes6.jpg"
images[7] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes7.jpg"
images[8] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes8.jpg"
images[9] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes9.jpg"
images[10] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes10.jpg"
images[11] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes11.jpg"
images[12] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes12.jpg"
images[13] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes13.jpg"
images[14] = "uploadedimages/BJC_HealthCare/Employers/BarnesCare/quotes14.jpg"
var imageQuote = images[rand1Quote]




	function qsearch()
	{
	var strVal = document.forms["search"].query.value;
	var i;
	var len = strVal.length;
	var strOK = false;
	for (i = 0; i < len; i++) {
	if (strVal.charAt(i) != " ") {
		strOK = true;
		break;
	}
	}
	if (strOK == "1") {
	// if (document.forms["search"].query.value != "") {
		top.location.href='barnescare07_search.aspx?col=barnescare&q=' + document.forms["search"].query.value;
		document.forms["search"].action = 'barnescare07_search.aspx?col=barnescare&?q=' + document.forms["search"].query.value;
	}	
	return false;
	}

	function secondSearch()
	{
	document.forms["search"].query.value = document.forms["search1"].query.value;
	}

	function newSearch()
	{
	document.forms["search"].query.value = document.forms["avsearch"].q.value;
	}
	
	
	function openPrintWin(url)
	{
		winPrint = window.open(url,"","width=800,height=650,location=no,menubar=no,resizable=yes,scrollbars=yes");
		return false;
	}
	
	function simpleToBoolean()
	{
		query = document.forms["avsearch"].q;
		queryString = query.value;
		if ((queryString.length > 0) && (queryString.indexOf(" ") > -1))
		{
			while (queryString != queryString.replace(/^ /,""))
				queryString = queryString.replace(/^ /,"");
			while (queryString != queryString.replace(/ $/,""))
				queryString = queryString.replace(/ $/,"");
			while (queryString != queryString.replace(/  /," "))
				queryString = queryString.replace(/  /," ");
			newQueryString = "";
			pos = 0;
			while (pos < queryString.length)
			{
				switch (queryString.charAt(pos))
				{
					case "'":
						if (queryString.indexOf("'",pos+1) > -1)
						{
							pos2 = queryString.indexOf("'",pos+1)
							newQueryString = newQueryString + queryString.substr(pos, pos2-pos+1);
							pos = pos2 + 1;
						}
						else
						{
							newQueryString = newQueryString + queryString.charAt(pos);
							pos = pos + 1;
						}
						break;
					case '"':
						if (queryString.indexOf('"',pos+1) > -1)
						{
							pos2 = queryString.indexOf('"',pos+1)
							newQueryString = newQueryString + queryString.substr(pos, pos2-pos+1);
							pos = pos2 + 1;
						}
						else
						{
							newQueryString = newQueryString + queryString.charAt(pos);
							pos = pos + 1;
						}
						break;
					case " ":
						newQueryString = newQueryString + " or ";
						pos = pos + 1;
						break;
					default:
						newQueryString = newQueryString + queryString.charAt(pos);
						pos = pos + 1;
				}
			}
			query.value = newQueryString;
		}
		document.forms["avsearch"].pg.value='aq'; 
		document.forms["avsearch"].submit();
	}
	
	function FontResize()
	{
	// setDefaults arguments: size unit, default size, minimum, maximum
	// optional array of elements or selectors to apply these defaults to
	dw_fontSizerDX.setDefaults('px', 12, 8, 16, ['body', 'td', 'div', 'p', 'a', 'li', 'font', 'span'],'fontSize_pwhc');
	dw_fontSizerDX.set(12, 12, 12, ['div#sizer'] );
	dw_fontSizerDX.set(11, 11, 11, ['.sizer_small'] );
	dw_fontSizerDX.set(12, 12, 12, ['.sizer_medium'] );
	dw_fontSizerDX.set(14, 14, 14, ['.sizer_large'] );
	dw_fontSizerDX.init();
	}
function breadcrumbs(){

  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/barnescare07_home.aspx\">Home</a>  :  ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length)
  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart)
      sURL = sURL.slice(chunkStart+1,sURL.length);
    }else{
      stop = 1;
    }
    x++;
  }
  for(var i in bits){
    output += "<a href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a>  >  ";
  }
  document.write(output + document.title);
}


// Tool Tip //
var offsetx = 12;
var offsety =  8;

function newelement(newid)
{ 
    if(document.createElement)
    { 
        var el = document.createElement('div'); 
        el.id = newid;     
        with(el.style)
        { 
            display = 'none';
            position = 'absolute';
        } 
        el.innerHTML = '&nbsp;'; 
        document.body.appendChild(el); 
    } 
} 
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all); 
var ua = navigator.userAgent.toLowerCase();
var isapple = (ua.indexOf('applewebkit') != -1 ? 1 : 0);
function getmouseposition(e)
{
    if(document.getElementById)
    {
        var iebody=(document.compatMode && 
        	document.compatMode != 'BackCompat') ? 
        		document.documentElement : document.body;
        pagex = (isapple == 1 ? 0:(ie5)?iebody.scrollLeft:window.pageXOffset);
        pagey = (isapple == 1 ? 0:(ie5)?iebody.scrollTop:window.pageYOffset);
        mousex = (ie5)?event.x:(ns6)?clientX = e.clientX:false;
        mousey = (ie5)?event.y:(ns6)?clientY = e.clientY:false;

        var lixlpixel_tooltip = document.getElementById('tooltip');
        lixlpixel_tooltip.style.left = (mousex+pagex+offsetx) + 'px';
        lixlpixel_tooltip.style.top = (mousey+pagey+offsety) + 'px';
    }
}
function tooltip(tip)
{
    if(!document.getElementById('tooltip')) newelement('tooltip');
    var lixlpixel_tooltip = document.getElementById('tooltip');
    lixlpixel_tooltip.innerHTML = tip;
    lixlpixel_tooltip.style.display = 'block';
    document.onmousemove = getmouseposition;
}
function exit()
{
    document.getElementById('tooltip').style.display = 'none';
}