$(document).ready(function() {
	$('#slide').jcarousel({
		visible: 4,
		scroll: 1,
		vertical: true,
		animation: 1000			
	});    	
	
	$('#slide_cl').jcarousel({
		visible: 5,
		scroll: 1,
		animation: 1000			
	});    	
	
	if ($.browser.msie && parseInt($.browser.version) <= 6)
	{		
		/* CLIENTS */
		IE6hover('50%', '-36px', '.mh');
		IE6hover('50%', '-42px', '.abricos');
		IE6hover('50%', '-71px', '.gsm');
		IE6hover('50%', '-87px', '.medtur');
		IE6hover('50%', '-38px', '.pressol');
		IE6hover('50%', '-109px', '.shell');		
	}
});

function OpenURL(url)
{
	window.open(url, "_blank", "toolbar=yes,status=yes,resizable=yes,scrollable=yes,location=yes");
}

function IE6hover(right, left, items)
{	
	if (!(items instanceof Array))
	{
		$(items).mouseover(function(){	
			$(this).css('backgroundPosition', right + ' ' + left);
			$(this).css('cursor', 'pointer');
		});
		$(items).mouseout(function(){	
				$(this).css('backgroundPosition', right + ' 0');
			});
		return;
	}
	for (var i = 0; i < items.length; i++)
	{
		$(items[i]).mouseover(function(){	
			$(this).css('backgroundPosition', right + ' ' + left);
			$(this).css('cursor', 'pointer');
		});	
	}
	$(items.join(', ')).mouseout(function(){	
			$(this).css('backgroundPosition', right + ' 0');
		});
	
}
