var fatfree = {
	src: '/js/fatfree.swf',
	ratios: [7, 1.58, 8, 1.48, 10, 1.5, 14, 1.44, 17, 1.43, 20, 1.41, 23, 1.4, 29, 1.39, 38, 1.38, 40, 1.37, 43, 1.38, 50, 1.37, 52, 1.36, 53, 1.37, 55, 1.36, 58, 1.37, 91, 1.36, 93, 1.35, 95, 1.36, 96, 1.35, 98, 1.36, 99, 1.35, 100, 1.36, 107, 1.35, 108, 1.36, 1.35]
};
var fatfreesolid = {
	src: '/js/fatfreesolid.swf',
	ratios:[7, 1.58, 8, 1.48, 10, 1.5, 14, 1.44, 17, 1.43, 20, 1.41, 23, 1.4, 29, 1.39, 38, 1.38, 40, 1.37, 43, 1.38, 50, 1.37, 52, 1.36, 53, 1.37, 55, 1.36, 58, 1.37, 91, 1.36, 93, 1.35, 95, 1.36, 96, 1.35, 98, 1.36, 99, 1.35, 100, 1.36, 107, 1.35, 108, 1.36, 1.35]
};
sIFR.useStyleCheck = true;
sIFR.activate(fatfree, fatfreesolid);
sIFR.replace(fatfree, {
  selector: '#news b, #pageContent h1',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #CCCCCC; }',
  ]
});
sIFR.replace(fatfree, {
  selector: '#savedArtists b',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #CCCCCC; }',
  ]
});
sIFR.replace(fatfree, {
  selector: '#latestReleases b',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #CCCCCC; }',
  ]
});
/*
sIFR.replace(fatfreesolid, {
  selector: '#topNav li',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; text-transform:uppercase; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
*/
sIFR.replace(fatfreesolid, {
  selector: '#mailingList strong',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
sIFR.replace(fatfreesolid, {
  selector: '#submitADemo strong',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
sIFR.replace(fatfreesolid, {
  selector: '#podcast strong',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #FFFFFF; }',
	  '.sIFR-root a { color: #FFFFFF; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
sIFR.replace(fatfreesolid, {
  selector: '#upComingSavedEvents strong',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #615C56; }',
	  '.sIFR-root a { color: #615C56; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
sIFR.replace(fatfreesolid, {
  selector: '#upComingSavedReleases strong',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #615C56; }',
	  '.sIFR-root a { color: #615C56; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #605B55; }',
  ]
});
/*sIFR.replace(fatfreesolid, {
  selector: '.nicetable th',
  wmode: "transparent",
  css: [
	  '.sIFR-root { color: #ffffff; }',
	  '.sIFR-root a { color: #ffffff; text-decoration:none; }',
	  '.sIFR-root a:hover { color: #CCCCCC; }',
  ]
});
*/

$(function() {
    $('#playerspace').flash({ 
          src: '/js/player.swf?playlist_url=/playlist.php',
          width: 277,
          height: 135,
		  flashvars: { wmode:'transparent' }
        },
        { version: 7 }
    );
    $("#eventSlider").jCarouselLite({
        btnNext: null,
        btnPrev: null,
		visible:1,
		start:0,
		auto: 3000,
		speed: 1000,
		vertical: true
    });
    $("#newReleasesSlider").jCarouselLite({
        btnNext: null,
        btnPrev: null,
		visible:1,
		start:0,
		auto: 4000,
		speed: 1000,
		vertical: true
    });
});

function clearDefault(el) {
	if (el.defaultValue==el.value) el.value = "";
	if (el.style) el.style.cssText = "";
}

function initMenu() {
  $('#artistMenu ul').hide();
  $('#artistMenu li a').click(
    function() {
        $(this).next().slideToggle('normal');	
      }
    );
	
	
  $('.recordDetails ul').hide();
  $('.recordDetails ul:first').show();
  $('.recordDetails li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('.recordDetails ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
	
	
	
  }
$(document).ready(function() {initMenu();});




if (!($.browser.msie && $.browser.version < 7)){
	$(document).ready(function() {
		FLIR.init( { path: '/facelift/generate.php/' } );
		FLIR.init( new FLIRStyle( { mode:'progressive' } ) );
		$('#topNav ul li').each( function() { 
			FLIR.replace(this , new FLIRStyle({ cFont:'fatfreesolid' })); 
		});
	});
} 
		
		
