	$(document).ready(function() { 	
	
		$("a.open").click(function(){
			$(this).parent().siblings("div.toggle").slideUp("slow", function () {
				$(this).siblings("span.off").removeClass("hide").addClass("show");
				$(this).siblings("span.on").removeClass("show").addClass("hide");
			});
		});	

		$("a.closed").click(function(){
			$(this).parent().siblings("div.toggle").slideDown("slow", function () {
				$(this).siblings("span.on").removeClass("hide").addClass("show");
				$(this).siblings("span.off").removeClass("show").addClass("hide");
			});
		});	

		$(".sub-select-toggle").click(function(){
			$("#artists").slideToggle("slow");
			$("#tab-close").toggle();
			$("#tab-open").toggle();
		});	
		
		$("input.input-subscribe").click(function(){
			var InputVar = $("input.input-subscribe").val();
			
			if ( InputVar == "hi@you.com") { 
				$("input.input-subscribe").val("");
			}
		});		

		$("a.group").fancybox();	
		
       var url = "http://twitter.com/status/user_timeline/klubkids.json?count=2&callback=?"; 
       $.getJSON(url, 
        function(data){ 
            $.each(data, function(i, item) { 
                $("div#twitter div.toggle").append("<div class='tweet'>"  
					  + "<p><strong>Klub Kids</strong></p>"
                      + "<p>"
                      + item.text
                      + "</p></div>"); 
            }); 
        }); 

       var url = "http://twitter.com/status/user_timeline/kidkenobi.json?count=2&callback=?"; 
       $.getJSON(url, 
        function(data){ 
            $.each(data, function(i, item) { 
                $("div#twitter div.toggle").append("<div class='tweet'>"  
					  + "<p><strong>Kid Kenobi</strong></p>"
                      + "<p>"
                      + item.text
                      + "</p></div>"); 
            }); 
        }); 

       var url = "http://twitter.com/status/user_timeline/thetwofresh.json?count=2&callback=?"; 
       $.getJSON(url, 
        function(data){ 
            $.each(data, function(i, item) { 
				if (i == 1) {
					var className = "tweet last";
				}
				else {
					var className = "tweet";
				}
				
                $("div#twitter div.toggle").append("<div class='"+className+"'>"  
					  + "<p><strong>Two Fresh</strong></p>"
                      + "<p>"
                      + i
                      + item.text
                      + "</p></div>"); 
            }); 
        });	
		
		


	});
	
	function AddLastClass() {
		$(".tweet:last").addClass("last");
	}
	
    var helvetica = {
      src: 'themes/klubkids/swf/helvetica-bold.swf'
      ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
    };

    sIFR.useStyleCheck = true;
    sIFR.activate(helvetica);
	
	sIFR.replace(helvetica, {
		selector: 'h2'
		,css: [
			'.sIFR-root { color: #00aeef; font-weight: bold; font-size: 30px; }'
		]
		,wmode: 'transparent'
	});		
	
	sIFR.replace(helvetica, {
		selector: 'h3'
		,css: [
			'.sIFR-root { color: #572f81; font-weight: bold; font-size: 20px; leading: -2; }'
			,'a { color: #572f81; text-decoration: none; }'
			,'a:link { color: #572f81; }'
			,'a:hover { color: #00aeef; text-decoration: none; }'
		]
		,wmode: 'transparent'
	});	
