var hBar = new ItemStyle(115, 0, '', 0, 0, '', '', '', '', '', '', null, null, 'hand', 'hand');
var subM = new ItemStyle(23, 0, '', 0, 5, '#E5E4DB', '#000000', 'lowtext', 'hightext', null, null, null, null, 'hand', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('root', false, 'window.page.elmPos("tnav").x', 'window.page.elmPos("tnav").y', 35, hBar, '', false);

if (isSection('letter')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_letter_on.gif" width=121 height=35 border=0 alt="Letter From Syncrude\'s Leaders">^<img src="/sustainability2004/images/btn_letter_over.gif" width=121 height=35 border=0 alt="Letter From Syncrude\'s Leaders">', 'mLetter', 'sm:', null, 121)) onclick='window.location.href="/sustainability2004/letter/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_letter_off.gif" width=121 height=35 border=0 alt="Letter From Syncrude\'s Leaders">^<img src="/sustainability2004/images/btn_letter_over.gif" width=121 height=35 border=0 alt="Letter From Syncrude\'s Leaders">', 'mLetter', 'sm:', null, 121)) onclick='window.location.href="/sustainability2004/letter/index.shtml"';
}

if (isSection('at_a_glance')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_glance_on.gif" width=59 height=35 border=0 alt="At A Glance">^<img src="/sustainability2004/images/btn_glance_over.gif" width=59 height=35 border=0 alt="At A Glance">', 'mGlance', 'sm:', null, 59)) onclick='window.location.href="/sustainability2004/at_a_glance/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_glance_off.gif" width=59 height=35 border=0 alt="At A Glance">^<img src="/sustainability2004/images/btn_glance_over.gif" width=59 height=35 border=0 alt="At A Glance">', 'mGlance', 'sm:', null, 59)) onclick='window.location.href="/sustainability2004/at_a_glance/index.shtml"';
}

if (isSection('sustainable_growth')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_growth_on.gif" width=129 height=35 border=0 alt="Toward Sustainable Growth">^<img src="/sustainability2004/images/btn_growth_over.gif" width=129 height=35 border=0 alt="Toward Sustainable Growth">', 'mGrowth', 'sm:', null, 129)) onclick='window.location.href="/sustainability2004/sustainable_growth/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_growth_off.gif" width=129 height=35 border=0 alt="Toward Sustainable Growth">^<img src="/sustainability2004/images/btn_growth_over.gif" width=129 height=35 border=0 alt="Toward Sustainable Growth">', 'mGrowth', 'sm:', null, 129)) onclick='window.location.href="/sustainability2004/sustainable_growth/index.shtml"';
}

if (isSection('finance_economy')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_financial_on.gif" width=137 height=35 border=0 alt="Financial &amp; Economic Performance">^<img src="/sustainability2004/images/btn_financial_over.gif" width=137 height=35 border=0 alt="Financial &amp; Economic Performance">', 'mFinance', 'sm:', null, 137)) onclick='window.location.href="/sustainability2004/finance_economy/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_financial_off.gif" width=137 height=35 border=0 alt="Financial &amp; Economic Performance">^<img src="/sustainability2004/images/btn_financial_over.gif" width=137 height=35 border=0 alt="Financial &amp; Economic Performance">', 'mFinance', 'sm:', null, 137)) onclick='window.location.href="/sustainability2004/finance_economy/index.shtml"';
}

if (isSection('social_performance')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_social_on.gif" width=91 height=35 border=0 alt="Social Performance">^<img src="/sustainability2004/images/btn_social_over.gif" width=91 height=35 border=0 alt="Social Performance">', 'mSocial', 'sm:', null, 91)) onclick='window.location.href="/sustainability2004/social_performance/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_social_off.gif" width=91 height=35 border=0 alt="Social Performance">^<img src="/sustainability2004/images/btn_social_over.gif" width=91 height=35 border=0 alt="Social Performance">', 'mSocial', 'sm:', null, 91)) onclick='window.location.href="/sustainability2004/social_performance/index.shtml"';
}

if (isSection('environment_health_safety')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_enviro_on.gif" width=137 height=35 border=0 alt="Environment, Health &amp; Safety Performance">^<img src="/sustainability2004/images/btn_enviro_over.gif" width=137 height=35 border=0 alt="Environment, Health &amp; Safety Performance">', 'mEnvironment', 'sm:', null, 137)) onclick='window.location.href="/sustainability2004/environment_health_safety/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_enviro_off.gif" width=137 height=35 border=0 alt="Environment, Health &amp; Safety Performance">^<img src="/sustainability2004/images/btn_enviro_over.gif" width=137 height=35 border=0 alt="Environment, Health &amp; Safety Performance">', 'mEnvironment', 'sm:', null, 137)) onclick='window.location.href="/sustainability2004/environment_health_safety/index.shtml"';
}

if (isSection('corporate_governance')) {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_corporate_on.gif" width=86 height=35 border=0 alt="Corporate Governance">^<img src="/sustainability2004/images/btn_corporate_over.gif" width=86 height=35 border=0 alt="Corporate Governance">', 'mCorporate', 'sm:', null, 86)) onclick='window.location.href="/sustainability2004/corporate_governance/index.shtml"';
} else {
	with(addItem('SWAP:<img src="/sustainability2004/images/btn_corporate_off.gif" width=86 height=35 border=0 alt="Corporate Governance">^<img src="/sustainability2004/images/btn_corporate_over.gif" width=86 height=35 border=0 alt="Corporate Governance">', 'mCorporate', 'sm:', null, 86)) onclick='window.location.href="/sustainability2004/corporate_governance/index.shtml"';
}



startMenu('mGlance', true, 0, 35, 125, subM, '', false);
addItem('Backgrounder', '/sustainability2004/at_a_glance/backgrounder.shtml', '');
addItem('Performance Summary', '/sustainability2004/at_a_glance/performance_summary.shtml', '');

startMenu('mGrowth', true, 0, 35, 160, subM, '', false);
addItem('Partners Toward Sustainability', '/sustainability2004/sustainable_growth/partners.shtml', '');

startMenu('mFinance', true, 0, 35, 225, subM, '', false);
addItem('2004 Results', '/sustainability2004/finance_economy/2004_results.shtml', '');
addItem('Financial Performance', '/sustainability2004/finance_economy/financial_performance.shtml', '');
addItem('Joint Venture Operating Costs', '/sustainability2004/finance_economy/joint_venture.shtml', '');
addItem('Production &amp; Unit Operating Costs', '/sustainability2004/finance_economy/operating_costs.shtml', '');
addItem('Pro-forma Operating Cash Flow &amp; Netbacks', '/sustainability2004/finance_economy/cash_flow.shtml', '');
addItem('Pro-forma Netbacks per Barrel', '/sustainability2004/finance_economy/netbacks_per_barrel.shtml', '');
addItem('Capital', '/sustainability2004/finance_economy/capital.shtml', '');
addItem('2005 Outlook', '/sustainability2004/finance_economy/2005_outlook.shtml', '');
addItem('Economic Contribution', '/sustainability2004/finance_economy/economic_contribution.shtml', '');
addItem('Future Growth Potential', '/sustainability2004/finance_economy/growth_potential.shtml', '');

startMenu('mSocial', true, 0, 35, 220, subM, '', false);
addItem('Stakeholder Engagement Highlights', '/sustainability2004/social_performance/stakeholder_highlights.shtml', '');
addItem('Stakeholder Engagement Actions', '/sustainability2004/social_performance/stakeholder_actions.shtml', '');
addItem('Highlights of Regional Management Groups', '/sustainability2004/social_performance/regional_issues.shtml', '');
addItem('Community Investment', '/sustainability2004/social_performance/community_investment.shtml', '');
addItem('Aboriginal Development', '/sustainability2004/social_performance/aboriginal_development.shtml', '');
addItem('Our People', '/sustainability2004/social_performance/people.shtml', '');
addItem('Human Resources Scorecard', '/sustainability2004/social_performance/scorecard.shtml', '');

startMenu('mEnvironment', true, 0, 35, 150, subM, '', false);
addItem('Health &amp; Safety Performance', '/sustainability2004/environment_health_safety/health_safety.shtml', '');
addItem('Air', '/sustainability2004/environment_health_safety/air.shtml', '');
addItem('Water', '/sustainability2004/environment_health_safety/water.shtml', '');
addItem('Land', '/sustainability2004/environment_health_safety/land.shtml', '');
addItem('Waste Management', '/sustainability2004/environment_health_safety/waste_management.shtml', '');

startMenu('mCorporate', true, 0, 35, 120, subM, '', false);
addItem('Corporate Information', '/sustainability2004/corporate_governance/corporate_information.shtml', '');




}

page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 else if (e && e.focus && e.href && this.MS && /Mac/.test(navigator.platform))
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}

 return{x:x,y:y};
}

function isSection(section)
{
	var isSection = null;
	if(document.location.pathname.indexOf("/" + section + "/") == 0)
	{
		isSection = true;
	}
	else
	{
		isSection = false;
	}
	return isSection;
}