| 
				
					|  | 
		\n";
		fclose($fp);
		if ($color=='#EEEEEE') {
			$color = '#F7F7FF';
		} else {
			$color='#EEEEEE';
		}
	}
} else {
	print "There are currently no events to display.";
}
function addLinks($text) {
	$final_text="";
	$text_array=explode(" ",$text);
	foreach ($text_array as $val) {
		if (substr($val,0,4)=="www." || substr($val,0,7)=="http://") {
			$add_period="";
			if (substr($val,-1)=="." || substr($val,-1)==",") {
				$add_period=substr($val,-1);
				$val=substr($val,0,strlen($val)-1);
			}
			$val_link=str_replace("http://","",$val);
			$val="$val$add_period";
		}
		if (strstr($val,"@")) {
			$add_period="";
			if (substr($val,-1)=="." || substr($val,-1)==",") {
				$add_period=substr($val,-1);
				$val=substr($val,0,strlen($val)-1);
			}
			$val="$val$add_period";
		}
		$final_text.="$val ";
	}
	return $final_text;
}
?>
			|  This section lists the public performance schedule for "Big
      Mama" Sue Kroninger. Additional dates are added often, so check this
      page frequently for the latest updates. If you get a chance to see
      Big Mama Sue in person, make sure you stop and say hello!!!
 
 |  
			| '."\n";
		print " |  | ";
		print ' '."\n";
		$fp=fopen("../voodoo/voodoodata/$filenum","r");
		// Title
		print "\n";
		// Date
		print "| ";
		$line = trim(fgets($fp, 9999));
		print "$line |  \n";
		// Location
		print "| ";
		$line = trim(fgets($fp, 9999));
		print "When: $line |  \n";
		// Description
		print "| ";
		$line = trim(fgets($fp, 9999));
		print "Where: $line 
  |  \n";
		print "| ";
		$line = trim(fgets($fp, 9999));
		$newline=addLinks($line);
		print "$newline |  |  |  
			| 
  The above calendar lists the public performance schedule of
      Big Mama Sue, but does not list the private engagements. How can
      you see a private performance of Big Mama Sue and her gang of
      musicians? Hire her of course! To get complete details on how you can have
      Big Mama Sue and friends appear at your special event or
      function, visit our Rent
      Big Mama Sue & Friends section. You'll be glad you did!
 |  |  |