//<!--

var aspx2html = 0;

var menu_list = new Array();

var menu_array = [
	[ "HOME_pm", "Home",                         "index.aspx"              ],
	[ "LCE_pm",  "Calendar, Lessons, Events",    "lessons_calendar.html"   ],
	[ "",        "Calendar",                     "calendar.aspx"           ],
	[ "",        "Lessons & Practicas",          "classes.aspx"            ],
	//[ "",        "Dances/Milongas",              "dances.html"             ],
	//[ "",        "Upcoming Events",              "comingsoon.html"         ],
                  //[ "",        "Upcoming Events",              "cs2011laborday.html"         ],
	[ "",        "Group Discounts",              "discounts.html"          ],
	[ "",        "Exhibitions & Entertainment",  "contact.aspx#Performances" ],
	[ "",        "Post an Event",                "postevent.html"          ],
	[ "PP_pm",   "People & Places",              "people_places.html"      ],
	[ "",        "Teachers & DJs",               "teachersdjs.aspx"        ],
	[ "",        "Artists & Musicians",          "artists.aspx"            ],
	[ "",        "Venues & Maps",                "venuesmaps.aspx"         ],
	[ "",        "Photo Galleries",              "albumcategories.aspx"    ],
	[ "",        "Event Videos",                 "event_videos.html"       ],
	[ "ELN_pm",  "News & Message Boards",        "email_news.html"         ],
	//[ "",        "Current News",                 "news.aspx"               ],
	[ "",        "Message Boards and Email",     "email_lists.html"        ],
	[ "BM_pm",   "Membership",                   "membership.html"         ],
	[ "",        "Become a TC Member",           "join.aspx"               ],
	[ "",        "New Dancer Info",              "getting_started.html"    ],
	[ "",        "Our Dancers",                  "photodriver.html?album_name=tango_colorado_members" ],
	[ "",        "Volunteer Opportunities",      "volunteers.html"         ],
	[ "R_pm",    "Resources",                    "resources.html"          ],
	//[ "",        "Instructional Videos",         "instructional_videos.html"             ],
	//[ "",        "Music Score Library",          "music_scores.html"       ],
	[ "",        "TC Policies & Documents",      "tc_policies.html"        ],
	[ "",        "About Us",                     "about.aspx"              ],
	[ "",        "Related Links",                "related_links.html"      ],
	[ "",        "SiteMap",                      "sitemap.html"            ],
	//[ "E_pm",    "Performances",                 "performances.html"       ],
	[ "C_pm",    "Contact",                      "contact.aspx"            ]
];

function tc_header() {
	var mctr;
	var tc;

	initialize_menu_list();

	tc = "";
	tc += "<div id=\"container\">\n";
	tc += "<div id=\"header\"><a href=\"index.aspx\"><img src=\"images/CalendarHeader-C.jpg\" alt=\"Tango Colorado Header\" title=\"Tango Colorado Header\" width=\"975\" height=\"181\" border=\"0\" /></a></div>\n";
	tc += "<div align=center id=\"topNav\">\n";
	tc += "<table align=center cellpadding=3 cellspacing=0 border=1>\n";
	tc += "<tr>\n";
	for (mctr = 0; mctr < menu_list.length; mctr++) {
		if (menu_list[mctr].place_marker != "") {
			tc += "<td onmouseover=\"SH_submenu('" + menu_list[mctr].place_marker + "','show')\" onmouseout=\"SH_submenu('" + menu_list[mctr].place_marker + "','hide')\" onclick=\"SH_submenu('" + menu_list[mctr].place_marker + "','hide')\"><a href=\"" + menu_list[mctr].menupage + "\" target=\"_top\">" + menu_list[mctr].menutext + "</a><br>\n";
			tc += "<div id=\"" + menu_list[mctr].place_marker + "\">\n";
			tc += "<ul>\n";
			tc += make_submenu(mctr);
			tc += "</ul>\n";
			tc += "</div>\n";
			tc += "</td>\n";
		}
	}
	tc += "</tr>\n";
	tc += "</table>\n";
	tc += "</div>\n";
	tc += "<div id=\"contentContainer\">\n";
	document.write(tc);
//window.alert(tc);
}

function tc_footer() {
	var mctr, smctr;
	var tc;


	//initialize_menu_list();
	tc = "";
	// This is the end of the contentContainer div
	tc += "</div>\n";
	tc += "<div>\n";
	tc += "<div class=\"fixer\"></div>\n";
	tc += "<div style=\"margin-left:10px; width:960;\"><h3 class=\"wide\"></h3></div>\n";
	tc += "<div id=\"footer\">\n";
	tc += "<div id=\"disclaimer\"><a href=\"terms_of_use.html\">\n";
	tc += "Terms of Use and<br />Privacy Policy</a><br /><hr style=\"width:50px;\"><a href=\"sitemap.html\">SiteMap</a></div>\n";
	tc += "<div id=\"footerText\">\n";
	smctr = 1;
	for (mctr = 0; mctr < menu_list.length; mctr++) {
		if (menu_list[mctr].place_marker != "") {
			if (smctr != 1)
				tc += " | ";
			tc += "<a href=\"" + menu_list[mctr].menupage + "\">" + menu_list[mctr].menutext + "</a>";
			smctr++;
			if (smctr == 5) {
				smctr = 1;
				tc += "<br />\n";
			}
		}
	}
	tc += "</div>\n";
	tc += "<div class=\"fixer\"></div>\n";
	tc += "<div id=\"designedBy\"><a href=\"http://www.fullhousenow.com/\" target=\"_blank\">Designed by Full House Marketing</a></div>\n";
	tc += "</div>\n";
	tc += "</div>\n";
	// This is the end of the container div
	tc += "</div>\n";
	document.write(tc);
//window.alert(tc);
}

function make_submenu(mstart) {
	var tc = "";
	var mctr;

	for (mctr = mstart + 1; mctr < menu_list.length; mctr++) {
		if (menu_list[mctr].place_marker != "")
			break;
		tc += "<li><a class=\"subNav\" href=\"" + menu_list[mctr].menupage + "\">" + menu_list[mctr].menutext + "</a></li>\n";
	}
	return(tc);
}

function initialize_menu_list() {
	var ctr = 0;

	for (ctr = 0; ctr < menu_array.length; ctr++) {
		menu_list[ctr] = new make_menuitem(menu_array[ctr]);
	}
}

function make_menuitem(menuitem) {
	if (menuitem.length != 3) {
		window.alert("Invalid argument to make_menuitem");
		return;
	}
	this.place_marker = menuitem[0];
	this.menutext = menuitem[1];
	if (aspx2html == 1)
		this.menupage = menuitem[2].replace(".aspx", ".aspx.html");
	else
		this.menupage = menuitem[2];

}

function SH_submenu(submenu, SH) {
	var v,obj;

	v = SH;
	with (document) if (getElementById && ((obj=getElementById(submenu))!=null)) {
		if (obj.style) {
			obj=obj.style;
			v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v;
		}
		obj.visibility = v;
	}
}

function GA_1() {
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
}

function GA_2() {
	try {
		var pageTracker = _gat._getTracker("UA-8179597-1");
		pageTracker._trackPageview();
	} catch(err) {}
}

//-->

