    $(function() {
        $("div#controller").jFlow({
            slides: "#slides",
            width: "300px",
            height: "300px"
        });
    });





$(document).ready(function(){

$('#art .item').show();

$('#filter dd a').removeClass('here');
$('#filter #all').addClass('here');




$('#filter dd a').click(function() {
	$('#filter dd a').removeClass('here');
	$(this).addClass('here');
	$('#art .item').hide();
	var filter = $(this).attr("id");
	$('#art .'+ filter).show('slow');
	return false;		
});	


$('#filter dd a#all').click(function() {
	$('#art .item').show('slow');
});



$('#mainContent .artist .text #freeform').hide();

$('#mainContent .artist .text a.showForm').click(function() {
	$('#mainContent .artist .text #freeform').slideToggle();
	return false;		
});	


});




jQuery(document).ready(function() {

	jQuery.fn.cleardefault = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};
jQuery(".clearit input, .clearit textarea").cleardefault();

});


$(document).ready(function(){
	if (document.location.href.indexOf('showart=originals') > 0){
	$('#art .item').hide();
	$('#art .originals').show('slow');
	$('.filter a').removeClass('here');
	$('.filter a#originals').addClass('here');
}
}); 

$(document).ready(function(){
	if (document.location.href.indexOf('showart=limited-prints') > 0){
	$('#art .item').hide();
	$('#art .limited-prints').show('slow');
	$('.filter a').removeClass('here');
	$('.filter a#limited-prints').addClass('here');
}
}); 

$(document).ready(function(){
	if (document.location.href.indexOf('showart=books') > 0){
	$('#art .item').hide();
	$('#art .books').show('slow');
	$('.filter a').removeClass('here');
	$('.filter a#books').addClass('here');
}
}); 

$(document).ready(function(){
	if (document.location.href.indexOf('showart=jewellery') > 0){
	$('#art .item').hide();
	$('#art .jewellery').show('slow');
	$('.filter a').removeClass('here');
	$('.filter a#jewellery').addClass('here');
}
}); 

$(document).ready(function(){
	if (document.location.href.indexOf('showart=sculptures') > 0){
	$('#art .item').hide();
	$('#art .sculptures').show('slow');
	$('.filter a').removeClass('here');
	$('.filter a#sculptures').addClass('here');
}
});



$(document).ready(function() {

var showText="Read more...";
var hideText="";

$("#mainContent .text blockquote").prev().append(' <a href="#" class="moreLink">'+showText+'</a>');

$('#mainContent .text blockquote').hide();

$('a.moreLink').click(function() {

if ($(this).text()==showText) {$(this).text(hideText);}
else {$(this).text(showText);}

$(this).parent().next('#mainContent .text blockquote').slideToggle();

// return false so any link destination is not followed
return false;

});
});

