PageSourceSearch

https://www.ufspace.com/back/finance/stock/index.js;jsessionid=CFD42665B1D4A5DDF5DA17824B6D2D6C?v=85

js ufspace.com collected 2026-10-05 08:09:34 UTC 90,507 bytes, 2,469 lines download raw bytes

1var moreflag="";
2var stockName = "";
3function AttMouseover_1(selectorObj){
4	$(selectorObj).mouseover(function(){
5  		$(this).find('div').show();
6	});
7	$(selectorObj).mouseout(function(){
8		$(this).find('div').hide();
9	});
10}
11function AttMouseover_new(obj){
12	window.event? window.event.cancelBubble = true : e.stopPropagation();
13	if ($(".men_cur").find("div").is(":hidden")){
14		$(".men_cur").find("div").show();
15	}else {
16		$(".men_cur").find("div").hide();
17	}
18	$(document).click(function (e) {
19		var btn_block = $(obj);
20		if (!btn_block.is(e.target) && btn_block.has(e.target).length === 0) {
21			$(".men_cur").find("div").hide();
22		}
23	});
24}
25//初始化
26function FinanceIndex(){
27	var pageNo = 1;
28	var hash = (window.location.hash=="")?"":window.location.hash.substring(1);
29	var hash_content = hash.split("/");
30	var flag = true;
31	for(var i=0;i<hash_content.length;i++){
32		if(hash_content[i].indexOf("urlPageNo")!=-1){
33			flag = false;
34			pageNo = hash_content[i].split("_")[1];
35			break;
36		}
37	}
38	if(flag){
39		hash_content.push("urlPageNo_1");
40	}
41	if(hash==''){
42		$("[name='menuType']").val("index");//财经首页
43		$(".top_ad").css({"display":"block"});
44		TabContent();
45	}
46	else{
47		$(".top_ad").css({"display":"none"});
48		if(hash_content[1]=="talk"){
49			jQuery("#financetop").empty();
50			TalkTabContent(hash_content[1],hash_content[2],hash_content[3],hash_content[4],hash_content[5],pageNo);
51		}else{
52			if(hash_content[1]=="discover"){
53				jQuery("#financetop").empty();
54				if(hash_content.length==5){
55					DiscoverTabContent(hash_content[1],hash_content[2],hash_content[3],pageNo);
56				}
57				if(hash_content.length==6){
58					DiscoverTabContent1(hash_content[1],hash_content[2],hash_content[3],hash_content[4],pageNo);
59				}
60				$("[name='finstockType']").val(hash_content[3]);
61			}else{
62				if(hash_content[1]=="view"&&hash_content[2]==9){
63					jQuery("#financetop").empty();
64					// TalkDiscoverHot1(pageNo,'',hash_content[2],hash_content[3]);
65					//避免选中机构
66					TalkDiscoverHot1(pageNo,'',1,hash_content[3]);
67				}else{
68					// TabMenu(hash_content[1],'','',pageNo);
69                    $("[name='menuType']").val("index");//财经首页
70                    $(".top_ad").css({"display":"block"});
71                    TabContent();
72				}
73			}
74		}
75	}
76}
77function TabContent(){
78	var	menuType=$("[name='menuType']").val();
79	if(menuType==""||menuType==null){
80		menuType="index";
81	}
82	
83	if(menuType=="indexes"){
84		ShowAppStockDiv("divIndexes");
85	}else{
86		if(menuType=="plate"){
87			ShowAppStockDiv("divPlate");
88		}else{
89			ShowAppStockDiv("divQuote");
90		}
91	}
92	//ChangeMenu();
93	var url = "/ajax/finance/stock/index.htm";
94	var data = "menuType="+menuType;
95	//showloadingDiv("请稍候...");
96	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
97}
98function TabMenu(menuType){
99	if(menuType==""||menuType==null){
100		menuType="index";
101	}
102	if(menuType=="indexes"){
103		ShowAppStockDiv("divIndexes");
104	}else{
105		if(menuType=="plate"){
106			ShowAppStockDiv("divPlate");
107		}else{
108			ShowAppStockDiv("divQuote");
109		}
110	}
111	//ChangeMenu();
112	var url = "/ajax/finance/stock/index.htm";
113	var data = "menuType="+menuType;
114	//showloadingDiv("请稍候...");
115	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
116}
117
118var vrpageNo;
119var vrstrss;
120
121function TalkTabMenu(pageNo,strss){
122	vrpageNo = pageNo;
123	vrstrss = strss;
124	
125	var sortType= $("[name='sortType']").val();
126	
127	if(sortType==""||sortType==null){
128		sortType="add_time";
129	}
130	
131	var menuType=$("[name='menuType']").val();
132	if(menuType==""||menuType==null){
133		menuType="talk";
134	}
135	
136	var tagChannelId = $("[name='tagChannelId']").val();
137	if(tagChannelId==""||tagChannelId==null){
138		tagChannelId=0;
139	}
140	
141	var eventObject = $("[name='eventObject']").val();
142	if(eventObject==""||eventObject==null){
143		eventObject=0;
144	}
145	
146	var conditionType = $("[name='conditionType']").val();
147	if(conditionType==""||conditionType==null){
148		conditionType=0;
149	}
150	if(menuType=="talk"){
151		if(eventObject==""){
152            history.pushState( null, null,"/finance/stock/refresh/"+tagChannelId+"/"+pageNo+"/0/ubbs.htm?sortType="+sortType+"&conditionType="+conditionType);
153		}else{
154            history.pushState( null, null,"/finance/stock/refresh/"+tagChannelId+"/"+pageNo+"/"+eventObject+"/ubbs.htm?sortType="+sortType+"&conditionType="+conditionType);
155		}
156	}
157	var pageBbsId = $("[name='pageBbsId']").val();
158	var url = "/ajax/finance/stock/index.htm";
159	var data = "sortType="+sortType+"&menuType="+menuType+"&tagChannelId="+tagChannelId+"&eventObject="+eventObject+"&conditionType="+conditionType+"&pageNo="+pageNo;
160	//showloadingDiv("请稍候...");
161	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
162}
163
164
165function TalkTabContent(menuType,sortType,tagChannelId,eventObject,conditionType,pageNo){
166	var pageBbsId = $("[name='pageBbsId']").val();
167	var url = "/ajax/finance/stock/index.htm";
168	var data = "sortType="+sortType+"&menuType="+menuType+"&tagChannelId="+tagChannelId+"&eventObject="+eventObject+"&conditionType="+conditionType+"&pageNo="+pageNo;
169	//showloadingDiv("请稍候...");
170	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
171
172}
173
174function TalkTabContentByType(menuType,sortType,tagChannelId,eventObject,conditionType,pageNo,obj){
175    var pageBbsId = $("[name='pageBbsId']").val();
176    $("[name='tagChannelId']").val(tagChannelId);
177    $("[name='eventObject']").val(eventObject);
178    $("[name='sortType']").val(sortType);
179    $("[name='conditionType']").val(conditionType);
180    var url = "/ajax/finance/stock/index.htm";
181    if(menuType=="talk"){
182        if(eventObject==""){
183            history.pushState( null, null,"/finance/stock/refresh/"+tagChannelId+"/1/0/ubbs.htm?sortType="+sortType+"&conditionType="+conditionType);
184        }else{
185            history.pushState( null, null,"/finance/stock/refresh/"+tagChannelId+"/1/"+eventObject+"/ubbs.htm?sortType="+sortType+"&conditionType="+conditionType);
186        }
187    }
188
189    var data = "sortType="+sortType+"&menuType="+menuType+"&tagChannelId="+tagChannelId+"&eventObject="+eventObject+"&conditionType="+conditionType+"&pageNo="+pageNo+"&jumpFlag=1";
190    if(typeof(obj)!="undefined"&&obj!=null){
191    	$("#finstockTalkTypeId").find("li").removeClass("cur");
192    	$(obj).parent().parent().addClass("cur");
193    }
194
195    AjaxSubmit(url,data,TabTagContentBack,null,null,true,true);
196	// var url = "/finance/stock/vueTalk.htm";
197	// AjaxSubmit(url,null,function(result){
198     //    $(".com_dynamic").empty();
199     //    $(".com_dynamic").append(result);
200	// },null,null,true,true);
201
202}
203
204function DiscoverTabContent(menuType,contentType,voteType,pageNo){
205	var pageBbsId = $("[name='pageBbsId']").val();
206	var url = "/ajax/finance/stock/index.htm";
207	var data ="menuType=discover&contentType="+contentType+"&voteType="+voteType+"&pageNo="+pageNo;
208	//showloadingDiv("请稍候...");
209	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
210}
211function DiscoverTabContent1(menuType,contentType,voteType,isshadow,pageNo){
212	var pageBbsId = $("[name='pageBbsId']").val();
213	var url = "/ajax/finance/stock/index.htm";
214	var data ="menuType=discover&contentType="+contentType+"&voteType="+voteType+"&pageNo="+pageNo+"&isorgtype="+isshadow;
215	//showloadingDiv("请稍候...");
216	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
217}
218//menuType 菜单
219function ChangeMenu(){
220	var menuType=$("[name='menuType']").val();
221	if(menuType==null){
222		menuType="index";
223	}
224	///alert("ddd==="+menuType);
225	$("div[name='tabmenu']").find("li").each(function(){
226		if($(this).attr("name")==("tabmenu_"+menuType))
227			$(this).attr("class","cur");
228		else
229			$(this).attr("class","");
230	});
231}
232//添加自选股 type 来标识要返回怎么样的图标或样式
233function AddFreeStock(id,obj,type){
234	var name = $(obj).parent().find("a.ns_gpmc,span.ns_gpmc").text();
235	$(obj).removeAttr("onclick");
236	var url = "/ajax/finance/stock/addfreestock.htm";
237	var data = "stockObjectId="+id;
238	AjaxSubmit(url,data,function(d){
239		if(d.msg=="success"){
240//			successAlert("关注成功!");
241			var content = "";
242			if(type=='right'){
243				content = "<img src=\"/images/n_stock/icon_ygz02.gif\" width=\"9\" height=\"9\" />";
244			}else if(type=='quoteHead'){
245				content+="<a href=\"javascript:void(0)\" id=\"info_a\" onclick=\"DelFreeStock('"+id+"',this,'quoteHead','"+d.stock_name+"')\" class=\"ns_qxgz\">已自选</a>"
246			}else if(type=='select'){
247                content+="<a href=\"javascript:void(0)\" onclick=\"DelFreeStock('"+id+"',this,'select','"+d.stock_name+"')\" class=\"analyse_btn\" id=\"select_"+id+"\">已自选</a>"
248            }else if(type=='word'){
249				content+="<a href=\"javascript:void(0);\"  onclick=\"DelFreeStock('"+id+"',this,'word','"+d.stock_name+"')\" class=\"st_ygz\">√已关注</a>";
250			}else if($("#info_a").size() > 0){
251				$(obj).parent().parent().find("strong").text(d.favorcount);
252				content+="<a href=\"javascript:void(0)\" id=\"info_a\" onclick=\"DelFreeStock('"+id+"',this,'stockinfo','"+d.stock_name+"')\">√已关注</a>";
253			}else{
254				content = "<img src=\"/images/n_stock/icon_ygz02.gif\" width=\"9\" height=\"9\" />";
255			}
256			if(type=='stock'){
257//				changeStyle(id,obj,type);
258				if($("span.ns_gpgyzs").size()>0){
259					if($("span.ns_gpgyzs").find("a.ns_gpmc").text()==(name.replace(/(^\s*)|(\s*$)/g, ""))){
260					$("span.ns_gpgyzs").find("a.ns_add").attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
261					$("span.ns_gpgyzs").find("a.ns_add").attr("class","ns_cancel");
262					$("span.ns_gpgyzs").find("a.ns_add").attr("id","cancels_"+id+"");
263					}
264				}//else if($(obj).parent().parent().parent().attr("class")=="dynamic_zf_m"){
265				else{
266				    $(obj).attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
267					$(obj).attr("class","ns_cancel");
268					$(obj).attr("id","cancels_"+id+"");
269					$("span[id='cancels_"+id+"']").each(function(){
270						$(this).attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
271						$(this).attr("class","ns_cancel");
272						$(this).attr("id","cancels_"+id+"");
273					})
274				}
275
276
277					$(".ban_tuijian,.ns_gpgyzs,.ns_gpgyzs_new").each(function(){
278						if($(this).find("a.ns_gpmc").text()==name){
279						$(this).find("a.ns_add").attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
280						$(this).find("a.ns_add").attr("class","ns_cancel");
281						$(this).find("a.ns_add").attr("id","cancels_"+id+"");
282							}
283						});
284
285
286
287					$(".ns_gpgyzs_newstock_1").each(function(){//10 p  30 p ..准确率  添加关注
288						if($(this).find("span.ns_gpmc").text()==name){
289						$(this).find("span.ns_add").attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
290						$(this).find("span.ns_add").attr("class","ns_cancel");
291						$(this).find("span.ns_add").attr("id","cancels_"+id+"");
292							}
293						});
294					if($(".ns_gpgyzs_newstock").size()>0){
295						$(".ns_gpgyzs_newstock").each(function(obj){
296							if(($(this).find("span.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(name.replace(/(^\s*)|(\s*$)/g, ""))){
297								$(this).find("span.ns_add").attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
298								$(this).find("span.ns_add").attr("class","ns_cancel");
299								$(this).find("span.ns_add").attr("id","cancels_"+id+"");
300							}
301						});
302					}
303					//板块股票详细页
304					// if($(".r1 #info_a").size()>0){
305					// 	$(".r1 #info_a").attr("class","ns_qxgz");
306					// 	$(".r1 #info_a").attr("onclick","DelFreeStock("+id+",this,'quoteHead','"+d.stock_name+"')");
307					// }
308
309					if($(".Manager_Off_Nam").size()>0){
310						$(".Manager_Off_Nam").each(function(obj){
311							if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(name.replace(/(^\s*)|(\s*$)/g, ""))){
312								$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
313								$(this).find("a.ns_cancel").attr("class","ns_add");
314								$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
315							}
316						});
317						}
318					if($(".ban_tuijian_side").size()>0){
319						$(".ban_tuijian_side").each(function(obj){
320							if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(name.replace(/(^\s*)|(\s*$)/g, ""))){
321								//alert("取消后再关注")
322								$(this).find("a.ns_add").attr("onclick","DelFreeStock("+id+",this,'"+type+"','"+d.stock_name+"')");
323								$(this).find("a.ns_add").attr("class","ns_cancel");
324								$(this).find("a.ns_add").attr("id","cancels_"+id+"");
325							}
326						});
327						}
328			}else if(type=='quoteHead'){
329				$(obj).parent().prepend(content);
330				$(obj).remove();
331			}else if(type=='select'){
332                $(obj).before(content);
333                $(obj).remove();
334            }else{
335				$(obj).parent().html(content);
336			}
337			//stockAlert(id);
338            DelFreeStock(id,obj,"'"+type+"'","'"+d.stock_name+"'");
339			if(type=='quoteHead'){
340                $(".ns_qxgz")[0].click();
341			}
342		}
343		else{
344		//	successAlert("网络异常!");
345			//ToLoginPage();
346			successAlert(d.excContent);
347		}
348	},"json");
349}
350//取消关注股票  加弹框
351function cancelWatchedStock(id,obj,type,names){
352	var url = "/ajax/cancelWatchedStock.htm";
353	var itsclass=$(obj).attr("id")
354    var data="stockId="+id+"&type="+type+"&names="+names+"&sign="+itsclass;
355	AjaxSubmit(url,data,function(d){
356		var readMesss = d;
357	    jQuery.blockUI({
358				message: readMesss,
359				baseZ:9999,
360				overlayCSS: { backgroundColor: '#000' },
361				css: { width:'200px',padding:'0px',cursor:'default',left:'44%',top:'42%',height:'75px'}	
362		});
363	    $('#bg_top_'+id).hide();
364	});
365	
366}
367//删除自选股 改变样式
368function DelFreeStock(id,obj,type,names){
369//	window.alert($(obj).children().attr("id"));
370	if($('#bg_top_'+id).size()>0){
371		$('#bg_top_'+id).show();
372	}else{
373	$(obj).append('<div class="bg_top_up_box" id="bg_top_'+id+'"><p class="set_group" id="team_'+id+'">管理分组</p><p class="Cancel_optional" id="cancel_'+id+'">删除自选</p></div>');
374	}
375	$("#cancel_"+id).click(function(){//取消自选
376		stockName = $(obj).parent().find("a.ns_gpmc,span.ns_gpmc").text()
377		cancelWatchedStock(id,obj,type,names);	//DelFreeStock1(id,obj,type); 原先方法
378	});
379	$("#team_"+id).click(function(){
380		AddFreeTeam(id);
381	});
382	if($("h4.hover").size()>0){
383		$(".hover").each(function(){
384			$(this).attr("onmouseover",null);
385		})
386	}
387//	$(window).one("click",function(){//对document绑定一个影藏Div方法
388//		$(obj).children().remove();
389//	});
390//		event.stopPropagation();//阻止事件向上冒泡
391	$(window).bind("click",function(e){
392		var target = $(e.target); 
393		if(target.closest(obj).length == 0){ 
394			//$('#bg_top_'+id).hide();
395			$(obj).children().remove();
396			
397			if($("h4.hover").size()>0){
398				$(".hover").each(function(){
399					$(this).attr("onmouseover","ShowKImg(this)");
400				})
401			}
402		}
403		});
404	//DelFreeStock1(id,obj,type);
405}
406//删除自选股 改变样式
407function DelFreeStock1(id,obj,type){
408	var url = "/ajax/finance/stock/delSelectStock.htm";
409	var data = "stockObjectId="+id;
410	AjaxSubmit(url,data,function(data){
411		if(data.msg == "success"){
412			// successAlert("取消成功");
413			$.unblockUI();
414			var content = "";
415			if(type=='word'){
416				content+="<a href=\"javascript:void(0);\" onclick=\"AddFreeStock('"+id+"',this,'word')\">关注版块</a>"; 
417			}else if(type=='stockinfo'){
418				$(obj).parent().parent().find("strong").html($(obj).parent().parent().find("strong").text()-1);
419				content+="<a href=\"javascript:void(0)\" id=\"info_a\" onclick=\"AddFreeStock('"+id+"',this,'stockinfo')\">+加入自选股</a>"; 
420			}else if(type=='quoteHead'){
421				content+="<a href=\"javascript:void(0)\" id=\"info_a\" onclick=\"AddFreeStock('"+id+"',this,'quoteHead')\" class=\"ns_jrzxg\">加自选</a>"
422			}else if(type=='select'){
423                content+="<a href=\"javascript:void(0)\" onclick=\"AddFreeStock('"+id+"',this,'select')\" class=\"analyse_btn\">+自选</a>"
424            }
425			if(type=='stock'||type=="'stock'"){
426				if($("span.ns_gpgyzs").size()>0){
427					if(($("span.ns_gpgyzs").find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
428					$("span.ns_gpgyzs").find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
429					$("span.ns_gpgyzs").find("a.ns_cancel").attr("class","ns_add");
430					$("span.ns_gpgyzs").find("a.ns_cancel").attr("id","cancels_"+id+"");
431					}
432				}else{
433					//if($("span[id='cancels_"+id+"']").parent().parent().parent().attr("class")=="dynamic_zf_m"){
434					$("span[id='cancels_"+id+"']").each(function(){
435						$(this).attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
436						$(this).attr("class","ns_add");
437						$(this).attr("id","cancels_"+id+"");
438					});
439					//}
440				}
441				if($(".ban_tuijian").size()>0){
442				$(".ban_tuijian").each(function(obj){
443					if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
444						$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
445						$(this).find("a.ns_cancel").attr("class","ns_add");
446						$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
447					}
448				});
449				}
450				if($(".ban_tuijian_side").size()>0){
451					$(".ban_tuijian_side").each(function(obj){
452						//alert("取消关注后")
453						if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
454							$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
455							$(this).find("a.ns_cancel").attr("class","ns_add");
456							$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
457						}
458					});
459					}
460				if($(".ns_gpgyzs_new").size()>0){
461					$(".ns_gpgyzs_new").each(function(obj){
462						if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
463							$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
464							$(this).find("a.ns_cancel").attr("class","ns_add");
465							$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
466						}
467					});
468					}
469				if($(".ns_gpgyzs_newstock").size()>0){
470					$(".ns_gpgyzs_newstock").each(function(obj){
471						if(($(this).find("span.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
472							$(this).find("span.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
473							$(this).find("span.ns_cancel").attr("class","ns_add");
474							$(this).find("span.ns_cancel").attr("id","cancels_"+id+"");
475						}
476						if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
477							$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
478							$(this).find("a.ns_cancel").attr("class","ns_add");
479							$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
480						}
481					});	
482				}
483				if($(".ns_gpgyzs_newstock_1").size()>0){
484				 $(".ns_gpgyzs_newstock_1").each(function(obj){
485						if(($(this).find("span.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
486							$(this).find("span.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
487							$(this).find("span.ns_cancel").attr("class","ns_add");
488							$(this).find("span.ns_cancel").attr("id","cancels_"+id+"");
489						}
490					});	
491					
492				}
493				
494				if($(".ns_gpgyzs").size()>0){
495					$(".ns_gpgyzs").each(function(obj){
496						if(($(this).find("a.ns_gpmc").text().replace(/(^\s*)|(\s*$)/g, ""))==(stockName.replace(/(^\s*)|(\s*$)/g, ""))){
497							$(this).find("a.ns_cancel").attr("onclick","AddFreeStock("+id+",this,'"+type+"')");
498							$(this).find("a.ns_cancel").attr("class","ns_add");
499							$(this).find("a.ns_cancel").attr("id","cancels_"+id+"");
500						}
501					});	
502				}
503				if($(".stock_follow #info_a").size()>0){
504					$(".stock_follow #info_a").attr("class","ns_jrzxg");
505					$(".stock_follow #info_a").attr("onclick","AddFreeStock("+id+",this,'quoteHead')");
506				}
507				
508				
509			}else if(type=='quoteHead'){
510				var parentObj = $(obj).parent();
511				$(obj).remove();
512                parentObj.prepend(content);
513			}else if(type=='select'){
514                $(obj).before(content);
515                $(obj).remove();
516            }else{
517				$(obj).parent().html(content);
518			}
519			//$('#bg_top_'+id).hide();
520			$(obj).children().remove();
521		}else{
522			successAlert("网络异常!");
523			//$('#bg_top_'+id).hide();
524			$(obj).children().remove();
525		}
526	},"json");
527}
528//添加自选股 分组
529function AddFreeTeam(id){
530	if($("#showrecommendtt").size()==0){
531		$("div[name='n_top']").append("<div id=\"showrecommendtt\" style=\"display:none\"></div>");
532	}else{
533		$("#showrecommendtt").empty();
534	}
535	var url = "/ajax/finance/stock/addfreestockView.htm";
536	var data = "stockObjectId="+id;
537	AjaxSubmit(url,data,function(result){
538		$("#showrecommendtt").html(result);
539		$('#bg_top_'+id).hide();
540		jQuery.blockUI({
541			message:$("#showrecommendtt"), 
542			baseZ:9999, 
543			overlayCSS:{backgroundColor:"#000"}, 
544			css:{background:'none',width:"auto", padding:"0px", cursor:"default", left:"30%", top:"30%"}
545		});
546	});
547}
548function ShowAppDiv(id,obj){
549	$(obj).parent().find("div").attr({"class":"tit_nocur"});
550	$(obj).attr({"class":"tit_cur"});
551	
552	if(id=="appAttention"){
553		if($(obj).parent().find(".screening_user span:first").text().trim()=="用户"){
554			$("#appExp").hide();
555			$("#appAttention").show();
556			$("#deptExp").hide();
557			$("#deptAttention").hide();
558		}else{
559			$("#appExp").hide();
560			$("#appAttention").hide();
561			$("#deptExp").hide();
562			$("#deptAttention").show();
563		}
564
565	} 
566	if( id =="appExp"){
567		if($(obj).parent().find(".screening_user span:first").text().trim()=="用户"){
568			$("#appExp").show();
569			$("#appAttention").hide();
570			$("#deptExp").hide();
571			$("#deptAttention").hide();
572		}else{
573			$("#appExp").hide();
574			$("#appAttention").hide();
575			$("#deptExp").show();
576			$("#deptAttention").hide();
577		}
578	}
579	if(id == "appInvestorMedalCount"){
580		$("#"+id).show();
581		$("#appExp").hide();
582		$("#appAttention").hide();
583	}
584	if(id == "trendlist"){
585		$("#"+id).show();
586		$("#openlist").hide();
587	}
588	if(id == "openlist"){
589		$("#"+id).show();
590		$("#trendlist").hide();
591	}
592	
593}
594function AppOption(id,obj){
595	if(id=="dept"){
596		$(obj).attr("onclick","AppOption('app',this)");
597		$(obj).html("<span>用户</span>");
598		$(obj).parent().find("span:first").html("影子");
599		if($(obj).parent().parent().find(".tit_cur").text().trim()=="积分榜"){
600			$("#appExp").hide();
601			$("#appAttention").hide();
602			$("#deptExp").show();
603			$("#deptAttention").hide();
604			
605		}else{
606			$("#appExp").hide();
607			$("#appAttention").hide();
608			$("#deptExp").hide();
609			$("#deptAttention").show();
610		}
611		
612	}else{
613		$(obj).attr("onclick","AppOption('dept',this)");
614		$(obj).html("<span>影子</span>");
615		$(obj).parent().find("span:first").html("用户");
616		if($(obj).parent().parent().find(".tit_cur").text().trim()=="积分榜"){
617			$("#appExp").show();
618			$("#appAttention").hide();
619			$("#deptExp").hide();
620			$("#deptAttention").hide();
621		}else{
622			$("#appExp").hide();
623			$("#appAttention").show();
624			$("#deptExp").hide();
625			$("#deptAttention").hide();
626		}
627	}
628	
629}
630//月 季 年 切换
631function ShowTime(id,obj){
632	$(obj).parent().find("a").attr({"class":""});
633	$(obj).attr({"class":"cur"});
634	$("#"+id).show();
635	/*if(id=="stockweek"){
636		$("#stockmonth").hide();
637		$("#stockseason").hide();
638		$("#stockyear").hide();
639	}*/
640	if(id=="stockmonth"){
641		$("#stockseason").hide();
642		$("#stockyear").hide();
643//		$("[pid=stockmonth]").text("月收益率");
644//		$("[pid=stockseason]").text("å­£");
645//		$("[pid=stockyear]").text("å¹´");
646	}
647	if(id=="stockseason"){
648		$("#stockmonth").hide();
649		$("#stockyear").hide();
650//		$("[pid=stockmonth]").text("月");
651//		$("[pid=stockseason]").text("季收益率");
652//		$("[pid=stockyear]").text("å¹´");
653	}
654	if(id=="stockyear"){
655		$("#stockmonth").hide();
656		$("#stockseason").hide();
657//		$("[pid=stockmonth]").text("月");
658//		$("[pid=stockseason]").text("å­£");
659//		$("[pid=stockyear]").text("年收益率");
660	}
661}
662//10次  30 100 切换
663function ShowTimes(id,obj){
664	$(obj).parent().find("a").attr({"class":""});
665	$(obj).attr({"class":"cur"});
666	$("."+id).show();
667	if(id=="stockten"){
668		$(".stockthirty").hide();
669		$(".stockhundred").hide();
670//		$("#stockten").text("10P准确率");
671//		$("#stockthirty").text("30");
672//		$("#stockhundred").text("100");
673	}
674	if(id=="stockthirty"){
675		$(".stockten").hide();
676		$(".stockhundred").hide();
677//		$("#stockten").text("10");
678//		$("#stockthirty").text("30P准确率");
679//		$("#stockhundred").text("100");
680	}
681	if(id=="stockhundred"){
682		$(".stockten").hide();
683		$(".stockthirty").hide();
684//		$("#stockten").text("10");
685//		$("#stockthirty").text("30");
686//		$("#stockhundred").text("100P准确率");
687	}
688}
689function ShowDeptDiv(id,obj){
690	$(obj).parent().find("div").attr({"class":"tit_nocur"});
691	$(obj).parent().find("div:last").attr({"class":"ii_icon"});
692	$(obj).attr({"class":"tit_cur"});
693	$("#"+id).show();
694	if(id=="deptAttention"){
695		$("#deptExp").hide();
696		$("#deptInvestorMedalCount").hide();
697	}
698	if(id=="deptExp"){
699		$("#deptAttention").hide();
700		$("#deptInvestorMedalCount").hide();
701	}
702	if(id=="deptInvestorMedalCount"){
703		$("#deptExp").hide();
704		$("#deptAttention").hide();
705	}
706}
707function ShowAppStockDiv(id,obj){
708	var num="";
709	if(id=="divQuote"){
710		$("#"+id).show();
711		$("#divPlate").hide();
712		$("#divIndexes").hide();
713		num='0';
714	}else{
715		if(id=="divPlate"){
716			$("#divPlate").show();
717			$("#divQuote").hide();
718			$("#divIndexes").hide();
719			num='1';
720		}else{
721			$("#divIndexes").show();
722			$("#divQuote").hide();
723			$("#divPlate").hide();
724			num='2';
725		}
726	}
727	if(obj!=undefined){
728		$(obj).parent().find("div").attr({"class":"tit_nocur"});
729		$(obj).attr({"class":"tit_cur"});
730	}else{
731		$("#"+id).parent().find("div").eq(0).find("div").attr({"class":"tit_nocur"});
732		$("#"+id).parent().find("div").eq(0).find("div").eq(num).attr({"class":"tit_cur"});
733		
734	}
735
736}
737
738function TabMenu(menuType,obj,isorgtype,pageNo){
739	//alert("menuType=="+menuType);
740	if(menuType!="index"){
741		jQuery("#financetop").empty();
742		
743	}
744	if(menuType == "index"){
745		$(".top_ad").css({"display":"block"});
746    }else{
747		$(".top_ad").css({"display":"none"});
748    }
749	var content = $("#stockCode").val("");//清空搜索框
750    $("input[name='stockClassType']").val("");
751	$("#stockinfolist").hide();//隐藏搜索框
752	moreflag="";
753	if($(obj).attr("id")=="discover"){
754		moreflag="forecast";//股票首页分析发现更多开关
755	}
756	if(menuType=="view"){
757		moreflag="view";//股票首页分析发现更多开关
758	}
759	if(menuType=="quote"){
760		moreflag="quote";//股票首页分析发现更多开关
761	}
762	var hash="";
763	hash = window.location.hash;
764	if(hash=="#about"){
765		ViewAbout("about");//帮助中心刷新
766		window.location.hash = "about";
767		return;
768	}else{
769		hash="";
770	}
771	
772	if(menuType=="talk"){
773		/*$(".top_ad").css({"display":"none"});
774		document.title = "讨论区-U财经";
775		//$("#menu_1").attr("class","tit_cur");
776		//$("#menu_2").attr("class","tit_nocur");
777		hash = "/"+menuType+"/add_time/0/0/0";*/
778		document.title = "综合讨论区-U财经";
779		//window.location.href="/finance/stock/index.htm#/talk/newest_comment_time/0/0/0";
780		
781		
782		//"sortType=add_time&menuType=talk&tagChannelId=0&eventObject=0&conditionType=0&pageNo=1";
783	}else{
784		//$(".top_ad").css({"display":"none"});
785		if(menuType=="discover"){
786			document.title = "U分析-U财经";
787			//alert("wwwww")
788			//$("#menu_1").attr("class","tit_cur");
789			//$("#menu_2").attr("class","tit_nocur");
790			//$("#menu_2").hide();
791			
792			var voteType = $("[name='finstockType']").val();
793            history.pushState(null, null, "/finance/stock/refresh/0/1/0/uanalyses.htm");
794//			hash = "/"+menuType+"/0/"+voteType;
795//			window.location.href="/finance/stock/index.htm#/discover/0/"+voteType;
796// 			history.pushState(null, null, "/finance/stock/refresh/1/uanalyses.htm");
797		}else{
798			hash = "/"+menuType;
799		}
800	}
801	
802	
803	if(menuType=="index"){
804		/*$(".top_ad").css({"display":"block"});
805		document.title = "首页-U财经- POWER 你的投资";*/
806		document.title = "首页-U财经- POWER 你的投资";
807		//window.location.href="/finance/stock/index.htm#/index";
808		window.location.href="/finance/stock/index.htm";
809		
810		return;
811		/*var ajaxurl = "/ajax/finance/stock/jumpVote.htm";
812		var data = "";
813		AjaxSubmit(ajaxurl,data,function(data){
814			jQuery("#financetop").empty();
815			jQuery("#financetop").append(data);
816			Shcompositeindex();
817		});*/
818	}else if(menuType=="view"){
819		//alert("view")
820		moreflag="view";
821		document.title = "U观点-U财经";
822		$('[name=finstockType]').val('');
823		//window.event.returnValue=false; 
824		if(typeof(pageNo)=="undefined"||pageNo==""||pageNo==0){
825			pageNo = 1;
826		}
827		//document.location.href="/finance/stock/index.htm#/view/0/"+"/urlPageNo_"+pageNo;
828		history.pushState(null, null, "/finance/stock/refresh/0/1/0/ucontent.htm");
829		TalkDiscoverHot(1);
830		//window.location.href="/finance/stock/index.htm#/view/0/";
831		$("div[name='tabmenu']").find("li").each(function(){
832			if($(this).attr("name")==("tabmenu_view"))
833				$(this).attr("class","cur");
834			else
835				$(this).attr("class","");
836		});
837	    return;
838	}
839	window.location.hash =hash;
840	if(menuType=="people"){
841	/*	$(".top_ad").css({"display":"none"});
842		document.title = "人-U财经";*/
843		document.title = "U人物-U财经";
844		//window.event.returnValue=false;
845		//document.location.href="/finance/stock/index.htm#/people"+"/urlPageNo_"+pageNo;
846		history.pushState(null, null, "/finance/stock/refresh/month/1/0/upeople.htm");
847		// $("#peopletype").val("forecast");
848        // $("#peopletype").val("invest");
849        $("#peopletype").val("month");
850		TalkPeople();
851		TalkPeopleDetail(pageNo);
852		$("div[name='tabmenu']").find("li").each(function(){
853			if($(this).attr("name")==("tabmenu_people"))
854				$(this).attr("class","cur");
855			else
856				$(this).attr("class","");
857		});
858		return;
859	}
860	/*if(menuType=="view"){
861		alert("dddd")
862		$('[name=finstockType]').val('');
863		TalkDiscoverHot(1);
864	}*/
865	
866	if(menuType=="indexes"){
867		//alert("指数");
868		document.title = "指数-U财经";
869		//window.location.href="/finance/stock/index.htm#/indexes";
870		history.pushState( null, null,"/finance/stock/ustock/valuation1/1/0/indexes.htm");
871		/*$(".top_ad").css({"display":"none"});
872		document.title = "指数-U财经";
873		ShowAppStockDiv("divIndexes");*/
874	}else{
875		if(menuType=="plate"){
876			document.title = "板块-U财经";
877			//window.location.href="/finance/stock/index.htm#/plate";
878			history.pushState( null, null,"/finance/stock/ustock/quality1/1/0/plate.htm");
879			/*$(".top_ad").css({"display":"none"});
880			document.title = "板块-U财经";
881			ShowAppStockDiv("divPlate");*/
882			
883		}else{
884			ShowAppStockDiv("divQuote");
885		}
886	}
887	if(menuType=="quote"){
888		document.title = "U股票-U财经";
889		//window.location.href="/finance/stock/index.htm#/quote";
890        history.pushState( null, null,"/finance/stock/ustock/valuation1/1/0/quote.htm");
891		// history.pushState( null, null,"/finance/stock/ustock/quote.htm");
892		/*$(".top_ad").css({"display":"none"});
893		document.title = "个股-U财经";*/
894	}else if(menuType=="aquote"||menuType=="gquote"||menuType=="mquote"){
895        document.title = "U股票-U财经";
896        history.pushState( null, null,"/finance/stock/ustock/valuation1/1/0/"+menuType+".htm");
897    }
898	// $("html,body").animate({scrollTop:0}, 500);
899	var url = "/ajax/finance/stock/index.htm";
900	var data="";
901	if(menuType=="talk"){
902		var st = getUrlParam("sortType")||"newest_comment_time";
903		var ct = getUrlParam("conditionType")||"0";
904        var uarr = window.location.href.split("?")[0].split("/");
905        if($("#ubbsRefresh").val()==1){
906            if(uarr[uarr.length-1]=="ubbs.htm"){
907                var tagChannelId = uarr[uarr.length-4]
908                var no = uarr[uarr.length-3]
909                var type = uarr[uarr.length-2]
910            }else{
911                var tagChannelId = "0"
912                var no = "1"
913                var type = "0"
914            }
915            $("#ubbsRefresh").remove();
916		}else{
917            var tagChannelId = "0"
918            var no = "1"
919            var type = "0"
920		}
921        history.pushState(null, null, "/finance/stock/refresh/"+tagChannelId+"/"+no+"/"+type+"/ubbs.htm?sortType="+st+"&conditionType="+ct);
922		data = "sortType="+st+"&menuType=talk&tagChannelId="+tagChannelId+"&eventObject="+type+"&conditionType="+ct+"&pageNo="+no;
923		//alert("talk==="+data);
924	}else{
925		if(menuType=="discover"){
926			 if(isorgtype!=0&&isorgtype!=null){
927				data ="menuType=discover&contentType=0&isorgtype=1&voteType="+voteType+"&pageNo=1";
928				
929			 }else{
930				 data ="menuType=discover&contentType=0&voteType="+voteType+"&pageNo=1";
931			 }
932			 
933			 
934		}else{
935			if(menuType=="quote") {
936                if(isorgtype=='1') {
937                    data = "menuType=" + menuType+"&isorgtype=1";
938                }else{
939                    data = "menuType=" + menuType
940				}
941            }else{
942                data = "menuType=" + menuType
943			}
944		}
945	}
946	//showloadingDiv("请稍候...");
947	AjaxSubmit(url,data,TabContentBack,null,null,true,true);
947//加载页面正在加载
948	
949}
950function TabContentBack(data){
951	$("#financeleft").empty();
952	$("#financeleft").append(data);
953	//在某个标签下发表内容时,该编辑框应该自动添加该标签
954	var tag = "";
955	var newtag ="";
956	$("#finstockTalkTypeId").children("li").each(function(){
957	    if($(this).attr("class")=="cur"){
958	    	newtag = $(this).children("span").text().trim();
959	    	if(newtag!="全部"){
960	    		tag = "<li class=\"systagsclass\"><a href=\"javascript:void(0)\"><font>"+newtag+"</font><span class=\"close\"></span></a></li>";
961	    		$(".label_list").find(".add_label").before(tag);
962	    	}
963	    }
964	});
965	$(".close").unbind("click");
966	$(".close").bind("click",function(){
967		$(this).parent("a").parent("li").remove();
968	});
969	
970	ChangeMenu();
971	var menuType = jQuery("[name=menuType]").val();
972	 //alert(" menuType====="+menuType);
973	if(menuType=="indexes"||menuType=="plate"||menuType=="quote"||menuType=="aquote"||menuType=="gquote"||menuType=="mquote"){
974		jQuery("#financeindexdiv").empty();
975		$("[name='tabmenu_stock']").addClass("cur");
976	}
977	$.unblockUI.apply();
978	var pageo=$("[name='showMenuPages']").val();
979	
980	InitSetListMenu('finstockTalkTypeId',"",pageo,"showMenuPages");  
981	if(moreflag=="forecast"){//首页发现更多
982		$('[name=finstockType]').val('');
983		//$("#isorgtype").val(1);
984		TalkForecast(1);
985	}
986	if(moreflag=="view"){//首页观点更多
987		//alert("fffffssss")
988		/*$('[name=finstockType]').val('');
989		TalkDiscoverHot(1);*/
990		//$("[name='tabmenu_view']").addClass("cur");
991		$('[name=finstockType]').val('');
992		TalkDiscoverHot(1);
993		
994	}
995	if(moreflag=="quote"){//首页股票更多
996		// document.title = "首页-U财经-POWER你的投资";
997		//window.location.href="/finance/stock/index.htm#/quote";
998		history.pushState( null, null,"/finance/stock/ustock.htm");
999	}
1000	if(moreflag=="favorck"){//首页精彩内容(影子)更多
1001		$("#commonOrgMenuType").val("9");
1002		$("#favorCk").attr("checked",true);
1003		fdym(1);
1004	}
1005	if(menuType=="talk"){
1006		// document.title = "首页-U财经-POWER你的投资";
1007		var hash_content = window.location.hash.split("/");
1008		var page = "";
1009		for(var i=0;i<hash_content.length;i++){
1010			if(hash_content[i].indexOf("urlPageNo")!=-1){
1011				page = "/"+hash_content[i]
1012			}
1013		}
1014		//window.location.href="/finance/stock/index.htm#/talk/newest_comment_time/0/0/0"+page;
1015		//history.pushState( null, null,"/finance/stock/"+1+"/ubbs.htm");
1016	}
1017	
1018	// console.log("vrpageNo:"+vrpageNo);
1019	// console.log("vrstrss:"+vrstrss);
1020/*	
1021	if(vrpageNo == "1"){
1022		$(".label_list").find(".systagsclass").remove();
1023		//alert(123456);
1024		console.log("12345789456465asdsad ");
1025		console.log(vrstrss);
1026		$(".label_list").find(".add_label").before(vrstrss); 
1027		
1028		$(".close").bind("click",function(){// 点击关闭
1029			//alert(1)
1030			var t=$(this).siblings("font").text()
1031			$(this).closest("li").remove();
1032			$.fn.TagBox.DelTagEvent(1,t);//不起作用 删除
1033			//alert(t)
1034			
1035		});
1036	}*/
1037}
1038function TabTagContentBack(data){
1039    $("#talkBottom").empty();
1040    $("#talkBottom").append(data);
1041    //在某个标签下发表内容时,该编辑框应该自动添加该标签
1042    var tag = "";
1043    var newtag ="";
1044    $("#finstockTalkTypeId").children("li").each(function(){
1045        if($(this).attr("class")=="cur"){
1046            newtag = $(this).children("span").text().trim();
1047            if(newtag!="全部"){
1048                tag = "<li class=\"systagsclass cur\"><a href=\"javascript:void(0)\"><font>"+newtag+"</font><span class=\"close\"></span></a></li>";
1049                if($(".label_list").find(".systagsclass.cur").size()>0){
1050                    $(".label_list").find(".systagsclass.cur").remove();
1051                	$(".label_list").find("#textAreaTag").parent().parent().before(tag);
1052                }else{
1053                    $(".label_list").find("#textAreaTag").parent().parent().before(tag);
1054				}
1055            }
1056        }
1057    });
1058    $(".close").unbind("click");
1059    $(".close").bind("click",function(){
1060        $(this).parent("a").parent("li").remove();
1061    });
1062
1063    ChangeMenu();
1064    var menuType = jQuery("[name=menuType]").val();
1065    if(menuType=="indexes"||menuType=="plate"||menuType=="quote"){
1066        jQuery("#financeindexdiv").empty();
1067        $("[name='tabmenu_stock']").addClass("cur");
1068    }
1069    $.unblockUI.apply();
1070    var pageo=$("[name='showMenuPages']").val();
1071
1072    InitSetListMenu('finstockTalkTypeId',"",pageo,"showMenuPages");
1073    if(moreflag=="forecast"){//首页发现更多
1074        $('[name=finstockType]').val('');
1075        TalkForecast(1);
1076    }
1077    if(moreflag=="view"){//首页观点更多
1078        $('[name=finstockType]').val('');
1079        TalkDiscoverHot(1);
1080
1081    }
1082    if(moreflag=="quote"){//首页股票更多
1083        // document.title = "首页-U财经-POWER你的投资";
1084        //window.location.href="/finance/stock/index.htm#/quote";
1085        history.pushState( null, null,"/finance/stock/ustock.htm");
1086    }
1087    if(moreflag=="favorck"){//首页精彩内容(影子)更多
1088        $("#commonOrgMenuType").val("9");
1089        $("#favorCk").attr("checked",true);
1090        fdym(1);
1091    }
1092    if(menuType=="talk"){
1093        // document.title = "首页-U财经-POWER你的投资";
1094        var hash_content = window.location.hash.split("/");
1095        var page = "";
1096        for(var i=0;i<hash_content.length;i++){
1097            if(hash_content[i].indexOf("urlPageNo")!=-1){
1098                page = "/"+hash_content[i]
1099            }
1100        }
1101    }
1102}
1103function gnstockmarket(gnType,pageNo){
1104	if(gnType == null || gnType == "" || gnType == undefined){
1105		gnType = "1";
1106	}
1107	$("#gn  > span").attr({"class":"date_day"});
1108	$("#gn  > span[data='"+gnType+"']").attr({"class":"date_day cur"});
1109	/*if(gnType=="4"||gnType=="5"||gnType=="6"||gnType=="7"||gnType=="8"||gnType=="9"){
1110		alert("ssss2222")
1111		$("#gn  > div").attr({"class":"Layer1"});
1112		$("#gn  > div[data='"+gnType+"']").attr({"class":"Layer1_cur Layer1_cur_1"});
1113		
1114	}else{
1115		alert("ssss")
1116		$("#gn  > span").attr({"class":"date_day"});
1117		$("#gn  > span[data='"+gnType+"']").attr({"class":"date_day cur"});
1118	}*/
1119	var url = "/ajax/finance/stock/gnStockMarket.htm";
1120	if(isNaN(pageNo)){
1121		pageNo = 1;
1122	}
1123	var data = "GnType="+gnType+"&pageNo="+pageNo;
1124	AjaxSubmit(url,data,function(data){
1125		var plateQuote = $("#gnplate");
1126		$("#gnplate > div").hide();
1127		plateQuote.append(data);
1128	});
1129}
1130function wdstockmarket(wdType,pageNo){
1131	if(wdType == null || wdType == "" || wdType == undefined){
1132		wdType = "1";
1133	}
1134	$("#wd  > span").attr({"class":"date_day"});
1135	$("#wd  > span")[wdType-1].className="date_day cur";
1136	if(isNaN(pageNo)){
1137		pageNo = 1;
1138	}
1139	var url = "/ajax/finance/stock/wdStockMarket.htm";
1140	var data = "wdType="+wdType+"&pageNo="+pageNo;
1141	AjaxSubmit(url,data,function(data){
1142		var plateQuote = $("#wdplate");
1143		$("#wdplate > div").hide();
1144		plateQuote.append(data);
1145	});
1146}
1147
1148function gotopageclasstypeclick(tmpClassType,orderBy,tmpSumType,obj){
1149	var stockType=$("[name='stockType']").val();//个股、板块、指数
1150	var dateObj;
1151	var orderObj;
1152	/*
1153	 * stockType用于指明是个股[quote] 板块[plate] 指数[indexes]
1154	 * tmpClassType 用于指明是何种类型榜单 forecast valuation investment quality
1155	 * orderBy 指明是何种排序 按照后台要求
1156	 * tmpSumType 用于在预测类榜中指明汇总时间类型 day week month season year
1157	 * */
1158	
1159		if(orderBy!=''){
1160			//设定选项类型按钮的选中状态
1161			//alert("orderBy:"+orderBy);
1162			if(orderBy == "down"||orderBy == "over"||orderBy == "bad"||orderBy == "sell"){
1163				//如果是第二个按钮选中
1164				$(obj).parent().find(".Layer1_cur").attr({"class":"Layer1"});
1165			    $(obj).attr({"class":"Layer1_cur_cur"})
1166			}else{
1167				//如果是第一个按钮选中
1168				$(obj).parent().find(".Layer1_cur").attr({"class":"Layer1"});
1169				$(obj).parent().find(".Layer1_cur_cur").attr({"class":"Layer1"});
1170				$(obj).attr({"class":"Layer1_cur"})
1171			}
1172		}else{
1173			//设定周期按钮的选中状态
1174			$(obj).parent().find(".date_day").attr({"class":"date_day"});
1175			$(obj).attr({"class":"date_day cur"})
1176			$(obj).parent().parent().find("div").each(function(){
1177				if($(this).attr("class")=="Layer1_cur"){
1178					orderBy=$(this).attr("data");}
1179			});
1180		}
1181		
1182		if(tmpClassType=='forecast'){
1183			if(tmpSumType==''){
1184				//alert("查询汇总日期类型");
1185				//找到汇总日期的选中项
1186				$("#forecast_billboard_sumtype").find("span").each(function(){
1187					if($(this).attr("class")=="date_day cur"){
1188						tmpSumType=$(this).attr("data");}
1189				});
1190			}
1191			
1192			if(orderBy==''){
1193				//alert("查询看涨还是看跌");
1194				//说明需要查找到看涨还是看跌
1195				if($("#forecast_option_zhang").attr("class")=="Layer1_cur"){
1196					orderBy="up";
1197				}else{
1198					orderBy="down";
1199				}
1200			}
1201			
1202			if(orderBy=='up'){
1203				$("#"+tmpClassType+"_3").text("看涨");
1204			}else{
1205				$("#"+tmpClassType+"_3").text("看跌");
1206			}
1207			
1208		}else if(tmpClassType=='quality'){
1209			if(orderBy=='good'){
1210				$("#"+tmpClassType+"_3").text("优评");
1211			}else{
1212				$("#"+tmpClassType+"_3").text("差评");
1213			}
1214			
1215		}else if(tmpClassType=='investment'){
1216			if(orderBy=='buy'){
1217				$("#"+tmpClassType+"_3").text("买入");
1218			}else{
1219				$("#"+tmpClassType+"_3").text("卖出");
1220			}
1221			
1222		}else if(tmpClassType=='valuation'){
1223			if(orderBy=='under'){
1224				$("#"+tmpClassType+"_3").text("低估");
1225			}else{
1226				$("#"+tmpClassType+"_3").text("高估");
1227			}
1228			
1229		}else{
1230			alert("tmpClassType参数错误!!!");
1231			return;
1232		}
1233	
1234	//alert("gotopageclasstypeclick:stockType:["+stockType+"] tmpClassType:["+tmpClassType+"] orderBy:["+orderBy+"] tmpSumType:["+tmpSumType+"]");
1235	gotopageclasstype(tmpClassType,orderBy,tmpSumType);
1236}
1237//个股、大盘、指数下4大类投票获取列表个股、大盘、指数
1238function gotopageclasstype(tmpClassType,orderBy,tmpSumType){
1239
1240	var stockType=$("[name='stockType']").val();//个股、大盘、指数
1241	
1242	var tmpBillingType=orderBy;//对应于后台的optionName
1243	
1244	var realClassType=tmpClassType;
1245	//对于载入的时候的处理
1246	if(tmpClassType=='forecast'){
1247		//如果是预测类的榜单,则后台使用的类型标志为榜单类型加上汇总周期
1248		realClassType=realClassType+"_"+tmpSumType;
1249	}
1250	
1251	//alert("gotopageclasstype stockType:["+stockType+"] realClassType:["+realClassType+"] tmpBillingType:["+tmpBillingType+"]");
1252	jQuery.ajax({
1253		url : "/ajax/finance/stock/quote/billing",
1254		data : "stockType="+stockType+"&classType="+realClassType+"&billingType="+tmpBillingType+"&pageNo=1",
1255		type : "post",
1256		//ajax 提交成功后操作
1257	    success: function(html){
1258	    	//alert(stockType+"_"+tmpClassType);
1259	 		jQuery("#"+stockType+"_"+tmpClassType).empty();
1260	 		jQuery("#"+stockType+"_"+tmpClassType).append(html);
1261 			jQuery.unblockUI();
1262 		}	
1263	});
1264}
1265
1266function gotosortclasstype(tmpClassType,orderBy,tmpSumType,pageNo,obj){
1267	
1268	$("#billingTag>li>a").each(function(){
1269		//console.log($(this))
1270		$(this).removeClass();
1271	})
1272	
1273	$(obj).addClass("cur");
1274	
1275	// if(typeof(pageNo)=="undefined"||pageNo==0){
1276	// 	pageNo = 1;
1277	// }
1278    pageNo = $("#urlPageNo").val();
1279	
1280	var isshadow = $("#isShadow").val();
1281	
1282	if(typeof(isshadow)=="undefined"){
1283		isshadow = 0;
1284	}
1285
1286	var stockType=$("[name='stockType']").val();//个股、大盘、指数
1287
1288	var clickType = $(obj).attr("id");
1289
1290    history.pushState( null, null,"/finance/stock/ustock/"+clickType+"/"+pageNo+"/"+isshadow+"/"+stockType+".htm");
1291	
1292	var tmpBillingType=orderBy;//对应于后台的optionName
1293	$("#orderBy").val(orderBy);
1294	var orderType = $("#orderType").val()||1;
1295	
1296	var realClassType=tmpClassType;
1297	$("#tmpClassType").val(tmpClassType);
1298	$("#tmpSumType").val(tmpSumType);
1299	//对于载入的时候的处理
1300	if(tmpClassType=='forecast'){
1301		//如果是预测类的榜单,则后台使用的类型标志为榜单类型加上汇总周期
1302		realClassType=realClassType+"_"+tmpSumType;
1303	}
1304
1305	if(isshadow==1&&orderType==1){
1306        $("#showSort").text("按机构数")
1307	}
1308	if(isshadow!=1&&orderType==1){
1309        $("#showSort").text("按U评分")
1310	}
1311	
1312	var url = "/ajax/finance/stock/quote/sortbilling";
1313	var data = "stockType="+stockType+"&classType="+realClassType+"&billingType="+tmpBillingType+"&pageNo="+pageNo+"&isorgtype="+isshadow+"&pageSize=40&orderType="+orderType;
1314	
1315	AjaxSubmit(url, data, function(html){
1316		jQuery("#leftquote").empty();
1317 		jQuery("#leftquote").append(html);
1318		jQuery.unblockUI();
1319	}, null, null, true, true);
1320}
1321
1322
1323function gotoorderclasstype(flag){
1324    var isshadow = $("#isShadow").val();
1325
1326    if(typeof(isshadow)=="undefined"){
1327        isshadow = 0;
1328    }
1329
1330    var stockType=$("[name='stockType']").val();//个股、大盘、指数
1331
1332    var orderBy = $("#orderBy").val();
1333    var tmpBillingType=orderBy;//对应于后台的optionName
1334
1335	var tmpClassType = $("#tmpClassType").val();
1336    var realClassType= $("#tmpClassType").val();
1337    var tmpSumType = $("#tmpSumType").val();
1338    //对于载入的时候的处理
1339    if(tmpClassType=='forecast'){
1340        //如果是预测类的榜单,则后台使用的类型标志为榜单类型加上汇总周期
1341        realClassType=realClassType+"_"+tmpSumType;
1342    }
1343
1344    var url = "/ajax/finance/stock/quote/sortbilling";
1345    var data = "stockType="+stockType+"&classType="+realClassType+"&billingType="+tmpBillingType+"&pageNo=1&isorgtype="+isshadow+"&pageSize=40&orderType="+flag;
1346
1347    var html="";
1348    html+="<h4>";
1349    if(flag==2)
1350    	html+="<span id='showSort'>按综合</span>";
1351    else{
1352    	if(isshadow==1)
1353            html+="<span id='showSort'>按机构数</span>";
1354    	else
1355    		html+="<span id='showSort'>按U评分</span>";
1356	}
1357    html+="</h4>";
1358    html+="<div id='UstockChannel' style=\"display: none;\">";
1359    if(flag==2){
1360        if(isshadow==1)
1361    		html+="<p><a id='anUCore' href=\"javascript:void(0)\" onclick=\"gotoorderclasstype(1)\">按机构数</a></p>";
1362        else
1363            html+="<p><a id='anUCore' href=\"javascript:void(0)\" onclick=\"gotoorderclasstype(1)\">按U评分</a></p>";
1364    }else
1365    	html+="<p><a href=\"javascript:void(0)\" onclick=\"gotoorderclasstype(2)\">按综合</a></p>";
1366    html+="</div>";
1367    $("#stockfind").empty();
1368    $("#stockfind").append(html);
1369    $("#orderType").val(flag);
1370
1371    AjaxSubmit(url, data, function(html){
1372        jQuery("#leftquote").empty();
1373        jQuery("#leftquote").append(html);
1374        jQuery.unblockUI();
1375    }, null, null, true, true);
1376}
1377
1378//分页
1379function gotopage(pageNo,id){
1380	if(id == "#lefttalk_page"){
1381		TalkTabMenu(pageNo);
1382	}
1383}
1384function goDetail(voteType,obj){
1385	if($(obj).attr("data")==''){
1386		return;
1387	}
1388	if(voteType==10){
1389		$(".leftbar_titlea .date").eq(0).find("span").each(function(){
1390			if($(this).attr("class")=="date_day cur"){
1391				voteType=$(this).attr("data");}
1392		});
1393	}
1394	window.open ('/finance/stock/detail.htm?stockObjectId='+$(obj).attr("data")+'&voteType='+voteType);
1395}
1396
1397
1398//讨论区分析
1399function TalkForecast(pageNo,typeFlag){
1400	var hash="";
1401	var data="";
1402	var voteType = $("[name='finstockType']").val();
1403	var sortType = $("#sortType");
1404    var stockClassType = $('[name="stockClassType"]').val()||"6";
1405	if(typeof(sortType)=="undefined"){
1406		sortType = "1";
1407	}else{
1408		sortType = $("#sortType").val();
1409	}
1410//	$("#menu_1").attr("class","tit_cur");
1411//	$("#menu_2").attr("class","tit_nocur");
1412 	if(isNaN(pageNo) || pageNo == null){
1413		pageNo = 1;
1414	}
1415	var isorgtype = $("#isorgtype").val();
1416	if(isorgtype=='' || isorgtype == undefined){
1417		isorgtype = 0;//非影子
1418	}
1419	
1420	//hash = "/discover/0/"+voteType+"/"+isorgtype+"/urlPageNo_"+pageNo;
1421	//window.location.hash =hash;
1422	// history.pushState(null, null, "/finance/stock/refresh/1/uanalyses.htm");
1423	if(voteType=="")
1424    	history.pushState(null, null, "/finance/stock/refresh/0/"+pageNo+"/"+isorgtype+"/uanalyses.htm?sortType="+sortType);
1425	else
1426        history.pushState(null, null, "/finance/stock/refresh/"+voteType+"/"+pageNo+"/"+isorgtype+"/uanalyses.htm?sortType="+sortType);
1427	//分析类型
1428	var pageNo1=$("[name='analyMenuPage']").val();
1429	 //var contentType = $("#contentType").val();
1430 	
1431	 var url = "/ajax/finance/stock/discover.htm";
1432	 if(typeFlag=='0'){
1433		 data ="menuType=discover&contentType=0&voteType=&isorgtype="+isorgtype+"&pageNo="+pageNo;
1434	 }else{
1435		 data ="menuType=discover&contentType=0&voteType="+voteType+"&isorgtype="+isorgtype+"&pageNo="+pageNo;
1436	 }
1437	 data += "&sortType="+sortType+"&stockClassType="+stockClassType;
1438	 AjaxSubmit(url,data,function(d){
1439		$("#financeleft").empty();
1440		$("#financeleft").append(d);
1441		if(typeFlag=="0"){
1442			$("#finstockTypeId").find("li").removeClass("cur");
1443			$("#finstockTypeId").find("li:first-child").addClass("cur");
1444		}
1445		if(isorgtype=="1"){//首页 发现
1446			$("#yzfound").addClass("cur");//影子添加样式 
1447			$("#yh").attr("src","/images/share/txt_icon_user_no.gif");//用户换图片
1448			$("#userfound").removeClass("cur");//用户时 移除 影子样式
1449			$("#yz").attr("src","/images/share/txt_icon_shadow_logo_no_new.gif");//影子换图片
1450		}
1451		InitSetListMenu("finstockTypeId","",pageNo1,"analyMenuPage");
1452		if(isorgtype=="0"){//首页 发现
1453			$("#userfound").addClass("cur");//用户时  影子样式
1454			$("#yzfound").removeClass("cur");//影子样式 
1455		}
1456	},null,null,true,true);
1457}
1458
1459//板块的详细股票
1460function addplateStock(stockObjectId,pageNos){
1461	//去掉点点点
1462	if(pageNos=="-1"){
1463		return;
1464	}
1465	var url = "/ajax/finance/stock/detailaddPlateStock.htm";
1466	var data = "stockObjectId="+stockObjectId+"&pageNos="+pageNos;
1467    AjaxSubmit(url,data,function(d){
1468		$("#platedetailId").empty();
1469		$("#platedetailId").append(d);
1470		history.pushState(null,null,"/finance/stock/detail.htm?stockObjectId="+stockObjectId+"&plateNo="+pageNos+window.location.hash);
1471	},null,null,null,false);
1472	$("#finde"+pageNos).children("a").addClass("current");	
1473}
1474//讨论区发现
1475function TalkDiscoverHot(pageNo,stockObjectId){
1476	//alert("sssss")
1477	var hash="";
1478	var voteType = $("[name='finstockType']").val();
1479    var stockClassType = $("[name='stockClassType']").val()||"6";
1480	var commonOrgMenuType = $("#commonOrgMenuType").val();
1481	$("[name='tabmenu_view']").addClass("cur");
1482	//hash = "/discover/1/"+voteType;
1483	
1484	
1485//	$("#menu_1").attr("class","tit_cur");
1486//	$("#menu_2").attr("class","tit_nocur");
1487 	if(isNaN(pageNo) || pageNo == null){
1488		pageNo = 1;
1489	}
1490 	
1491 	hash = "/view/0/";
1492//	window.location.hash =hash;
1493 	
1494	//分析类型
1495	 //var contentType = $("#contentType").val();
1496	 var url = "/ajax/finance/stock/discover.htm";
1497	 var data ="menuType=discover&contentType=1&voteType="+voteType+"&pageNo="+pageNo+"&userTypeLimit="+commonOrgMenuType+"&stockClassType="+stockClassType;
1498	  if(stockObjectId !="" && stockObjectId != undefined){
1499		 	data += "&stockObjectId="+stockObjectId;
1500		 }
1501	AjaxSubmit(url,data,function(d){
1502		$("#financeleft").empty();
1503		$("#financeleft").append(d);
1504	},null,null,false,true);
1505}
1506
1507function TalkDiscoverHot1(pageNo,stockObjectId,isshadow,tagId){
1508	var hash="";
1509	var voteType = $("[name='finstockType']").val();
1510	$("#commonOrgMenuType").val(isshadow);
1511	var commonOrgMenuType = $("#commonOrgMenuType").val();
1512	if(typeof(commonOrgMenuType)=="undefined"){
1513		commonOrgMenuType = isshadow;
1514	}
1515	$("[name='tabmenu_index']").removeClass("cur");
1516	$("[name='tabmenu_view']").addClass("cur");
1517	//hash = "/discover/1/"+voteType;
1518	//hash = "/view/9/"+"/urlPageNo_"+pageNo;
1519	//window.location.hash =hash;
1520	
1521	
1522//	$("#menu_1").attr("class","tit_cur");
1523//	$("#menu_2").attr("class","tit_nocur");
1524 	if(isNaN(pageNo) || pageNo == null){
1525		pageNo = 1;
1526	}
1527 	
1528 	window.history.replaceState(null, null, "/finance/stock/refresh/"+pageNo+"/ucontent.htm");
1529	//location.replace('');
1530 	
1531	//分析类型
1532	 //var contentType = $("#contentType").val();
1533	 var url = "/ajax/finance/stock/discover.htm";
1534	 var data ="menuType=discover&contentType=1&voteType="+voteType+"&pageNo="+pageNo+"&userTypeLimit="+commonOrgMenuType;
1535	  if(stockObjectId !="" && stockObjectId != undefined){
1536		 	data += "&stockObjectId="+stockObjectId;
1537		 }
1538	if(tagId !="" && tagId != undefined){
1539		data += "&redirectTag="+tagId;
1540	}
1541	AjaxSubmit(url,data,function(d){
1542		$("#financeleft").empty();
1543		$("#financeleft").append(d);
1544	}
1544,null,null,true,true);
1545}
1546
1547
1548//讨论区 人 (标签部分)
1549function TalkPeople(param){
1550	var url = "/ajax/finance/stock/TalkPeople.htm";
1551	var data = "";
1552    var hash_content = window.location.hash.split("/");
1553    if(window.location.hash.indexOf("people")>-1&&hash_content.length>2){
1554        data += "voteType="+hash_content[1]+"&isorgtype="+hash_content[2];
1555    }
1556	AjaxSubmit(url,data,function(d){
1557		$("#discussion_left .sport_shadow,#discussion_left .com_comment,#discussion_left .com_list_tit").remove();
1558		$("#financeleft").empty();
1559		$("#financeleft").append(d);
1560		$("#discussion_left").empty();
1561		if(param=="detail"){
1562			//$("#financeleft .leftbar_titleb").remove();
1563			$("#analys").hide();	//  用户和影子
1564			   $("#disc").hide(); 
1565			   $(".leftbar_titleb").not("#detail_all").hide();
1566		
1567			  
1568//			$(".Find_list li").get(1).remove();
1569//			$(".Find_list li").get(2).remove();
1570//			$(".Find_list li").get(3).remove();
1571//			$('[data-type="many"]').html("看多");
1572//			$('[data-type="kong"]').html("看空");
1573		}
1574	});
1575}
1576function getQueryString(name){
1577	var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
1578	var r = window.location.search.substr(1).match(reg);
1579	if (r != null) {
1580		return unescape(r[2]);
1581	}
1582	return null;
1583}
1584
1585//讨论区 人 (人物部分)
1586function TalkPeopleDetail(pageNo,stockObjectId){
1587	if(isNaN(pageNo) || pageNo== null){
1588		pageNo = 1;
1589	}
1590	var id = getQueryString("id");
1591	if(id!=null){
1592		var peopletype =id;
1593	}else{
1594		var peopletype = $("#peopletype").val();
1595	}
1596	
1597	//var peopletype = $("#peopletype").val();
1598	var isorgtype = $("#isorgtype").val();
1599	var stockObjectId =$("#stockObjectId").val();
1600	if(peopletype=='' || peopletype == undefined){
1601        var hash_content = window.location.hash.split("/");
1602        if(window.location.hash.indexOf("people")>-1&&hash_content.length>2){
1603            peopletype = hash_content[1];
1604        }else{
1605            // peopletype = "forecast";
1606            // peopletype = "invest";
1607            peopletype = "month";
1608		}
1609	}
1610	if(isorgtype=='' || isorgtype == undefined){
1611        var hash_content = window.location.hash.split("/");
1612        if(window.location.hash.indexOf("people")>-1&&hash_content.length>2){
1613            isorgtype = hash_content[2];
1614        }else{
1615            isorgtype = 0;
1616        }
1617	}
1618    if(stockObjectId !=''&&stockObjectId!='undefined'&&typeof(stockObjectId)!='undefined'){
1619		window.location.hash = "people/"+peopletype+"/"+isorgtype+"/urlPageNo_"+pageNo
1620	}else{
1621        history.pushState(null, null, "/finance/stock/refresh/"+peopletype+"/"+pageNo+"/"+isorgtype+"/upeople.htm")
1622	}
1623	var url = "/ajax/finance/stock/TalkPeopleDetail.htm";
1624	var data = "pageNo="+pageNo+"&pageSize=20";
1625		data +="&peopletype="+peopletype;
1626		data +="&isorgtype="+isorgtype;
1627	if(stockObjectId !=''&&stockObjectId!='undefined'){
1628		data +="&stockObjectId="+stockObjectId;
1629	}	
1630	AjaxSubmit(url,data,function(d){
1631		$("#analys").hide();	//  用户和影子
1632		   $("#disc").hide(); 
1633		$("#dts_list").empty();
1634		$("#dts_list").append(d);
1635		if(d.indexOf("moving_list")==-1){//不存在  信息就出现为空提示
1636		var em=""
1637			var em="<div class=\"no_content\">"	
1638				em +=  "<div class=\"empty_content\">" 
1639					em  +="<div>" 
1640						em  +=    " <img src=\"/images/icon1_empty.png\" class=\"empty_img\">"
1641							em+=     "  <p>暂无相关内容<a href=\"javascript:void(0)\"></a></p>"
1642								em+=    "</div>"  
1643									em	+=     "   </div>"  
1644										em+=  	"  </div>"  
1645			
1646			$("#dts_list").html(em);
1647		}
1648	},null,null,true,true);
1649}
1650//讨论区 人排序
1651function talkpeopledym(pageNo){
1652
1653	if(isNaN(pageNo) || pageNo == null){
1654		pageNo = 1;
1655	}
1656	
1657	var url = "/ajax/finance/stock/talkpeopledym.htm";
1658	var data = "pageNo="+pageNo;
1659		//data += "&stockTag="+stockTag;
1660	
1661	AjaxSubmit(url,data,function(d){
1662		$(".dt_list").empty();
1663		$(".dt_list").append(d);
1664	},null,null,true,true);
1665
1666	
1667}
1668//讨论区发现
1669function TalkFindHot(pageNo,stockObjectId,seq){
1670	if(!$("#talk_content_2").size()>0){
1671		$("#financeleft").empty();
1672		var content="";
1673		content='<div class="leftbar_titleb" style="margin-top:10px;display:none">';
1674		content+='<div class="tit_cur" id="menu_1" onclick="TabMenu(\'talk\',this);">';
1675		content+='讨论区';
1676		content+='</div>';
1677			content+='<div class="tit_nocur" id="menu_2" onclick="TalkForecast(1)">';
1678			content+='分析';
1679			content+='</div>';
1680			content+='<div class="tit_nocur" id="menu_3" onclick="TalkFindHot(1)">';
1681			content+='发现';
1682			content+='</div>';
1683			content+='</div>';
1684			content+='<div id="talk_content_2"></div>';
1685		$("#financeleft").append(content);
1686	}
1687 	if(isNaN(pageNo) || pageNo == null){
1688		pageNo = 1;
1689	}
1690	 var url = "/ajax/finance/stock/TalkFindHot.htm";
1691    if($("#talk_content_2").size()>0&&window.location.hash.indexOf("discover")>-1) {
1692        var hash_content = window.location.hash.split("/");
1693        if (hash_content.length > 2) {
1694            var commonOrgMenuType = $("#commonOrgMenuType").val()||hash_content[3];
1695        } else {
1696            var commonOrgMenuType = $("#commonOrgMenuType").val();
1697        }
1698    }else{
1699        var commonOrgMenuType = $("#commonOrgMenuType").val();
1700	}
1701	 if(typeof(commonOrgMenuType)=='undefined'){
1702		 commonOrgMenuType = '0';
1703	 }
1704     var stockName = $("#stockName").val();
1705	 if(stockName=="")
1706         stockName = $("#stockNameEc").val();
1707     var stockCode = $("#stockObjectCode").val();
1708     var excludeTagTitle = "'"+stockName + "','" + stockCode + "','股票','财经','个股','指数','板块'";
1709	 var data ="pageNo="+pageNo+"&userTypeLimit="+commonOrgMenuType+"&excludeTagTitle="+excludeTagTitle;
1710	  if(stockObjectId !="" && stockObjectId != undefined){
1711	 	data += "&stockObjectId="+stockObjectId;
1712	 }
1713    if($("#talk_content_2").size()>0&&window.location.hash.indexOf("discover")>-1){
1714		var hash_content = window.location.hash.split("/");
1715		if(hash_content.length>4){
1716			var s = seq||hash_content[4];
1717            window.location.hash = "discover/"+hash_content[1]+"/"+hash_content[2]+"/"+commonOrgMenuType+"/"+s+"/urlPageNo_"+pageNo;
1718		}else{
1719            window.location.hash = "discover//0/"+commonOrgMenuType+"/addtime/urlPageNo_"+pageNo;
1720		}
1721	}
1722	AjaxSubmit(url,data,function(d){
1723		//讨论区页面
1724		$("#talk_content_2").empty();
1725		$("#talk_content_2").append(d);
1726		$("#menu_1").attr("class","tit_nocur");
1727		$("#menu_2").attr("class","tit_nocur");
1728		$("#menu_3").attr("class","tit_cur");
1729		$("#content_1").hide();
1730		$("#discussion_left").empty();
1731		$("#financeleft .leftbar_titleb").remove();
1732	},null,null,false,true);
1733}
1734//讨论区发现——找人
1735function TalkFindPeo(pageNo){
1736 	if(isNaN(pageNo) || pageNo == null){
1737		pageNo = 1;
1738	}
1739	var org = $("#commonOrgMenuType").val();
1740	var seq = $("#commonPeoMenuType").val();
1741	var stockTag = $("#commonTagMenuType").val();
1742	 var url = "/ajax/finance/stock/TalkFindPeo.htm";
1743	 var data ="pageNo="+pageNo;
1744	 	data +=	"&org="+org;	
1745	 	data +=	"&seq="+seq;	
1746	 	data +=	"&stockTag="+stockTag;	
1747	AjaxSubmit(url,data,function(d){
1748		
1749		$(".dt_list").empty();
1750		$(".dt_list").append(d);
1751	},null,null,true,true);
1752
1753
1754}
1755//讨论区分析——找人
1756function TalkFindAniPeo(pageNo){
1757 	if(isNaN(pageNo) || pageNo == null){
1758		pageNo = 1;
1759	}
1760	var org = $("#commonOrgMenuType").val();
1761	var seq = $("#commonPeoMenuType").val();
1762	var stockTag = $("#commonTagMenuType").val();
1763	 var url = "/ajax/finance/stock/TalkAniFindPeo.htm";
1764	 var data ="pageNo="+pageNo;
1765	 	data +=	"&org="+org;	
1766	 	data +=	"&seq="+seq;	
1767	 	data +=	"&stockTag="+stockTag;	
1768	AjaxSubmit(url,data,function(d){
1769		$(".dt_list").empty();
1770		$(".dt_list").append(d);
1771		$("#dt_lists").remove();
1772	},null,null,true,true);
1773
1774
1775}
1776//讨论区分析——搜索人
1777function TalkSearchAniPeo(pageNo,searchWord){
1778 	if(isNaN(pageNo) || pageNo == null){
1779		pageNo = 1;
1780	}
1781	 var url = "/ajax/finance/stock/TalkSearchAniPeo.htm";
1782	 var data ="pageNo="+pageNo;
1783	 	data +=	"&searchWord="+searchWord;	
1784	AjaxSubmit(url,data,function(d){
1785		$(".dt_list").empty();
1786		$(".dt_list").append(d);
1787		$("#dt_lists").remove();
1788	},null,null,true,true);
1789
1790
1791}
1792//详细页分析——搜索人
1793function TalkDetailSearchAniPeo(pageNo,searchWord){
1794 	if(isNaN(pageNo) || pageNo == null){
1795		pageNo = 1;
1796	}
1797	 var url = "/ajax/finance/stock/TalkDetailSearchAniPeo.htm";
1798	 var data ="pageNo="+pageNo;
1799	 	data +=	"&searchWord="+searchWord;	
1800	AjaxSubmit(url,data,function(d){
1801		$(".Analy_contai").empty();
1802		$(".Analy_contai").append(d);
1803		$(".com_comment").hide();
1804		//$(".com_comment").next().hide();
1805		$(".sport_shadow").hide();
1806		$(".sport_shadow_fx").show();
1807	}
1807,null,null,true,true);
1808
1809
1810}
1811//讨论区人——搜索人
1812function TalkSearchPeoplePeo(pageNo,searchWord){
1813 	if(isNaN(pageNo) || pageNo == null){
1814		pageNo = 1;
1815	}
1816	 var url = "/ajax/finance/stock/TalkSearchPeoplePeo.htm";
1817	 var data ="pageNo="+pageNo;
1818	 	data +=	"&searchWord="+searchWord;	
1819	AjaxSubmit(url,data,function(d){
1820		$("#dts_list").empty();
1821		$("#dts_list").append(d);
1822//		$("#dt_lists").remove();
1823	},null,null,true,true);
1824
1825
1826}
1827
1828//讨论区找人——按关注数
1829function ffocusno(){
1830		$("#talkfindgoal").empty();
1831			var html = "<h4>";
1832			html += "<span>按关注数</span>";
1833			html += "</h4>";
1834			html += "<div style=\"display:none\">";
1835			html += "<p><a href=\"javascript:void(0)\" onclick =\"fpoint()\">按积分</a></p>";
1836			html += "</div>";
1837		$("#talkfindgoal").append(html);
1838		$("#commonPeoMenuType").val("favorcount");
1839		TalkFindPeo(1);
1840}
1841//讨论区找人——按积分
1842function fpoint(){
1843		$("#talkfindgoal").empty();
1844		var html = "<h4>";
1845			html += "<span>按积分</span>";
1846			html += "</h4>";
1847			html += "<div style=\"display:none\">";
1848			html += "<p><a href=\"javascript:void(0)\" onclick=\"ffocusno()\">按关注数</a></p>";
1849			html += "</div>";
1850		$("#talkfindgoal").append(html);
1851		$("#commonPeoMenuType").val("exp");
1852		TalkFindPeo(1);
1853}
1854//讨论区发现——动态
1855function fdym(pageNo){
1856	if(isNaN(pageNo) || pageNo == null){
1857		pageNo = 1;
1858	}
1859	
1860	if(moreflag=="favorck"){
1861		$("#commonOrgMenuType").val("9");
1862		$("#favorCk").attr("checked",true);
1863	}
1864	moreflag="";
1865	var stockTag = $("#commonTagMenuType").val();
1866	var dym = $("#commonDymMenuType").val();
1867	var org = $("#commonOrgMenuType").val();
1868	var seq = $("#commonPeoMenuType").val()||"addtime";
1869	var stockId = $("#stockObjectId").val();
1870    var stockClassType = $("[name='stockClassType']").val()||"6";
1871	
1872	if(typeof(stockId)=="undefined"){
1873		stockId = "";
1874	}
1875	var redirectTag = $("#redirectTagTitle").val();
1876	if (typeof (redirectTag) != undefined && redirectTag != null && redirectTag != "") {
1877		stockTag = redirectTag;
1878		//此处要为空
1879		$("#redirectTagTitle").val(null);
1880	}
1881	
1882	var url = "/ajax/finance/stock/TalkDym.htm";
1883	var data = "pageNo="+pageNo;
1884		data += "&stockTag="+stockTag;
1885		data += "&dym="+dym;
1886		data += "&org="+org;
1887		data += "&seq="+seq;
1888		data += "&stockId="+stockId;
1889		data += "&stockClassType="+stockClassType;
1890		
1891		//window.alert(stockId);
1892	if(typeof(stockId)!="undefined"&&stockId!=""){
1893        window.location.hash="discover/"+stockTag+"/"+dym+"/"+org+"/"+seq+"/urlPageNo_"+pageNo;
1894	}else{
1895        if(stockTag==""){
1896            history.pushState(null, null, "/finance/stock/refresh/0/"+pageNo+"/"+org+"/ucontent.htm?dym="+dym+"&seq="+seq);
1897        }else{
1898            history.pushState(null, null, "/finance/stock/refresh/"+stockTag+"/"+pageNo+"/"+org+"/ucontent.htm?dym="+dym+"&seq="+seq);
1899        }
1900	}
1901	AjaxSubmit(url,data,function(d){
1902		if(org=="9"){
1903			//个股下
1904			$("#tofindyzdiscorer").addClass("cur");//影子添加样式 
1905			$("#yz1").attr("src","/images/share/txt_icon_shadow_logo_no_new.gif");//影子换图片  深色
1906			
1907			$("#touserdiscorer").removeClass("cur");//用户时 移除 影子样式
1908			$("#yh1").attr("src","/images/share/txt_icon_user_no.gif");//用户换图片
1909		//首页 发现
1910			$("#jcyz").addClass("cur");//影子添加样式 
1911			$("#yz").attr("src","/images/share/txt_icon_shadow_logo_no_new.gif");//影子换图片  深色
1912			$("#jcuser").removeClass("cur");//用户时 移除 影子样式
1913			$("#yh").attr("src","/images/share/txt_icon_user_no.gif");//用户换图片
1914		}
1915		if(org=="0"){//用户
1916			//个股下
1917			$("#tofindyzdiscorer").removeClass("cur");//影子添加样式 
1918			$("#yh1").attr("src","/images/share/txt_icon_user.gif");//用户换图片
1919			$("#touserdiscorer").addClass("cur");//用户时 移除 影子样式
1920			$("#yz1").attr("src","/images/share/txt_icon_shadow_logo_no.gif");//影子换图片
1921			
1922			//首页 发现
1923			$("#jcuser").addClass("cur");//影子添加样式 
1924			$("#yh").attr("src","/images/share/txt_icon_user.gif");//用户换图片
1925			$("#jcyz").removeClass("cur");//用户时 移除 影子样式
1926			$("#yz").attr("src","/images/share/txt_icon_shadow_logo_no.gif");//影子换图片
1927			
1928		}
1929		
1930			
1931			
1932		
1933		$(".dt_list").empty();
1934		$(".dt_list").append(d);
1935	},null,null,true,true);
1936
1937}
1938
1939//讨论区发现——全部
1940function fall(){
1941        var html = "";
1942         html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fall()\">全部</a>";
1943         html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
1944		 html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
1945		 html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
1946		 html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
1947		 html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
1948		 html+="</div>";
1949		 $("#commonDymMenuType").val("0");
1950		 $("#commonPeoMenuType").val("addtime");
1951		 $("#talkdym").empty();
1952		 $("#talkdym").append(html);
1953		 fallstyle();
1954		 fdym(1);
1955}
1956//讨论区发现——快语
1957function fvblog(){
1958	 var html = "";
1959         html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fvblog()\">快语</a>";
1960		 html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
1961		 html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
1962		 html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fall()\">全部</a></p>";
1963		 html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
1964		 html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
1965		 html+="</div>";
1966		 $("#commonDymMenuType").val("7");
1967		 $("#commonPeoMenuType").val("addtime");
1968		 $("#talkdym").empty();
1969		 $("#talkdym").append(html);
1970		 fallstyle();
1971		 fdym(1);
1972}
1973//讨论区发现——博文
1974function fblog(){
1975     var html = "";
1976         html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fblog()\">博文</a>";
1977	     html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
1978		 html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
1979		 html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fall()\">全部</a></p>";
1980		 html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
1981		 html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
1982		 html+="</div>";
1983		 $("#commonDymMenuType").val("3");
1984		 $("#commonPeoMenuType").val("addtime");
1985		 $("#talkdym").empty();
1986		 $("#talkdym").append(html);
1987		 fallstyle();
1988		 fdym(1);
1989}
1990//讨论区发现——投票
1991function fvote(){
1992	 var html = "";
1993         html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fvote()\">投票</a>";
1994	     html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
1995		 html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
1996		 html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fall()\">全部</a></p>";
1997		 html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
1998		 html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
1999		 html+="</div>";
2000		 $("#commonDymMenuType").val("1");
2001		 $("#commonPeoMenuType").val("addtime");
2002		 $("#talkdym").empty();
2003		 $("#talkdym").append(html);
2004		 fallstyle();
2005		 fdym(1);
2006}
2007//讨论区发现——按时间	
2008function ftime(){
2009	var html="";
2010		html+="<h4>";
2011		html+="<span>按时间</span>";
2012		html+="</h4>";
2013		html+="<div style=\"display: none;\">";
2014		html+="<p><a href=\"javascript:void(0)\" onclick=\"fhot()\">按热度</a></p>";
2015		html+="<p><a href=\"javascript:void(0)\" onclick=\"fsupport()\">按顶数</a></p>";
2016		html+="</div>";
2017		$("#talkfindtime").empty();
2018		$("#talkfindtime").append(html);
2019		$("#commonPeoMenuType").val("addtime");
2020		fdym(1);
2021}
2022//讨论区发现——按热度
2023function fhot(){
2024	var html="";
2025		html+="<h4>";
2026		html+="<span>按热度</span>";
2027		html+="</h4>";
2028		html+="<div style=\"display: none;\">";
2029		html+="<p><a href=\"javascript:void(0)\" onclick=\"ftime()\">按时间</a></p>";
2030		html+="<p><a href=\"javascript:void(0)\" onclick=\"fsupport()\">按顶数</a></p>";
2031		html+="</div>";
2032		$("#talkfindtime").empty();
2033		$("#talkfindtime").append(html);
2034		$("#commonPeoMenuType").val("current_heat");
2035		fdym(1);
2036}
2037//讨论区发现——按顶数
2038function fsupport(){
2039	var html="";
2040		html+="<h4>";
2041		html+="<span>按顶数</span>";
2042		html+="</h4>";
2043		html+="<div style=\"display: none;\">";
2044		html+="<p><a href=\"javascript:void(0)\" onclick=\"ftime()\">按时间</a></p>";
2045		html+="<p><a href=\"javascript:void(0)\" onclick=\"fhot()\">按热度</a></p>";
2046		html+="</div>";
2047		$("#talkfindtime").empty();
2048		$("#talkfindtime").append(html);
2049		$("#commonPeoMenuType").val("support_count");
2050		fdym(1);
2051}
2052//讨论区发现——切换到动态的样式
2053function fallstyle(){
2054		//找人样式
2055		$("#talkfindpeo").attr("class","men_nocur");
2056		$("#talkfindgoal").hide();
2057		//动态样式
2058		$("#talkdym").attr("class","men_cur");
2059		$("#talkfindtime").show();
2060}
2061
2062
2063function shadowMore(){
2064	TalkFindHot(1);
2065	setTimeout(function(){$("#favorCk").attr("checked","true");$("#commonOrgMenuType").val("9");fdym(1);},500);
2066}
2067function renMore(obj){
2068	TabMenu('people',this);
2069	if($(obj).parent().parent().find(".screening_user span:first").text().trim()=="影子空间"){
2070		setTimeout(function(){$("#peopeocheck").attr("checked",true);$("#isorgtype").val(1);TalkPeopleDetail(1);},500);
2071	}else{
2072		setTimeout(function(){$("#peopeocheck").attr("checked",false);$("#isorgtype").val(0);TalkPeopleDetail(1);},500);
2073	}
2074	
2075}
2076
2077function Shcompositeindex(){
2078	 //初始化上证指数
2079    //IndexesVoteSearchCode("",'上证指数','000001','9436');
2080	var url = "/ajax/stockindexs/getStockSystemIndexAction.htm"
2081		AjaxSubmit(url,null,function(result){
2082			$(".X_gass_left").empty();
2083			$(".X_gass_left").append(result);
2084			var html = $(".indexX_right").html();
2085			$(".X_gass_right").empty();
2086			$(".X_gass_right").append(html);
2087		},null,null,true,true);
2088	//$("[name='cycleType']").val('4');
2089	SzzsInintStyle();
2090	$("#financeforestock_result").remove();
2091}
2092
2093function FinanceAboutBack(data) {
2094	
2095	$("#body").empty();
2096	$("#body").append(data);
2097	//$("#n_stock_top .wrap").remove();
2098}
2099
2100//查看帮助
2101function ViewAbout(appType){
2102    //if(appType == "about"){
2103    //if(tagType==2||tagType==3){
2104    //alert("帮助中心");
2105    if(appType == "abouthonor"||appType=="aboutAnalyseHonor"||appType=="aboutAnalyse"||appType=="aboutQuestion")
2106    //alert(appType)
2107        document.title = "帮助中心-U财经";
2108    else
2109        document.title = "关于-U财经";
2110
2111    //window.location.hash = "about";
2112
2113    var url;
2114    if($("#peoplespace").size()>0){
2115        //alert("appType====="+appType);
2116        url = GetContextPath() + "/ajax/help/"+appType+".htm?pageType=1";
2117        AjaxSubmit(url, null, PeopleAboutBack, null, null, null, null, true);
2118        history.pushState( null, null, "/ajax/help/"+appType+".htm?pageType=1");
2119    }
2120    if($("#financespace").size()>0){
2121        if(appType=="about"||appType=="abouthonor"||appType=="aboutAnalyse"||appType=="aboutAnalyseHonor"){
2122            //url = GetContextPath() + "/ajax/help/"+appType+".htm?pageType=2";
2123            url = GetContextPath() + "/finance/stock/"+appType+".htm";
2124            window.location.href = url;
2125        }else if(appType=="privacy_li"||appType=="aboutQuestion"){
2126            url = GetContextPath() + "/finance/stock/aboutPCUrl.htm?goType="+appType;
2127            window.location.href = url;
2128        }else{
2129            url = GetContextPath() + "/ajax/help/"+appType+".htm?pageType=2";
2130            AjaxSubmit(url, null, FinanceAboutBack, null, null, null, null, true);
2131        }
2132        //history.pushState( null, null, "/finance/stock/about.htm");
2133    }
2134    if($("#sportspace").size()>0){
2135        url = GetContextPath() + "/ajax/help/"+appType+".htm?pageType=3";
2136        AjaxSubmit(url, null, AboutBack, null, null, null, null, true);
2137        history.pushState( null, null, "/ajax/help/"+appType+".htm?pageType=3");
2138    }
2139    //}else{
2140    //GoMyspace(appType,1,0,0,0);
2141    //}
2142    //}
2143}
2144
2145//获取沪深300实时数据
2146function GetHSStockInfo(){
2147	$.ajax({
2148		url : "//nuff.eastmoney.com/EM_Finance2015TradeInterface/JS.ashx?id=0003001&token=44c9d251add88e27b65ed86506f6e5da&cb=callback07055770499559768&callback=callback07055770499559768&_=1490335857338",
2149		dataType:"jsonp",
2150		cache: true,  
2151		scriptCharset:"UTF-8",
2152		async:false,
2153//		jsonp: "callback",//传递给请求处理程序或页面的,用以获得jsonp回调函数名的参数名(默认为:callback)
2154//		jsonpCallback:"success_jsonpCallback",//自定义的jsonp回调函数名称,默认为jQuery自动生成的随机函数名
2155		success:function (msg,status) {
2156
2157		} 
2158	});
2159}
2160
2161//jsonp的回调函数
2162function callback07055770499559768(data){
2163	if(parseFloat(data.Value[29]) > 0){
2164		$("#gshq02_9746").html('<font class="cRed">'+data.Value[25]+'</font>');
2165		$("#gshq03_9746").html('<font class="cRed">+'+data.Value[27]+'</font>');
2166		$("#gshq04_9746").html('<font class="cRed">+'+data.Value[29]+'%</font>');
2167	}else{
2168	 	$("#gshq02_9746").html('<font class="cGreen">
2168'+data.Value[25]+'</font>');
2169		$("#gshq03_9746").html('<font class="cGreen">'+data.Value[27]+'</font>');
2170		$("#gshq04_9746").html('<font class="cGreen">'+data.Value[29]+'%</font>');
2171	}
2172}
2173
2174function GetGNStockInfo(){
2175	$.ajax({
2176		url : "//hqdigi2.eastmoney.com/EM_Quote2010NumericApplication/cache.aspx?Type=c1&Reference=xml",
2177		dataType:"script",
2178		cache: true,  
2179		scriptCharset:"UTF-8",
2180		async:false,
2181		success:function (msg) {
2182			var quotation = C1Cache.quotation;
2183			var sh = quotation[0].split(",");
2184			var sz = quotation[1].split(",");
2185			var record = C1Cache.record;
2186			var str="";
2187			//财经空间
2188//			window.alert($("#gshq02_9436").html());
2189				if(parseFloat(sh[6]) > 0){
2190					$("#gshq02_9436").html('<font class="cRed">'+sh[2]+'</font>');
2191					$("#gshq03_9436").html('<font class="cRed">+'+sh[5]+'</font>');
2192					$("#gshq04_9436").html('<font class="cRed">+'+sh[6]+'</font>');
2193				}else{
2194				 	$("#gshq02_9436").html('<font class="cGreen">'+sh[2]+'</font>');
2195					$("#gshq03_9436").html('<font class="cGreen">'+sh[5]+'</font>');
2196					$("#gshq04_9436").html('<font class="cGreen">'+sh[6]+'</font>');
2197				}
2198				if(parseFloat(sz[6]) > 0){
2199					$("#gshq02_9705").html('<font class="cRed">'+sz[2]+'</font>');
2200					$("#gshq03_9705").html('<font class="cRed">+'+sz[5]+'</font>');
2201					$("#gshq04_9705").html('<font class="cRed">+'+sz[6]+'</font>');
2202				}else{
2203					$("#gshq02_9705").html('<font class="cGreen">'+sz[2]+'</font>');
2204					$("#gshq03_9705").html('<font class="cGreen">'+sz[5]+'</font>');
2205					$("#gshq04_9705").html('<font class="cGreen">'+sz[6]+'</font>');
2206				}		
2207		}
2208	});
2209}
2210
2211
2212function GetXGHSStockInfo_1(){
2213	$.ajax({
2214		url : "//hq2hk.eastmoney.com/EM_Quote2010NumericApplication/Index.aspx?Type=F&jsname=hk_1100005&ID=1100005&v="+Math.random(),
2215		dataType:"script",
2216		cache: true,  
2217		scriptCharset:"UTF-8",
2218		async:false,
2219		success:function (msg) {
2220			var quotation = hk_1100005.quotation;
2221//			window.alert(quotation);
2222			var hs = quotation[0].split(",");
2223//			window.alert(hs[4]);
2224//			window.alert(hs[10]);
2225//			window.alert(hs[11]);
2226			if(parseFloat(hs[11]) > 0){
2227				$("#gshq02_210").html('<font class="cRed">'+hs[4]+'</font>');
2228				$("#gshq03_210").html('<font class="cRed">+'+hs[10]+'</font>');
2229				$("#gshq04_210").html('<font class="cRed">+'+hs[11]+'</font>');
2230			}else{
2231			 	$("#gshq02_210").html('<font class="cGreen">'+hs[4]+'</font>');
2232				$("#gshq03_210").html('<font class="cGreen">'+hs[10]+'</font>');
2233				$("#gshq04_210").html('<font class="cGreen">'+hs[11]+'</font>');
2234			}
2235		}
2236	});
2237}
2238
2239function GetXGHSStockInfo(){
2240	$.ajax({
2241		//url : "//hq2hk.eastmoney.com/EM_Quote2010NumericApplication/Index.aspx?Type=F&jsname=hk_1100005&ID=1100005&v="+Math.random(),
2242		url : "/finance/stock/getRealTimeStockInfo.htm",
2243		//dataType:"script",
2244		type : "POST",
2245		data: "stockInfo=210_321_HSI,''",
2246		dataType:"json",
2247		cache: true,  
2248		scriptCharset:"UTF-8",
2249		async:false,
2250		success:function (msg) {
2251			if(parseFloat(msg.stockInfo[0].upPercent) > 0){
2252				$("#gshq02_210").html('<font class="cRed">'+msg.stockInfo[0].newestPrice+'</font>');
2253				$("#gshq03_210").html('<font class="cRed">+'+msg.stockInfo[0].upMount+'</font>');
2254				$("#gshq04_210").html('<font class="cRed">+'+msg.stockInfo[0].upPercent+'%</font>');
2255			}else{
2256			 	$("#gshq02_210").html('<font class="cGreen">'+msg.stockInfo[0].newestPrice+'</font>');
2257				$("#gshq03_210").html('<font class="cGreen">'+msg.stockInfo[0].upMount+'</font>');
2258				$("#gshq04_210").html('<font class="cGreen">'+msg.stockInfo[0].upPercent+'%</font>');
2259			}
2260		}
2261	});
2262}
2263
2264function setTimeImStockInfo(info) {
2265    var url = "/finance/stock/getRealTimeStockInfo.htm";
2266    var data = "stockInfo=" + info;
2267    var upPercent;
2268    var newestPrice;
2269    var updown;
2270    var percent;
2271    var platePercent;
2272    var plateUp;
2273    AjaxSubmit(
2274        url,
2275        data,
2276        function(data) {
2277            for ( var i = 0; i < data.stockInfo.length - 1; i++) {
2278				upPercent = data.stockInfo[i].upPercent;
2279				newestPrice = data.stockInfo[i].newestPrice;
2280				updown = "+";
2281				percent = "%";
2282				platePercent = "";
2283				plateUp = "";
2284                if (data.stockInfo[i].upPercent == "-")
2285                    percent = "";
2286                if (upPercent.substring(0, 1) == "-") {
2287                	if(upPercent=="-"){
2288                        $("#gshq02_"+data.stockInfo[i].stock_object_id)
2289                            .html('<font style="color: #999">
2289'+plateUp + data.stockInfo[i].newestPrice + platePercent+'</font>');
2290                        $("#gshq04_"+data.stockInfo[i].stock_object_id)
2291                            .html('<font style="color: #999">'+plateUp + data.stockInfo[i].upPercent + percent+'</font>');
2292                        $("#gshq03_"+data.stockInfo[i].stock_object_id)
2293                            .html('<font style="color: #999">'+plateUp + data.stockInfo[i].upMount + platePercent+'</font>');
2294					}else{
2295                        $("#gshq02_"+data.stockInfo[i].stock_object_id)
2296                            .html('<font class="cGreen">'+plateUp + data.stockInfo[i].newestPrice + platePercent+'</font>');
2297                        $("#gshq04_"+data.stockInfo[i].stock_object_id)
2298                            .html('<font class="cGreen">'+plateUp + data.stockInfo[i].upPercent + percent+'</font>');
2299                        $("#gshq03_"+data.stockInfo[i].stock_object_id)
2300                            .html('<font class="cGreen">'+plateUp + data.stockInfo[i].upMount + platePercent+'</font>');
2301					}
2302                }else {
2303                    $("#gshq02_"+data.stockInfo[i].stock_object_id)
2304                        .html('<font class="cRed">'+plateUp + data.stockInfo[i].newestPrice + platePercent+'</font>');
2305                    $("#gshq04_"+data.stockInfo[i].stock_object_id)
2306                        .html('<font class="cRed">'+updown + data.stockInfo[i].upPercent + percent+'</font>');
2307                    $("#gshq03_"+data.stockInfo[i].stock_object_id)
2308                        .html('<font class="cRed">'+plateUp + data.stockInfo[i].upMount + platePercent+'</font>');
2309                }
2310            }
2311        }, "json");
2312}
2313
2314function setTimeAnalyzeStockInfo(info) {
2315    var url = "/finance/stock/getRealTimeStockInfo.htm";
2316    var data = "stockInfo=" + info;
2317    var upPercent;
2318    var newestPrice;
2319    var percent = "%";
2320    var content;
2321    AjaxSubmit(
2322        url,
2323        data,
2324        function(data) {
2325            for ( var i = 0; i < data.stockInfo.length; i++) {
2326                var obj = $("#excellent_"+data.stockInfo[i].stock_object_id);
2327            	upPercent = data.stockInfo[i].upPercent;
2328                newestPrice = data.stockInfo[i].newestPrice;
2329                if (data.stockInfo[i].upPercent == "-")
2330                    percent = "";
2331                if (upPercent<0) {
2332                	obj.removeClass();
2333                    obj.addClass("up_text down");
2334                    if(newestPrice!=null&&newestPrice!='')
2335                    	content = '<span class="current_price">'+newestPrice+' </span><span class="percent">'+data.stockInfo[i].upPercent+ percent +'  </span><span class="change_price">'+data.stockInfo[i].upMount+' </span>'
2336					else
2337                        content = '<span class="percent">'+data.stockInfo[i].upPercent+'%  </span><span class="change_price">'+data.stockInfo[i].upMount+' </span>'
2338
2339					obj.html(content);
2340                }else if(upPercent>0){
2341                    obj.removeClass();
2342                    obj.addClass("up_text up");
2343                    if(newestPrice!=null&&newestPrice!='')
2344                        content = '<span class="current_price">'+newestPrice+' </span><span class="percent">+'+data.stockInfo[i].upPercent+ percent +'  </span><span class="change_price">+'+data.stockInfo[i].upMount+' </span>'
2345                    else
2346                        content = '<span class="percent">+'+data.stockInfo[i].upPercent+'%  </span><span class="change_price">+'+data.stockInfo[i].upMount+' </span>'
2347
2348                    obj.html(content);
2349                }else{
2350                    obj.removeClass();
2351                    obj.addClass("up_text delist");
2352                    if(upPercent==0)
2353                    	content = '<span class="null_price">'+newestPrice+' </span><span class="null_price">0.00%  </span><span class="null_price">0.00 </span>';
2354                    else if(upPercent=="-")
2355                        content = '<span class="null_price">'+newestPrice+' </span><span class="null_price">-  </span><span class="null_price">- </span>';
2356                    obj.html(content);
2357				}
2358            }
2359        }, "json");
2360}
2361
2362function appealContent(objectId,ObjectType){
2363    var url="/ajax/toAppeal.htm";
2364    var data="vblogId="+objectId+"&type="+ObjectType;
2365    AjaxSubmit(url,data,function(d){
2366        jQuery.blockUI({
2367            message: d,
2368            baseZ:9999,
2369            overlayCSS: { backgroundColor: '#000' },
2370            css: {background:'none', width:'600px',padding:'0px',cursor:'default',left:'28%',to
2370p:'10%'}
2371        });
2372    });
2373}
2374
2375function gotosortclasstype1(tmpClassType,orderBy,tmpSumType,pageNo,obj) {
2376    console.log($("#refreshFlag").val())
2377    if($("#refreshFlag").val()!=1){
2378        $("#urlPageNo").val(1);
2379    }else{
2380        $("#refreshFlag").val(0);
2381    }
2382    gotosortclasstype(tmpClassType,orderBy,tmpSumType,pageNo,obj);
2383}
2384
2385function stockUContent(type,seq){
2386    var html = "";
2387    var html1 = "";
2388    if(type==7){
2389        html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fvblog()\">快语</a>";
2390        html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
2391        html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
2392        html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fall()\">全部</a></p>";
2393        html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
2394        html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
2395        html+="</div>";
2396	}else if(type==1){
2397        html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fvote()\">投票</a>";
2398        html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
2399        html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
2400        html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fall()\">全部</a></p>";
2401        html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
2402        html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
2403        html+="</div>";
2404	}else if(type==3){
2405        html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fblog()\">博文</a>";
2406        html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
2407        html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
2408        html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fall()\">全部</a></p>";
2409        html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
2410        html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
2411        html+="</div>";
2412	}else{
2413        html +="<a href=\"javascript:void(0)\" class=\"now_cur\" id=\"object1\" onclick=\"fall()\">全部</a>";
2414        html +="<span class=\"men_btn_arrow\" onclick=\"AttMouseover_new(this)\"></span>";
2415        html+="<div class=\"ndynamic_dropmenu\" style=\"display: none;\">";
2416        html+="<p id=\"object2\"><a href=\"javascript:void(0)\" onclick=\"fvblog()\">快语</a></p>";
2417        html+="<p id=\"object3\"><a href=\"javascript:void(0)\"  onclick=\"fblog()\">博文</a></p>";
2418        html+="<p id=\"object4\"><a href=\"javascript:void(0)\"  onclick=\"fvote()\">投票</a></p>";
2419        html+="</div>";
2420	}
2421	if(seq=="addtime"){
2422        html1+="<h4>";
2423        html1+="<span>按时间</span>";
2424        html1+="</h4>";
2425        html1+="<div style=\"display: none;\">";
2426        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fhot()\">按热度</a></p>";
2427        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fsupport()\">按顶数</a></p>";
2428        html1+="</div>";
2429	}else if(seq=="current_heat"){
2430        html1+="<h4>";
2431        html1+="<span>按热度</span>";
2432        html1+="</h4>";
2433        html1+="<div style=\"display: none;\">";
2434        html1+="<p><a href=\"javascript:void(0)\" onclick=\"ftime()\">按时间</a></p>";
2435        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fsupport()\">按顶数</a></p>";
2436        html1+="</div>";
2437	}else if(seq=="support_count"){
2438        html1+="<h4>";
2439        html1+="<span>按顶数</span>";
2440        html1+="</h4>";
2441        html1+="<div style=\"display: none;\">";
2442        html1+="<p><a href=\"javascript:void(0)\" onclick=\"ftime()\">按时间</a></p>";
2443        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fhot()\">按热度</a></p>";
2444        html1+="</div>";
2445    }else{
2446        html1+="<h4>";
2447        html1+="<span>按时间</span>";
2448        html1+="</h4>";
2449        html1+="<div style=\"display: none;\">";
2450        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fhot()\">按热度</a></p>";
2451        html1+="<p><a href=\"javascript:void(0)\" onclick=\"fsupport()\">按顶数</a></p>";
2452        html1+="</div>";
2453	}
2454    $("#talkdym").empty();
2455    $("#talkdym").append(html);
2456    $("#talkfindtime").empty();
2457    $("#talkfindtime").append(html1);
2458}
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.