$(function() {
	$('.arrow_v').click(function(){
	//alert(2);
		if($('.top_nav_cont').css('display') == 'none')
		{
			$('.top_nav_cont').show();
			$('.arrow_v img').attr('src', 'images/nav_v_on.png');
		}
		else
		{
			$('.top_nav_cont').hide();
			$('.arrow_v img').attr('src', 'images/nav_v.png');
		}
	});
	$('.arrow_v').mouseenter(function(){
		if($('.top_nav_cont').css('display') == 'none')
		{
			$('.arrow_v img').attr('src', 'images/nav_v_hover.png');
		}
		else
		{
			$('.arrow_v img').attr('src', 'images/nav_v_on_hover.png');
		}
	});
	$('.arrow_v').mouseleave(function(){
		if($('.top_nav_cont').css('display') == 'none')
		{
			$('.arrow_v img').attr('src', 'images/nav_v.png');
		}
		else
		{
			$('.arrow_v img').attr('src', 'images/nav_v_on.png');
		}
	});
	$('.arrow_h').click(function(){
	//alert(1);
		if($('.left_nav_cont').css('display') == 'none')
		{
			$('.left_nav_cont').show();
			$('#gal_cont').css('left', '0px');
			$('.top_nav').css({'padding-left':'113px', 'width':'867px'});
			$('.arrow_h img').attr('src', 'images/nav_h.gif');
		}
		else
		{
			$('.left_nav_cont').hide();
			$('#gal_cont').css('left', '-93px');
			$('.top_nav').css({'padding-left':'20px', 'width':'960px'});
			$('.arrow_h img').attr('src', 'images/nav_h_on.gif');
		}
	});
	$('.arrow_h').mouseenter(function(){
		if($('.left_nav_cont').css('display') == 'none')
		{
			$('.arrow_h img').attr('src', 'images/nav_h_on_hover.png');
		}
		else
		{
			$('.arrow_h img').attr('src', 'images/nav_h_hover.png');
		}
	});
	$('.arrow_h').mouseleave(function(){
		if($('.left_nav_cont').css('display') == 'none')
		{
			$('.arrow_h img').attr('src', 'images/nav_h_on.gif');
		}
		else
		{
			$('.arrow_h img').attr('src', 'images/nav_h.gif');
		}
	});
	$('.prev').mouseenter(function(){
		$('.prev img').attr('src', 'images/prev_hover.jpg');
	});
	$('.next').mouseenter(function(){
		$('.next img').attr('src', 'images/next_hover.jpg');
	});
	$('.prev').mouseleave(function(){
		$('.prev img').attr('src', 'images/prev.gif');
	});
	$('.next').mouseleave(function(){
		$('.next img').attr('src', 'images/next.gif');
	});
});
