
var qw=new QWord_symp;function QWord_symp(){this.start_pos_num=1;this.select_qword_id=0;this.arr_qword=new Array();this.fact_length=0;this.step=5;this.count_in_list=6;this.add_qword=function(id,word){this.arr_qword[id]=word;}
this.select_qword=function(id){this.select_qword_id=id;this.show_table_qw();$("#q_type").val(id);$("#q_type_select").val(id);$("#find_str").focus();}
this.show_table_qw=function(){for(e=1;e<=this.count_in_list;e++){$("#fq_title_"+e).html("");$("#fq_left_"+e).html('');$("#fq_right_"+e).html('');$("#fq_center_"+e).attr("bgColor","").css("");}
c=1;i=1;for(var id in this.arr_qword){if(this.arr_qword[id].length!=0){if(i>=this.start_pos_num&&i<=this.start_pos_num+this.count_in_list){if(id==this.select_qword_id){$("#fq_left_"+c).html('<img src="/images/search_q_l.gif"/>');$("#fq_right_"+c).html('<img src="/images/search_q_r.gif"/>');$("#fq_center_"+c).attr("bgColor","#ffffff").css("font-size: 12px; font-weight: 900;");}else{$("#fq_left_"+c).html('');$("#fq_right_"+c).html('');$("#fq_center_"+c).attr("bgColor","").css("");}
$("#fq_title_"+c).html("<nobr>"+this.arr_qword[id]+"</nobr>");$("#fq_title_"+c).attr("href","javascript:qw.select_qword("+id+")")
c++;}
i++;}}
this.fact_length=--i;if(this.start_pos_num>this.step){$("#move_left").css("display","block");}else{$("#move_left").css("display","none");}
if((this.start_pos_num+this.step)<this.fact_length){$("#move_right").css("display","block");}else{$("#move_right").css("display","none");}}
this.calc_section=function(select_qword_id){i=1;for(var id in this.arr_qword){if(this.arr_qword[id].length!=0){if(id==select_qword_id){for(c=1;c<this.fact_length+1;c+=this.step){if((c+this.step)>i){this.start_pos_num=c;return true;}}}
i++;}}}
this.move_left=function(){if(this.start_pos_num>this.step){this.start_pos_num-=this.step;this.show_table_qw();}}
this.move_right=function(){if((this.start_pos_num+this.step)<this.fact_length){this.start_pos_num+=this.step;this.show_table_qw();}}}