/** Configurations off hightslide **/

hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.dimmingOpacity = 0.8;
hs.outlineType = 'rounded-white';
hs.captionEval = 'this.thumb.alt';
hs.marginBottom = 105 // make room for the thumbstrip and the controls
hs.numberPosition = 'caption';


// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	overlayOptions: {
		className: 'text-controls',
		position: 'bottom center',
		relativeTo: 'viewport',
		offsetY: -60
	},
	thumbstrip: {
		position: 'bottom center',
		mode: 'horizontal',
		relativeTo: 'viewport'
	}
});

function getURL ()
{
	return window.location.protocol+"//"+window.location.host+window.location.pathname	
}

function buscaRepre (sg)
{
	$.get ("busca_repre.php",{"sigla":sg}, function (response) { $("#repre").html(response) });	
}

function openItem (id, tam) {
	for(var i = 0; i < tam; i++)
	{
		$("#rep"+i).fadeOut();	
	}
	$("#"+id).fadeIn();
}
