var baseURL = "http://" + window.location.hostname;
if(window.location.hostname != "zargon.karo.com") {
	baseURL = "http://www.zargon.ca";
}

var hBar = new ItemStyle(190, 0, '', 0, 0, '', '', '', '', '', '', null, null, 'hand', 'hand');
var subM = new ItemStyle(22, 0, '', 0, 3, '#666666', '#F0F0F0', 'lowText', 'highText', 'itemBorder', 'itemBorder', null, null, 'hand', 'hand');
var pMenu = new PopupMenu('pMenu');

with (pMenu)
{
startMenu('root', false, 346, 65, 33, hBar, '', false);
if(document.location.pathname.indexOf("/about/") == 0) {
	addItem('<img src="/nav/tn-aboutOver.jpg" alt="About Zargon" width="93" height="33" border="0" />', 'mAboutZargon', 'sm:', null, 93).onclick='window.location.href="' +  baseURL +'/about/"';
}
else {
	addItem('SWAP:<img src="/nav/tn-about.jpg" alt="About Zargon" width="93" height="33" border="0" />^<img src="/nav/tn-aboutOver.jpg" alt="About Zargon" width="93" height="33" border="0" />', 'mAboutZargon', 'sm:', null, 93).onclick='window.location.href="' +  baseURL +'/about/"';
}
if(document.location.pathname.indexOf("/investor/") == 0 || document.location.hostname.indexOf("cnrp.ccnmatthews.com") == 0) {
	addItem('<img src="/nav/tn-investorOver.jpg" alt="Investor Relations" width="117" height="33" border="0" />', 'mInvestor', 'sm:', null, 117).onclick='window.location.href="' +  baseURL +'/investor/"';
}
else {
	addItem('SWAP:<img src="/nav/tn-investor.jpg" alt="Investor Relations" width="117" height="33" border="0" />^<img src="/nav/tn-investorOver.jpg" alt="Investor Relations" width="117" height="33" border="0" />', 'mInvestor', 'sm:', null, 117).onclick='window.location.href="' +  baseURL +'/investor/"';
}
if(document.location.pathname.indexOf("/operations/") == 0) {
	addItem('<img src="/nav/tn-operationsOver.jpg" alt="Operations" width="82" height="33" border="0" />', 'mOperations', 'sm:', null, 82).onclick='window.location.href="' +  baseURL +'/operations/"';
}
else {
	addItem('SWAP:<img src="/nav/tn-operations.jpg" alt="Operations" width="82" height="33" border="0" />^<img src="/nav/tn-operationsOver.jpg" alt="Operations" width="82" height="33" border="0" />', 'mOperations', 'sm:', null, 82).onclick='window.location.href="' +  baseURL +'/operations/"';
}
if(document.location.pathname.indexOf("/contact/") == 0) {
	addItem('<img src="/nav/tn-contactOver.jpg" alt="Contact Us" width="81" height="33" border="0" />', '', 'sm:', null, 81).onclick='window.location.href="' +  baseURL +'/contact/"';
}
else {
	addItem('SWAP:<img src="/nav/tn-contact.jpg" alt="Contact Us" width="81" height="33" border="0" />^<img src="/nav/tn-contactOver.jpg" alt="Contact Us" width="81" height="33" border="0" />', '', 'sm:', null, 81).onclick='window.location.href="' +  baseURL +'/contact/"';
}

startMenu('mAboutZargon', true, 0, 33, 189, subM, '', false);
/* addItem('Business Philosophy',  baseURL + '/about/', ''); */
addItem('The Corporate Structure', baseURL +'/about/', '');
addItem('Board of Directors',  baseURL +'/about/board.shtml', '');
addItem('Senior Officers',  baseURL +'/about/officers.shtml', '');
addItem('Corporate Governance',  baseURL +'/about/corp_gov.shtml', '');
addItem('History of Company',  baseURL +'/about/history.shtml', '');
addItem('Certificates',  baseURL +'/about/certificates.shtml', '');
addItem('Advisor Information',  baseURL +'/about/advisor.shtml', '');

startMenu('mInvestor', true, 0, 33, 210, subM, '', false);
addItem('Investor Home',  baseURL +'/investor/', '');
/* addItem('Corporate Conversion',  baseURL +'/investor/corporate_conversion.shtml', ''); */
addItem('Financial Reports',  baseURL +'/investor/fin_reports.shtml', '');
addItem('News Releases', 'http://cnrp.ccnmatthews.com/client/zargon/headlines.jsp?year=current', '');
addItem('Presentations',  baseURL +'/investor/presentations/', '');
addItem('Cash Dividends',  baseURL +'/investor/distributions.shtml', '');
addItem('Dividend Reinvestment Plan',  baseURL +'/investor/distribution_reinvestments.shtml', '');
addItem('Exchangeable Shares',  baseURL +'/investor/exchange_shares.shtml', '');
addItem('Income Tax Information',  baseURL +'/investor/tax_info.shtml', '');
addItem('Analyst Coverage',  baseURL +'/investor/analyst.shtml', '');
addItem('Regulatory Disclosure Information',  baseURL +'/investor/reg_info.shtml', '');
 addItem('SEDAR', 'http://sedar.com/DisplayProfile.do?lang=EN&issuerType=03&issuerNo=00030985', ''); 

startMenu('mOperations', true, 0, 33, 189, subM, '', false);
addItem('Oil Exploitation',  baseURL +'/operations/', '');
addItem('Williston Basin',  baseURL +'/operations/williston/', '');
addItem('Alberta Plains South',  baseURL +'/operations/ab_plains/', '');
addItem('Alberta Plains North',  baseURL +'/operations/ab_plains_north/', '');
addItem('Reserves',  baseURL +'/operations/reserves/', '');

}
