// JavaScript Document

/*	 ---------------------------	*/
/*	 ---------------------------	*/
/*									*/
/*			Timo de Winter			*/
/*	 	Black Coffee Media			*/
/*	 http://blackcoffeemedia.nl		*/
/*		timo@blackcoffeemedia.com	*/
/*		  build in BOSTON			*/
/*			 April 2010				*/
/*									*/
/*	 ---------------------------	*/
/*	 ---------------------------	*/

	jQuery(document).ready(function() { 
	jQuery("#pages ul li ul").css({display: "none"}); // Opera Fix 
	jQuery("#pages ul li").click(function(){ 
			jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268); 
			},function(){ 
			jQuery(this).find('ul:first').css({visibility: "hidden"}); 
			}); 
	}); 


$(document).ready(function(){
	
		/* 			by Timo de Winter on February 24th, 2010 			*/
		/* 					 http://timodewinter.nl 					*/
		/* 					requires jQuery library 					*/
		
		// Makes all the objects that have the "rollOver" class 0.5 opacity
		// On rollOver it animates to 1 opacity in .05 sec
		// On rollOut it animates to 0.7 opacity in .2 sec
		var _menuRollOverOpac	= 1;
		var _menuRollOverSpeed	= 100;
		var _menuRollOutOpac	= 0.7;
		var _menuRollOutSpeed	= 200;
		$(".rollover").css({	'opacity' : _menuRollOutOpac	});
		
		$(".rollover").bind("mouseenter",function(){
			//RollOver
			$(this).fadeTo(_menuRollOverSpeed,_menuRollOverOpac);
		}).bind("mouseleave",function(){
			//RollOut
			$(this).fadeTo(_menuRollOutSpeed, _menuRollOutOpac);
		});


		var _menuRollOutOpac2	= 0.5;
		$(".rollover2").css({	'opacity' : _menuRollOutOpac2	});
		
		$(".rollover2").bind("mouseenter",function(){
			//RollOver
			$(this).fadeTo(_menuRollOverSpeed,_menuRollOverOpac);
		}).bind("mouseleave",function(){
			//RollOut
			$(this).fadeTo(_menuRollOutSpeed, _menuRollOutOpac2);
		});

});//$(document).ready

		function slide_cats(_cat,_total_cats){
			for(i=0; i <=_total_cats; i++){
				if(i!= _cat){ $('#mouse_'+i).slideUp(300); }
			}
				$('#mouse_'+_cat).slideToggle(300);
		}

