$(document).ready(function() {
	//default fancybox to apply to any elements with the class "fbox"
	$("a.fbox").fancybox({
		'overlayOpacity'	:	'.5',
		'speedIn'	:	'500',
		'transitionIn'	:	'fade'	
	});
	
	$(document).ready(function() {
        $(".cPanel").collapsiblePanel();
    });
	
	$('ul.jd_menu').jdMenu();
	
	$('.panel').addClass('ui-corner-all ui-widget');
	$('.panelTitle').addClass('ui-widget-header ui-corner-top');
	//$('.panelBody').addClass('ui-widget-content');
	
	/*
	$("#myGallery").EmbedPicasaGallery('creativeDanceCenter',{
		matcher:    /./,  // string or regexp matching album title
		size:      '72',  // thumb size (32,48,64,72,144,160)) 
		msg_loading_list :  'Loading Images',
		msg_back :   'Back'
	});
	*/
	
	$('.l1').addClass('ui-state-default ui-corner-all ');
	
	$('.l1 a').append('<span class="button-icon-right ui-icon ui-icon-circle-triangle-e"><span>');
	
	$('.l1').hover(
		function(){ 
			$(this).addClass("ui-state-hover"); 
		},
		function(){ 
			$(this).removeClass("ui-state-hover"); 
		}
	);
	
	//shuffle function -Shuffle elements using: $(selector).shuffle() or $.shuffle(selector)
	(function(d){d.fn.shuffle=function(c){c=[];return this.each(function(){c.push(d(this).clone(true))}).each(function(a,b){d(b).replaceWith(c[a=Math.floor(Math.random()*c.length)]);c.splice(a,1)})};d.shuffle=function(a){return d(a).shuffle()}})(jQuery);
	
	$('#quotes li').shuffle();
	
	$('#quotes').jshowoff({
		speed:10000,
		links:false,
		controls:false,
		changeSpeed:1200,
	});
	
	//$('#myArticle').jTruncate({length:300});
	
	$('.datePicker').datepicker();
});
