/*$(document).ready(function(){
	Shadowbox.init();
	
	$('#nome').autocomplete({
		source: 'SugestaoBusca.asp',
		minLength: 2,
		select: function(event, ui)
		{
			var f = $(this).closest('form');
			
			$(this).val(ui.item.value);
			f.submit();
		}
	});
	
	$('a[confirm]').click(function(){
		if (confirm($(this).attr('confirm')) != true)
		{
			return false;
		}
	});


	$('div[media]').each(function(){
		var sFileName = $(this).attr('media');
		var sPlayerType = $(this).attr('playerType').toLowerCase();
		
		if (sPlayerType == 'flash')
		{
			$(this).flash({
				swf: 'Flash/mediaplayer-5.3/player.swf',
				flashvars: 
				{
					file: sFileName,
					autostart: 'true'
				},
				params:
				{
					allowfullscreen: 'true',
					allowscriptaccess: 'always'
				},
				width: '480',
				height: '385'
			});
		}
		else if (sPlayerType == 'silverlight')
		{
			var elm = $(this).get(0);
			var src = 'Silverlight/wmvPlayer/wmvplayer.xaml';
			var cfg = {
				file:	sFileName,
				width:	'480',
				height:	'385',
				autostart:	'true'
			};
			
			var ply = new jeroenwijering.Player(elm, src, cfg);
		}
	});	
});
*/
