function jsopen(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=5000,height=300');");
}

function openNewWindow(url,width,height) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}

function showhide(id,aaif_url){
	if (document.getElementById){
		obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
			document.a99.src = aaif_url + "/a99-down.png";
		} else {
			obj.style.display = "none";
			document.a99.src = aaif_url + "/a99-right.png";
		}
	}	
}

function show(id){
	if (document.getElementById){
		obj = document.getElementById(id);
		obj.style.visibility = 'visible';
		obj.style.display = '';
	}	
}

function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function external_blank() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external"){
			anchor.target = "_blank";
		}
	}
}
window.onload = external_blank;

$(function() {
		$('.map').maphilight({fade: false}); /*set true for fading hover effect*/
		$('map > area').easyTooltip();  /*Tooltip function with area tag*/
	});
