$(function(){
	$("#photography").cycle();
	$("aside.multiple").cycle();
	$("#google-map").gMap({
		controls:           ["GLargeMapControl3D"],
    	scrollwheel:        false,
		markers: [{
			latitude: 			54.566163,
			longitude:			-6.014247,
			html:				"<h5>Colin Glen Forest Park</h5><p>163 Stewartstown Road,<br />Dunmurry,<br />BT17 OHW</p>",
			icon:
		    {
		        image:          	"/lib/images/icons/marker.png",
				shadow:             true,
				iconsize:           [20, 34],
				shadowsize:         [20, 34],
				iconanchor:         [11, 34],
				infowindowanchor:   [8, 2]
		    }
		}],
		latitude:			54.583603,
		longitude:			-5.955276,
		zoom:				12
	});
	$("#maptypes li").hover(
		function () {
			$("#trail-map img").hide();
			$("#trail-map img." + $(this).attr("class")).show();
		});
	$(".map-trails a.top").click(
		function () {
			$clickedClass = $(this).attr("class");
			$whichMap = $clickedClass.replace("top ","");
			console.log("clickedClass: " + $clickedClass + ", whichMap" + $whichMap);
			$("#trail-map img").hide();
			$("#trail-map img." + $whichMap).show();
		});
});

