$(document).ready(function() {
//CLEAR FIELDS
$("input#formemail").focus(function () {
if ($(this).val() == "Email Address") {
$(this).val("");
}
});

$("input#bmonth").focus(function () {
if ($(this).val() == "mm") {
$(this).val("");
}
});

$("input#bday").focus(function () {
if ($(this).val() == "dd") {
$(this).val("");
}
});

$("input#byear").focus(function () {
if ($(this).val() == "yyyy") {
$(this).val("");
}
});
// MENU IMAGE ROLLOVERS //// Preload all rollovers$("#menu a.nav img").each(function() {// Set the original srcvar rollsrc = $(this).attr("src");	if (!rollsrc.match(/_on/)) {	rollON = rollsrc.replace(/.jpg$/ig,"_on.jpg");	$("<img>").attr("src", rollON);	}});		// Navigation rollovers$("#menu a.nav").mouseover(function(){imgsrc = $(this).children("img").attr("src");var matches = imgsrc.match(/_on/);	if (!matches) {	var imgsrcON = imgsrc.replace(/.jpg$/ig,"_on.jpg"); // strip off extension	$(this).children("img").attr("src", imgsrcON);	}});$("#menu a.nav").mouseout(function(){$(this).children("img").attr("src", imgsrc);});	// HOVER-FADE FUNCTIONS$("a.fade img").hover(function() {// animate opacity to full$(this).stop().animate({ opacity: 0.75 }, 200); },// on mouse outfunction () {// animate opacity to nill$(this).stop().animate({ opacity: 1 }, 200);});


//SCROLLING
$(".scroll").click(function(event){
//prevent the default action for the click event
event.preventDefault();
//get the full url - like mysitecom/index.htm#home
var full_url = this.href;
//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
var parts = full_url.split("#");
var trgt = parts[1];
//get the top offset of the target anchor
var target_offset = $("#"+trgt).offset();
var target_top = target_offset.top;
//goto that anchor by setting the body scroll top to anchor top
$('html, body').animate({scrollTop:target_top}, 500);
});


//OPEN NEW WINDOW
$('#playerwin').click(function() {
    window.open(this.href,'Listen To Shaun Johnson','height=209,width=362,toolbar=no,scrollbars=yes');
    return false;
});
});//END DOM
