// THIS FILE CONTAINS ALL THE SETTINGS FOR THE JQUERY PLUGINS USED
jQuery(document).ready(function () {

//Form Sample text
	jQuery('#optIn input').example(function() {
		jQuery(this).siblings('label').addClass('offLeft'); /* HIDE LABELS ONCE JS LOADED */
		return jQuery(this).siblings('label').text();
	});
	jQuery('.contactForm input, .contactForm textarea').example(function() {
		jQuery(this).siblings('label').addClass('offLeft'); /* HIDE LABELS ONCE JS LOADED */
		return jQuery(this).siblings('label').text();
	});
//TABS JQUERY TOOLS
	jQuery("#artistTabs").tabs(".artistCol3", {
		effect: 'fade',
        fadeInSpeed: "fast"
	}).history();	
//COLORBOX
jQuery('.zoom').colorbox({
		overlayClose: true,
		width: '100%'
	});	

// CYCLE
	jQuery('#slides').after('<div id="controllers">').cycle({ 
	    fx:     'fade', 
	    speed: 500,
	    timeout: 7000, 
	    pager:  '#controllers' 
	});

// ACCORDION
	jQuery("#articleList > ul").accordion({
		collapsible: true,
		autoHeight: false,
		active: "#articleList > ul > li.active a"
});
 
// MAKECOLUMNLISTS
/*	jQuery('.artistList ul').makeacolumnlists({
		cols:5,
		colWidth:170,
		equalHeight:false,
		startN:1
	});
*/	
// ASYNCHRONOUS GRAB PLAYLIST
	jQuery('#globalPlaylist').load('http://www.miyazawa.com/playlist/');


//TOGGLE MENU
    jQuery('#chiclets .emailChiclet').click(function () {
    	jQuery('#chiclets .emailChiclet').not(this).siblings('#optIn').fadeToggle('fast');
		jQuery(this).siblings('#optIn').fadeToggle('fast');
    });
// VALIDATE
/*	jQuery("#generalForm").validate({
		rules: {
			Field1: "required",

			Field9: "required",
			Field11: "required",
			Field13: { required: true, email: true },

		},
		messages: {
			Field1: "Required",
			Field9: "Required",
			Field11: "Required",
			Field13: {required: "Please enter an <b>email address</b>", email: "Please enter a <b>valid</b> email address"}
					}
	});
*/
//CUSTOM
	jQuery('#langList li.current a').click(function () {
		return false;
	});
	jQuery('#streampadBottomBar a:first-child').css('display','none').addClass('displayNone');


    jQuery('a.trigger').click(function () {
		jQuery('#dropdown ul').slideToggle('fast');
		jQuery(this).toggleClass('active');
    });

	jQuery('#bucketStyle3 .cushion:last').css('border-right','none');
	jQuery('.aBucket:last').addClass('last');
});//end document ready
