
$hidesub = 0;

$(document).ready(function(){
	$("#main_navi li a img").hover(
		function(){
		$(this).addClass('hover_main')
		},
		function(){			
		$(this).removeClass('hover_main')
		}
	);
	
	$("#main_navi li a img").click(function(){
		$("#main_navi li a img").removeClass('current_main'),
		$(this).addClass('current_main');
		}
	);
	
});

function showsub() {
		
  $("a").show(600, function () {
 // use callee so don't have to name the function
	$(this).next().show(600, arguments.callee); 
  });
  $(".mainbutt").click(function () {
  $("#sub_navi a").hide(200);
	});
  
$(".subnavi_img").hover(
	function(){
	$(this).addClass('hover')
	},
	function(){			
	$(this).removeClass('hover')
	});

$(".subnavi_img").click(function(){
	$(".subnavi_img").removeClass('current'),
	$(this).addClass('current');
	});

$lastWidth = $('#sub_navi a:last').width();
//alert($lastWidth);

}

$.fn.cycle.defaults.timeout = 3000;
	
function showslideshow() {
	
	// run the code in the markup!
	 $('#include').cycle({
	fx:     'fade',
	speed:  200,
	timeout: 100000,
	next:   '#next2',
	prev:   '#prev2'
	});

/*if(hidesub == 1) {
	$("#sub_navi a img").hide();
	}*/

}
