﻿
function changeColor(thisID, colorNum){
	thisID.style.backgroundColor=colorNum;
	//stupid netscape
	thisID.bgColor=colorNum;
}

function fold(id) {
	var obj = document.all(id);
	if (obj.style.display == 'none') {
		obj.style.display = '';
	} else {
		obj.style.display = 'none';
	}
}


function textCriteria(num){
	criteria1 = '(i)to represent a masterpiece of human creative genius;';
	criteria2 = '(ii)to exhibit an important interchange of human values, over a span of time or within a cultural area of the world, on developments in architecture or technology, monumental arts, town-planning or landscape design.';
	criteria3 = '(iii)to bear a unique or at least exceptional testimony to a cultural tradition or to a civilization which is living or which has disappeared.';
	criteria4 = '(iv)to be an outstanding example of a type of building, architectural or technological ensemble or landscape which illustrates (a) significant stage(s) in human history.';
	criteria5 = '(v)to be an outstanding example of a traditional human settlement, land-use, or sea-use which is representative of a culture (or cultures), or human interaction with the environment especially when it has become vulnerable under the impact of irreversible change.';
	criteria6 = '(vi)to be directly or tangibly associated with events or living traditions, with ideas, or with beliefs, with artistic and literary works of outstanding universal significance. (The Committee considers that this criterion should preferably be used in conjunction with other criteria).';
	criteria7 = '(vii)to contain superlative natural phenomena or areas of exceptional natural beauty and aesthetic importance.'
	criteria8 = '(viii)to be outstanding examples representing major stages of earth\'s history, including the record of life, significant on-going geological processes in the development of landforms, or significant geomorphic or physiographic features.';
	criteria9 = '(ix)to be outstanding examples representing significant on-going ecological and biological processes in the evolution and development of terrestrial, fresh water, coastal and marine ecosystems and communities of plants and animals.';
	criteria10 = '(x)to contain the most important and significant natural habitats for in-situ conservation of biological diversity, including those containing threatened species of outstanding universal value from the point of view of science or conservation.';
	if(num=='1'){
		return criteria1;
	} else if(num=='2'){
		return criteria2;
	} else if(num=='3'){
		return criteria3;
	} else if(num=='4'){
		return criteria4;
	} else if(num=='5'){
		return criteria5;
	} else if(num=='6'){
		return criteria6;
	} else if(num=='7'){
		return criteria7;
	} else if(num=='8'){
		return criteria8;
	} else if(num=='9'){
		return criteria9;
	} else if(num=='10'){
		return criteria10;
	} else {
		return 'Cannot find the criteria.';
	}
}

function showToolTip(e,text){
	if(document.all)e = event;
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY  + 20 + 'px';
}

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}

function showImage(e,img){
//	if(document.all)e = event;
//	var obj = document.getElementById('popup_image');
//	obj.innerHTML = "<IMG src=" + img + ">";
//	obj.style.display = 'block';
//	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
//	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
//	var leftPos = e.clientX;
//	if(leftPos<0)leftPos = 0;
//	obj.style.left = leftPos + 'px';
//	obj.style.top = 500 + 'px';
}

function hideImage()
{
//	document.getElementById('popup_image').style.display = 'none';
	
}


