var song, url, performer;
function CF_SongForm(song_name, song_url) { 
	window.open('http://www.taxi.com/mailto/mailtoindex.html','mailer','scrollbars=yes,resizable=yes,width=365,height=429,left=20,top=10');
	song = song_name;
	url = song_url;
	performer = "";
}

show_menu = function(id) { return true; }
hide_menu = function(id) { return true; }

var isIE=(navigator.appName.indexOf('Microsoft')!=-1);
var ie_version=0;
if (isIE) {
	var p=navigator.userAgent.match(/MSIE (\d+\.\d+)/);
	if (p) {
		ie_version=parseFloat(p[1]);
	}

	// I'm assuming (perhaps stupidly) that IE7 will fix the CSS
	// issues that the following code works around.
	if (ie_version<7) {
		// These make use of css to show/hide the menu.
		show_menu = function(id) {
			var el=$(id);
			if (el) {
				el.className='hover';
			}
		}

		hide_menu = function(id) {
			var el=$(id);
			if (el) {
				el.className='';
			}
		}
	}
}

function $(id) {
	return document.getElementById(id);
}

// This function will add an onload handler to the body.  It's fine to
// add a bunch of handlers, this keeps track of all of them.
function add_body_onload(func) {
	var old_body_onload=window.onload;
	window.onload=function() {
		func();
		if (old_body_onload) { old_body_onload(); }
	}
}

// Putting these here so that they'll always be available for critiques
function lyric_popup(url,window_name) {
	window.open(url,window_name,"scrollbars,resizable,width=400,height=300");
}

