<!--

	/**
	 * CopyRight 2010 Frosty Drew. All rights reserved
	 *
	 * Terms:
	 * You may use this library for no charge. Though you may NOT distribute it.
	 * You may modify this library for use in your application only.
	 * All information above this statement including this statement must remain un-altered.
	 * Any question or modification request can be sent to astronomer@frostydrew.org
	 * http://www.frostydrew.org/
	 */


	/*
	 * ==> Functions and controls in relation to FrostyDrew.org
	 */


	/**
	 * Draw floating div with google map for Frosty Drew Nature center location.
	 * Note: This function requires the Legionware corefunction.js library
	 */
	function draw_map () {

		var map = '<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Frosty+Drew+Observatory+%26+Sky+Theater,+Park+Lane,+Charlestown,+RI&amp;sll=37.0625,-95.677068&amp;sspn=38.365962,71.279297&amp;ie=UTF8&amp;hq=Frosty+Drew+Observatory+%26+Sky+Theater,&amp;hnear=Park+Ln,+Charlestown,+Rhode+Island+02813&amp;t=h&amp;cid=16544822666554014301&amp;ll=41.3799,-71.66399&amp;spn=0.061826,0.109863&amp;z=13&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Frosty+Drew+Observatory+%26+Sky+Theater,+Park+Lane,+Charlestown,+RI&amp;sll=37.0625,-95.677068&amp;sspn=38.365962,71.279297&amp;ie=UTF8&amp;hq=Frosty+Drew+Observatory+%26+Sky+Theater,&amp;hnear=Park+Ln,+Charlestown,+Rhode+Island+02813&amp;t=h&amp;cid=16544822666554014301&amp;ll=41.3799,-71.66399&amp;spn=0.061826,0.109863&amp;z=13&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

		draw_layer('center', 'directions', 'google_map', true, '<div id="close_button"><a href="javascript:void(0);" onclick="un_draw_layer (\'google_map\', true, true, \'\');">Close[X]</a></div>' + map);

	}


	/**
	 * Draw floating div with google map for a given location.
	 * A global variable named 'map' must be specified containing the map to draw.
	 * Note: This function requires the Legionware corefunction.js library
	 */
	function draw_other_map () {

		draw_layer('center', 'directions', 'google_map', true, '<div id="close_button"><a href="javascript:void(0);" onclick="un_draw_layer (\'google_map\', true, true, \'\');">Close[X]</a></div>' + map);

	}


	function draw_promo (id, style_classname, url, width, height) {

		promo = '<iframe width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="' + url + '"></iframe>';

		draw_layer('center', style_classname, id, true, '<div id="close_button"><a href="javascript:void(0);" onclick="un_draw_layer (\'' + id + '\', true, true, \'\');">Close[X]</a></div>' + promo);

	}

//-->
