$(function() {
	$(".default").jCarouselLite({
		btnNext: "#imgnav .next",
		btnPrev: "#imgnav .prev",
		speed: 1000,
		auto: 9000,
		visible: 4,
		easing: "easeinout",
		mouseWheel: true
	});

	$("#imgmain").jCarouselLite({
		speed: 1000,
		auto: 9000,
		visible: 1,
		mouseWheel: true,
		easing: "easeinout",
btnGo:
    [".default .1", ".default .2",
    ".default .3", ".default .4"]
	});
});
$(function() {
	$("#imgmain").css('zIndex','0');
});
$(function() {
	var images = $("img");
	for(var i=0; i < images.size(); i++) {
		if(images.eq(i).attr("src").match("_btn.")) {
			$("img").eq(i).hover(function() {
				$(this).css('opacity', '0.6');
			}, function() {
				$(this).css('opacity', '1');
			});
		}
	}
});

jQuery(function($) {
	var postfix = '_on';
	$('#globalnav a img').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_on);
		img.hover(function() {
			img.attr('src', src_on);
		}, function() {
			img.attr('src', src);
		});
	});
});
$(function(){
	$(".newsbox").click(function() {
		$(this).find(".discriptbox").slideToggle(400);
	});
});
