if(document.images)
{
	//hub map rollovers
	var americason = new Image();
	americason.src = "/images/international_offices/americas_ro.gif";
	var americasoff = new Image();
	americasoff.src = "/images/international_offices/americas.gif";
	var europeon = new Image();
	europeon.src = "/images/international_offices/europe_ro.gif";
	var europeoff = new Image();
	europeoff.src = "/images/international_offices/europe.gif";
	var southernafricaon = new Image();
	southernafricaon.src = "/images/international_offices/africa_ro.gif";
	var southernafricaoff = new Image();
	southernafricaoff.src = "/images/international_offices/africa.gif";
	var asiapacificon = new Image();
	asiapacificon.src = "/images/international_offices/asiapacific_ro.gif";
	var asiapacificoff = new Image();
	asiapacificoff.src = "/images/international_offices/asiapacific.gif";
	
	var middleeaston = new Image();
	middleeaston.src = "/images/international_offices/middleeast_ro.gif";
	var middleeastoff = new Image();
	middleeastoff.src = "/images/international_offices/middleeast.gif";
	
	

	//content secondarynav rollovers
	var intamericason = new Image();
	intamericason.src = "/images/international_offices/intamericas_ro.gif";
	var intamericasoff = new Image();
	intamericasoff.src = "/images/international_offices/intamericas.gif";
	var inteuropeon = new Image();
	inteuropeon.src = "/images/international_offices/inteurope_ro.gif";
	var inteuropeoff = new Image();
	inteuropeoff.src = "/images/international_offices/inteurope.gif";
	var intsouthernafricaon = new Image();
	intsouthernafricaon.src = "/images/international_offices/intafrica_ro.gif";
	var intsouthernafricaoff = new Image();
	intsouthernafricaoff.src = "/images/international_offices/intafrica.gif";
	var intasiapacificon = new Image();
	intasiapacificon.src = "/images/international_offices/intasiapacific_ro.gif";
	var intasiapacificoff = new Image();
	intasiapacificoff.src = "/images/international_offices/intasiapacific.gif";
	
	var intmiddleeaston = new Image();
	intmiddleeaston.src = "/images/international_offices/intmiddleeast_ro.gif";
	var intmiddleeastoff = new Image();
	intmiddleeastoff.src = "/images/international_offices/intmiddleeast.gif";
	
}



//show n hide layers

var secNavCopyReady=false;

function showContent(divnum)
	{

		if(secNavCopyReady){
	
			if(document.layers)
				{
				eval("document.pop" + divnum + "Div.visibility = 'visible'")
				}
			else if(document.all)
				{
				eval("pop" + divnum + "Div.style.visibility = 'visible'")
				}	
			else
				{
				eval("document.getElementById('pop" + divnum +"Div').style.visibility = 'visible'")
				}			
			
		}
		
	}	
	
	function hideAll(){
	
			if(secNavCopyReady) hideOtherContent(90,91,92,93,94,95,96,97,98,99)
	}
	
	function hideOtherContent()
	{
		if(secNavCopyReady){
			for(i=0;i<hideOtherContent.arguments.length;i++){
			
				var divnum=hideOtherContent.arguments[i]
				
				if(document.layers)
					{
					eval("document.pop" + divnum + "Div.visibility = 'hidden'")	
					}
				else if(document.all)
					{
					eval("pop" + divnum + "Div.style.visibility = 'hidden'")
					}
				else
					{
					eval("document.getElementById('pop" + divnum + "Div').style.visibility = 'hidden'")
					}			
			
			}
		}
	}	
	
	function highlightMap(sOfficeName){
		switch(sOfficeName.toUpperCase()){
			case 'IRELAND':
				showContent(101); 
				hideOtherContent(102,103,104,105,106,107,108,109,110,111);				
				break
			case 'SPAIN':
				showContent(102); hideOtherContent(101,103,104,105,106,107,108,109,110,111);
				break
			case 'UK':
				showContent(103); hideOtherContent(101,102,104,105,106,107,108,109,110,111);
				break
			case 'FRANCE':
				showContent(104); hideOtherContent(101,102,103,105,106,107,108,109,110,111);
				break
			case 'BELGIUM':
				showContent(105); hideOtherContent(101,102,103,104,106,107,108,109,110,111);
				break
			case 'NETHERLANDS':
				showContent(106); hideOtherContent(101,102,103,104,105,107,108,109,110,111);
				break
			case 'ITALY':
				showContent(107); hideOtherContent(101,102,103,104,105,106,108,109,110,111);
				break
			case 'GERMANY':
				showContent(108); hideOtherContent(101,102,103,104,105,106,107,109,110,111);
				break
			case 'FINLAND':
				showContent(109); hideOtherContent(101,102,103,104,105,106,107,108,110,111);
				break
			case 'GREECE':
				showContent(110); hideOtherContent(101,102,103,104,105,106,107,108,109,111);
				break
			case 'ISRAEL':
				showContent(111); hideOtherContent(101,102,103,104,105,106,107,108,109,110);
				break
			case 'CHINA':
				showContent(91); hideOtherContent(92,93,94,95,96,97,98,99);
				break;
			case 'KOREA':
				showContent(92); hideOtherContent(91,93,94,95,96,97,98,99);
				break;
			case 'JAPAN':
				showContent(93); hideOtherContent(91,92,94,95,96,97,98,99);
				break;
			case 'HONGKONG':
				showContent(94); hideOtherContent(91,92,93,95,96,97,98,99);				
				break;
			case 'PHILLIPINES':
				//not sure about this one
				showContent(95); hideOtherContent(91,92,93,94,96,97,98,99);
				break
			case 'THAILAND':
				showContent(96); hideOtherContent(91,92,93,94,95,97,98,99);
				break;
			case 'MALAYSIA':
				showContent(97); hideOtherContent(91,92,93,94,95,96,98,99);
				break;
			case 'SINGAPORE':
				showContent(98); hideOtherContent(91,92,93,94,95,96,97,99);
				break;
			case 'AUSTRALIA':
				showContent(99); hideOtherContent(91,92,93,94,95,96,97,98);
				break;
		}

	}
	
function unhighlightMap(sOfficeName){
		switch(sOfficeName.toUpperCase()){
			case 'IRELAND':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);				
				break
			case 'SPAIN':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'UK':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'FRANCE':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'BELGIUM':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'NETHERLANDS':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'ITALY':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'GERMANY':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'FINLAND':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'GREECE':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'ISRAEL':
				hideOtherContent(101,102,103,104,105,106,107,108,109,110,111);
				break
			case 'CHINA':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
			case 'KOREA':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
			case 'JAPAN':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
			case 'HONGKONG':
				hideOtherContent(91,92,93,94,95,96,97,98,99);				
				break;
			case 'PHILLIPINES':
				//not sure about this one
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break
			case 'THAILAND':
				hideOtherContent(91,92,93,94,96,95,97,98,99);
				break;
			case 'MALAYSIA':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
			case 'SINGAPORE':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
			case 'AUSTRALIA':
				hideOtherContent(91,92,93,94,95,96,97,98,99);
				break;
		}

	}	

//expand-contraCT OFFICES LISTS FUNCTIONS	
	
	
iDivClosedSpacing = 14


function getDivHeight_callback(oDiv){
	return getDivHeight_default(oDiv)	
}

function postExpand_callback(oParentDiv, oExpandDiv, iLengthChange){
}


function expandDiv_callback(oDiv, oParentDiv, sDir){
	var sOfficeName = getRegionFromDivID(oDiv.id)

	if(sDir == 'down')
		highlightMap(sOfficeName)
	else
		unhighlightMap(sOfficeName)
}


var mapWin

function openOfficeMap(sMapImgFile) { 
	sMapImgFile = "/images/documentum/office_directory/images/"+sMapImgFile
	mapWin = openWin(sMapImgFile,"officeMap",440,330)
	setTimeout("focusWin(mapWin)",20)
}
	

function getOffice(sFile, sTitle){
	//generalAdjustDivs('down', resultsContainer, eval("results" + sFile.toLowerCase()))	
}

function initOffices(){
	initExpandDivs(resultsContainer)
}

function printAreaOffices(subcat){
eval ("window.open('print_area_office_details.asp?subcategory="+subcat+"','','toolbar=yes,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=500')")

}

function printAllOffices(){
window.open('offices.pdf','','toolbar=yes,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=500')

}


