// JavaScript Document
function makeNewWindowYield2(url){
		newWindowYield=window.open(url,"","height=540,width=520,resizable=yes");
	}
	function showhide(id){
		if (document.getElementById){
			obj = document.getElementById(id);
			if (obj.style.display == "none"){
			obj.style.display = "";
			} else {
			obj.style.display = "none";
			}
		}
	} 
	function showAll(id){
		if (document.getElementById){
			obj = document.getElementById(id);
			if (obj.style.display == "none"){
			obj.style.display = "";
			} else {
			//DO NOTHING
			}
		}
	} 
	function showHover(id){
		if (document.getElementById){
			obj = document.getElementById(id);
			if (obj.style.display == "none"){
			obj.style.display = "";
			} 
		}
	} 
	function hideHover(id){
		if (document.getElementById){
			obj = document.getElementById(id);
			if (obj.style.display == ""){
			obj.style.display = "none";
			} 
		}
	} 
whoHideHoverArray = new Array('whatWeDoMenu','whatClose','ourProductsMenu', 'productsClose')	
function whoHideHover() {
	for (i=0; i <whoHideHoverArray.length; i++) {
		hideHover(whoHideHoverArray[i]);
	}
}
whatHideHoverArray = new Array('whoWeAreMenu','whoClose','ourProductsMenu', 'productsClose')	
function whatHideHover() {
	for (i=0; i <whatHideHoverArray.length; i++) {
		hideHover(whatHideHoverArray[i]);
	}
}
clientsHideHoverArray = new Array('whoWeAreMenu','whatWeDoMenu','ourProductsMenu','whoClose','whatClose', 'productsClose')	
function clientsHideHover() {
	for (i=0; i <clientsHideHoverArray.length; i++) {
		hideHover(clientsHideHoverArray[i]);
	}
}
productsHideHoverArray = new Array('whoWeAreMenu','whoClose','whatWeDoMenu','whatClose')	
function productsHideHover() {
	for (i=0; i <productsHideHoverArray.length; i++) {
		hideHover(productsHideHoverArray[i]);
	}
}

var slideNumber = 1;
	function next(){
		if(document.getElementById){
			if (slideNumber%2 == 0) {
				obj = document.getElementById('slideBoxTrans');
				obj.style.display = "none";
				obj1 = document.getElementById('slideBoxTrans1');
				obj1.style.display = "";
			} else if (slideNumber%2 != 0) {
				obj = document.getElementById('slideBoxTrans');
				obj.style.display = "";
				obj1 = document.getElementById('slideBoxTrans1');
				obj1.style.display = "none";
			}
			//}
		}
		slideNumber++;
		setTimeout("next()", 5000);
	}

	function openWindowVt() {
		newWindow = window.open('/vt_damco.html', 'newWin', 'width=700,height=500,scrollbars=yes,resizable=yes')
	}
	function openWindowVtLinks() {
		newWindow = window.open('/vt_links.html', 'newWin', 'width=600,height=400,scrollbars=yes,resizable=yes')
	}
	function openWindowOr() {
		newWindow = window.open('/or_damco.html', 'newWin', 'width=600,height=500,scrollbars=yes,resizable=yes')
	}
	function openWindowDefinitions() {
		newWindow = window.open('/benchmark.html', 'newWin', 'width=450,height=450,scrollbars=yes,resizable=yes')
	}
	function openWindowNotes() {
		newWindow = window.open('/notesonperformance.html', 'newWin', 'width=650,height=450,scrollbars=yes,resizable=yes')
	}
	function openWindowTerms() {
		newWindow = window.open('/terms.html', 'newWin', 'width=600,height=500,scrollbars=yes')
	}
	function openBioWindow(varName) {
		newWindow = window.open(varName, 'newWin', 'width=550,height=200,scrollbars=no')
	}
	function openWindowWelcome(message, height) {
		newWindow = window.open(message, 'newWin', 'width=640,height=' + height + ',scrollbars=yes')
	}
	function openWindowCredit() {
		newWindow = window.open('/pubs/html/creditQualityRatings.html', 'newWin', 'width=600,height=300,scrollbars=yes')
	}
	function openWindow(url) 
		{
			newWindow = window.open(url, 'newWin', 'width=800,height=600,scrollbars=yes')
		}
	function openWindowSize(url, size) 
		{
			newWindow = window.open(url, 'newWin', size, 'scrollbars=yes')
		}	
	function openWindowSlide(url) 
		{
			newWindow = window.open(url, 'newWin', 'width=660,height=735,scrollbars=yes')
		}
	function submitClientForm()
	{
		//document.ClientForm.FILE_NAME.value = fileName;
		//document.ClientForm.TYPE.value = type;
		document.ClientForm.submit();
	}
	function changeBio (bioName) {
		document.getElementById("bioDiv").innerHTML = ("<!--#include virtual='includes/bios/" + bioName + ".htm' -->");
		<!--#include virtual="includes/learnMoreAboutDwight.htm" -->
	}
	
	function changeColor(id_on, id_off1, id_off2, id_off3){
		if (document.getElementById){
			obj_on = document.getElementById(id_on);
			obj_off1 = document.getElementById(id_off1);
			obj_off2 = document.getElementById(id_off2);
			obj_off3 = document.getElementById(id_off3);
			obj_on.className = 't_on';
			obj_off1.className = 't_off';
			obj_off2.className = 't_off';
			obj_off3.className = 't_off';
		}
	}

/* 
  ------------------------------------------------
  PVII Equal CSS Columns scripts -Version 2
  Copyright (c) 2005 Project Seven Development
  www.projectseven.com
  Version: 2.1.0
  ------------------------------------------------
*/
function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com
 var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){
 for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){
 oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;
 if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{
 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;
 document.p7eqth=document.body.offsetHeight;
 document.p7eqtw=document.body.offsetWidth;}
}
function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com
 if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}
}
function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com
 var c,e,el;if(document.getElementById){document.p7eqc=new Array();
 document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;
 c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);
 if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){
 document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}}
 setInterval("P7_eqT2()",10);}
}
function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com
 var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;
 g.style.paddingBottom=np+"px";if(np<pt){np+=inc;
 setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}
}
