// Herring Design 2005

// true if we're on IE
var isIE = ( navigator.appVersion.indexOf("MSIE") != -1 ) ? true : false; 
    
// true if we're on NS6
var isNS6 = ( document.getElementById ) ? true : false;


	// variable declarations
var thisSection = 0;		// current section number
var thisPage = 0;			// current page number
var totalPages = 0;			// total number of pages
var prevPage = "";			// previous page name, i.e. 'products.htm'
var nextPage = "";			// next page name
url = new String( location.href );	// the URL
var i;						

	// page name --> menu section mappings
	//  note this is also used for the next/previous navigation tool
	//
	// <page name>, <section #>
	//
gPageMap = Array(
	String( "corpinfo.htm" ), 0,
	String( "index.htm" ), 1,
	String( "fh.htm" ), 2,
	String( "worldwide_op.htm" ), 3,
	String( "letter.htm" ), 4,
	String( "financial_review.htm" ), 5,
	String( "operating_review.htm" ), 6,	
	String( "oprev_explore.htm" ), 6,
	String( "oprev_randm.htm" ), 6,
	String( "oprev_lukoil.htm" ), 6,
	String( "oprev_midstream.htm" ), 6,
	String( "oprev_chemicals.htm" ), 6,
	String( "oprev_businesses.htm" ), 6,
	String( "oprev_commercial.htm" ), 6,
	String( "corp_staffs_home.htm" ), 7,	
	String( "corp_staffs.htm" ), 7,
	String( "corp_staffs_value.htm" ), 7,
	String( "fin_mda.htm" ), 8,
	String( "fin_selectdata.htm" ), 8,
	String( "fin_management.htm" ), 8,
	String( "fin_independent.htm" ), 8,
	String( "fin_consolidated_income.htm" ), 8,
	String( "fin_consolidated_balance.htm" ), 8,
	String( "fin_consolidated_flow.htm" ), 8,
	String( "fin_consolidated_equity.htm" ), 8,
	String( "fin_note_1.htm" ), 8,
	String( "fin_note_2.htm" ), 8,
	String( "fin_note_3.htm" ), 8,
	String( "fin_note_4.htm" ), 8,
	String( "fin_note_5.htm" ), 8,
	String( "fin_note_6.htm" ), 8,
	String( "fin_note_7.htm" ), 8,
	String( "fin_note_8.htm" ), 8,
	String( "fin_note_9.htm" ), 8,
	String( "fin_note_10.htm" ), 8,
	String( "fin_note_11.htm" ), 8,
	String( "fin_note_12.htm" ), 8,
	String( "fin_note_13.htm" ), 8,
	String( "fin_note_14.htm" ), 8,
	String( "fin_note_15.htm" ), 8,
	String( "fin_note_16.htm" ), 8,
	String( "fin_note_17.htm" ), 8,
	String( "fin_note_18.htm" ), 8,
	String( "fin_note_19.htm" ), 8,
	String( "fin_note_20.htm" ), 8,
	String( "fin_note_21.htm" ), 8,
	String( "fin_note_22.htm" ), 8,
	String( "fin_note_23.htm" ), 8,
	String( "fin_note_24.htm" ), 8,
	String( "fin_note_25.htm" ), 8,
	String( "fin_note_26.htm" ), 8,
	String( "fin_note_27.htm" ), 8,
	String( "fin_note_28.htm" ), 8,
	String( "fin_oilgas.htm" ), 8,
	String( "fin_oilgas_2.htm" ), 8,
	String( "fin_oilgas_3.htm" ), 8,
	String( "fin_oilgas_4.htm" ), 8,
	String( "fin_oilgas_5.htm" ), 8,
	String( "fin_oilgas_6.htm" ), 8,
	String( "fin_oilgas_7.htm" ), 8,
	String( "fin_5year_finreview.htm" ), 8,
	String( "fin_5year_opreview.htm" ), 8,
	String( "leadership.htm" ), 9,
	String( "leadership_officers.htm" ), 9,
	String( "glossary.htm" ), 10,
	String( "corpinfo.htm" ), 0,
	String( "index.htm" ), 1 );	
//end of gPageMap[]

	// strip off all but the file name
url = "/" + url.toLowerCase();		// make sure we find at least 1
url = url.substr( url.lastIndexOf( "/" ) +1, url.length - url.lastIndexOf( "/" ) ); 	// strip off all but the file name

	// find the current page in the list and fill-in the variables
for( i = 2; i < gPageMap.length; i += 2 ) {
	if( url == gPageMap[i] ) {
		prevPage = gPageMap[i-2];		// save the previous page name
		nextPage = gPageMap[i+2];		// save the next page name
		thisSection = gPageMap[i+1];	// get the section number
		thisPage = i / 2;
		break;
	}
}
totalPages = (gPageMap.length / 2) -2;	// total number of pages (based on gPageMap[] array)

	// Load Rollovers
if( document.images ) {

	menu_next = new Image; 		menu_next.src = "images/menu_next.gif";
	menu_over_next = new Image; 	menu_over_next.src = "images/menu_next_over.gif";
	
	menu_previous = new Image; 		menu_previous.src = "images/menu_prev.gif";
	menu_over_previous = new Image; 	menu_over_previous.src = "images/menu_prev_over.gif";
	
	footer_next = new Image; 		footer_next.src = "images/menu_next.gif";
	footer_over_next = new Image; 	footer_over_next.src = "images/menu_next_over.gif";
	
	footer_previous = new Image; 		footer_previous.src = "images/menu_prev.gif";
	footer_over_previous = new Image; 	footer_over_previous.src = "images/menu_prev_over.gif";
	
		
	footer_backtop = new Image; 		footer_backtop.src = "images/footerbackup_norm.gif";
	footer_over_backtop = new Image; 	footer_over_backtop.src = "images/footerbackup_over.gif";
	
}

	// write the style sheet for the page numbers
document.write( '<style media="screen" type="text/css"><!-- .navtool { color: #000; font-size: 11px; font-family: Arial } .navtoolbacktotop { color: #000; font-size: 11px; font-family: Arial } --></style>' );


	// swap images function
function SwitchImage( imgDocID, ImgObjName ) {
	if( document.images ) {
		document.images[imgDocID].src = eval( ImgObjName + ".src" );
	}
}


	// write the header (including the menu)
function writeHeader() {

	document.write( '<a name="top"></a>' );
	
		// write everything up to the section titles	
	
	document.write( '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td><td width="850"><table width="850" border="0" cellspacing="0" cellpadding="0"><tr><td width="400"><img src="images/spacer.gif" width="400" height="18" /></td><td width="450" align="right" valign="middle" class="top"><a href="glossary.htm" class="toplink">Glossary</a> | <a href="http://www.conocophillips.com/EN/investor/financial_reports/annual_reports/Documents/2005_CoP_AnlRprt.pdf"  target="_blank" class="toplink">Download 2005 ConocoPhillips Annual Report PDF</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table></td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td width="850"><table width="850" border="0" cellpadding="0" cellspacing="0" background="images/menu_back2.jpg"><tr><td width="203"><a href="index.htm"><img src="images/menu_conocophillips_logo.jpg" alt="ConocoPhillips" width="203" height="76" border="0" /></a></td><td width="479"><img src="images/spacer.gif" alt="ConocoPhillips 2005 Annual Report" width="479" height="76" /></td><td width="168"><table width="168" border="0" cellspacing="0" cellpadding="0"><tr><td colspan="5"><img src="images/menu_2005ar_1.gif" width="168" height="45" /></td></tr><tr><td width="68"><img src="images/spacer.gif" width="68" height="21" /></td><td width="15" align="right" valign="bottom"><a href="' + prevPage + '" onmouseover="SwitchImage( \x27menu_previous\x27, \x27menu_over_previous\x27 ); return true;" onmouseout="SwitchImage( \x27menu_previous\x27, \x27menu_previous\x27 ); return true;"><img name="menu_previous" src="images/menu_prev.gif" width="15" height="15" border="0" alt="[Previous]"></a></td><td width="50" align="center" valign="bottom" class="pages">' + thisPage + ' of ' + totalPages + '</td><td width="15" align="left" valign="bottom"><a href="' + nextPage + '" onmouseover="SwitchImage( \x27menu_next\x27, \x27menu_over_next\x27 ); return true;" onmouseout="SwitchImage( \x27menu_next\x27, \x27menu_next\x27 ); return true;"><img name="menu_next" src="images/menu_next.gif" width="15" height="15" border="0" alt="[Next]"></a></td><td width="20"><img src="images/spacer.gif" width="20" height="21" /></td></tr><tr><td width="68"><img src="images/spacer.gif" width="68" height="10" /></td><td width="15"><img src="images/spacer.gif" width="15" height="10" /></td><td width="50"><img src="images/spacer.gif" width="50" height="10" /></td><td width="15"><img src="images/spacer.gif" width="15" height="10" /></td><td width="20"><img src="images/spacer.gif" width="20" height="10" /></td></tr></table></td></tr></table></td><td background="images/menu_background1.gif">&nbsp;</td></tr></table>' );



}

	// write the footer
	
function writeFooter() {
document.write( '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/spacer.gif" width="1" height="1" /></td><td width="850" align="right" bgcolor="#4555c7"><img src="images/footer_end.gif" width="5" height="5" /></td><td><img src="images/spacer.gif" width="1" height="1" /></td></tr><tr><td background="images/menu_background1a.jpg"><img src="images/spacer.gif" width="1" height="81" /></td><td width="850"><table width="850" border="0" cellpadding="0" cellspacing="0" background="images/menu_back2a.jpg"><tr><td width="362"><img src="images/spacer.gif" width="362" height="1" /></td><td width="126"><img src="images/spacer.gif" width="126" height="5" /></td><td width="362"><img src="images/spacer.gif" width="362" height="1" /></td></tr><tr><td align="left" valign="top"><a href="http://www.conocophillips.com/EN/investor/financial_reports/annual_reports/Documents/2005_CoP_AnlRprt.pdf"  target="_blank" class="toplink"><img src="images/print_pdf.gif" alt="Print 2005 Annual Report" width="26" height="22" border="0" align="left" />Download Printer-safe PDF</a></td><td width="126" align="center" valign="bottom"><a href="#top" onmouseover="SwitchImage( \x27footer_backtop\x27, \x27footer_over_backtop\x27 ); return true;" onmouseout="SwitchImage( \x27footer_backtop\x27, \x27footer_backtop\x27 ); return true;"><img name="footer_backtop" src="images/footerbackup_norm.gif" width="126" height="76" border="0" alt="[Back to top]"></a></td><td align="right" valign="top"><table width="168" border="0" cellspacing="0" cellpadding="0"><tr><td width="262"><img src="images/spacer.gif" width="262" height="15" /></td><td width="15" align="right" valign="bottom"><a href="' + prevPage + '" onmouseover="SwitchImage( \x27footer_previous\x27, \x27footer_over_previous\x27 ); return true;" onmouseout="SwitchImage( \x27footer_previous\x27, \x27footer_previous\x27 ); return true;"><img name="footer_previous" src="images/menu_prev.gif" width="15" height="15" border="0" alt="[Previous]"></a></td><td width="50" align="center" valign="bottom" class="pages">' + thisPage + ' of ' + totalPages + '</td><td width="15" align="left" valign="bottom"><a href="' + nextPage + '" onmouseover="SwitchImage( \x27footer_next\x27, \x27footer_over_next\x27 ); return true;" onmouseout="SwitchImage( \x27footer_next\x27, \x27footer_next\x27 ); return true;"><img name="footer_next" src="images/menu_next.gif" width="15" height="15" border="0" alt="[Next]"></a></td><td width="20"><img src="images/spacer.gif" width="20" height="15" /></td></tr><tr><td width="262"><img src="images/spacer.gif" width="262" height="53" /></td><td width="15"><img src="images/spacer.gif" width="15" height="53" /></td><td width="50"><img src="images/spacer.gif" width="50" height="53" /></td><td width="15"><img src="images/spacer.gif" width="15" height="53" /></td><td width="20"><img src="images/spacer.gif" width="20" height="53" /></td></tr></table></td></tr></table></td><td><img src="images/spacer.gif" width="1" height="1" /></td></tr></table>' );
}


// end of 'header.js'