/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked

$(document).ready(function() {

	//$("#mainmenulist li").not(".active").children("ul").hide();

	/*
	$("#mainmenulist li").has("ul").children("a").click(function(){
		$(this).next("ul").slideToggle(300).siblings("ul").slideUp("slow");
		return false;
	});

	*/

	// image slider

	$('#slider').nivoSlider({
		effect:'random', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:6000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //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.6, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});


	// kwicks

/*
	$('.kwicks').kwicks({
		max        : 400,
		duration   : 800
	});

	var hovered_li;
	$(".kwicks li").hover(function() {
		//hovered_li = $j(this);
		$(this).parent().find('li:not(.active)').find('h3').stop()
		.animate({
			"opacity" : 0.2
		}, 800);
	},
    // Roll Out
    function() {
		$(this).parent().find('li').find('h3').stop()
		.animate({
			"opacity" : 1
		}, 800);
	}); */


	// jquery UI

	$(".tabs").tabs();

	// tables

	$("table.contentpaneopen td table tbody tr:even").addClass("odd");
	$("table.contentpaneopen td table tbody tr").mouseover(function() {$(this).addClass("selected-row")
	}).mouseout(function() {$(this).removeClass("selected-row")});

	


});


