$(function() {
	
	// PNG-fix
	$('body').supersleight();
	
	// clickable areas
	$('.firstlink').click(function() {
		$anchor = $(this).find('a').eq(0);
		if($anchor.length > 0) {
			document.location.href = $anchor.get(0).href;
		}
	})
	
	// logo link
	$('#logo').click(function() {
		document.location.href=baseUrl;
	});
	
	// required fields
	$('.frm-required').after('<span class="asterisk">*</span>');
	$('td.required').append('<span class="asterisk">*</span>');
	
	// prettyphoto:
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		opacity: 0.80, /* Value between 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
		hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		wmode: 'opaque', /* Set the flash wmode attribute */
		autoplay: true, /* Automatically start videos: True/False */
		modal: false
	});

	
});
