<!--
// general jquery applications for this site
$(document).ready(function() {
	$('.tabular > p:even').addClass('box0');
	$('.tabular > p:odd').addClass('box1');
	$('.tabular > li:even').addClass('box0');
	$('.tabular > li:odd').addClass('box1');
	$('.tabular > div:even').addClass('box0');
	$('.tabular > div:odd').addClass('box1');
	$('a[href*=play.php]:not(:has(img))').addClass('songlink');
	$('.tabular .infotag').toggleClass('hidden');

});

$(document).ready(function(){
  $(window).scroll(function(){
    if  ($(window).scrollTop() > $(".smartBannerIdentifier").offset({ scroll: false }).top){
      $(".simplepanel").css("position", "fixed");
      $(".simplepanel").css("top", "0");
    }
   if  ($(window).scrollTop() <= $(".smartBannerIdentifier").offset({ scroll: false }).top){
      $(".simplepanel").css("position", "relative");
      $(".simplepanel").css("top", $(".smartBannerIdentifier").offset);
    }
   }); 
});

// tabcontent scripting ...
$(document).ready(function(){

	// set the default settings for tabcontents
	$(".tabcontent").hide();
	$("#tab1").show();
	// When a link is clicked
	$("#profiletabs a").click(function () {	
		// switch all tabs off
		$(".selected").removeClass("selected");
		// switch this tab on
		$(this).addClass("selected");
		// hide all elements with the class 'tabcontent'
		$(".tabcontent").hide();
		// Now figure out what the 'rel' attribute value is and find the element with that id.  Then show that.
		var content_show = $(this).attr("rel");
		$("#"+content_show).show(200);
	
	});

});

// function for photo modal window
(function($) {
  $.fn.easyOverlay = function(){	
    $(this).click(function(e){
      if($("#easyOverlay")) { $("#easyOverlay").remove(); }
      $("body").append("<p id='easyOverlay'><a href='javascript:void(0)' class='closeit'>X</a></p>");
      $("<img src='"+ this.rel +"' alt='' />").appendTo('#easyOverlay').load(function() {
        var wide = ($(window).width() / 2) - ($(this).width() / 2);
        var high = ($(window).height() / 2) - ($(this).height() / 2);			
	var scrollTop = $(window).scrollTop();
        $("#easyOverlay").css({
          top: high + scrollTop + "px",
          left: wide + "px",
		  display: 'none',
          visibility: "visible"
        }).fadeIn();
      });
    });
    $("a.closeit").live("click", function(){
      $("#easyOverlay").fadeOut();
    });
  };
})(jQuery)
// calling script 4 modal window
$(document).ready(function() {
  $(".myphoto").easyOverlay();
});

// social stats
$(document).ready(function(){

	// Using the load AJAX method to fetch the subscriber markup
	// from subscriber_count.php:
	
	$('#stats_main').load('http://afrijukebox.com/lib/subscriber_count.php',function(){
													
		// Once loaded, convert the title attributes to tooltips
		// with the tipTip jQuery plugin:
		
		$('.subscriberStats div').tipTip({defaultPosition:'top'});
	})
	
});

-->
