function changeImg (id,on)
{
	obj = document.getElementById(id);
	if (on)
		obj.src = obj.src.replace ("-off","-on");
	else
		obj.src = obj.src.replace ("-on","-off");
}

function showMenu(module)
{
	var menu = document.getElementById(module);
	if (menu)
		menu.className = "menu_on";
}

function show_submenu(id)
{
	document.getElementById('vt').style.display = 'none';
	document.getElementById('cds').style.display = 'none';
	document.getElementById('links').style.display = 'none';
	
	document.getElementById(id).style.display = 'block';

}
		
function hide_submenus()
{
	document.getElementById('vt').style.display = 'none';
	document.getElementById('cds').style.display = 'none';
	document.getElementById('links').style.display = 'none';
}
		

function editSStour()
{
	this_tour_id = '';
	this_tour_id = document.getElementById("ssvt_list")[document.getElementById("ssvt_list").selectedIndex].value;
	
  	if (this_tour_id != '')
		{document.location = "index.php?module=edit-tours" + this_tour_id + "&action=edit";}
	else
		{return false;}
}

function aclick(anchor_id)
{
	var a = document.getElementById(anchor_id);
	hs.expand(a);
}

function openNewWindow(URL, w,h) {
	window.open(URL,"NewWindow","resizable=yes,toolbar=no,locationbar=no,menubar=no,scrollbars=no,status=no,height="+h+",width="+w);
}

	hs.graphicsDir = 'http://members.myvisualrealestate.com/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.numberPosition = 'caption';
	hs.dimmingOpacity = 0.75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
			opacity: .75,
			position: 'top center',
			hideOnMouseOut: true
		}
	});
	
	
