$(document).ready(function(){
	try{
		$(".popup").colorbox({
		})

	}
	catch(err){
		
	}
	try{
		$("a[rel='cbox'], a[rel='gal']").colorbox({
			'opacity'		: '0.5',
	        'scalePhotos'   : 'true',
	        'scrolling'		: 'false',
	        'maxWidth'		: '830',
	        'maxHeight'		: '600',
	        'photo'			: 'true'
		});
	}
	catch(err){
		
	}
	
	$(".main-navi>ul>li").hover(function(){
		$(this).addClass("hovered");
		$(this).find("span").addClass("hovered");
	}, 
	function(){
		$(this).removeClass("hovered");
		$(this).find("span").removeClass("hovered");
	})
	
	$(".player-main").hover(function(){
		var controls = $(this).find(".controls");
		controls.stop(true, true).fadeIn()
	}, function(){
		var controls = $(this).find(".controls");
		controls.stop(true, true).fadeOut()
	})
	
	try{
		$(".scrollable").scrollable({
			mousewheel: true
		}).navigator().autoscroll({
			interval: 4000,	
			autopause: true
		});
	}
	catch(err){
	}	
	try{
		$(".gal-scrollable").scrollable({
			circular: true, 
			mousewheel: true
		}).navigator().autoscroll({
			interval: 4000,	
			autopause: true
		});
	}
	catch(err){
	}
	try{
		$(".prod-body").scrollable({
			mousewheel: true
		}).navigator();
	}
	catch(err){
	}
})
