var sections=['home','ins-sol', 'online-sol']
var clickPathItems=['Home', '-', 'Management', 'Trendsetter', '-', 'Latest News', 'Quarterly Trend Data', 'Hot Topics', '-', 'Resources', 'Benchmarking', 'MoneyTree', 'Value Reporting', 'Bookstore', 'Contact', '']
var clickPathURLs=['/', '-', '/Barometer_Management', '/Barometer_Manufacturing', '/Barometer_Trendsetter', '-', '/Barometer_News', '/Barometer_QETD', '/Barometer_HotTopics', '-', '/Barometer_Resources', 
'Benchmarking_Link', 'MoneyTree_Link', 'ValueReporting_Link', 'http://www.yahoo.com', 'http://www.pwcglobal.com/extweb/NewCoWebPouch.nsf/Memo?OpenForm&webmaster@pwcglobal.com^gx^ENG',  '']
var clickPathPaths=['home', '-', 'management', 'manufacturing', 'trendsetter', '-', 'latest-news', 'qetd', 'hot-topics', '-', 'resources', 'benchmarking', 'moneytree', 'vr', 'bookstore', 'contact', '']
var languageIdentifiers=['eng']
var languageNames=['English']
var languageURLs=['http://www.pwcglobal.com/gx/eng/main/home/index.html']
var pulldownItemNames=['Select From...', 'Home', '-----------------------------------', 'Management', 'Manufacturing', 'Trendsetter', '-----------------------------------', 'Latest News', 'Quarterly Trend Data', 'Hot Topics','-----------------------------------','Resources', 'Benchmarking', 'MoneyTree', 'Value Reporting', 'Bookstore', 'Contact','&nbsp;&nbsp;___________________________&nbsp;&nbsp;']
var pulldownIndentLevels=[0, 1, 0, 2, 2, 2, 2, 0, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 0]
var pulldownURLs=[ '', DbPath +'/', '-', DbPath +'/Barometer_Management', DbPath +'/Barometer_Manufacturing', DbPath +'/Barometer_Trendsetter',  '-', DbPath +'/Barometer_News', DbPath +'/Barometer_QETD', DbPath +'/Barometer_HotTopics', '-', DbPath +'/Barometer_Resources', DbPath +'/Benchmarking_Link', DbPath +'/MoneyTree_Link', DbPath +'/ValueReporting_Link', 'http://www.barometersurveys.com', 'http://www.pwcglobal.com/extweb/NewCoWebPouch.nsf/Memo?OpenForm&webmaster@pwcglobal.com^gx^ENG', '']
var footerLinks=['Privacy Statement', 'Legal Disclaimer', 'Email Webmaster']
var footerURLs=['http://www.pwcglobal.com/gx/eng/main/privacy/index.html', 'http://www.pwcglobal.com/gx/eng/main/legal/index.html', 'mailto:webmaster@pwcglobal.com']
var clickpath=''

t=0
for(j=0; j<sections.length; j++){
	if(sections[j]!=""){
		for(i=0; i<clickPathPaths.length; i++){
			if(clickPathPaths[i]==sections[j]){
				if(t){clickpath+=' > '}
				t++
				clickpath+='<A HREF="'+clickPathURLs[i]+'" TARGET="_top">'+clickPathItems[i]+'</A>'
				i=clickPathPaths.length
			}
		}
	}
}

function generateLanguageList(){
	if (languageIdentifiers.length>3){
		document.write('<FORM NAME="langSelectorForm">')
		document.write('<SELECT NAME="langSelector" onChange="pageSelected()" STYLE="{width: 150px; }">')
		for (i=0; i<languageIdentifiers.length; i++){
			document.write('<OPTION VALUE="'+languageIdentifiers[i]+'">'+languageNames[i]+'</OPTION>')
		}
		document.write('</SELECT></FORM>');
	}else if(languageIdentifiers.length>1){
		for(i=0; i<languageIdentifiers.length; i++){
			document.write('&nbsp; &nbsp;<A HREF="'+languageURLs[i]+'" TARGET="_top">'+languageNames[i]+'</A>')
		}
	}
}

function langSelected(i){
	window.top.location.href=languageURLs[i]
}

function pageSelected() {
	selectedIndex=document.langSelectorForm.langSelector.selectedIndex
	langSelected(selectedIndex)
}

function generateSectionPulldown(){
	document.write('<SELECT NAME="sectionPullDown" onChange="go()">')
	for (i=0; i<pulldownItemNames.length-1; i++){
		if (pulldownIndentLevels[i]<=3){
			indentstr = '';
			for (j=0; j<pulldownIndentLevels[i];j++){
				indentstr = indentstr+'&nbsp;&nbsp;'
			}
			document.write('<OPTION VALUE="'+pulldownURLs[i]+'"')
			document.write('>'+indentstr+pulldownItemNames[i])
		}
	}
	document.write('</SELECT>')
}

function writeFooterLinks(){
	var out = ""
	out += "<TD CLASS=\"footertext\"><DIV STYLE=\"font-size: .60em;\">.&nbsp; PricewaterhouseCoopers refers to the individual</DIV></TD></TR></TABLE><TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0'><TR><TD WIDTH='10' CLASS='small'><IMG SRC='/images/ui/tran.gif' WIDTH='18' HEIGHT='1' BORDER='0' ALT=''></TD><TD CLASS='footertext'><DIV STYLE='font-size: .60em;'>member firms of the worldwide PricewaterhouseCoopers organisation. All rights reserved.</DIV></TD></TR></TABLE><TABLE BORDER='0' CELLSPACING='4' CELLPADDING='0'><TR><TD WIDTH='10' CLASS='small'><IMG SRC='/images/ui/tran.gif' WIDTH='10' HEIGHT='1' BORDER='0' ALT=''></TD>"
	for (i=0; i<footerLinks.length; i++){
		if (footerLinks[i]!=""){
			if(i!=0){out +='<TD WIDTH="1" CLASS="footertext"><DIV STYLE="font-size: .60em;">|</DIV></TD>\n'}
			out +='<TD ALIGN="center" VALIGN="middle" CLASS="footertext"><DIV STYLE="font-size: .60em;"><A HREF="'+footerURLs[i]+'" TARGET="_top">'+footerLinks[i]+'</A></DIV></TD>\n'
		}
	}
	out += ""
	document.write(out)
}

function go(){
	formOb=document.selecter
	selectOb=formOb.sectionPullDown
	selectedIndex=selectOb.selectedIndex
	destinationURL = pulldownURLs[selectedIndex]
	if ((destinationURL!=null) && (destinationURL!='') && (destinationURL!='-')){ 
		window.top.location.href = destinationURL
	}
}

function openPrintWin()  {
	PopUp=window.open("http://" +location.hostname+"/servlet/printFormat?url=" + location,"","menubar=yes,menubars=yes,toolbars=yes,toolbar=yes,scrollbars=yes,resizable=yes");
}

function printWin(){
	window.openPrintWin(0);
}

