/**
 * JavaScript Document for Magic Memories Online Services - Skycam
 *
 * CHANGELOG
 *
 * 03 April 2008 - Leandro Carvalho
 *
 * @author Leandro Carvalho <leandro@magicmemories.co.nz>
 * @copyright 03 April 2008
 * @package skycam
*/

function showLayer(layerName,id) {
	
	// here you place the ids of every element you want.
	var ids=new Array('Iconic','SkylineLugeBottom','SkylineLugeTop','CoronetPeak','DeerParkHeights','Remarkables','GolfClub','QueenstownGardens','CentralQueenstown','Cecil','SkylineGondola','Walter','SkylineViewingDeck');
	
	// show layer
	document.getElementById(layerName).style.visibility="visible";
	
	//loop through the array and show each icon element by id
	for (var i=0;i<ids.length;i++){
		document.getElementById(ids[i]).src = "img/dot.gif";
		// change class name for all links
		document.getElementById(ids[i] + '_links').className='links'
	}

	// change class name for link clicked
	document.getElementById(id + '_links').className='link_visited'
	document.getElementById(id).src = "img/dot_over.gif";

}

