$(function(){
	$('#search').html($('#searchPannel').html())
	$('#searchPannel').empty()

	$('.f').each(function(){this.innerHTML = this.innerHTML.split('').reverse().join(''); });
	$('.l strong').each(function(){$(this).parent().html($(this).html())});

	//³õÊ¼»¯Í¼Æ¬
	if ($('#pic div').has('img[src*="/Pic.png"]').html() != null){
		$('#pic div img').hide();
		$('#picList').hide();
		$('#navList').hide();
	} else {
		$('#navList').show();

		var html =''
		$('#pic div').each(function(i){
			if ($(this).has('img').html() != null){
				html += '<a href="#">' + $(this).html() + '</a>'
			} else {
				html += '<a href="#"><img src="/Pic.png"></a>';
			}
			if (i==0){
				$(this).show()
			} else {
				$(this).hide()
			}
		});

		$('#picList').html(html);
		$('#picList').show();

		$('#picList a').each(function(i){
			$(this).click(function(){
				$('#pic div').each(function(j){
					if (i==j){
						$(this).show()
					} else {
						$(this).hide()
					}
				})
			});
		})
	}
});

