// Apply the Highslide settings
hs.graphicsDir = pluginurl+'/padrao/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.outlineWhileAnimating = true;
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.allowSizeReduction = false;
hs.align = 'center';
hs.dimmingOpacity = 0.6;

// always use this with flash, else the movie will be stopped on close:
hs.preserveContent = false;
hs.wrapperClassName = 'draggable-header no-footer';

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow
({
	slideshowGroup: 'grupo',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions:
	{
		opacity: .6,
		position: 'top center',
		hideOnMouseOut: true
	}
});

jQuery(document).ready(function ($)
{
	$('a[rel=external]').attr('target','_blank');
	$('a[rel=nofollow]').attr('target','_blank');
	
	$('a.highslide').each (function ()
	{
		this.onclick = function ()
		{
			return hs.expand
			(
				this,
				{
					slideshowGroup: 'grupo'
				}
			);
		};
	});
});