/* 
	All Source Code Copyright 2010, Vrasa
	http://vrasa.com/
	
	If you like what you see, and want to use
	some of this code please email us here: 
	hello [at] vrasa.com and we can discuss 
	pricing and availability.

	Date: Sat August 14 20:19:07 2010 -0600
*/

$(document).ready(function() {

	$.fn.delay = function(time, callback){
    	jQuery.fx.step.delay = function(){};
    	return this.animate({delay:1}, time, callback);
	}
	
	$('#tour').load('admin/index.php/showdates', function(){
		$('#tour').jScrollPane({
  		scrollbarWidth:5, 
  		scrollbarMargin:0,
  		animateTo:true, 
  	});
	
	$('.moreinfo').hide();
	$('.moreinfoa').click(function() {
		$(this).parent().next('.moreinfo').slideDown(500);
		return false;
		});
	});

	//$('.facebook').removeAttr('title');
	$('#twittertickertwo').css("top","999999px");
	$('.menu_left').css("background-image","url('images/menu_left_over.png')");
	
	  	  
  																		// toggles/remove one
	$('.menu_left').click(function() {
		$('#twitterticker').delay(400).fadeIn("def");
		$('#twittertickertwo').fadeOut("def");
		$('.menu_left').css("background-image","url('images/menu_left_over.png')");
		$('.menu_right').css("background-image","url('images/menu_right.png')");
		return false;
  	});

 																		// toggles/remove two
	$('.menu_right').click(function() {
		$('#twitterticker').fadeOut("def");
		$('#twittertickertwo').delay(400, function(){
			$(this).css("top","4px");
    		$(this).fadeIn("def");
    	});
		$('.menu_right').css("background-image","url('images/menu_right_over.png')");
		$('.menu_left').css("background-image","url('images/menu_left.png')");
		return false;
  	});
  	
  																		// scroll things
  	$('#scroll').jScrollPane({
  		scrollbarWidth:10,
  		scrollbarMargin:0,
  		animateTo:true, 
  		animateInterval:30, 
  		animateStep:5
  	});
  	
  																		//tooltips
	$('#header').tipsy();
	$('.facebook').tipsy();
	$('.twitter').tipsy();
	$('.myspace').tipsy();
	$('.youtube').tipsy();
	$('.store').tipsy();
	$('.itunes').tipsy();
	$('#player').tipsy();
	$('.menu_left').tipsy();
	$('.menu_right').tipsy();
	$('#tour').tipsy();
	$('#box_download').tipsy();
	$('#box_contact').tipsy();
	$('#box_merch').tipsy();		
  	  	  	
});

