// initialise Superfish 
    $(document).ready(function(){ 
        $("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    27,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
						 
    }); 

//SMART COLUMNS
$(document).ready(function(){
function smartColumns() {
		
		$("ul.column").css({ 'width' : "100%"});
		
		var colWrap = $("ul.column").width();
		var colNum = Math.floor(colWrap / 140);
		var colFixed = Math.floor(colWrap / colNum);
			
		$("ul.column").css({ 'width' : colWrap});
		$("ul.column li").css({ 'width' : colFixed});
		
	}	
	
	smartColumns();	

	$(window).resize(function () {
		smartColumns();
		
	}); 		
});

// TAB PANELS2
$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tab li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tab li").click(function() {
		$("ul.tab li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});

  // ACCORDION PANELS
$(document).ready(function(){
	
	$(".toggle_container").hide();

	$("h2.trigger").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow,");
	});

});

  // SCROLLABLE
jQuery(document).ready(function() {
    jQuery('.mycarousel').jcarousel({
        // Configuration goes here
    });
});

jQuery(document).ready(function() {
    jQuery('.mycarousel-side').jcarousel({
        // Configuration goes here
		visible: 1,
		scroll: 1,
		auto: 4,
		wrap: "last"
    });
});


<!--Home page content slider-->
$(document).ready(function(){
						   
		$("#featured > ul").tabs({fx:
		{opacity: "toggle"}}).tabs("rotate", 7000, true);
		
		$("ul.menu_body li:even").addClass("alt");
    $('img.menu_head').click(function () {
	$('ul.menu_body').slideToggle('medium');
    });
	
//Art page
	 
	$(window).bind("load", function() { 
    $("div#pedro").slideView() 
	$("div#phillip").slideView() 
	$("div#brigitte").slideView() 
	$("div#CarolinevanDijk").slideView() 
	$("div#TEV").slideView() 
	$("div#GrahamBrown").slideView()
	$("div#ChadDanyluck").slideView() 
	$("div#UbiracyNobrega").slideView() 
	$("div#BeverleyBudgen").slideView()
	$("div#MarianneZaleski").slideView()
}); 
	});

/* http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12 */
$(document).ready(function(){
  $('a.back-top').click(function() {
	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
	&& location.hostname == this.hostname) {
	  var $target = $(this.hash);
	  $target = $target.length && $target
	  || $('[name=' + this.hash.slice(1) +']');
	  if ($target.length) {
		var targetOffset = $target.offset().top;
		$('html,body')
		.animate({scrollTop: targetOffset}, 700);
	   return false;
	  }
	}
  });
});

//Colorbox
  $(document).ready(function(){
		//For gallery images
		$("a[rel='group']").colorbox();
		//For singleimages
		$(".single").colorbox();
		//For customer form
		$(".quick-tour").colorbox({width:"620px", height:"461px", iframe:true});
		
				
});
  
  // TAB PANELS
$(function() {
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$("ul.tabs").tab("div.panes > div", {effect: 'fade', rotate: true }).slideshow({autoplay: false, interval: 6000});
	
});





// MUSIC PAGE
var player = null;

function playerReady(thePlayer) {

	player = document.getElementById(thePlayer.id);

}
function createPlayer(thePlayer, theFile) {

	var flashvars = {

		file:theFile,

		autostart:"true", 

		playlist:"bottom",

		playlistsize:"510",

		shuffle:"true",

		repeat:"always",

		lightcolor:           "CCFF00",

		backcolor:				"111111",

		frontcolor:				"cccccc",

		skin:"http://www.media.vishnumaya.ca/freemeditation/music-files/skins/stylish.swf"

	}
var params = {

		allowfullscreen:"true", 
		wmode:"transparent", 

		allowscriptaccess:"always"

	}

	var attributes = {

		id:thePlayer,  

		name:thePlayer

	}

	swfobject.embedSWF("http://www.media.vishnumaya.ca/freemeditation/music-files/player.swf", "placeholder1", "450", "540", "9.0.115", false, flashvars, params, attributes);

}

//Latest posts on the home page
$(document).ready(function() {
/* control visible stories */
$('ul.more_stories').each(function(index) {
$(this).children('li').slice(5).hide();
});

$('.minus').click(function() {
$(this).parent().next('ul').children('li:visible:last').hide();
});

$('.plus').click(function() {
$(this).parent().next('ul').children('li:hidden:first').show();
});
});


/* delicious */
  $(function() {
    $.each($('span.md5hash'), function () {
      var elem = $(this);
      $.ajax({ type:      'GET',
               dataType:  'jsonp',
               url:       'http://feeds.delicious.com/v2/json/urlinfo/'+$(this).html(),
               success:   function(data){
                            if (data.length > 0) {
                              elem.next().prepend(data[0].total_posts + ' ');
                            }
                          }
            });
    });

  })
  
  /***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"


