function DropDown(ID){
	if (document.getElementById("DD" + ID)){
		document.getElementById("DD" + ID).style.visibility = "visible";
		}
	if (document.getElementById("IMG" + ID)){
		document.getElementById("IMG" + ID).src = "common/dot_green.gif";
		}
	var i=1;
	while (document.getElementById("Text" + ID + i)) {
		document.getElementById("Text" + ID + i).style.color = "#FF0000";
		i++
		}
	}

function HideDropDown(ID, Color){
	if (document.getElementById("DD" + ID)){
		document.getElementById("DD" + ID).style.visibility = "hidden";
		}
	if (document.getElementById("IMG" + ID)){
		document.getElementById("IMG" + ID).src = "common/dot.gif";
		}
	var i=1;
	while (document.getElementById("Text" + ID + i)) {
		document.getElementById("Text" + ID + i).style.color = Color;
		i++
		}
	}

function MoveID(X, Y, ID){ 
	bx = document.getElementById("mapmain").offsetLeft;
	by = document.getElementById("mapmain").offsetTop;

	if (document.getElementById("IMG" + ID)){
		ImgX = parseInt(X) + parseInt(bx) - 10;
		ImgY = parseInt(Y) + parseInt(by) - 10;
		
		document.getElementById("IMG" + ID).style.left = ImgX+"px";
		document.getElementById("IMG" + ID).style.top = ImgY+"px";
		}
	if (document.getElementById("DD" + ID)){
		DropX = parseInt(X) + parseInt(bx) + 7;
		DropY = parseInt(Y) + parseInt(by) + 7;
		
		document.getElementById("DD" + ID).style.left = DropX+"px";
		document.getElementById("DD" + ID).style.top = DropY+"px";
		}
}

function checkPrintingMethod(){
	noPrint = "The browser you are using does not support automatic printing.\nPlease select print in the menu, or click the [Print] icon.";
	browser = navigator.appName;
	browserVer = navigator.appVersion;

	// Check for explorer
	if(browser.indexOf('Microsoft Internet Explorer')!=-1){
	// Check for not Mac
		if(navigator.appVersion.indexOf("Mac")==-1){
			// Check for Eplorer 5+ and use native print()
			if(browserVer.indexOf('MSIE 5')!=-1){
				window.print();
			// Else use hack
			} else {
				print();
			}
		} else {
			alert(noPrint);
		}
	// Netscape native print
	} else {
		window.print();
	}
}

