﻿var URL = "";
URL = top.location.href;
document.open();
document.write('<a href="/eng/index.shtml" class="greytext">Main</a>');

if (URL.indexOf("sitemap") > 0){
	document.write(' &gt; <span class="orangetext">Sitemap</span>');	
}else if (URL.indexOf("contactus") > 0){
	document.write(' &gt; <span class="orangetext">Contact Us</span>');
}else if (URL.indexOf("fundingprinciples") > 0){
	document.write(' &gt; <span class="orangetext">Funding Principles</span>');	
}else if (URL.indexOf("about") > 0){
	document.write(' &gt; About Us');
	if (URL.indexOf("foundation") > 0) document.write(' &gt; <span class="orangetext">Foundation</span>');
	else if (URL.indexOf("likashing") > 0){
		if (URL.indexOf("chronology") > 0) document.write(' &gt; <a href="/eng/about/likashing/index.shtml" class="greytext">Li Ka-shing</a>');
		else  document.write(' &gt; <span class="orangetext">Li Ka-shing</span>');
	}
}else if (URL.indexOf("project") > 0){
	if (URL.indexOf("project/index.shtml") > 0){
		document.write(' &gt; <span class="orangetext">Projects</span>');
	}else{
		document.write(' &gt; <a href="/eng/project/index.shtml" class="greytext">Projects</a>');
		if (URL.indexOf("education/index") > 0) document.write(' &gt; <span class="orangetext">Education</span>');
		else if (URL.indexOf("education") > 0) document.write(' &gt; <a href="/eng/project/education/index.shtml" class="greytext">Education</a>');
		else if (URL.indexOf("medical/index") > 0) document.write(' &gt; <span class="orangetext">Healthcare</span>');
		else if (URL.indexOf("medical") > 0) document.write(' &gt; <a href="/eng/project/medical/index.shtml" class="greytext">Healthcare</a>');		
		else if (URL.indexOf("culture/index") > 0) document.write(' &gt; <span class="orangetext">Culture</span>');
		else if (URL.indexOf("culture") > 0) document.write(' &gt; <a href="/eng/project/culture/index.shtml" class="greytext">Culture</a>');
		else if (URL.indexOf("charity/index") > 0) document.write(' &gt; <span class="orangetext">Community</span>');
		else if (URL.indexOf("charity") > 0) document.write(' &gt; <a href="/eng/project/charity/index.shtml" class="greytext">Community</a>');

	}
}else if (URL.indexOf("media") > 0){
	document.write(' &gt; <a href="/eng/media/press/index.shtml" class="greytext">Newsroom</a>');
	if (URL.indexOf("press") > 0){
		if (URL.indexOf("press/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Press Releases</span>');
		else document.write(' &gt; <a href="/eng/media/press/index.shtml" class="greytext">Press Releases</a>');
	}else if (URL.indexOf("speech") > 0){
		if (URL.indexOf("speech/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Speeches</span>');
		else document.write(' &gt; <a href="/eng/media/speech/index.shtml" class="greytext">Speeches</a>');		
	}
	else if (URL.indexOf("newspaper") > 0){
		if (URL.indexOf("newspaper/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Newspaper</span>');
		else document.write(' &gt; <a href="/eng/media/newspaper/index.shtml" class="greytext">Newspaper</a>');		
	if (URL.indexOf("newspaper/index_education.shtml") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_education.shtml" class="orangetext">Education</a>');
		if (URL.indexOf("newspaper/index_healthcare.shtml") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_healthcare.shtml" class="orangetext">Healthcare</a>');
		if (URL.indexOf("newspaper/index_community.shtml") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_community.shtml" class="orangetext">Community</a>');
		if (URL.indexOf("newspaper/index_culture.shtml") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_culture.shtml" class="orangetext">Culture</a>');
		if (URL.indexOf("newspaper/education/") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_education.shtml" class="orangetext">Education</a>');
		if (URL.indexOf("newspaper/medical/") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_healthcare.shtml" class="orangetext">Healthcare</a>');
		if (URL.indexOf("newspaper/charity/") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_community.shtml" class="orangetext">Community</a>');
		if (URL.indexOf("newspaper/culture/") > 0) document.write(' &gt; <a href="/eng/media/newspaper/index_culture.shtml" class="orangetext">Culture</a>');			
		
	}	
	else if (URL.indexOf("interview") > 0){
		if (URL.indexOf("interview/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Interview</span>');
		else document.write(' &gt; <a href="/eng/media/interview/index.shtml" class="greytext">Interview</a>');		
	}	
	else if (URL.indexOf("photo") > 0){
		if (URL.indexOf("photo/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Photo</span>');
		else document.write(' &gt; <a href="/eng/media/photo/index.shtml" class="greytext">Photo</a>');	
	if (URL.indexOf("photo/index_likashing.shtml") > 0) document.write(' &gt; <a href="/eng/media/photo/index_likashing.shtml" class="orangetext">Li Ka Shing</a>');
	if (URL.indexOf("photo/index_education.shtml") > 0) document.write(' &gt; <a href="/eng/media/photo/index_education.shtml" class="orangetext">Education</a>');
		if (URL.indexOf("photo/index_healthcare.shtml") > 0) document.write(' &gt; <a href="/eng/media/photo/index_healthcare.shtml" class="orangetext">Healthcare</a>');
		if (URL.indexOf("photo/index_community.shtml") > 0) document.write(' &gt; <a href="/eng/media/photo/index_community.shtml" class="orangetext">Community</a>');
		if (URL.indexOf("photo/index_culture.shtml") > 0) document.write(' &gt; <a href="/eng/media/photo/index_culture.shtml" class="orangetext">Culture</a>');	
if (URL.indexOf("photo/likashing/") > 0) document.write(' &gt; <a href="/eng/media/photo/index_likashing.shtml" class="orangetext">Li Ka Shing</a>');
	if (URL.indexOf("photo/education/") > 0) document.write(' &gt; <a href="/eng/media/photo/index_education.shtml" class="orangetext">Education</a>');
		if (URL.indexOf("photo/medical/") > 0) document.write(' &gt; <a href="/eng/media/photo/index_healthcare.shtml" class="orangetext">Healthcare</a>');
		if (URL.indexOf("photo/charity/") > 0) document.write(' &gt; <a href="/eng/media/photo/index_community.shtml" class="orangetext">Community</a>');
		if (URL.indexOf("photo/culture/") > 0) document.write(' &gt; <a href="/eng/media/photo/index_culture.shtml" class="orangetext">Culture</a>');				
	}
		else {
		if (URL.indexOf("book/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Publications</span>');
		else document.write(' &gt; <a href="/eng/media/book/index.shtml" class="greytext">Publications</a>');		
	}
}else if (URL.indexOf("other") > 0){
	document.write(' &gt; Others');
	if (URL.indexOf("eventall") > 0){
		if (URL.indexOf("eventall/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Events</span>');
		else{
			document.write(' &gt; <a href="/eng/other/eventall/index.shtml" class="greytext">Events</a>');
			if (URL.indexOf("cn/education.shtml") > 0) document.write(' &gt; <span class="orangetext">Education in Mainland China</span>');
			else if (URL.indexOf("cn/education/") > 0) document.write(' &gt; <a href="/eng/other/eventall/cn/education.shtml" class="greytext">Education in Mainland China</a>');
			else if (URL.indexOf("cn/medical.shtml") > 0) document.write(' &gt; <span class="orangetext">Healthcare in Mainland China</span>');
			else if (URL.indexOf("cn/medical/") > 0) document.write(' &gt; <a href="/eng/other/eventall/cn/medical.shtml" class="greytext">Healthcare in Mainland China</a>');
			else if (URL.indexOf("cn/culture.shtml") > 0) document.write(' &gt; <span class="orangetext">Culture and Sport in Mainland China</span>');
			else if (URL.indexOf("cn/culture/") > 0) document.write(' &gt; <a href="/eng/other/eventall/cn/culture.shtml" class="greytext">Culture and Sport in Mainland China</a>');
			else if (URL.indexOf("cn/charity.shtml") > 0) document.write(' &gt; <span class="orangetext">Community in Mainland China</span>');
			else if (URL.indexOf("cn/charity/") > 0) document.write(' &gt; <a href="/eng/other/eventall/cn/charity.shtml" class="greytext">Community in Mainland China</a>');
			
			else if (URL.indexOf("hk/education.shtml") > 0) document.write(' &gt; <span class="orangetext">Education in Hong Kong</span>');
			else if (URL.indexOf("hk/education/") > 0) document.write(' &gt; <a href="/eng/other/eventall/hk/education.shtml" class="greytext">Education in Hong Kong</a>');
			else if (URL.indexOf("hk/medical.shtml") > 0) document.write(' &gt; <span class="orangetext">Healthcare in Hong Kong</span>');
			else if (URL.indexOf("hk/medical/") > 0) document.write(' &gt; <a href="/eng/other/eventall/hk/medical.shtml" class="greytext">Healthcare in Hong Kong</a>');
			else if (URL.indexOf("hk/culture.shtml") > 0) document.write(' &gt; <span class="orangetext">Culture and Sport in Hong Kong</span>');
			else if (URL.indexOf("hk/culture/") > 0) document.write(' &gt; <a href="/eng/other/eventall/hk/culture.shtml" class="greytext">Culture and Sport in Hong Kong</a>');
			else if (URL.indexOf("hk/charity.shtml") > 0) document.write(' &gt; <span class="orangetext">Community in Hong Kong</span>');
			else if (URL.indexOf("hk/charity/") > 0) document.write(' &gt; <a href="/eng/other/eventall/hk/charity.shtml" class="greytext">Community in Hong Kong</a>');

			else if (URL.indexOf("eventall/education.shtml") > 0) document.write(' &gt; <span class="orangetext">Education</span>');
			else if (URL.indexOf("eventall/medical.shtml") > 0) document.write(' &gt; <span class="orangetext">Medical</span>');
			else if (URL.indexOf("eventall/culture.shtml") > 0) document.write(' &gt; <span class="orangetext">Culture & Charity</span>');
		}
	}else {
		if (URL.indexOf("statistic/index.shtml") > 0) document.write(' &gt; <span class="orangetext">Statistics</span>');
		else{
			document.write(' &gt; <a href="/eng/other/statistic/index.shtml" class="greytext">Statistics</a>');
		}
	}
	
	
}else if (URL.indexOf("search.jsp") > 0){
	document.write(' &gt; <span class="orangetext">Search</span>');
}

document.close();
