$(function() {
/*$("#listCategory").tabs("#listGallery li", {
		event: "mouseover",
		effect: "fade",
		fadeInSpeed: 1000, 
		fadeOutSpeed: 1000, 
		rotate: true
}).slideshow({autoplay: true, interval: 4000
});*/
$( '> li:first', 'ul, ol' ).addClass( 'first' );
$( '> li:last', 'ul, ol' ).addClass( 'last' );


$(".areaNewItem ul").carouFredSel({
	items 			: 5,
	auto : false,
	scroll : {
		items: 5
	},
	prev : {	
		button	: ".back",
		key		: "left"
	},
	next : { 
		button	: ".goes",
		key		: "right"
	}
}).find("li").hover(
	function() { $(this).find("div").slideDown(); },
	function() { $(this).find("div").slideUp();
});
$(".pickup01").carouFredSel({
	items 			: 2,
	direction		: "up",
	auto : false,
	prev : {	
		button	: ".down01",
		key		: "left"
	},
	next : { 
		button	: ".up01",
		key		: "right"
	}
});
$(".pickup02").carouFredSel({
	items 			: 2,
	direction		: "up",
	auto : false,
	prev : {	
		button	: ".down02",
		key		: "left"
	},
	next : { 
		button	: ".up02",
		key		: "right"
	}
});
$(".pickup03").carouFredSel({
	items 			: 2,
	direction		: "up",
	auto : false,
	prev : {	
		button	: ".down03",
		key		: "left"
	},
	next : { 
		button	: ".up03",
		key		: "right"
	}
});
$(".pickup04").carouFredSel({
	items 			: 2,
	direction		: "up",
	auto : false,
	prev : {	
		button	: ".down04",
		key		: "left"
	},
	next : { 
		button	: ".up04",
		key		: "right"
	}
});
$(".ranking").carouFredSel({
	items 			: 3,
	direction		: "up",
	auto : false,
	scroll : {
		items: 1
	},
	prev : {	
		button	: ".upRanking",
		key		: "left"
	},
	next : { 
		button	: ".downRanking",
		key		: "right"
	}
});
$(".listRelative").carouFredSel({
	items 			: 4,
	auto : false,
	scroll : {
		items: 1
	},
	prev : {	
		button	: ".prev",
		key		: "left"
	},
	next : { 
		button	: ".next",
		key		: "right"
	}
});
/*$('#listItemThumbnail li').featureList({
	output		: '#listItemGallery li',
	transition_interval: '0'
});*/
});
function onFocusHandler_p(fld){
	fld.style.display = 'none';
	var fld2 = (document.getElementById) ? document.getElementById('pass') : document.all['pass'];
	fld2.style.display = 'block';
	fld2.focus();
	return true;
}
function onBlurHandler_p(fld){
	if(fld.value === ''){
		fld.style.display = 'none';
		var fld2 = (document.getElementById) ? document.getElementById('fauxPassword') : document.all['fauxPassword'];
		fld2.style.display = 'block';
	}
	return true;
}
