<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Feering Jam Sessions</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
<style type="text/css" media="screen">
	body, body * { visibility:hidden;
		background: none;}	
	.post-bgbtm, .post-bgbtm * {visibility:visible;
	position:absolute;
	left:0;
	right: 100px;
	top:0;
	font-family: courier, arial;
	font-size: 12px;
	color: #000;}
	
	.entrypre {
	border: 1px solid #ffff00;
	
	top: 20px;
	width: 200px;
	height: 50px
	text-align: none;
	background-color: #0000ff;
}
</style>
</head>
<body>

<div id="wrapper">
							<div class="post-bgbtm">
								<h1 class="title"><a href="#">
									<?php
									$song_title=$_GET['song'];
									$include_file='include/tabs/'.$song_title;
									$content = file($include_file);
									if ($song_title!='') 
									{ 
										echo $content[0];
									}
									else
									{
											echo "Guitar Tabs and Piano Music"; 
									}
									?>
									</a>
								</h1>
								<div class="entrypre">
									<pre><?php
										if ($song_title!='') 
										{ 
											for ($i = 2; $i <= count($content); $i++)
											{
												echo $content[$i];
											}
										}
										else
										{
											echo "Please click on the links on the left to choose the music you require.
											<br /><br /><br /><br /><br /><br />";
										}
										?>
									</pre>
								</div>
							</div>
						
</div>
<?

 function reduce_str($text, $size)
 {
 	$length_original = strlen($text);
	$length = $length_original -4;
	$text=substr($text, 0,$length);
	if($length>$size)
 	{
 		$length_fin = substr($text, 0, $size);
		$text = $length_fin."...";  
	}
 	return($text);
 }

?>


</body>
</html>
