
jQuery.noConflict();
jQuery(document).ready(function($)
{	
	// http://flesler.blogspot.com/2008/02/jqueryserialscroll.html
	$('#media').serialScroll(
	{
		target		: '#slider',
		items		: 'li',
		prev		: '#slider-prev',
		next		: '#slider-next',
		navigation	: '#slider-nav a',
		duration	: 300,
		force		: true,
		constant	: false,
		cycle		: true,
		/*interval	: 8000,*/
		onBefore	: function(e, elem, $pane, $items, pos) 
					  {
						  e.preventDefault();
						  if(this.blur) this.blur();
						  // $('#slider-nav li').each(function(index) { if($(this).attr('id') == 'slider-nav-' + String(index)) { $(this).addClass('selected'); } else { $(this).removeClass('selected'); } });
					  }
	});
		
	$("a.popup").fancybox(
	{
		'width'					: 680,
		'height'				: 440,
		'type'					: 'iframe',
		'padding'				: 40,
		'overlayOpacity'		: 0.8,
		'autoScale'				: false,
		'overlayColor'			: '#121b15',
		'transitionIn'			: 'fade',
		'transitionOut'			: 'fade',
		'hideOnOverlayClick'	: true,
		'titleShow'				: false
	});
	
	$('#clients').cycle(
	{ 
		delay	: 2000,
		height	: 130
	}); 
	
});

function reload()
{
	location.reload();	
}

function launch(url)
{
	alert(url);
	
	//window.open(url, 'popup', 'width=640,height=480,menubar=no,location=no,scrollbars=no,resizable=no'); 
	//window.blur(); 
	return false;
}
