var best_str=new Object();var new_str=new Object();var hot_str=new Object();function init_rec_data(){best_str[0]=document.getElementById("show_best_area")==null?"":document.getElementById("show_best_area").innerHTML;new_str[0]=document.getElementById("show_new_area")==null?"":document.getElementById("show_new_area").innerHTML;hot_str[0]=document.getElementById("show_hot_area")==null?"":document.getElementById("show_hot_area").innerHTML}function get_cat_recommend(A,B){if(A==1){if(typeof(best_str[B])=="string"){document.getElementById("show_best_area").innerHTML=best_str[B];return}}else{if(A==2){if(typeof(new_str[B])=="string"){document.getElementById("show_new_area").innerHTML=new_str[B];return}}else{if(typeof(hot_str[B])=="string"){document.getElementById("show_hot_area").innerHTML=hot_str[B];return}}}Ajax.call("index.php?act=cat_rec","rec_type="+A+"&cid="+B,cat_rec_response,"POST","TEXT")}function cat_rec_response(B){var C=B.parseJSON();if(C.type==1){var A=document.getElementById("show_best_area");best_str[C.cat_id]=C.content}else{if(C.type==2){var A=document.getElementById("show_new_area");new_str[C.cat_id]=C.content}else{var A=document.getElementById("show_hot_area");hot_str[C.cat_id]=C.content}}A.innerHTML=C.content}if(document.all){window.attachEvent("onload",init_rec_data)}else{window.addEventListener("load",init_rec_data,false)}function change_tab_style(C,F,A){F=F.toUpperCase();var H=document.getElementById(C);var E=H.getElementsByTagName(F);var D=A.parentNode;while(D.nodeName!=F){D=D.parentNode}for(var G=0,B=E.length;G<B;G++){E[G].className="h2bg"}D.className=""};
