$(function() {
    $("#list1").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
	$("#list2").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
	$("#list3").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev"
    });
	$('#list2').hide();
	$('#list3').hide();
	$('#fl').attr('class','floating first');
});
$(document).ready(function(){
	if ($('.flash-menu dd')) $('.flash-menu dd').mousemove(function(e) {  });
});
function change(arg) {
	for (var i=1; i<4; i++) {
		$('#list'+i).hide();
		
	}
	$('#list'+arg).show();
	if (arg=='1') per='first'
	else if (arg=='2') per='second'
	else if (arg=='3') per='third';
	
	$('#fl').attr('class','floating '+per);
	
}

/*
function change(arg) {
	for (var i=1; i<5; i++) {
		document.getElementById('list'+i).style.display='none';
		document.getElementById('but'+i).className='off';
	}
	$(".float > li").show();
	document.getElementById('list'+arg).style.display='block'; 
	document.getElementById('but'+arg).className='on';
}
*/
function change_pic(arg, per) {
	for (var i=1; i<6; i++) {
		$("#a"+i).removeClass("active-pic");
	}
	document.getElementById('picture').src=arg;
	document.getElementById(per).className="active-pic";
}
