Old Now Playing Code

<center><h1>Donate Below!</h1><a href="https://giveto.usc.edu/?fundid=9205014667,9205014667,9205014667,9205014667&amp;appealcode=WSTUA0001&amp;buttongen=1&amp;hidetop=1" title="Donate" target="_blank">
<img src="http://i.imgur.com/sVpHWDE.png" />
  </a></center>
<center><a href="http://twitter.com/#!/KXSC" target="_blank"><img src="http://img707.imageshack.us/img707/1558/twitterdi.png" onmouseover="this.src='http://imageshack.us/a/img163/8776/twitterbt.gif'" onmouseout="this.src='http://img707.imageshack.us/img707/1558/twitterdi.png'"></a>

<a href="http://kxsc.tumblr.com" target="_blank"><img src="http://img543.imageshack.us/img543/2374/tumblrfl.png" onmouseover="this.src='http://imageshack.us/a/img266/282/tumblr2u.gif'" onmouseout="this.src='http://img543.imageshack.us/img543/2374/tumblrfl.png'"></a>

<a href="http://www.facebook.com/KXSCRadio" target="_blank"><img src="http://imageshack.us/a/img560/3407/28671143.png" onmouseover="this.src='http://imageshack.us/a/img692/7562/fb2b.gif'" onmouseout="this.src='http://imageshack.us/a/img560/3407/28671143.png'"></a>

<a href="http://www.flickr.com/photos/adealyvidal" target="_blank"><img src="http://imageshack.us/a/img571/3956/flickre.png" onmouseover="this.src='http://imageshack.us/a/img855/4914/iconn2.gif'" onmouseout="this.src='http://imageshack.us/a/img571/3956/flickre.png'"></a>

<a href="http://www.youtube.com/user/KXSCradio" target="_blank"><img src="http://imageshack.us/a/img443/4868/youtubetm.png" onmouseover="this.src='http://imageshack.us/a/img850/730/youtube5z.gif'" onmouseout="this.src='http://imageshack.us/a/img443/4868/youtubetm.png'"></a>

  <a href="http://instagram.com/kxscradio" target="_blank"><img src="http://imageshack.us/a/img43/6066/screenshot20130324at110.png" onmouseover="this.src='http://imageshack.us/a/img202/474/screenshot20130324at110.gif'" onmouseout="this.src='http://imageshack.us/a/img43/6066/screenshot20130324at110.png'"></a></center>

 

<center><img src="https://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/5165df3de4b060cd919357e2/1365630781862/listen5.png?format=300w"><br><br>

<a onclick="openCenteredWindow('/listen/','Listen','scrollbars=no,width=660,height=220'); return false;" href="/listen/">
<img src="http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/516499a2e4b018661c5ce2a8/1365547426971/ppp.png?format=100w" onmouseover="this.src='http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/51649b2be4b0ce43232fcfbd/1365547820254/ppp3.png?format=100w'" onmouseout="this.src='http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/516499a2e4b018661c5ce2a8/1365547426971/ppp.png?format=100w'">
</a>

  <a href="http://kxsc.squarespace.com/storage/kxsc.m3u"><img src="http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/51649b48e4b0ec2b02b8535a/1365547848364/it3.png?format=100w" onmouseover="this.src='http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/51649a02e4b018661c5ce93d/1365547523164/it.png?format=100w'" onmouseout="this.src='http://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/51649b48e4b0ec2b02b8535a/1365547848364/it3.png?format=100w'"></a><br><br>

<a href="/newslettersignup/"><img src="https://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/5163d908e4b05d2e229a48aa/1365498121038/NEWS.png?format=300w" onmouseover="this.src='https://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/5163daf6e4b0c56f11614d83/1365498614607/NEWS3.png?format=300w'" onmouseout="this.src='https://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/5163d908e4b05d2e229a48aa/1365498121038/NEWS.png?format=300w'"></a><br><br></center>
<br>
<center><img src="https://static.squarespace.com/static/50527c0c24ac3b03d5345ee2/t/5165defbe4b0acbb38a0accb/1365630715984/current.png?format=300w">    <br><div id="sidebarSection" style="border:none; width:262px; padding-top:5px;">
            <div id="showOnAir" style="padding-top:10px; overflow:hidden;"><script type="text/javascript"
              src="http://kxsc.squarespace.com/storage/input-files/24hourprogrammingfin.js"></script>
                
              <div id="showPic">

</div>
              <div id="showInfo" style="width:185px;">

</div>
            </div>


  <div style="position:relative;padding-left:10px; padding-right:10px; padding-bottom:-10px; text-align:right; margin-top:-45px; margin-bottom:-22px;">
    <h2><font size="1">CURRENT SONG ?</font></h2></div>
<div style="padding-top:7px;text-align:center;">
                <iframe name="now_playing" title="now_playing" src="http://marci267.getmarci.com/?c=custom_skin_2" width="330" height="auto" frameborder="0" scrolling="auto" overflow="hidden" allowtransparency="true"></iframe>
            </div>
</div>

 

<script type="text/javascript">
//This script refreshes the show currently on the air thing
//it goes off every 5 minutes and fills in the html of the divs above (showInfo and showPic)

function refreshShowOnAir(){
var currentTime = new Date();
var day = currentTime.getDay();
var minutes = currentTime.getHours() * 60;
var GMTOffset = currentTime.getTimezoneOffset();
var GMT = minutes + GMTOffset;
var PST = GMT - 420;
while(PST < 0){
    PST += 1440;
    day--;
}
var PSTHours = Math.floor(PST/60);

     document.getElementById("showPic").innerHTML="<img src=\"http://kxsc.squarespace.com/storage/images/showpics/" + showArray[PSTHours][day].showPic + "\" alt=\"\" />";

     document.getElementById("showInfo").innerHTML="<div id=\"showName\">" + showArray[PSTHours][day].showName + "</div><div id=\"showDJ\">" + showArray[PSTHours][day].showDJ + "</div>";

     setTimeout("refreshShowOnAir()",300000);
}

refreshShowOnAir();
</script>