// JavaScript Document
// links to additional stylesheet for IE browsers

isIE = 0;
		browser_type = navigator.appName;
		if (browser_type == "Microsoft Internet Explorer") { 
			document.write("<link href='/bo-ie.css' rel='stylesheet' type='text/css' />"); 
			isIE = 1;
		}

        function styleAbbr() {
            var oldBodyText, newBodyText, reg;
            if (isIE) {
                oldBodyText = document.body.innerHTML;
                reg = /<ABBR([^>]*)>([^<]*)<\/ABBR>/g;
                newBodyText = oldBodyText.replace(reg, '<ABBR $1><SPAN class=\"abbr\" $1>$2</SPAN></ABBR>');
                document.body.innerHTML = newBodyText;
            }
        }

        window.onload = function(){
            styleAbbr();
        };

/*//automatically highlights current item in sidebar (on Product pages)
function getLeaf(url) { 
return url.substring(url.lastIndexOf("/")+1); 
} 

function highlightCurrentMenuItem() { 
   var currentLocationTemp = getLeaf(document.location.href);
  
   var currentLocation = currentLocationTemp.substring(currentLocationTemp.indexOf("BO_")+3).replace("_"," ");
   
   var menu = document.getElementById("sidebar"); 
   
   links = menu.getElementsByTagName("a"); 
   
   for (i=0; i<links.length; i++) { 
   
      var currentHref = links[i].getAttribute("href"); 
       
      var currentLeafName = getLeaf(currentHref); 
       
      if (currentLeafName==currentLocation) { 
      
         // Setting class is needed for Mozilla compatibility - className appears to be correct 
         // according to the DOM spec 
         links[i].setAttribute("class", "selected"); 
		 links[i].setAttribute("className", "selected"); 
		 
         // More obvious to use parentNode.parentNode.firstChild, but this 
         // may give a whitespace text node. 
         var menuHeader = links[i].parentNode.parentNode.parentNode.getElementsByTagName("div").item(0); 
      
         menuHeader.setAttribute("class", "selected"); 
         
         menuHeader.setAttribute("className", "selected"); 
          
         } 
     } 
      
}
// Search function, validation, submit and post 
function doSearch( ) {
	form = document.forms[0];
	if( form.Search.value != "") {
		window.location.href = "/sitesearch/search?open&query=" + 	form.Search.value;
	}
}

function doValidation() {
	form = document.forms.banner;
	if( form.Search.value=='' ) {
		alert( 'Please fill out the search criteria before doing a search' );
		return false; 
	}  {
		return true;
	}
}

function doSubmit() {
	if (doValidation() ) {
		form.submit();
	}
} 

function doPost() {
	if ( getCookie( "UserPass" ) != '' ) {
		window.location.href = "/sitesearch/search?Open&login&query=" + form.Search.value;
	} else {
		window.location.href = "/sitesearch/search?Open&query=" + form.Search.value;
	}	
}


// standard Macromedia functions for rollovers
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];}
}
*/
// Class which returns cgi variables in javascript - M. Giambrone (07/07/2006)

	  var cgi = new Object();
      cgi.http_host = location.host;
      cgi.http_user_agent = navigator.userAgent;
      cgi.http_cookie = document.cookie;
      cgi.https = (location.protocol == 'https:\/\/') ? 'on' : 'off';
      cgi.path_info = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
      cgi.query_string = (location.search) ? ((location.search.indexOf('#') != -1) ? location.search.substring(1, location.search.indexOf('#')) : location.search.substring(1)) : '';
      cgi.script_name = cgi.path_info;
      cgi.http_referer = document.referrer;