function potentialDisplay(obj, op, theLink) {
	var theObj = document.getElementById(obj);
	if(op=="switch") {
		if(theObj.style.display == "none") op="show";
		else op="hide";
	}
	
	if(op=="hide") {
		theObj.style.display = "none";
		theLink.innerHTML = "see potential shows";
	}
	else {
		theObj.style.display = "block";
		theLink.innerHTML = "click on a show for details and voting!";
	}		
}

function openTuneWindow(url) {
	javascript:window.open(url, "tuneWindow", "menubar=0,scrollbars=1,resizable=1,width=750,height=700"); 
}

function popupLinks() {

	$("a:contains('Tune In')").click( function () {
		openTuneWindow($(this).attr("href"));
		return false;
	});
	$("a.tuneIn").click( function () {
		openTuneWindow($(this).attr("href"));
		return false;
	});

}

$(document).ready(function(){
	popupLinks();
 });
