<?php
  require_once "/var/www/vhosts/socanews.com/httpdocs/cmsAdmin/lib/viewer_functions.php";
function getArtist($artistname) {

	$artistname1 = mysql_real_escape_string(trim($artistname));
//	$artistname=addslashes($artistname1);
  list($artist, $blogMetaData) = getRecords(array(
    'tableName'   => 'artists',
    'limit'       => '1',
    'where'       => "title = '$artistname1'",
    'allowSearch' => '0',
  )); 
  return $artist;
  //print_r($artist);
}
  list($albumsRecords, $albumsMetaData) = getRecords(array(
    'tableName'   => 'albums',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
 $albumsRecord = @$albumsRecords[0]; // get first record
//print_r($albumsRecord);
  // show error message if no matching record is found
  if (!$albumsRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

 list($musicnewsRecords, $featuredartistMetaData) = getRecords(array(
    'tableName'   => 'news',
    'limit'       => '3',
    'where'       => "catNews LIKE '%news%' AND catNews LIKE '%entertainment%'",
    'orderBy'     => 'publishDate DESC',
    'allowSearch' => '0',
  )); 
   function getCountrytitle($num)
  {
//	$query = 'title = '.$num;
	list($countryRecords, $countryMetaData) = getRecords(array(
    'tableName'   => 'country',
    'where'       => "title='$num'",
    'limit'       => '0',
     ));
	return $countryRecords[1];
  }
function getTracktitle($num) {
  list($tracktitle) = getRecords(array(
    'tableName'   => 'tracks',
    'limit'       => '1',
    'where'       => "num = '$num'",
    'allowSearch' => '0',
  )); 
  if(!empty($tracktitle))
  {
  return $tracktitle[0];
  }
}

function getyear($num) {
  list($yeartitle) = getRecords(array(
    'tableName'   => 'year2',
    'limit'       => '1',
    'where'       => "num = '$num'",
    'allowSearch' => '0',
  )); 
  if(!empty($yeartitle))
  {
  return $yeartitle[0];
  }
}
//echo whereRecordNumberInUrl(1);
 $num=$albumsRecord['num'];
  $art_search1 = "artists like '%".$albumsRecord['artists']."%'" ;
   list($otheralbumsRecords, $otheralbumsMetaData) = getRecords(array(
    'tableName'   => 'albums',
    'where'       => $art_search1."AND num != '$num'",
	'limit'       => '5',
   
  ));
 
  $art_search = "artists like '%".$albumsRecord['artists']."%'" ;
  list($relatedTracks, $relatedMetaData) = getRecords(array(
    'tableName'   => 'tracks',
    'limit'       => '10',
	'where'	=>	$art_search,
    'orderBy'     => 'date DESC',
    'allowSearch' => '0',
  )); 
 
 

 list($newsRecords, $newsMetaData) = getRecords(array(
    'tableName'   => 'news',
	'where'	=>	$art_search,
	 'limit'       => '5',
 ));
  list($galleryRecords, $galleryMetaData) = getRecords(array(
    'tableName'   => 'gallery',
    'limit'       => '3',
    'orderBy'     => 'date DESC',
    'allowSearch' => '0',
  ));
  function getImage($id)
  {
	$query = 'num = '.$id;
	list($imagesRecords, $imagesMetaData) = getRecords(array(
    'tableName'   => 'images',
    'where'       => $query,
    'limit'       => '1',
     ));
	//print_r($imagesRecords[0]['image'][0]['filePath']);
	return $imagesRecords;
  }  
  //echo $artistname;
   
?>

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="P-ZTyHA7KHTNfJA7W3QMJvEHUHoue1P2k5jDcf5WP5U" />
<link href="http://www.socanews.com/styles/SN2.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="contentslider.css" />


<title>www.socanews.com | Music | <?php echo $albumsRecord['title']; ?></title>
<link href="/styles/SN2.css" rel="stylesheet" type="text/css" />
<link href="/httpdocs/styles/SN2.css" rel="stylesheet" type="text/css" />
<style type="text/css">

body {
	background-color: #333333;
	margin-top:0px;
}
.style2 {font-weight: bold; padding: 10px 10px 10px 5px; text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; font-size: 20px;}
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-493820-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 
'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' 
: 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
})();

</script>
</style></head>
<body>

<? include($ROOT."/include/header.php") ?>
    <table width="980" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="f5f5f5">
    <tr>
        <td width="15" height="10">&nbsp;</td>
        <td align="left" valign="top"></td>
        <td width="15">&nbsp;</td>
    </tr>
    <tr>
        <td width="15" height="40">&nbsp;</td>
        <td align="left" valign="top" bgcolor="e8e8e8"><?php require "../../menu/hMenu3.html" ?></td>
        <td width="15">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="left" valign="top" ><div style=" padding-top:15px; padding-bottom:15px; width:631px; float:left"> <div class="More" ><a href="/index.php">home</a> | <a href="/music/">music</a> | <a href="/music/albums/">albums</a> | <b style="text-transform:lowercase"><?php echo $albumsRecord['title']; ?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php
include('../../music/artists/counter.php');?></div></div>


</td>
<td></td>
</tr>
  <tr>
  <td width="15" height="40">&nbsp;</td>
  <td align="left" valign="top" bgcolor="">
 
 

<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="630" valign="top">

<div style="padding:5px; background-color:#e8e8e8;">


<?php 
$imgUrl = "";
if(!empty($albumsRecord['image'])) {
  $images = getImage($albumsRecord['image']);
  foreach ($images as $image) {
	  foreach($image['image'] as $img){ 
		  $imgUrl = $img['urlPath'];
		  break;
	  }
  }
}
?>
<?php if(!empty($imgUrl)) { ?>
<img src="<?php echo $imgUrl; ?>" width="620" height="620" />
<?php } else {?>
<?php foreach ($albumsRecord['image'] as $upload): ?>
<img src="<?php echo $upload['urlPath']; ?>" width="620" height="620" />
<?php if ($upload['info1']): ?>
<?php endif; ?>
<?php break; ?>
<?php endforeach; ?>
<?php } ?>


<!--<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>

<td height="400" valign="bottom" style="background-image:url('<?php echo $indexImg;?>');background-position:center;background-repeat:no-repeat;" >
<img src="../_images/titles/musicTitle.png" width="325" height="112" /></td>
</tr>
</table> -->
</div>
<div id=id1 style="display:none">
<div  style="background:url('/_images/site/stripeBgroundLight.png'); background-color:#FFF; float:right; padding-top:5px">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style "  style="padding: 1px 5px 10px 5px;">
<a class="addthis_button_facebook_like" fb:like:layout="button_count" ></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_counter addthis_pill_style"></a></data></div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=socanews"></script>

<!-- AddThis Button END -->
</div>
<div id="info"></div>
</div>

<div style="background-color: #f6f6f6; height: 1px; width: 100%; margin: 5px 0 5px 0;"> </div>

<table width="630" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="305" valign="top">


<table width="410" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8E8E8" >
<tr>
<td><div class="siHeaderBlueHome" style="padding: 10px;"><?php echo $albumsRecord['title']; ?><br />
<span class="articleContentGalleryDate" style="text-transform:none"><?php echo $albumsRecord['artists']; ?></span></div>

<table style="background-color:#f6f6f6; margin:0px auto" width="390">
<tr>
<td>
<ul style="list-style:none">


 <?php if( !empty($albumsRecord['one'])){ $onerecord= getTracktitle($albumsRecord['one']);
//echo $onerecord['title'];
$con=getCountrytitle($onerecord['country']); 
@$artist=getArtist($onerecord['artists']);
$art_detail=getArtist($onerecord['artists']);
$art_detail2=getArtist($onerecord['artists2']);
//echo "<pre>";
//print_r($onerecord);
?>
    
<li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $onerecord['title']; ?>','<?php echo $onerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $onerecord['producer']; ?>','','<?php echo $onerecord['plays']; ?>','<?php echo $onerecord['year2'];?>','<?php echo  $onerecord['upload'][0]['urlPath']; ?>','<?php echo $onerecord['artistlink'].$onerecord['artists2'] ?>','<?php echo $onerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $onerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">1. <?php echo $onerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $onerecord['artists'] ?></b></a><?php if ($onerecord['artistlink']): ?><?php echo $onerecord['artistlink'] ?><?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($onerecord['artists2']) echo $onerecord['artists2'];?></b></a></span></li>
<?php

 }?></span>
   <?php if( !empty($albumsRecord['two'])){ $tworecord= getTracktitle($albumsRecord['two']); 
   $con=getCountrytitle($tworecord['country']);
   $art_detail=getArtist($tworecord['artists']);
$art_detail2=getArtist($tworecord['artists2']);?>
   
  <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $tworecord['title']; ?>','<?php echo $tworecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $tworecord['producer']; ?>','','<?php echo $tworecord['plays']; ?>','<?php echo $tworecord['year2'];?>','<?php echo $tworecord['upload'][0]['urlPath']; ?>','<?php echo $tworecord['artistlink'].$tworecord['artists2'] ?>','<?php echo $tworecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $tworecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">2. <?php echo $tworecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $tworecord['artists'] ?></b></a><?php if ($tworecord['artistlink']): ?><?php echo $tworecord['artistlink'] ?><?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($tworecord['artists2']) echo $tworecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
  
   <?php if( !empty($albumsRecord['three'])){ $threerecord= getTracktitle($albumsRecord['three']);
   $con=getCountrytitle($threerecord['country']);
    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
    ?>
    
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">3. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
  
   <?php if( !empty($albumsRecord['four'])){ $threerecord= getTracktitle($albumsRecord['four']); 
    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
   $con=getCountrytitle($threerecord['country']);
   ?>
    
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">4. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
    
   <?php if( !empty($albumsRecord['five'])){ $threerecord= getTracktitle($albumsRecord['five']); 
      $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
   $con=getCountrytitle($threerecord['country']);
   ?>
   
   <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">5. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
   <?php if( !empty($albumsRecord['six'])){ $threerecord= getTracktitle($albumsRecord['six']); 
      $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
   $con=getCountrytitle($threerecord['country']);
?>
   <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">6. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
  
   <?php if( !empty($albumsRecord['seven'])){ $threerecord= getTracktitle($albumsRecord['seven']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
   $con=getCountrytitle($threerecord['country']);?>
    
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">7. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
   <?php if( !empty($albumsRecord['eight'])){ $threerecord= getTracktitle($albumsRecord['eight']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);?>
   
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">8. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>

   <?php if( !empty($albumsRecord['nine'])){ $threerecord= getTracktitle($albumsRecord['nine']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);
   $con=getCountrytitle($threerecord['country']);
?>
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">9. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
 
   <?php if( !empty($albumsRecord['ten'])){ $threerecord= getTracktitle($albumsRecord['ten']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);
?>
     
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">10. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
     <?php if( !empty($albumsRecord['eleven'])){ $threerecord= getTracktitle($albumsRecord['eleven']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
   <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">11. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
  
   <?php if( !empty($albumsRecord['twelve'])){ $threerecord= getTracktitle($albumsRecord['twelve']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']); ?>
    
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">12. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
   <?php if( !empty($albumsRecord['thirteen'])){ $threerecord= getTracktitle($albumsRecord['thirteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
   
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">13. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>

   <?php if( !empty($albumsRecord['fourteen'])){ $threerecord= getTracktitle($albumsRecord['fourteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">14. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
 
   <?php if( !empty($albumsRecord['fifteen'])){ $threerecord= getTracktitle($albumsRecord['fifteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']); ?>
     
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">15. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
     <?php if( !empty($albumsRecord['sixteen'])){ $threerecord= getTracktitle($albumsRecord['sixteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
   <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">16. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
  
   <?php if( !empty($albumsRecord['seventeen'])){ $threerecord= getTracktitle($albumsRecord['seventeen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
    
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">17. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
   <?php if( !empty($albumsRecord['eighteen'])){ $threerecord= getTracktitle($albumsRecord['eighteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
   
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">18. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span>
</li>
   <?php }?>

   <?php if( !empty($albumsRecord['nineteen'])){ $threerecord= getTracktitle($albumsRecord['nineteen']);    $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);   $con=getCountrytitle($threerecord['country']);?>
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">19. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
 
   <?php if( !empty($albumsRecord['twenty'])){ $threerecord= getTracktitle($albumsRecord['twenty']);   $art_detail=getArtist($threerecord['artists']);
$art_detail2=getArtist($threerecord['artists2']);    $con=getCountrytitle($threerecord['country']);?>
     
    <li background="../music/Drag to a file to choose it.">
<a href="#player_block" onClick="changeIt('<?php echo @$imgUrl; ?>' ,'<?php echo $threerecord['title']; ?>','<?php echo $threerecord['artists']; ?>','<?php if(isset($con['code'])){echo $con['code'];}else{ echo addslashes($con['title']);}?>','<?php echo $threerecord['producer']; ?>','','<?php echo $threerecord['plays']; ?>','<?php echo $threerecord['year2'];?>','<?php echo $threerecord['upload'][0]['urlPath']; ?>','<?php echo $threerecord['artistlink'].$threerecord['artists2'] ?>','<?php echo $threerecord['num'] ?>'); player.sendEvent('LOAD', {file:'<?php echo $threerecord['upload'][0]['urlPath']; ?>', type:'sound'}); player.sendEvent('PLAY',true);" class="siHeaderBlueEventsTitle">20. <?php echo $threerecord['title'] ?></a><span class="articleContentHome"> <a href="<?php echo $art_detail[0]['_link']; ?>" class="articleContentHome"><b><?php echo $threerecord['artists'] ?></b></a><?php if ($threerecord['artistlink']): ?><?php echo $threerecord['artistlink'] ?> <?php endif ?><a href="<?php echo $art_detail2[0]['_link']; ?>" class="articleContentHome"><b><?php if ($threerecord['artists2']) echo $threerecord['artists2'];  ?></b></a></span><br/>
</li>
   <?php }?>
</ul>
</td>
</tr>
</table>
<div style="background-color: #eaeaea; height: 1px; width: 95%; margin: 5px 5px 5px 7px;"></div>
<table style="background-color:#f6f6f6; margin:0px auto" width="390">
<?php if ($albumsRecord['year']): ?><tr>
<td ><span class="cvalIndexDateBlue">Year</span></td>
<td style="padding: 0px 10px 0px 10px;"><span class="eventText"><?php $year=getyear($albumsRecord['year']); echo $year['title']; ?></span></td></tr>
<?php endif; ?>
<?php if ($albumsRecord['producer']): ?><tr>
<td width="60"><span class="cvalIndexDateBlue">Producer</span></td>
<td width="350" style="padding: 0px 10px 0px 10px;"><span class="eventText"><?php echo $albumsRecord['producer']; ?></span></td>
</tr>
<?php endif; ?>
</table>
<div style="background-color: #f6f6f6; height: 10px; width: 100%; margin: 10px 0 5px 0;"> </div>
<? include($ROOT."/include/comment.php") ?>


  </div>
   </td>
</tr>
</table>




</td>
<td width="20">&nbsp;</td>
<td width="200" valign="top">

<table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8E8E8" > 
<tr> 
 
<td>

<div class="siHeaderBlueLargest" style="padding:10px; font-size:21px">albums</div>
<?php
if(empty($otheralbumsRecords))
{
?>
<table width="180" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f6f6; margin:0px auto; margin-bottom:10px">
  <tr>
    <td>
<div class="articleContent">
No Other Albums
</div>
</td>
</tr>
</table>
<?php
}
else
{
?> 
<div align="left">

<?php 
$imgUrl = "";
if(!empty($otheralbumsRecords[0]['image'])) {
  $images = getImage($otheralbumsRecords[0]['image']);
  foreach ($images as $image) {
	  foreach($image['image'] as $img){ 
		  $imgUrl = $img['urlPath'];
		  break;
	  }
  }
}
?>

     
      <!--Image-->
      
   
  
<?php
if(empty($imgUrl))
{
 foreach($artist as $art){ ?>
<?php 
$imgUrl = "";
if(!empty($art['images'])) {
  $images = getImage($art['images']);
  foreach ($images as $image) {
	  foreach($image['image'] as $img){ 
		  $imgUrl = $img['urlPath'];
		  break;
	  }
  }
}
}
}
?>


<?php if(!empty($imgUrl)) { ?>
<img src="<?php echo $imgUrl; ?>" width="180px" style="padding: 0px 10px 10px 10px;"/>
<?php } else {?>
		  <?php 
          $imgUrl = "";
          if(!empty($artist[0]['images'])) {
              $images = getImage($artist[0]['images']);
              foreach ($images as $image) {
                  foreach($image['image'] as $img){ 
                      $imgUrl = $img['urlPath'];
                      break;
                   }
              }
          }
          ?>
          <?php if(!empty($imgUrl)) { ?>
          <img src="<?php echo $imgUrl; ?>" alt="<?php echo $otheralbumsRecords[0]['artists'] ?>" width="180px" style="padding: 0px 10px 10px 10px;" />
          <?php } else { ?>
              <div style="float: left; width: 50px; height: 20px; padding-right: 2px;">&nbsp;</div>
          <?php } ?>

<?php }?> 

</div>
<table width="180" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f6f6; margin:0px auto; margin-bottom:10px">
<?php foreach ($otheralbumsRecords as $album){ ?>
<?php @$artist = getArtist($album['artists']); 
$lst=end($otheralbumsRecords);
$e_id=$lst['num'];
?>

  <tr>
    <td>
	
	
 
<div class="articleContent">
<a class="articleContentBold" href="<?php echo $album['_link']; ?>"><span class="articleContentBold" style="font-size:12px"><?php echo $album['title']; ?></span></a><br/>
<span class="articleContentGalleryDate"><?php echo $album['artists'];  //echo date("D d M Y",strtotime($tracks['artists'])); ?></span>
</div> 

</td>
  </tr>
  <?php if($album['num']!=$e_id)
  {
  ?>
<tr>
    <td ><div style="background-color: #eaeaea; height: 1px; width: 95%; margin: 5px 5px 5px 7px;"></div></td>
  </tr>
<?php
}
?>
 <?php
 }
 
 ?>
</table>
<?php
}
?>
</td>

</tr></table>
 <div style="background-color: #f6f6f6; height: 1px; width: 100%; margin: 5px 0 5px 0;"> </div>  
  <div style=" margin: 15px 0 10px 0;">
<span class="smallprintCAPS" style="color:#35BAEC; font-weight:bold">advertisement</span>
<div style="background-color: #f6f6f6; height: 1px; width: 100%;"> </div>  

    <table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8E8E8"   >
<tr>
<td style="padding:10px" >

<?php
include('http://www.socanews.com/includeAds/music180.html');
?>
</td>
</tr>
</table>
</div>
 <div style="background-color: #F6F6F6; height: 5px; width: 100%; margin: 5px 0 5px 0;"> </div>
<? include($ROOT."/include/SocialNetworking.html") ?></td>
</tr>
</table>
        <br /></td><td width="10" valign="top">&nbsp;</td>
<td width="10" valign="top">&nbsp;</td>
<td width="300" valign="top" bgcolor="eaeaea">
<div style="background-color:  #F6F6F6; ">

<script type="text/javascript"><!--
google_ad_client = "ca-pub-8715647371994392";
/* Events Home */
google_ad_slot = "4209575793";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div style="background-color:  #F6F6F6;  height: 10px; width: 100%;"> </div>
<? include($ROOT."/include/subscribe.php") ?>                                                                     
                                      <div style="height:10px;background-color:#f6f6f6;"></div>     

<? include($ROOT."/include/ad.php") ?>
<div style="background-color:  #F6F6F6; padding-bottom:5px; padding-top:5px">
<span class="smallprintCAPS" style="color:#35BAEC; font-weight:bold">advertisement</span><br />
<? include($ROOT."/includeAds/siteWide300x100.html") ?>

</div>
<div style="background-color:  #F6F6F6; height: 10px; width: 100%;"> </div>
<table width="285" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F6F6" >
<tr>
<td bgcolor="#e8e8e8">
<div class="siHeaderBlueHome"  style="padding:10px 3px 3px 10px; background-color:#eaeaea; color:#35BAEC;  letter-spacing:1px ">Music News</div></td></tr>
<tr>
<td>
<div style="background-color: #e8e8e8; height: 5px; margin-bottom:5px; width: 100%; "> </div>


<table width="285" border="0" cellspacing="0" cellpadding="0">  <?php foreach ($musicnewsRecords as $featuredartist): ?>
  <tr>
<td width="75"><div align="right">
<?php $images = getImage($featuredartist['images']);
foreach ($images as $image) {
	foreach($image['image'] as $img){ 
	    $imgUrl = $img['urlPath'];
		break;
    }
}
?>
<?php if(!empty($imgUrl)) { ?>
<img src="<?php echo $imgUrl; ?>" width="100" style="padding:10px; float: left;" />
<?php } else {?>
<?php foreach ($featuredartist['image'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="100" alt="<?php echo $radiostations['title']; ?>" style="padding:10px; float: left;" />
<?php break; ?>
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" style="padding:10px;" /><br/>
<?php break; ?>
<?php endif ?>
<?php endforeach ?>
<?php }?> 
</div></td>
<td width="215" background="Drag to a file to choose it.">
<a class="articleContentBold" href="<?php echo $featuredartist['_link']; ?>"><?php echo $featuredartist['title']; ?></a><br/></td>
</tr>
  <tr>
    <td colspan="2" ><div style="background-color: #eaeaea; height: 1px; width: 95%; margin: 5px 5px 5px 7px;"></div></td>
  </tr>
<?php endforeach; ?>
</table>

<div style="padding: 3px 0px 10px 5px;" align="right"><a class="eventsIndexDateBlue" href="/articles/catindex.php?cat=music">More Music News</a></div></td>
</tr>
</table>





<div style="background-color:  #F6F6F6; margin-top:10px; height: 10px; width: 100%;"> </div>





</td>
</tr>
    </table></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="left" valign="top">

</td>
  <td></td>
</tr>
<tr>
  <td colspan="3"><? include($ROOT."/include/siteBottom2.html") ?></td>
  </tr>
</table>

</body>
</html>


