 /* jQuery.noConflict(); */
  jQuery(document).ready(function($){
	// Place Functions Below this line



	//HTMLMarkup----------------------------------------------------------------
	//
	
	// jLable	
	$('input[type=text], input[type=password], textarea').jLabel();


	// rollover buttons
	$('button.rollover').hover(function(event)
	{
		$(this).addClass('over').css('cursor','pointer');
	}, 
	function(event)
	{
		$(this).removeClass('over').css('cursor','auto');
	});
	
	//addThis
	$('.bookmarkIt').html('<P>HUH</p>');

	// External Links
	$('a[rel=external]').click(function(){
		this.target = '_blank';
	});
	
	
	//FancyBox------------------------------------------------------------------
	//
	
	$(document).ready(function() {

	/* This is basic - uses default settings */
	
	$("a.single_image").fancybox();
	
	/* Using custom setting	s */
	
	$("a.inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	400, 
		'speedOut'		:	400, 
		'overlayShow'	:	true,
		'titlePosition' : 	'over'

	});
	
	});
	
	//Form Validation-----------------------------------------------------------
	//
	
	$('#contactForm').validate(
	{
		messages: {
			name: 'Please provide your name',
			message: 'Please provide details of your enquiry',
			email: {
				required: 'Please provide a valid email address',
				email: 'Example: name@domain.com'
			}
		}
	});

	
	//Hero Image Cycle----------------------------------------------------------
	//
	
   	$('#homePageHero, #heroImagesContainer').cycle(
		{
			fx: 'fade',
				pause: 0,
				speed: 700,
				timeout: 6000
	});
	
	

	//Slide Viewer Gallery------------------------------------------------------
	//
	
	$(window).bind("load", function() {
	$("div#artistsGallery").slideView()
	
	}); 
	
	
	//RSS Feed------------------------------------------------------------------
	//
	
	$(document).ready(function () {
  	$('#blogFeed').rssfeed('http://dekkle.blogspot.com/feeds/posts/default', {
    limit: 2});
	});

	//External Links------------------------------------------------------------
	//	
	
	$('a[href^="http:"], a[href^="https:"]').not('[href*="'+location.hostname+'"]').attr('target', '_blank');
	$('a[rel=external]').attr('target', '_blank');
	
	//Email Masking ------------------------------------------------------------
	//		
	
	$('a.mailto').each(function(i)
	{
		var etext = $(this).text();
		var address = etext.replace('__AT__', '@').replace('__DOT__', '.');

		$(this).attr('href', 'mailto:' + address);
		$(this).text(address);
	});

	
	
	
	
// Place Functions Above this line
	}
);
