// JavaScript Document

$j=jQuery.noConflict();

$j(document).ready(function() {
	
	//hide the all of the element with class msg_body
  $j(".map_body").hide();
  //toggle the componenet with class msg_body
  $j(".map_head").click(function()
  {
    $j(this).next(".map_body").slideToggle(600);
  });
  
 /* $j("#wrapGallery").easySlider({
		auto: true,
		continuous: true,
	});
	$j("#wrapGallery").easySlider({ 
		numeric: false,
	});*/
	
	//Navigation script
	$j("#main_nav li.page_item").hover(
		function(){
			$j(this).children('a').css('color','#f32837');
			if($j(this).has('ul')){
				$j(this).children('ul').show();
				
			}
			
		},
		function(){
			if($j(this).hasClass("current_page_item") || $j(this).hasClass("current_page_parent")){
				$j(this).children('ul').hide();
				$j(this).css('border-bottom','none');
			}
			else{
				$j(this).children('a').css('color','#FFF');
				$j(this).children('ul').hide();
				$j(this).css('border-bottom','none');
			}
		}
	
	);
	
	
	
	$j("#main_nav li.page_item ul li").hover(
		function(){
			$j(this).children('a').css('color','#f32837');
		},
		function(){
				if($j(this).hasClass("current_page_item")){
				// do nothing 
			}else{
				$j(this).children('a').css('color','#000');
			}
		}
	
	);
  


});



