//var rotate = true;
$(document).ready(function(){
//Setup the main rotater on the home page
$('#divSimpleSlider').cycle({
			speed:       400,
			timeout:     8000,
			autoSlideInterval: 1500,
			pager:		'#category_nav ul',
			pagerEvent: 'mouseover',
			fastOnEvent: false
});

/*var numImg = 10;
var varRandProfile = Math.round(Math.random()*(numImg));
if(varRandProfile == 0)
{
		varRandProfile = 1;
		$('.profile').hide();
		$('#cont'+varRandProfile).animate({ opacity: 1}, 100);
		$('#cont'+varRandProfile).show();
}

$('.profile').hide();
$('#cont'+varRandProfile).animate({ opacity: 1}, 100);
$('#cont'+varRandProfile).show();
$('#category_nav ul li').hover(function(){
$('#divSimpleSlider').cycle('pause');
$('.billboard').hide();
$('#category_nav ul li').removeClass('active');
$(this).addClass('active');
$('#'+$(this).children('a').attr('rel')).animate({ opacity: 1}, 100);
$('#'+$(this).children('a').attr('rel')).stop(true,true).fadeIn();
},function(){});

$('.next').click(function(){
   if(rotate)
				randFunc(varRandProfile,numImg);
   });
*/
$('#menu ul li').hover(function(){
	               $(this).children('a').addClass('active');
                   $(this).children('div').children('div').show();	
},function(){
	             $(this).children('a').removeClass('active');
                 $(this).children('div').children('div').hide();		
});
   
});




