$(window).load(function() {
	
$(".crousel ul li img.color").hover(
function() { $(this).stop().animate({"opacity": "1"}, "slow"); },
function() { $(this).stop().animate({"opacity": "0"}, "slow");
});

$(".disual-color").hover(
function() { $(this).stop().animate({"opacity": "1"}, "slow"); },
function() { $(this).stop().animate({"opacity": "0"}, "slow");
});
	
/* Mainmenu Div Class Fixes START*/
$(".mainmenu > ul > li:first-child").addClass("first");
$(".mainmenu > ul > li:last-child").addClass("last");
/* Mainmenu Div Class Fixes END*/

$(".right > ul.products > li:nth-child(1)").addClass("first");
$(".right > ul.products > li:nth-child(2)").addClass("second");
$(".right > ul.products > li:nth-child(3)").addClass("third");
$(".right > ul.products > li:nth-child(4)").addClass("fourth");

/* Cufon START*/
Cufon.replace('.mainmenu > ul > li > a, ul.jflanguageselection > li > a, .shop', { fontFamily: 'MyriadPro-Regular', hover:true, textShadow: '1px 1px #192958'});
Cufon.replace('h1, h2, h3, h4, .contentheading, .componentheading, a.small, .right ul li a, table.contenttoc tbody tr th, a.createdate', { fontFamily: 'MyriadPro-Regular', hover:true});

Cufon.replace('h5', { fontFamily: 'PTSans', hover:true, textShadow: '1px 1px #FFFFFF'});
/*Cufon END*/


/*Superfish Menu START*/
$(function(){
	jQuery('.mainmenu ul.menu').superfish();
});
/*Superfish Menu END*/

/*	Nivo Slider   */

$('.slider-inactive').nivoSlider({
	effect:'boxRandom', //Specify sets like: 'fold,fade,sliceDown'
	slices:10,
	animSpeed:500, //Slide transition speed
	pauseTime:5000,
	startSlide:0, //Set starting Slide (0 index)
	directionNav:false, //Next & Prev
	directionNavHide:false, //Only show on hover
	controlNav:true, //1,2,3...
	controlNavThumbs:false, //Use thumbnails for Control Nav
	controlNavThumbsFromRel:false, //Use image rel for thumbs
	controlNavThumbsSearch: '.jpg', //Replace this with...
	controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
	keyboardNav:true, //Use left & right arrows
	pauseOnHover:true, //Stop animation while hovering
	manualAdvance:false, //Force manual transitions
	captionOpacity:0.8, //Universal caption opacity
	beforeChange: function(){},
	afterChange: function(){},
	slideshowEnd: function(){}, //Triggers after all slides have been shown
	lastSlide: function(){}, //Triggers when last slide is shown
	afterLoad: function(){} //Triggers when slider has loaded
});

});

$(document).ready(function(){ 
		
		$("div.right a#[not]active_menu").removeClass("current", function () {});
				$("a#active_menu").parent("li").addClass("current", function () {});
		// initialise plugins
		
        $(".right ul").superfish({ 
            pathClass:  'current' 
        }); 
}); 




