/* 
*	JS Template for jquery
*	Copyright Chris J. Lee 2007
*/

$(document).ready(function(){
    $('#song-scroller').flash(
        { src: 'songscrollercma5.swf',
	   	width: 330 ,
	   	height: 60,
		wmode: 'transparent'}
	   
    );   
		    
	/* $("#feeds").load("feeds.php", {limit: 25}, function(){   alert("The last 25 entries in the feed have been loaded"); */
	    
});
	
var _v = 0;
var _v2 = 1;
/*
function ajax_update()
{ 
	var wrapperId 	=	'#recent-tracks-update';
	var postFile	=	'../last_tracks.txt';
	_v++;
	_v2++;
	$.post(postFile, { v2: _v2 , v: _v}, function(data){
		$(wrapperId).html(data);
	});
	setInterval('ajax_update()', 30000);
}*/
function ajax_update() {
  $.post("http://www.classicalmusicamerica.com/last_tracks.txt", { v2: _v2 , v: _v}, function(data) {
    $("#recent-tracks-update").html(data);
  	window.setTimeout("ajax_update();", 10000);
  });
}
