// JavaScript Document

var $j = jQuery.noConflict();
  

$j(document).ready(function(){
	
			var counter = 0 ;	

			$j("#slider").easySlider({
				auto: true, 
				continuous: true,
				numeric: true,
				nextId: "slider1next",
				prevId: "slider1prev"
			});
			
			$j('#submenu').children('ul').hide();
			
			$j('#submenu').click(function () {
			//$j('#submenu').children('ul').slideUp('fast');
			
		
			$j('#submenu > a').each(function () {
				if ($j(this).attr('rel')!='') {
					$j(this).removeClass($j(this).attr('rel') + 'Over');	
				}
			});
			
			if (counter == 0 ){
			$j(this).children('ul').slideDown('fast');
			counter = 1; }
			else if (counter ==1 )
				{
					$j('#submenu').children('ul').slideUp('fast');	
					counter =0;}
				
			$j(this).children('a').addClass($j(this).children('li a').attr('rel') + 'Over');			
 
			return true;
		});

});	
