function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function ViewMap(){
	var winpops=window.open("images/MapLarge.gif","","width=458,height=557,scrollbars,resizable")
}

function ViewAGMMap(){
	var winpops=window.open("images/MapAGMLarge.gif","","width=458,height=557,scrollbars,resizable")
}

function fieldError(control){
	document.getElementById(control).style.backgroundColor = '#F85757';
	document.getElementById(control).focus();
}

function fieldActive(control){
	document.getElementById(control).style.backgroundColor = '#7CD182';
}

function fieldOK(control){
	document.getElementById(control).style.backgroundColor = '#FFFFFF';
}
function msg(msg){
	//alert(msg)
}

function CheckEmail(who) {
	/* With RegExp */
	var email=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;
	return(email.test(who));
}


//******************************************************
//
//	Check Login Form 
//
//******************************************************


function CheckLiteratureRequestForm(){

if(document.getElementById('txtForename').value == ""){

	fieldError('txtForename')
	msg('Required Field: Forename')
	return false;
}

if(document.getElementById('txtsurname').value == ""){

	fieldError('txtSurname')
	msg('Required Field: Surname')
	return false
}
if(document.getElementById('txtEmailAddress').value == ""){

	fieldError('txtEmailAddress')
	msg('Required Field: Email')
	return false
}

//check the validity of the email address
if(!(CheckEmail(document.getElementById('txtEmailAddress').value))){
	fieldError('txtEmailAddress')
	alert('Please enter a valid email address')
	return false;
}

if(document.getElementById('txtSubject').value == ""){

	fieldError('txtSubject')
	msg('Required Field: Subject')
	return false
}
return true;
}


function getCalendarDate()
{

   var weekday=new Array(7)
   weekday[0]="Sunday"
   weekday[1]="Monday"
   weekday[2]="Tuesday"
   weekday[3]="Wednesday"
   weekday[4]="Thursday"
   weekday[5]="Friday"
   weekday[6]="Saturday"

   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var daynumber     = now.getDay();
   var dayname     = weekday[daynumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = 
		    monthday +
                    ' ' +
                    monthname +
                    ' ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "am";
   if (hour   > 11) { ap = "pm";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
//no leading 0 for hour
//   if (hour   < 10) { hour   = " + hour;   }
//   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour + '.' +  minute + ap;
   return timeString;
} // function getClockTime()


function DateTime(){
	
	document.getElementById('InfoBarDateTime').innerHTML = "<span class='DateTime'><b>" + getClockTime() + "&nbsp&nbsp</b>" + getCalendarDate() + "</span>";
}


function samplegraph(){
	hideLayer('scrollingContent');
	hideLayer('SectionImage');
	showLayer('SampleGraph');
}

function init(currentPage, currentSubPage){

	if(currentPage != 'Overview'){
		document.getElementById('NavHolder_Overview').onmouseover = function () { this.style.background = '#80C9D8';document.getElementById('NavHolder_Overview_Button').src='images/Nav_Overview_On.gif'};
		document.getElementById('NavHolder_Overview').onmouseout = function () { this.style.background = '#0093B1';document.getElementById('NavHolder_Overview_Button').src='images/Nav_Overview.gif'};						
		document.getElementById('NavHolder_Overview').onclick = function () { NavigateTo('Overview')};						
	}else{	
		document.getElementById('NavHolder_Overview').style.background = '#80C9D8';
		document.getElementById('NavHolder_Overview_Button').src='images/Nav_Overview_On.gif'
		
		if(currentSubPage != 'Overview_Introduction'){
			document.getElementById('Overview_Introduction_Button').onmouseover = function (){ document.getElementById('Overview_Introduction_Button').src='images/Nav_Overview_Introduction_On.gif'};
			document.getElementById('Overview_Introduction_Button').onmouseout = function (){ document.getElementById('Overview_Introduction_Button').src='images/Nav_Overview_Introduction.gif'};
			document.getElementById('Overview_Introduction_Button').onclick = function () { NavigateTo('Overview')};						
		}else{	
			document.getElementById('Overview_Introduction_Button').src='images/Nav_Overview_Introduction_On.gif'
		}
		if(currentSubPage != 'Overview_History'){
			document.getElementById('Overview_History_Button').onmouseover = function (){ document.getElementById('Overview_History_Button').src='images/Nav_Overview_History_On.gif'};
			document.getElementById('Overview_History_Button').onmouseout = function (){ document.getElementById('Overview_History_Button').src='images/Nav_Overview_History.gif'};
			document.getElementById('Overview_History_Button').onclick = function () { NavigateTo('BriefHistory')};						
		}else{	
			document.getElementById('Overview_History_Button').src='images/Nav_Overview_History_On.gif'
		}
		if(currentSubPage != 'Overview_Directors'){
			document.getElementById('Overview_Directors_Button').onmouseover = function (){ document.getElementById('Overview_Directors_Button').src='images/Nav_Overview_Directors_On.gif'};
			document.getElementById('Overview_Directors_Button').onmouseout = function (){ document.getElementById('Overview_Directors_Button').src='images/Nav_Overview_Directors.gif'};
			document.getElementById('Overview_Directors_Button').onclick = function () { NavigateTo('Directors')};						
		}else{	
			document.getElementById('Overview_Directors_Button').src='images/Nav_Overview_Directors_On.gif'
		}
		
		if(currentSubPage != 'Overview_CorporateGovernance'){
			document.getElementById('Overview_CorporateGovernance_Button').onmouseover = function (){ document.getElementById('Overview_CorporateGovernance_Button').src='images/Nav_Overview_CorporateGovernance_On.gif'};
			document.getElementById('Overview_CorporateGovernance_Button').onmouseout = function (){ document.getElementById('Overview_CorporateGovernance_Button').src='images/Nav_Overview_CorporateGovernance.gif'};
			document.getElementById('Overview_CorporateGovernance_Button').onclick = function () { NavigateTo('CorporateGovernance')};						
		}else{	
			document.getElementById('Overview_CorporateGovernance_Button').src='images/Nav_Overview_CorporateGovernance_On.gif'
		}
		if(currentSubPage != 'Overview_AssetManagement'){
			document.getElementById('Overview_AssetManagement_Button').onmouseover = function (){ document.getElementById('Overview_AssetManagement_Button').src='images/Nav_Overview_AssetManagement_On.gif'};
			document.getElementById('Overview_AssetManagement_Button').onmouseout = function (){ document.getElementById('Overview_AssetManagement_Button').src='images/Nav_Overview_AssetManagement.gif'};
			document.getElementById('Overview_AssetManagement_Button').onclick = function () { NavigateTo('AssetManagement')};						
		}else{	
			document.getElementById('Overview_AssetManagement_Button').src='images/Nav_Overview_AssetManagement_On.gif'
		}


	}

	if(currentPage != 'Portfolio'){
		document.getElementById('NavHolder_Portfolio').onmouseover = function () { this.style.background = '#8CCFDC';document.getElementById('NavHolder_Portfolio_Button').src='images/Nav_Portfolio_On.gif'};
		document.getElementById('NavHolder_Portfolio').onmouseout = function () { this.style.background = '#199EB9';document.getElementById('NavHolder_Portfolio_Button').src='images/Nav_Portfolio.gif'};						
		document.getElementById('NavHolder_Portfolio').onclick = function () { NavigateTo('Portfolio')};						
	}else{	
		document.getElementById('NavHolder_Portfolio').style.background = '#8CCFDC';
		document.getElementById('NavHolder_Portfolio_Button').src='images/Nav_Portfolio_On.gif'

		if(currentSubPage != 'Portfolio_Philosophy'){
			document.getElementById('Portfolio_Philosophy_Button').onmouseover = function (){ document.getElementById('Portfolio_Philosophy_Button').src='images/Nav_Portfolio_Philosophy_On.gif'};
			document.getElementById('Portfolio_Philosophy_Button').onmouseout = function (){ document.getElementById('Portfolio_Philosophy_Button').src='images/Nav_Portfolio_Philosophy.gif'};
			document.getElementById('Portfolio_Philosophy_Button').onclick = function () { NavigateTo('Portfolio')};						
		}else{	
			document.getElementById('Portfolio_Philosophy_Button').src='images/Nav_Portfolio_Philosophy_On.gif'
		}
		
		if(currentSubPage != 'Portfolio_Listing'){
			document.getElementById('Portfolio_Listing_Button').onmouseover = function (){ document.getElementById('Portfolio_Listing_Button').src='images/Nav_Portfolio_Listing_On.gif'};
			document.getElementById('Portfolio_Listing_Button').onmouseout = function (){ document.getElementById('Portfolio_Listing_Button').src='images/Nav_Portfolio_Listing.gif'};
			document.getElementById('Portfolio_Listing_Button').onclick = function () { NavigateTo('Listing')};						
		}else{	
			document.getElementById('Portfolio_Listing_Button').src='images/Nav_Portfolio_Listing_On.gif'
		}
	}	

	if(currentPage != 'Performance'){
		document.getElementById('NavHolder_Performance').onmouseover = function () { this.style.background = '#99D4E0';document.getElementById('NavHolder_Performance_Button').src='images/Nav_Performance_On.gif'};
		document.getElementById('NavHolder_Performance').onmouseout = function () { this.style.background = '#33A9C1';document.getElementById('NavHolder_Performance_Button').src='images/Nav_Performance.gif'};						
		document.getElementById('NavHolder_Performance').onclick = function () { NavigateTo('Performance')};						
	}else{	
		document.getElementById('NavHolder_Performance').style.background = '#99D4E0';
		document.getElementById('NavHolder_Performance_Button').src='images/Nav_Performance_On.gif'

		if(currentSubPage != 'Performance_NAV'){
			document.getElementById('Performance_NAV_Button').onmouseover = function (){ document.getElementById('Performance_NAV_Button').src='images/Nav_Performance_NAV_On.gif'};
			document.getElementById('Performance_NAV_Button').onmouseout = function (){ document.getElementById('Performance_NAV_Button').src='images/Nav_Performance_NAV.gif'};
			document.getElementById('Performance_NAV_Button').onclick = function () { NavigateTo('Performance')};						
		}else{	
			document.getElementById('Performance_NAV_Button').src='images/Nav_Performance_NAV_On.gif'
		}
		if(currentSubPage != 'Performance_SharePrice'){
			document.getElementById('Performance_SharePrice_Button').onmouseover = function (){ document.getElementById('Performance_SharePrice_Button').src='images/Nav_Performance_SharePrice_On.gif'};
			document.getElementById('Performance_SharePrice_Button').onmouseout = function (){ document.getElementById('Performance_SharePrice_Button').src='images/Nav_Performance_SharePrice.gif'};
			document.getElementById('Performance_SharePrice_Button').onclick = function () { NavigateTo('SharePrice')};						
		}else{	
			document.getElementById('Performance_SharePrice_Button').src='images/Nav_Performance_SharePrice_On.gif'
		}
		if(currentSubPage != 'Performance_Discount'){
			document.getElementById('Performance_Discount_Button').onmouseover = function (){ document.getElementById('Performance_Discount_Button').src='images/Nav_Performance_Discount_On.gif'};
			document.getElementById('Performance_Discount_Button').onmouseout = function (){ document.getElementById('Performance_Discount_Button').src='images/Nav_Performance_Discount.gif'};
			document.getElementById('Performance_Discount_Button').onclick = function () { NavigateTo('Discount')};						
		}else{	
			document.getElementById('Performance_Discount_Button').src='images/Nav_Performance_Discount_On.gif'
		}


	}	

	if(currentPage != 'Reporting'){
		document.getElementById('NavHolder_Reporting').onmouseover = function () { this.style.background = '#A6D9E4';document.getElementById('NavHolder_Reporting_Button').src='images/Nav_Reporting_On.gif'};
		document.getElementById('NavHolder_Reporting').onmouseout = function () { this.style.background = '#4CB3C8';document.getElementById('NavHolder_Reporting_Button').src='images/Nav_Reporting.gif'};						
		document.getElementById('NavHolder_Reporting').onclick = function () { NavigateTo('monthly')};						
	}else{	
		document.getElementById('NavHolder_Reporting').style.background = '#A6D9E4';
		document.getElementById('NavHolder_Reporting_Button').src='images/Nav_Reporting_On.gif'

		//if(currentSubPage != 'Portfolio_Quarterly'){
		//	document.getElementById('Reporting_Quarterly_Button').onmouseover = function (){ document.getElementById('Reporting_Quarterly_Button').src='images/Nav_Reporting_Quarterly_On.gif'};
		//	document.getElementById('Reporting_Quarterly_Button').onmouseout = function (){ document.getElementById('Reporting_Quarterly_Button').src='images/Nav_Reporting_Quarterly.gif'};
		//	document.getElementById('Reporting_Quarterly_Button').onclick = function () { NavigateTo('Reporting')};						
		//}else{	
		//	document.getElementById('Reporting_Quarterly_Button').src='images/Nav_Reporting_Quarterly_On.gif'
		//}
		if(currentSubPage != 'Portfolio_Monthly'){
			document.getElementById('Reporting_Monthly_Button').onmouseover = function (){ document.getElementById('Reporting_Monthly_Button').src='images/Nav_Reporting_Monthly_On.gif'};
			document.getElementById('Reporting_Monthly_Button').onmouseout = function (){ document.getElementById('Reporting_Monthly_Button').src='images/Nav_Reporting_Monthly.gif'};
			document.getElementById('Reporting_Monthly_Button').onclick = function () { NavigateTo('Monthly')};						
		}else{	
			document.getElementById('Reporting_Monthly_Button').src='images/Nav_Reporting_Monthly_On.gif'
		}
		if(currentSubPage != 'Portfolio_News'){
			document.getElementById('Reporting_News_Button').onmouseover = function (){ document.getElementById('Reporting_News_Button').src='images/Nav_Reporting_News_On.gif'};
			document.getElementById('Reporting_News_Button').onmouseout = function (){ document.getElementById('Reporting_News_Button').src='images/Nav_Reporting_News.gif'};
			document.getElementById('Reporting_News_Button').onclick = function () { NavigateTo('News')};						
		}else{	
			document.getElementById('Reporting_News_Button').src='images/Nav_Reporting_News_On.gif'
		}
		if(currentSubPage != 'Portfolio_RNS'){
			document.getElementById('Reporting_RNS_Button').onmouseover = function (){ document.getElementById('Reporting_RNS_Button').src='images/Nav_Reporting_RNS_On.gif'};
			document.getElementById('Reporting_RNS_Button').onmouseout = function (){ document.getElementById('Reporting_RNS_Button').src='images/Nav_Reporting_RNS.gif'};
			document.getElementById('Reporting_RNS_Button').onclick = function () { NavigateTo('RNS')};						
		}else{	
			document.getElementById('Reporting_RNS_Button').src='images/Nav_Reporting_RNS_On.gif'
		}
		if(currentSubPage != 'Portfolio_Reports'){
			document.getElementById('Reporting_Reports_Button').onmouseover = function (){ document.getElementById('Reporting_Reports_Button').src='images/Nav_Reporting_Reports_On.gif'};
			document.getElementById('Reporting_Reports_Button').onmouseout = function (){ document.getElementById('Reporting_Reports_Button').src='images/Nav_Reporting_Reports.gif'};
			document.getElementById('Reporting_Reports_Button').onclick = function () { NavigateTo('Reports')};						
		}else{	
			document.getElementById('Reporting_Reports_Button').src='images/Nav_Reporting_Reports_On.gif'
		}
		//if(currentSubPage != 'Portfolio_IM'){
		//	document.getElementById('Reporting_IM_Button').onmouseover = function (){ document.getElementById('Reporting_IM_Button').src='images/Nav_Reporting_IM_On.gif'};
		//	document.getElementById('Reporting_IM_Button').onmouseout = function (){ document.getElementById('Reporting_IM_Button').src='images/Nav_Reporting_IM_Off.gif'};
		//	document.getElementById('Reporting_IM_Button').onclick = function () { NavigateTo('IM')};						
		//}else{	
		//	document.getElementById('Reporting_IM_Button').src='images/Nav_Reporting_IM_On.gif'
		//}
		if(currentSubPage != 'Portfolio_RD'){
			document.getElementById('Reporting_RD_Button').onmouseover = function (){ document.getElementById('Reporting_RD_Button').src='images/Nav_Reporting_RD_On.gif'};
			document.getElementById('Reporting_RD_Button').onmouseout = function (){ document.getElementById('Reporting_RD_Button').src='images/Nav_Reporting_RD_Off.gif'};
			document.getElementById('Reporting_RD_Button').onclick = function () { NavigateTo('RiskDisclosure')};						
		}else{	
			document.getElementById('Reporting_RD_Button').src='images/Nav_Reporting_RD_On.gif'
		}
		if(currentSubPage != 'Portfolio_IMS'){
			document.getElementById('Reporting_IMS_Button').onmouseover = function (){ document.getElementById('Reporting_IMS_Button').src='images/Nav_Reporting_IMS_On.gif'};
			document.getElementById('Reporting_IMS_Button').onmouseout = function (){ document.getElementById('Reporting_IMS_Button').src='images/Nav_Reporting_IMS_Off.gif'};
			document.getElementById('Reporting_IMS_Button').onclick = function () { NavigateTo('IMSQuartelyFactSheet')};						
		}else{	
			document.getElementById('Reporting_IMS_Button').src='images/Nav_Reporting_IMS_On.gif'
		}
		

	}


	if(currentPage != 'Investing'){
		document.getElementById('NavHolder_Investing').onmouseover = function () { this.style.background = '#B3DFE8';document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing_On.gif'};
		document.getElementById('NavHolder_Investing').onmouseout = function () { this.style.background = '#66BED0';document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing.gif'};						
		document.getElementById('NavHolder_Investing').onclick = function () { NavigateTo('Investing')};						
	}else{	
		document.getElementById('NavHolder_Investing').style.background = '#B3DFE8';
		document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing_On.gif'
	

		

		if(currentSubPage != 'Investing_Shareholder'){
			document.getElementById('Investing_Shareholder_Button').onmouseover = function (){ document.getElementById('Investing_Shareholder_Button').src='images/Nav_Investing_Shareholder_On.gif'};
			document.getElementById('Investing_Shareholder_Button').onmouseout = function (){ document.getElementById('Investing_Shareholder_Button').src='images/Nav_Investing_Shareholder.gif'};
			document.getElementById('Investing_Shareholder_Button').onclick = function () { NavigateTo('Investing')};						
		}else{	
			document.getElementById('Investing_Shareholder_Button').src='images/Nav_Investing_Shareholder_On.gif'
		}

		if(currentSubPage != 'Investing_KeyDates'){
			document.getElementById('Investing_KeyDates_Button').onmouseover = function (){ document.getElementById('Investing_KeyDates_Button').src='images/Nav_Investing_KeyDates_On.gif'};
			document.getElementById('Investing_KeyDates_Button').onmouseout = function (){ document.getElementById('Investing_KeyDates_Button').src='images/Nav_Investing_KeyDates.gif'};
			document.getElementById('Investing_KeyDates_Button').onclick = function () { NavigateTo('KeyDates')};						
		}else{	
			document.getElementById('Investing_KeyDates_Button').src='images/Nav_Investing_Keydates_On.gif'
		}

		if(currentSubPage != 'Investing_Shareplan'){
			document.getElementById('Investing_Shareplan_Button').onmouseover = function (){ document.getElementById('Investing_Shareplan_Button').src='images/Nav_Investing_Shareplan_On.gif'};
			document.getElementById('Investing_Shareplan_Button').onmouseout = function (){ document.getElementById('Investing_Shareplan_Button').src='images/Nav_Investing_Shareplan.gif'};
			document.getElementById('Investing_Shareplan_Button').onclick = function () { NavigateTo('SharePlan')};						
		}else{	
			document.getElementById('Investing_Shareplan_Button').src='images/Nav_Investing_Shareplan_On.gif'
		}

		if(currentSubPage != 'Investing_ISA'){
			document.getElementById('Investing_ISA_Button').onmouseover = function (){ document.getElementById('Investing_ISA_Button').src='images/Nav_Investing_ISA_On.gif'};
			document.getElementById('Investing_ISA_Button').onmouseout = function (){ document.getElementById('Investing_ISA_Button').src='images/Nav_Investing_ISA.gif'};
			document.getElementById('Investing_ISA_Button').onclick = function () { NavigateTo('ISA')};						
		}else{	
			document.getElementById('Investing_ISA_Button').src='images/Nav_Investing_ISA_On.gif'
		}

		if(currentSubPage != 'Investing_PEP'){
			document.getElementById('Investing_PEP_Button').onmouseover = function (){ document.getElementById('Investing_PEP_Button').src='images/Nav_Investing_PEP_On.gif'};
			document.getElementById('Investing_PEP_Button').onmouseout = function (){ document.getElementById('Investing_PEP_Button').src='images/Nav_Investing_PEP.gif'};
			document.getElementById('Investing_PEP_Button').onclick = function () { NavigateTo('PEP')};						
		}else{	
			document.getElementById('Investing_PEP_Button').src='images/Nav_Investing_PEP_On.gif'
		}

		if(currentSubPage != 'Investing_Other'){
			document.getElementById('Investing_Other_Button').onmouseover = function (){ document.getElementById('Investing_Other_Button').src='images/Nav_Investing_Other_On.gif'};
			document.getElementById('Investing_Other_Button').onmouseout = function (){ document.getElementById('Investing_Other_Button').src='images/Nav_Investing_Other.gif'};
			document.getElementById('Investing_Other_Button').onclick = function () { NavigateTo('Other')};						
		}else{	
			document.getElementById('Investing_Other_Button').src='images/Nav_Investing_Other_On.gif'
		}

		if(currentSubPage != 'Investing_Important'){
			document.getElementById('Investing_Important_Button').onmouseover = function (){ document.getElementById('Investing_Important_Button').src='images/Nav_Investing_Important_On.gif'};
			document.getElementById('Investing_Important_Button').onmouseout = function (){ document.getElementById('Investing_Important_Button').src='images/Nav_Investing_Important.gif'};
			document.getElementById('Investing_Important_Button').onclick = function () { NavigateTo('Important')};						
		}else{	
			document.getElementById('Investing_Important_Button').src='images/Nav_Investing_Important_On.gif'
		}

	}

	if(currentPage != 'Contact'){
		//document.getElementById('NavHolder_Investing').onmouseover = function () { this.style.background = '#B3DFE8';document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing_On.gif'};
		//document.getElementById('NavHolder_Investing').onmouseout = function () { this.style.background = '#66BED0';document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing.gif'};						
		//document.getElementById('NavHolder_Investing').onclick = function () { NavigateTo('Investing')};						
	}else{	
		//document.getElementById('NavHolder_Investing').style.background = 'B3DFE8';
		//document.getElementById('NavHolder_Investing_Button').src='images/Nav_Investing_On.gif'
	
		if(currentSubPage != 'Contact_Details'){
			document.getElementById('Contact_Details_Button').onmouseover = function (){ document.getElementById('Contact_Details_Button').src='images/Nav_Contact_Details_On.gif'};
			document.getElementById('Contact_Details_Button').onmouseout = function (){ document.getElementById('Contact_Details_Button').src='images/Nav_Contact_Details.gif'};
			document.getElementById('Contact_Details_Button').onclick = function () { NavigateTo('Contact')};						
		}else{	
			document.getElementById('Contact_Details_Button').src='images/Nav_Contact_Details_On.gif'
		}
		if(currentSubPage != 'Contact_Maps'){
			document.getElementById('Contact_Maps_Button').onmouseover = function (){ document.getElementById('Contact_Maps_Button').src='images/Nav_Contact_Maps_On.gif'};
			document.getElementById('Contact_Maps_Button').onmouseout = function (){ document.getElementById('Contact_Maps_Button').src='images/Nav_Contact_Maps.gif'};
			document.getElementById('Contact_Maps_Button').onclick = function () { NavigateTo('Maps')};						
		}else{	
			document.getElementById('Contact_Maps_Button').src='images/Nav_Contact_Maps_On.gif'
		}
		if(currentSubPage != 'Contact_Literature'){
			document.getElementById('Contact_Literature_Button').onmouseover = function (){ document.getElementById('Contact_Literature_Button').src='images/Nav_Contact_Literature_On.gif'};
			document.getElementById('Contact_Literature_Button').onmouseout = function (){ document.getElementById('Contact_Literature_Button').src='images/Nav_Contact_Literature.gif'};
			document.getElementById('Contact_Literature_Button').onclick = function () { NavigateTo('Request')};						
		}else{	
			document.getElementById('Contact_Literature_Button').src='images/Nav_Contact_Literature_On.gif'
		}


	}

	
}

function hideSubMenu(){
	hideLayer('SubMenuHolder');	
}

function hideLayer(layerToHide){
	document.getElementById(layerToHide).style.visibility = 'hidden';
}
function showLayer(layerToShow){
	document.getElementById(layerToShow).style.visibility = 'visible';
}

function NavigateTo(page){
	document.location.href= page + "." + "aspx";
}