<!--

var agt=navigator.userAgent.toLowerCase(); 
var is_major = parseInt(navigator.appVersion); 
var is_minor = parseFloat(navigator.appVersion); 
    // Note: Opera and WebTV spoof Navigator.  We do strict client detection. 
    // If you want to allow spoofing, take out the tests for opera and webtv. 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
              && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
var is_nav2 = (is_nav && (is_major == 2)); 
var is_nav3 = (is_nav && (is_major == 3)); 
var is_nav4 = (is_nav && (is_major == 4)); 
var is_nav4up = (is_nav && (is_major >= 4)); 
var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
var is_nav5 = (is_nav && (is_major == 5)); 
var is_nav5up = (is_nav && (is_major >= 5)); 

var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (is_major < 4));
var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.")!=-1) );
var is_ie5_0    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

var is_mac    = (agt.indexOf("mac")!=-1);
var is_pc    = (agt.indexOf("mac")==-1);

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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


var months = new Array('January','February','March',
    'April','May','June','July','August','September',
    'October','November','December');
	
var weekdays = new Array('Sunday','Monday','Tuesday',
    'Wednesday','Thursday','Friday','Saturday');

var date = new Date();
var day  = date.getDate();
var weekday = date.getDay();
var month = date.getMonth();
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
var hours = date.getHours();
var minutes = date.getMinutes();

var thedatetoday = weekdays[weekday] + ", " + months[month] + " " + day + ", " + year;

function clock() {
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "am";
if (hours > 11) amOrPm = "pm";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = thedatetoday + " " + hours + ":" + minutes + ":" + seconds + " " + amOrPm;

if (is_mac && is_ie5_0)
var noTimeDisplay = 1;
else noTimeDisplay = -1;

if (noTimeDisplay == -1) {
if (document.getElementById("datetime")) {
document.getElementById("datetime").innerHTML = dispTime ;
setTimeout("clock()", 1000);
		}
	} 
}
 

 
function customScripts() {
clock();
MM_preloadImages('images/bn-home-o.gif','images/bn-company-o.gif','images/bn-products-o.gif','images/bn-science-o.gif','images/bn-careers-o.gif','images/bn-terms-o.jpg','images/bn-privacy-o.jpg','images/bn-sitemap-o.jpg','images/bn-employees-o.jpg');
MM_preloadImages('images/more-info-o.gif');
}

function displayNavbar() {
	
// checks for homepage	
if (window.location.href.indexOf('index') != -1) {
	document.write("<a href='#'><img src='images/bn-home-x.gif' alt='Home' name='menu0' width='251' height='31' border='0' id='menu0' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-home.gif' alt='Home' name='menu0' width='251' height='31' border='0' id='menu0' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} 


//checks for company section
if ((window.location.href.indexOf('company') != -1) || (window.location.href.indexOf('news') != -1) || (window.location.href.indexOf('management') != -1)) {
	document.write("<a href='#'><img src='images/bn-company-x.gif' alt='Company' name='menu1' width='251' height='32' border='0' id='menu1' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-company.gif' alt='Company' name='menu1' width='251' height='32' border='0' id='menu1' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} 


//checks for products section
if (window.location.href.indexOf('products') != -1) {
	document.write("<a href='#'><img src='images/bn-products-x.gif' alt='Products' name='menu2' width='251' height='30' border='0' id='menu2' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-products.gif' alt='Products' name='menu2' width='251' height='30' border='0' id='menu2' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} 

//checks for technology section
if ((window.location.href.indexOf('science') != -1) || (window.location.href.indexOf('tgfb1') != -1) || (window.location.href.indexOf('parp-1') != -1)) {
	document.write("<a href='#'><img src='images/bn-science-x.gif' alt='Science' name='menu3' width='251' height='32' border='0' id='menu3' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-science.gif' alt='Science' name='menu3' width='251' height='32' border='0' id='menu3' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} 


//checks for careers section
if (window.location.href.indexOf('careers') != -1) {
	document.write("<a href='#'><img src='images/bn-careers-x.gif' alt='Careers' name='menu4' width='251' height='32' border='0' id='menu4' onmouseover='showMenu(event)' onmouseout='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-careers.gif' alt='Careers' name='menu4' width='251' height='32' border='0' id='menu4' onmouseover='showMenu(event)' onmouseout='hideMenu(event)' /></a><br />");
} 

//checks for contact us section
if (window.location.href.indexOf('contact') != -1) {
	document.write("<a href='#'><img src='images/bn-contact-x.gif' alt='Contact Us' name='menu5' width='251' height='32' border='0' id='menu5' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} else  {
	document.write("<a href='#'><img src='images/bn-contact.gif' alt='Contact Us' name='menu5' width='251' height='32' border='0' id='menu5' onMouseOver='showMenu(event)' onMouseOut='hideMenu(event)' /></a><br />");
} 

}

function checkForm()
{
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }


	
// check the email field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter your email address.\n";
    }

    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}
//-->