/*************************************************************************
*                         COPYRIGHT NOTICE                               *
*                                                                        *
*   The contents of this file is protected under the United States       *
*   copyright laws as an unpublished work, and is confidential and       *
*   proprietary to Planetography.  Its use or disclosure in whole or in  *
*   part without the expressed written permission of Planetography is    *
*   prohibited.                                                          *
*                                                                        *
*   (c) Copyright 2009 by Planetography. All rights reserved.            *
**************************************************************************/

var target_to_show;

function popup_image (target, image_number, x, y) {
//alert ("popup_image target is "+target+" image_number is "+image_number+" x,y is "+x+"  "+y);
	setLeftPosition (target, x);
	setTopPosition (target, y);
	whole_path_string = "/images/"+image_number+".jpg";
	setImagePath (target,whole_path_string);
	target_to_show = target;
}

function show_image () {
	show (target_to_show);
}

function toggle_layer (checkbox_id, maplayer_id) {
//alert (checkbox_id+"  "+maplayer_id);
	checkbox = document.getElementById (checkbox_id);
//alert (checkbox.checked);
	maplayer = document.getElementById (maplayer_id);
	if (checkbox.checked == false) {
		maplayer.style.visibility = "hidden";
	} else {
		maplayer.style.visibility = "visible";
	}
//		maplayer.style.visibility = "hidden";
}

