// The following will run as soon as the page is loaded and the DOM is ready, but images might still be loading.
jQuery.noConflict();

// Use jQuery via jQuery(...)
jQuery(document).ready(function(){

jQuery("#talManAll").click(function()	{
				var checked_status = this.checked;
				jQuery("input[@class=BAPtalentman]").each(function()
				{
					this.checked = checked_status;
				});
				return false;
			});	

jQuery.validator.addMethod("labelInField",
					function(value, element, param) {
						return value != "" && value != param;
					},
					"This value is required"
);

jQuery("#contactForm").validate({
  rules: {
	FirstName: {required: true, maxlength: 50, labelInField: 'First Name'},
	LastName: {required: true, maxlength: 50, labelInField: 'Last Name'},
	CFemail: {required: true, email:true, maxlength: 85}

  },
  messages:{
	FirstName: "Please provide your First Name.",
	LastName: "Please provide your Last Name.",
	CFemail: "Please provide your E-mail Address."
  }
});



jQuery('#mycarousel').jcarousel({
	auto: 3,
	animation: "slow",
	scroll: 1,
    wrap: 'both'
    });


jQuery('#gCourse').accordion({ 
	autoHeight: false ,
	active:false,
	collapsible:true,
	icons: {
    			header: "ui-icon-circle-arrow-e",
   				headerSelected: "ui-icon-circle-arrow-s"
			}
});

jQuery("div.rssItem> div").hide();

jQuery('div.rssItem> h3').click(function() {
	var $nextDiv = jQuery(this).next();
	var $visibleSiblings = $nextDiv.siblings('div:visible');
	if ($visibleSiblings.length ) {
	  $visibleSiblings.slideUp('fast', function() {
		$nextDiv.slideToggle('fast');
	  });
	} else {
	   $nextDiv.slideToggle('fast');
	}
  });

jQuery("a.cbox").colorbox({
			width:"830px"								
});

jQuery('#specials a[title]').qtip({ 
style: { name: 'dark', tip: true },
position: {
      corner: {
         target: 'bottomMiddle',
         tooltip: 'topMiddle'
      }
   }					
});

jQuery('#topRight[title]').qtip({ 
style: { name: 'dark', tip: true, fixed:false },
position: { target: 'mouse' }				
});

jQuery('#buyAlbum[title]').qtip({ 
style: { name: 'dark', tip: true, fixed:false },
position: { target: 'mouse' }				
});

jQuery("table tr:odd").addClass("alt");

jQuery('.rmv-dft-val').click(
	function() {
	if (this.value == this.defaultValue) {
	this.value = '';
	}
});

jQuery('.rmv-dft-val').blur(
	function() {
	if (this.value == '') {
	this.value = this.defaultValue;
	}
});




jQuery("#sfb a").hover(function() {
	jQuery('#socSum').text('Follow us on Facebook!'); // <- HERE
	},
	function() {
	jQuery('#socSum').text(''); // <- HERE
	}
);

jQuery("#stw a").hover(function() {
	jQuery('#socSum').text('Follow us on Twitter!'); // <- HERE
	},
	function() {
	jQuery('#socSum').text(''); // <- HERE
	}
);

jQuery("#srss a").hover(function() {
	jQuery('#socSum').text('Subscribe to our RSS Feed!'); // <- HERE
	},
	function() {
	jQuery('#socSum').text(''); // <- HERE
	}
);



//jQuery('ul.quickNav li:even').addClass("altRow");

jQuery("img#menu_head").click(function () {
	jQuery("ul.quickNav").slideToggle();
	jQuery("ul.quickNav2").slideUp();
});

jQuery("ul.quickNav a").click(function () {
	jQuery("ul.quickNav").slideToggle();
	jQuery("ul.quickNav2").slideUp();
});

jQuery("img#menu_head2").click(function () {
	jQuery("ul.quickNav2").slideToggle();
	jQuery("ul.quickNav").slideUp();
});

jQuery("ul.quickNav2 a").click(function () {
	jQuery("ul.quickNav2").slideToggle();
	jQuery("ul.quickNav").slideUp();
});

jQuery('#newsHolder').innerfade({ animationtype: 'fade', speed: 1000, timeout: 7000, type: 'sequence', containerheight: '247px' }); 

jQuery('ul.rkf').innerfade({ animationtype: 'slide', speed: 200, timeout: 7000, type: 'sequence', containerheight: '80px' }); 

jQuery('ul#ocList').innerfade({ animationtype: 'fade', speed: 300, timeout: 3000, type: 'random', containerheight: '85px' }); 

});
