/* Shadowbox */
Shadowbox.init({
	continuous: true,
	language: 'pt-br',
	handleOversize: 'drag',
	players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
	onFinish: function() {
		$('#sb-wrapper').show();
		clearTimeout(timerPortfolio);
		var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
		if (badBrowser) $('img[src$=.png]').each(function() {
			if (!this.complete) this.onload = function() { fixPng(this) };
			else fixPng(this);
		})
	},
	onClose: function(){
		para(activePlayerId);
		activePlayerId = null;
		Shadowbox.options.slideshowDelay = 0;
	}
});
