// redish 模板用

// TOP 搜索下拉框模拟
$(document).ready(function(){
	$('#select .xst').click(function(){
		if($('#select ul').css('display') == 'none'){
			$('#select ul').css('display','block');
		} else {
			$('#select ul').css('display','none');
		}
	});
	$('.search .word input').click(function(){
		$('.search .word input').val('');
	});
	// 搜索 Go 按钮样式
	$("#searchsubmit").hover(
		function(){$(this).css({cursor:"pointer",background:"#C11717"});},
		function(){$(this).css({background:"#7C8E06"});}
	);
});
var ooFile = 'products';
var search_select = function(id,text){
	if(id == 1){
		ooFile = 'news';
	} else if (id == 2){
		ooFile = 'download';
	} else {
		ooFile = 'products';
	}
	$('#select ul').css('display','none');
	$("#select .xst").html(text);
};
