/* 
	Title: LabCorp
	Version: 1.0
	Author: Eric Birnbaum
	Company: TMP Worldwide Advertising and Communications, LLC
	Date: October 2007
*/

var lc_facts = new Array ();
lc_facts[0] = "LabCorp's Service Representatives log 76 million miles of travel each year. The distance from the Earth to the Sun is approximately 93 million miles.";
lc_facts[1] = "LabCorp offers forensic and DNA identity services, including mitochondrial DNA (mtDNA) sequencing and PCR technologies for positive identification.";
lc_facts[2] = "LabCorp provides clinical trial services that help support drug development programs.";
lc_facts[3] = "If you combined all of LabCorp's facilities into one, you'd have an area big enough to fit the island of Bermuda.";
lc_facts[4] = "If you unraveled all your chromosomes from all of your cells and laid out the uncoiled DNA end to end, the strands would stretch from the Earth to the Sun 65 times round trip.";
lc_facts[5] = "LabCorp performs over a million tests per day. That's one for every man, woman and child in the USA each year.";
lc_facts[6] = "LabCorp performs sophisticated tests for infectious diseases such as malaria, West Nile virus, and the H5N1 avian flu strain.";
var randomfact = Math.round((lc_facts.length-1)*Math.random());

function newWin(customerlink){
	msgWindow=window.open(customerlink,"OpenWindow","width=640,height=480,scrollbars=no"); 
}

function newWinLinks() {
	for (var i=0; i<document.links.length; i++) {
		if (document.links[i].className == "viewpage") {
			document.links[i].onclick = displayWindow;	
		}
	} 
}

function displayWindow() {
	var pageWindow = window.open(this.href,"win","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=no,resizable=1,top=300,left=400,width=640,height=480");
	pageWindow.focus();
	return false;
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
		oldonload();
		func();
		}
	}
}

addLoadEvent(newWinLinks);