$(document).ready(function() {
    /*	Initialise prettyPhoto images
    ------------------------------------------------------------- */
    $("a[rel^='prettyPhoto']").prettyPhoto({
        animationSpeed: 'normal', /* fast/slow/normal */
        padding: 30, /* padding for each side of the picture */
        opacity: 0.6, /* Value betwee 0 and 1 */
        showTitle: true, /* true/false */
        allowresize: true, /* true/false */
        counter_separator_label: ' of ', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square */
        callback: function() { }
    });

	if ($('a#additional-images-anchor').length > 0) { 
		$("#MainImage").parent().click(function()
		{
			/* click the hidden sidebar thumb */
			$('#top-sidebar a.pretty-photo:first').click();
			return false;

		}).append('<img class="expand-image" src="/_client/images/global/expand.png" />');
		$("#about-sidebar a[rel^='prettyPhoto']").append('<img class="expand-image" src="/_client/images/global/expand.png" />');
		$("a[rel^='prettyPhoto']").addClass('pretty-photo');
	}

    /*	Portfolio hover classes
    ------------------------------------------------------------- */
    $(".portfolio-list li").hover(
		function() {
		    $(this).addClass('hover');
		}, function() {
		    $(this).removeClass('hover');
		});
});
