$(function(){
	$('#menu a').pir({
		color : '969696',
		hoverColor : 'ffffff',
		font : '1'
	});
	
	$('#fp-art .title').pir({
		color : 'cbd342',
		font : '1'
	});
	$('#fp-artist .title').pir({
		color : 'c86c5c',
		font : '1'
	});
	
	$('#fp .name, #gallery .item .name, #shopping-cart .item .name, .picbox .name').pir({
		color : 'fff',
		//hoverColor : '969696',
		font : '1',
		wrap : true
	});
	
	$('#shopping-cart-footer a, #shopping-cart-footer button').pir({
		color : 'fff',
		hoverColor : '969696',
		font : '1'
	});
	
	$('#fp-links a').pir({
		color : '969696',
		hoverColor : 'fff',
		font : '2'
	});
	
	$('#gallery-name').pir({
		color : 'fff',
		font : '3'
	});
	$('#gallery-author a').pir({
		color : 'fff',
		hoverColor : '969696',
		font : '4'
	});
	
	
	$('#gallery-buy a').pir({
		color : 'fff',
		hoverColor : '969696',
		font : '1'
	});
	/*$('#gallery-buy a').pir({
		color : 'c8ff00',
		hoverColor : 'fff',
		font : '2'
	});*/
	
	$('#shopping-cart-title').pir({
		color: 'e7e5e6',
		font : '5'
	});
	
	
	$('h1').pir({
		color : 'fff',
		font : '3'
	});
	
	$('.biglinks a').pir({
		color : '969696',
		hoverColor : 'fff',
		font : '6'
	});
	$('#middlecol .title').pir({
		color : 'fff',
		font : '6'
	});
	
	$('.smalllinks a').pir({
		color : '969696',
		hoverColor : 'fff',
		font : '4'
	});
	
	$('input[type=submit],input[type=button]').hover(function(){
		$(this).addClass('hover');
	},function(){
		$(this).removeClass('hover');
	}).css('cursor', 'pointer');
	
	$('input[alt], textarea.alt').each(function(){
		var that = $(this);
		var alt = that.attr('alt');
		if(!alt) {
			alt = that.val();
		}
		that.val(alt);
		that.focus(function(){
			if(!that.data('foc')) {
				that.val('', that.data('foc', true));
			}
		}).blur(function(){
			if(that.val() == '') {
				that.val(alt).removeData('foc');
			}
		});
	});
	
	$('form.ajaxform.signup').ajaxForm(function(){
		$('form.ajaxform.signup').html('<p><br /><br /><br />Thank you for signing up.</p>');
	});
	
	$('form.ajaxform.contact').ajaxForm(function(){
		$('form.ajaxform.contact').prev().text('Thank you for your message!').end().remove();
	});
	
	
	/* Custom scrollbars */
	setTimeout(function(){
		$('.scroller').css({
			height: '100%',
			position: 'relative',
			overflow: 'hidden'
		}).jScrollPane({
			scrollbarWidth: 10
		});
	}, 100);
	
});