

<!--
if (!FlashOff) {
var FlashMode = false;
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
document.write('</SCR' + 'IPT\> \n');
}

origHeight = 0;
origWidth = 0;
var widthFix = '100%';

//capture mouse movement event
document.onmousemove = trackIt

// page onload initialization function
function init() {
	if (subNav.length > 0) {
		makeSubnav();
	}
	makeRightLinks();
	if (FlashOff) {
		makeVis('menu_nav',1);
		makeVis('bodyLay',1);
	} else {
		showFlash()
	}
	trackerPos = -20;
	if (section == 'search' || section == 'index' || section == 'help') {
		swapImg(section,'submenu_nav',1);
	} else if (section != 'errors') {
		swapImg(section,'menu_nav',1);
		trackerPos = document.getElementById(section+'_menu_nav').offsetLeft + (document.getElementById(section+'_menu_nav').offsetWidth/2-14);
	}
	lnd = trackerPos;
	setInterval('chaseTracker()',10);
	rollBrandImage()
}

function showFlash() {
	if (FlashMode) {
	document.write('<div id="intro" style="top:0px; left:0px; height:100%; width:100%;">&nbsp;<OBJECT 	CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="800" HEIGHT="600" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" ID=flashintro>');
	document.write('<PARAM id="MOVIE" VALUE="intro15.swf"><PARAM id="PLAY" VALUE="true"><PARAM id="LOOP" VALUE="false"><PARAM id="QUALITY" VALUE="high"><PARAM id="SCALE" VALUE="SHOWALL">');
	document.write('<EMBED id="flashintro" SRC="intro15.swf" WIDTH="800" HEIGHT="600" PLAY="true" LOOP="false" QUALITY="high" SCALE="SHOWALL" swLiveConnect="true" type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
	document.write('</OBJECT></div>');
	} else {
		resetFlash()
	}
}

//creates section subnav drop down menus
function makeSubnav() {
	xPad = 150;
	subnav_str = '<table cellpadding="0" cellspacing="0" border="0" width="208"><tr><td width="202" align="right"><img src="http://www.kpmg.com/images/clear.gif" height="50" width="1"><br>';
	subnav_str = subnav_str + '<img src="http://www.kpmg.com/images/nav_hd_'+section+'.gif"><br><img src="http://www.kpmg.com/images/clear.gif" height="22" width="1"><br>'
	for (x=0; x < subNav.length; x++) {
		if ((x < subNav.length-1) && (subNav[x+1].parNav != 0))	{
			pop = 1
		} else {
			pop = 0
		}
		if (subNav[x].parNav == 0)	{
			if (subNav[x].path != '') {
				pathStr = subNav[x].path;
			} else {
				pathStr = '/'+section+'/content.asp?l1id='+subNav[x].id+'&l2id='+subNav[x].parNav;
			}
			if (l1id == subNav[x].id) {
				dir = 'on';
			} else {
				dir = 'off';
			}
				xPad += 18;
				subnav_str = subnav_str + '<a href="http://www.kpmg.com'+pathStr+'" onMouseOver="popup(\''+section+'_'+subNav[x].id+'\',\'sub_nav\','+pop+')" onMouseOut="popup(\''+section+'_'+subNav[x].id+'\',\'sub_nav\','+pop+')"><img id="'+section+'_'+subNav[x].id+'_sub_nav" onClick="this.blur()" src="http://www.kpmg.com/images/buttons/but_'+section+'_'+subNav[x].id+'_'+dir+'.gif" border="0"></a><br>';
		} else {
			dropDownStr = '<div id="'+section+'_'+subNav[x].parNav+'_subnav" style="position:absolute; top:'+xPad+'px; left:202px; width:310px; background:'+subNav[x-1].bc+'; z-index:51; visibility:hidden"><table cellpadding="0" cellspacing="6" border="0"><tr><td>'
			dropDownStr += '<div class="popupMenu" onClick="document.location.href=\''+pathStr+'\'" onMouseover="this.style.background=\''+subNav[x].hc+'\'; this.all.tags(\'font\')[0].color=\'#ffffff\'" font-style=\''+subNav[x].hc+'\'" onMouseOut="this.style.background=\'#ffffff\'; this.all.tags(\'font\')[0].color=\''+subNav[x].hc+'\'" style="background:#ffffff; cursor:pointer; width:298px;">&nbsp;&nbsp;&nbsp;&nbsp;<font color="'+subNav[x].hc+'">Overview</font></div>';
			while (x < subNav.length && subNav[x].parNav != 0) {
				if (subNav[x].id == 99) {
					pathstr = subNav[x].path;
					subnav_str = subnav_str + '<img src="http://www.kpmg.com/images/clear.gif" height="3" width="1"><br><table cellpadding="0" cellspacing="0" border="0"><tr><td align="right"><a href="'+pathstr+'"><font class="rightSubIE" color="'+subNav[x].hc+'">'+subNav[x].title + '</font></a></td><td width="10" nowrap></td></tr></table>';
				}
				else
				{
				if (l2id == subNav[x].id) {
				subnav_str = subnav_str + '<img src="http://www.kpmg.com/images/clear.gif" height="3" width="1"><br><table cellpadding="0" cellspacing="0" border="0"><tr><td align="right"><a href="http://www.kpmg.com/'+section+'/content.asp?l1id='+subNav[x].parNav+'&l2id='+subNav[x].id+'"><font class="rightSubIE" color="'+subNav[x].hc+'">'+subNav[x].title + '</font></a></td><td width="10" nowrap></td></tr></table>'
				}
				}
				if (subNav[x].path == '') {
					urlStr = 'content.asp?l1id='+subNav[x].parNav+'&l2id='+subNav[x].id;
				} else {
					urlStr = subNav[x].path;
				}
				dropDownStr += '<div class="popupMenu" onClick="document.location.href=\''+urlStr+'\'" onMouseover="this.style.background=\''+subNav[x].hc+'\'; this.all.tags(\'font\')[0].color=\'#ffffff\'" onMouseOut="this.style.background=\'#ffffff\'; this.all.tags(\'font\')[0].color=\''+subNav[x].hc+'\'" style="background:#ffffff; cursor:pointer; width:298px;">&nbsp;&nbsp;&nbsp;&nbsp;<font color="'+subNav[x].hc+'">'+subNav[x].title+'</font></div>';
				x++;
			}
			dropDownStr += '</table></div>'
			document.write(dropDownStr);
			x--;
		}
	}
	subnav_str = subnav_str + '<img src="http://www.kpmg.com/images/clear.gif" height="16" width="1"><br></td><td width="6" nowrap bgcolor="'+subNav[0].bc+'"><img src="http://www.kpmg.com/images/clear.gif" height="1" width="6"></td></tr><tr><td colspan="2" nowrap bgcolor="'+subNav[0].bc+'"><img src="http://www.kpmg.com/images/clear.gif" height="6" width="1"></td></tr></table>';
	createLay('sub_nav',90,0,0,205,subnav_str,50,1,'');
}

//track cursor position
function trackIt(evt) {
	myEvent = evt;
	if (document.all) myEvent = event;
	cursorX = myEvent.clientX;
	cursorY = myEvent.clientY;
	if (cursorY > 60 && cursorY < 90 && cursorX < 750) {
		lnd = cursorX-14;
		chaseTracker();
	} else if (lnd != trackerPos) {
		lnd = trackerPos;
		chaseTracker();
	}
}

//make tracker chase cursor
function chaseTracker() {
	obj = document.getElementById('trackerLay');
	trackPos = parseInt(obj.style.left);
	if (trackPos != lnd) {
		if (trackPos < (lnd-10)) {
			trackPos +=10;
		} else if (trackPos > (lnd+10)) {
			trackPos -=10;
		} else if (trackerPos != lnd+10) {
			trackPos = lnd;
		}
	}
	obj.style.left = trackPos + 'px'
}


var imgState = 0;

function swapImg(tar,par,imgState) {
	nme = tar+'_'+par;
	
	if (imgState == 1){
		document.getElementById(nme).src = 'http://www.kpmg.com/images/buttons/but_'+tar+'_on.gif';
	} else if (imgState == 0) {
		if ((tar != section) && (tar != rollStatus)) {
			document.getElementById(nme).src = 'http://www.kpmg.com/images/buttons/but_'+tar+'_off.gif';
		}
	}
}

function makeVis(tar,dir) {
	if (dir) {
		document.getElementById(tar).style.visibility = 'visible';
	} else {
		document.getElementById(tar).style.visibility = 'hidden';
	}
}	

//country redirector
function goCountry() {	
	tar = document.forms['countryForm'].elements[0].selectedIndex;
	document.location.href = document.forms['countryForm'].elements[0].options[tar].value;
}

//preset contact pulldowns
function presetPulldowns() {
	document.forms['contactForm'].reset();
	if (section == 'services') {
		for (x=0; x < document.forms['contactForm'].elements['services'].length; x++) {
			if (l1id == document.forms['contactForm'].elements['services'].options[x].value) {
				document.forms['contactForm'].elements['services'].selectedIndex = x;
			}
		}
	} else if (section == 'industries') {
		for (x=0; x < document.forms['contactForm'].elements['industry'].length; x++) {
			if (l1id == document.forms['contactForm'].elements['industry'].options[x].value) {
				document.forms['contactForm'].elements['industry'].selectedIndex = x;
			}
		}
	}
}

//contact submit
function submitContact(send) {
	if (send) {
	if (document.forms['contactForm'].elements['about'].selectedIndex == 0) {
		alert('Please select a subject for your inquiry from the pull down menu');
	} else if (document.forms['contactForm'].elements['about'].value == 'null') {
		alert('The selection you made in the Subject field is a sub-heading.  Please make another selection.');
	} else if (document.forms['contactForm'].elements['comments'].value == '') {
		alert('Please enter the text of your message in the comments field');
	} else if (document.forms['contactForm'].elements['email'].value == '') {
		alert('Please enter your email address');
	} else if (document.forms['contactForm'].elements['email'].value != '' && (document.forms['contactForm'].elements['email'].value.indexOf('@') == -1 || document.forms['contactForm'].elements['email'].value.indexOf('.') == -1)) {
		alert('Your email address is invalid');
	} else {
		pullDown('contact')
		document.forms['contactForm'].submit();
	}
	} else {
		document.forms['contactForm'].reset();
	}
}

//search submit
function submitSearch(tar) {	
	if (tar == 'A') {
		document.forms['searchFormA'].submit();
	} else {
		document.forms['searchFormB'].submit();
	}
}

//roll out section brand image
function rollBrandImage() {
	if ((section != 'home') && (parseInt(document.getElementById('section_branding').style.left) > 360)) {
		document.getElementById('section_branding').style.left -= 10;
		var wait = setTimeout('rollBrandImage()',1);
	}
}

//sub menu rollout function
function roll(tar,dir) {
	obj = document.getElementById(tar+'_roll');
	rollY = parseInt(obj.style.top);
	rollY += dir*50;
	obj.style.top = rollY + 'px';
	if (dir == 1) { 
		if (rollY < 100) { 
			setTimeout('roll(\''+tar+'\',\''+dir+'\')',1);
		} else {
			makeVis(tar+'_form',1);
		}
	} else {
		if (rollY > -600) { 
			setTimeout('roll(\''+tar+'\',\''+dir+'\')',1);
		} else {
		}
	}
}

//create layers function
function createLay(nme,x,y,h,w,content,z,v,c) {
	if (v) {
		vis = 'visible';
	} else {
		vis = 'hidden';
	}
	layerStr = '<div id="'+nme+'" style="position:absolute; top:'+x+'px; left:'+y+'px;';
	if (h != 0) {
		layerStr = layerStr + ' height:'+h+'px;';
	}
	if (w != 0) {
		layerStr = layerStr + ' width:'+w+'px;';
	}
	layerStr = layerStr + ' z-index:'+z+'; visibility:'+vis+';'
	if (c != '') {
		layerStr = layerStr + ' background:'+c+';';
	}
	layerStr = layerStr + '">'+content+'</div>\n';
	document.write(layerStr);
}

//-->


