jQuery(document).ready(function($) {
var artist = "Rachel Sokal";
var artist_url = "rachel-sokal";
Product.search(artist, {}, function(products) {
J.each(products, function(i, product) {
var price = Format.money(product.price);
var priceFormatted = price.substring(0, price.length - 3);
J('#products').append('<div id="product-'+ (i+1) +'" class="product"><a href="' + product.url + '" class="product-img-holder"><img class="product-img" src="' + Product.findImage(product.images[0].url, 'medium') + '" /></a><span class="stilt"></span><div class="product-info"><p class="product-title"><span><a href="' + product.url + '">' + product.name + '</a></p><p class="product-artist"><a href="http://www.antlersgallery.com/artist/'+ artist_url +'/">'+ artist +'</a></p><p class="product-price">£' + priceFormatted + '</p></div>'); });
});
// Change Artist Dropdown to Current
document.getElementById(artist_url).selected = true;
});