$(document).ready( function(){ 
$("div#content").load("pages/home.php");



$("div#cycle").cycle({ 
fx: "fade", 
speed: 12000, 
timeout: 11000,
random: true
});
$("a.news").click(function(){
$("div#content").load("pages/news.php");
});
$("a.bio").click(function(){
$("div#content").load("pages/bio.php");
});
$("a.credits").click(function(){
$("div#content").load("pages/credits.php");
});
$("a.photos").click(function(){
$("div#content").load("pages/photos.php");
});
$("a.home").click(function(){
$("div#content").load("pages/home.php");
});
$("a.equipment").click(function(){
$("div#content").load("pages/equipment.php");
});
$("a.tourDates").click(function(){
$("div#content").load("pages/tourDates.php");
});
$("a.studio").click(function(){
$("div#content").load("pages/studio.php");
});
$("a.contact").click(function(){
$("div#content").load("pages/contact.php");
});

$("a.player1").click(function(){
$("p#songInfo").hide();
$("p#songInfo").fadeIn("slow");
});

////////MOUSE EVENTS
    $("img.news").mouseover(function(){
      $(this).attr("src","images/menu/news02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/news01.png");
    });
    $("img.bio").mouseover(function(){
      $(this).attr("src","images/menu/bio02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/bio01.png");
    });
    $("img.photos").mouseover(function(){
      $(this).attr("src","images/menu/photos02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/photos01.png");
    });
    $("img.credits").mouseover(function(){
      $(this).attr("src","images/menu/credits02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/credits01.png");
    });
    $("img.home").mouseover(function(){
      $(this).attr("src","images/menu/home2.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/home1.png");
    });
    $("img.equipment").mouseover(function(){
      $(this).attr("src","images/menu/equipment02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/equipment01.png");
    });
    $("img.tourDates").mouseover(function(){
      $(this).attr("src","images/menu/tourDates02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/tourDates01.png");
    });
    $("img.studio").mouseover(function(){
      $(this).attr("src","images/menu/studio02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/studio01.png");
    });
    $("img.contact").mouseover(function(){
      $(this).attr("src","images/menu/contact02.png");
    }).mouseout(function(){
      $(this).attr("src","images/menu/contact01.png");
    });

});

function createPlayer(file, text) {
document.getElementById('songInfo').innerHTML = 'Now Playing: '+text;
s1.addVariable("file",'music/'+file);
s1.addVariable("autostart","true");
s1.write('player1');
}
