﻿//setting参数列表
/*
fx:           'fade', // 动画形式，包括以下方式:
      blindX、blindY、blindZ、cover、curtainX、curtainY、fade、fadeZoom、growX、growY
    	scrollUp、scrollDown、scrollLeft、scrollRight、scrollHorz、scrollVert、shuffle
    	slideX、slideY、toss、turnUp、turnDown、turnLeft、turnRight、uncover、fade、zoom
    	演示页面：http://malsup.com/jquery/cycle/

timeout:       4000,  // 切换时间，单位为微秒，0表示手动切换
speed:         1000,  // 切换输得
speedIn:       null,  //进入速度（ speed of the 'in' transition ）
speedOut:      null,  //移出速度 （speed of the 'out' transition ）
easing:        null,  // easing method for both in and out transitions
easeIn:        null,  // easing for "in" transition
easeOut:       null,  // easing for "out" transition
shuffle:       null,  // coords for shuffle animation, ex: { top:15, left: 200 } 
animIn:        null,  // properties that define how the slide animates in 
animOut:       null,  // properties that define how the slide animates out 
height:       'auto', // container height 
startingSlide: 0,     // zero-based index of the first slide to be displayed 
sync:          1,     // true if in/out transitions should occur simultaneously 
random:        0,     // true for random, false for sequence (not applicable to shuffle fx) 
fit:           0,     // force slides to fit container 
delay:         0,     // additional delay (in ms) for first transition (hint: can be negative) 
slideExpr:     null,  // expression for selecting slides (if something other than all children is required) 
cleartype:     0,     // true if clearType corrections should be applied (for IE) 
nowrap:        0      // true to prevent slideshow from wrapping 
*/

//注意，在最后一个}后千万别加逗号
//首页顶部广告栏
var AD={
	data:[
		{
			id:'LeftAD',
			data:[
				["http://www.wall21.net/ad/images/H4-1.gif","http://blog.sina.com.cn/m/hzzhangxu"],
				["http://www.wall21.net/ad/images/H4-1.gif","http://blog.sina.com.cn/m/hzzhangxu"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'AD1', //对应div的id
			data:[   //图片和链接数据
				["http://www.wall21.net/images/wnb.gif","http://www.wall21.net/marketing.aspx"],
				["http://www.wall21.net/images/wna.gif","http://www.wall21.net/marketing.aspx"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 3000,
	  		clip:   'l2r' 
			}
		}
		,{
			id:'AD2',
			data:[
				["http://www.wall21.net/ad/images/klzws.jpg","http://www.kinlong.com/cn/product.htm?cid=14"],
				["http://www.wall21.net/ad/images/m-ft-2.jpg","http://www.fotile.com"],
				["http://www.wall21.net/ad/images/m-eg-3.jpg","http://www.eago.com.cn"]
			],
			setting:{
	  		fx:    'scrollUp',
	  		speed: 3000,
	  		timeout: 6000
			}
		}
		,{
			id:'BAD1', //对应div的id
			data:[   //图片和链接数据
				["http://www.wall21.net/ad/images/yx.jpg","http://www.yashazs.com"],
				["http://www.wall21.net/ad/images/yx.jpg","http://www.yashazs.com"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'l2r' 
			}
		}
		,{
			id:'BAD2',
			data:[
				["http://www.wall21.net/ad/images/klzws.jpg","http://www.kinlong.com/cn/product.htm?cid=14"],
				["http://www.wall21.net/ad/images/m-ft-2.jpg","http://www.fotile.com"],
				["http://www.wall21.net/ad/images/m-eg-3.jpg","http://www.eago.com.cn"]
			],
			setting:{
	  		fx:    'scrollUp',
	  		speed: 3000,
	  		timeout: 6000
			}
		}
		,{
			id:'AD3',
			data:[
				["http://www.wall21.net/ad/images/kl09-2.jpg","http://www.kinlong.com"]
			],
			setting:{
			 fx:     'fade',
		   speed:   1000, 
		   timeout: 6000, 
		   clip:   'fade'				
			}
		}
		,{		
            id:'LeftAD1',
            data:[
                ["http://www.wall21.cn/ad/images/kin119a.jpg","http://www.kinex.com.cn"],
                ["http://www.wall21.cn/ad/images/kin119b.jpg","http://www.kinex.com.cn"]
            ],
            setting:{ fx: 'fade',timeout: 2600}
        }
		,{
			id:'AD4',
			data:[
				["http://www.wall21.net/ad/images/wy.jpg","http://www.wayes.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'l2r' 
			}
		}
		,{
			id:'AD5',
			data:[
				["http://www.wall21.net/ad/images/jtl01.jpg","http://www.goldmantis.com"],
				["http://www.wall21.net/ad/images/xy00.jpg","http://www.yashazs.com"]
			],
			setting:{
			 fx:     'fade',
	  		speed: 1000,
	  		timeout: 7000,
	  		clip:   'l2r'
			}
		}
		,{
			id:'AD6',
			data:[
				["http://www.wall21.net/ad/images/mqqyss.gif","focus_1827_details_11175.aspx"],
				["http://www.wall21.net/ad/images/gsd202.gif","http://www.goldstar-cn.com"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'l2r'
			}
		}
		,{
			id:'AD7',
			data:[
				["http://www.wall21.net/ad/images/hdl071031.jpg","corp_1284_details_11536.aspx"],
				["http://www.wall21.net/ad/images/xhm.gif","focus_1982"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD8',
			data:[
				["http://www.wall21.net/ad/images/ikea2.gif","http://www.ikea.com.cn"],
				["http://www.wall21.net/ad/images/ikea2.gif","http://www.ikea.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD9',
			data:[
				["http://www.wall21.net/images/gz09.jpg","http://www.cbd-china.com"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD10',
			data:[
				["http://www.wall21.net/images/zh-ojc.gif","http://www.construmatchina.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD11',
			data:[
				["http://www.wall21.net/images/ibe.gif","show_details_15989.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD11_1',
			data:[
				["http://www.wall21.net/images/ibe.gif","show_details_15989.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD11_1',
			data:[
				["http://www.wall21.net/images/ibe.gif","show_details_15989.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD1',
			data:[
				["http://www.wall21.net/images/m-jj.jpg","http://www.wall21.net/focus2_2822.aspx"],
				["http://www.wall21.net/images/m-dg.jpg",""]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD2',
			data:[
				["http://www.wall21.net/images/m-wy.jpg","http://www.wall21.net/focus2_2742.aspx"],
				["http://www.wall21.net/images/m-dq.jpg",""]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD3',
			data:[
				["http://www.wall21.net/images/m-cz.jpg","http://www.wall21.net/focus2_2794.aspx"],
				["http://www.wall21.net/images/m-sc.jpg",""]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD4',
			data:[
				["http://www.wall21.net/images/m-cg.jpg",""],
				["http://www.wall21.net/images/m-lt.jpg","http://www.wall21.net/focus2_2815.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD5',
			data:[
				["http://www.wall21.net/images/m-db.jpg","http://www.wall21.net/focus2_2796.aspx"],
				["http://www.wall21.net/images/m-jf.jpg","http://www.wall21.net/focus2_2865.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD6',
			data:[
				["http://www.wall21.net/images/m-tl.jpg","http://www.wall21.net/focus2_2750.aspx"],
				["http://www.wall21.net/images/m-qz.jpg","http://www.wall21.net/focus2_2798.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD7',
			data:[
				["http://www.wall21.net/images/m-ds.jpg","http://www.wall21.net/focus2_2756.aspx"],
				["http://www.wall21.net/images/m-gj.jpg",""]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'RAD8',
			data:[
				["http://www.wall21.net/images/m-wj.jpg",""],
				["http://www.wall21.net/images/m-th.jpg","http://www.wall21.net/focus2_2984.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'IndexAD_1',
			data:[
				["http://www.wall21.cn/images/main-1a.gif","live_details_59367.aspx"],
				["http://www.wall21.cn/images/main-1b.gif","live_details_59367.aspx"]
			]
		}
	],
	
	init:function(){
		for(var i=0;i<this.data.length;i++){
			var o=$("#"+this.data[i].id);
			if(typeof o=="object"){
				var html="";
				for(var j=0;j< this.data[i].data.length;j++){
					html+='<a href="'+this.data[i].data[j][1]+'" target="_blank"><img border="0" src="'+this.data[i].data[j][0]+'"/></a>';
				}
				o.html(html);
				if(this.data[i].data.length>1){
					o.cycle(this.data[i].setting);
				}
			}
		}
	}
};//AD


var NetVideo=function(){
	$("#RightContent1").html(
		'<object width="282" height="282" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="WMP7">'+
  	'<param value="ture" name="AUTOSTART"/>'+
  	'<param value="mms://202.105.21.137/vv1" name="URL"/>'+
  	'<embed width="282" height="282" defaultframe="1"/>'+
		'</object>'
	)
}

var AD12={
	//标准规范
	info2392:{
		data:[
			["images/bzgf.gif","stander.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	show:{
		data:[
			["images/zhanhui.gif","show.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

    focus1:{
		data:[
			["http://www.wall21.net/images/jiaodian.gif","focus.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

  hot2406:{
		data:[
			["images/jiaju.gif","hot_list_2.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2399:{
		data:[
			["images/weiyu.gif","hot_list_3.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2405:{
		data:[
			["images/wujin.gif","hot_list_4.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2391:{
		data:[
			["images/cizhuan.gif","hot_list_5.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2402:{
		data:[
			["images/diangong.gif","hot_list_6.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2394:{
		data:[
			["images/dianqi.gif","hot_list_7.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2390:{
		data:[
			["images/chugui.gif","hot_list_8.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2401:{
		data:[
			["images/shicai.gif","hot_list_12.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2404:{
		data:[
			["images/tul.gif","hot_list_10.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2393:{
		data:[
			["images/diban.gif","hot_list_11.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2400:{
		data:[
			["images/louti.gif","hot_list_13.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2392:{
		data:[
			["images/dengshi.gif","hot_list_9.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2397:{
		data:[
			["images/jiafang.gif","hot_list_15.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot2395:{
		data:[
			["images/qiangzhi.gif","hot_list_14.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2403:{
		data:[
			["images/guanjian.gif","hot_list_18.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot2396:{
		data:[
			["images/tianhua.gif","hot_list_16.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
		
	infomation:{
		data:[
			["images/zuixin.gif","person.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	design:{
		data:[
			["images/zssj.gif","design.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	product:{
		data:[
			["images/chanpin.gif","products.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	ipb:{
		data:[
			["images/zhaobiao.gif","ipb.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	finance:{
		data:[
			["images/qq.gif","finance.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	project:{
		data:[
			["images/gcjs.gif","project.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	corp:{
		data:[
			["images/qypd1.gif","corp.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	live:{
		data:[
			["images/zuixin.gif","live.aspx"],
			["images/zuixin.gif","live.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	'focus':{
		data:[
			["images/jiaodian.gif","focus.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	expert:{
		data:[
			["images/zjrw.gif","expert.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	information:{
		data:[
			["images/zuixin.gif","information.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	tecforum:{
		data:[
			["images/bbs.gif","tecforum.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot:{
		data:[
			["images/qiye.gif","hot.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	hot0:{
		data:[
			["images/qiye.gif","hot.aspx"]
		],
		data_bottom:[
                     ["http://www.wall21.net/images/ban061.gif","http://www.wall21.cn"]
        ],
		setting:{speed: 1000,timeout: 4000}
	},
	
	info2398:{
		data:[
			["images/zuixin.gif","information.aspx"]
		],
		data_bottom:[
                     ["http://www.wall21.net/images/ban061.gif","http://www.wall21.cn"]
        ],
		setting:{speed: 1000,timeout: 4000}
	},

	easy:{
		data:[
			["images/xcy.gif","easy.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	jishubao:{
		data:[
			["images/jsb1.gif","jishubao.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	shangwutong:{
		data:[
			["images/swt1.gif","shangwutong.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	fengling:{
		data:[
			["images/flsjlogo.gif","fengling.aspx"]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	trade:{
		data:[
			["http://www.wall21.net/ad/images/gq.gif","http://www.wall21.net/trade.aspx"],
			["http://www.wall21.net/ad/images/ikea3.gif","http://www.ikea.com"]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	init:function(item){
		var d=AD12[item];	
		var o=$("#AD12");
		if((typeof o=="object") && (typeof d == "object")){
			var html="";
			for(var j=0;j< d.data.length;j++){
				html+='<a href="'+d.data[j][1]+'" target="_blank"><img border="0" src="'+d.data[j][0]+'"/></a>';
			}
			o.html(html);
			if(d.data.length>1){
				o.cycle(d.setting);
			}
		}
		var o1=$("#BottomAD");
		if((typeof o1=="object") && (typeof d == "object")){
			var html="";
			if(d.data_bottom){
			    for(var j=0;j< d.data_bottom.length;j++){
				    html+='<a href="'+d.data_bottom[j][1]+'" target="_blank"><img border="0" src="'+d.data_bottom[j][0]+'"/></a>';
			    }
			    o1.html(html);
			    if(d.data_bottom.length>1){
				    o1.cycle(d.setting);
			    }
			}
		}
	}
};

function Weibo(){
    var url=[
        ["新浪微博","http://v.t.sina.com.cn/share/share.php?url=","&title=","background-position:0 -96px;"],
        ["腾讯微博","http://v.t.qq.com/share/share.php?url=","&title=","background-position:0 -144px;"],
        //["搜狐微博","http://t.sohu.com/third/post.jsp?url=","&content=utf-8&pic=&title=","background-position:0 -112px;"],
        //["网易微博","http://t.163.com/article/user/checkLogin.do?source=","&info=","background-position:0 -128px;"],
        ["凤凰微博","http://t.ifeng.com/interface.php?_c=share&_a=share&sourceUrl=","&title=","background-position:0 -1537px;"]
   ]
    var html='<span class="separator">分享到：</span>';
    for(var i=0;ln=url.length,i<ln;i++ ){
        html+='<a href="javascript:WeiboClick('+i+')"><span class="txt separator ico" style="'+url[i][3] +'">'+url[i][0] +'</span></a>';
    }
    return html;
}

function WeiboClick(i){
    var url=[
        ["新浪微博","http://v.t.sina.com.cn/share/share.php?url=","&title=","background-position:0 -96px;"],
        ["腾讯微博","http://v.t.qq.com/share/share.php?url=","&title=","background-position:0 -144px;"],
        //["搜狐微博","http://t.sohu.com/third/post.jsp?url=","&title=","background-position:0 -112px;"],
        //["网易微博","http://t.163.com/article/user/checkLogin.do?sourceUrl=","&source=","background-position:0 -128px;"],
        ["凤凰微博","http://t.ifeng.com/interface.php?_c=share&_a=share&sourceUrl=","&title=","background-position:0 -1537px;"]
   ]
    var tit = $("title").text();
    $("meta").each(function(){
        if($(this).attr("name") == "description")
        {
	        des = $(this).attr("content");
	        return false;
        }
    });
    tit = tit + des;
    var url=url[i][1]+encodeURIComponent(location.href)+url[i][2]+encodeURIComponent(tit)+(i==3?"&content=utf-8&pic=":"");
    window.open(url);
}

//股票信息定义

var stockData={
	"家电行业":[
		['000100',"http://www.wall21.net/focus_2641_details_31710.aspx","TCL 集团"],
		['000016',"http://www.wall21.net/focus_2641_details_31711.aspx","深康佳A"],
		['000418',"http://www.wall21.net/focus_2641_details_33533.aspx","小天鹅A"],
		['000521',"http://www.wall21.net/focus_2641_details_31713.aspx","美菱电器"],
		['000527',"http://www.wall21.net/focus_2641_details_31714.aspx","美的电器"],
		['000533',"http://www.wall21.net/focus_2641_details_31716.aspx","万家乐"],
		['000561',"http://www.wall21.net/focus_2641_details_33534.aspx","烽火电子"],
		['000651',"http://www.wall21.net/focus_2641_details_31717.aspx","格力电器"],
		['000801',"http://www.wall21.net/focus_2641_details_31718.aspx","四川九洲"],
		['000921',"http://www.wall21.net/focus_2641_details_31719.aspx","ST科龙"],
		['002035',"http://www.wall21.net/focus_2641_details_31721.aspx","华帝股份"],
		['002260',"http://www.wall21.net/focus_2641_details_31722.aspx","伊立浦"],
		['002403',"http://www.wall21.net/focus_2641_details_31724.aspx","爱仕达"],
		['600060',"http://www.wall21.net/focus_2641_details_31725.aspx","海信电器"],
		['600839',"http://www.wall21.net/focus_2641_details_31726.aspx","四川长虹"],
		['600336',"http://www.wall21.net/focus_2641_details_31727.aspx","澳柯玛"],
		['600481',"http://www.wall21.net/focus_2641_details_31728.aspx","双良节能"],
		['600690',"http://www.wall21.net/focus_2641_details_31729.aspx","青岛海尔"],
		['600724',"http://www.wall21.net/focus_2641_details_31730.aspx","宁波富达"],
		['002473',"http://www.wall21.net/focus_2641_details_34724.aspx","圣莱达"],
		['600854',"http://www.wall21.net/focus_2641_details_31731.aspx","ST春兰"],
		['600983',"http://www.wall21.net/focus_2641_details_31732.aspx","合肥三洋"]
	],
	"照明":[
		['000541',"http://www.wall21.net/focus_2709_details_31733.aspx","佛山照明"],
		['002076',"http://www.wall21.net/focus_2709_details_31734.aspx","雪莱特"],
		['600261',"http://www.wall21.net/focus_2709_details_31735.aspx","阳光照明"],
		['02222',"http://www.wall21.net/focus_2709_details_33535.aspx","雷士照明"],
		['08229',"http://www.wall21.net/focus_2709_details_33536.aspx","东大照明"]
	],
	"洁具、陶瓷类":[
		['000408',"http://www.wall21.net/focus_2710_details_31736.aspx","ST金谷源"],
		['000856',"http://www.wall21.net/focus_2710_details_31737.aspx","ST唐陶"],
		['002102',"http://www.wall21.net/focus_2710_details_31738.aspx","冠福家用"],
		['002162',"http://www.wall21.net/focus_2710_details_31739.aspx","斯米克"],
		['600562',"http://www.wall21.net/focus_2710_details_31742.aspx","*ST高陶"],
		['600145',"http://www.wall21.net/focus_2710_details_31743.aspx","*ST国创"],
		['002047',"http://www.wall21.net/focus_2710_details_31740.aspx","成霖股份"],
		['002084',"http://www.wall21.net/focus_2710_details_31741.aspx","海鸥卫浴"],
		['00395',"http://www.wall21.net/focus_2710_details_33537.aspx","中国龙新能源"]
	],
	"家纺":[
		['002397',"http://www.wall21.net/focus_2711_details_31744.aspx","梦洁家纺"],
		['002293',"http://www.wall21.net/focus_2711_details_31745.aspx","罗莱家纺"],
		['002327',"http://www.wall21.net/focus_2711_details_31746.aspx","富安娜"]
	],
	"家具制造业":[
		['600337',"http://www.wall21.net/focus_2712_details_31752.aspx","美克股份"],
		['600978',"http://www.wall21.net/focus_2712_details_31753.aspx","宜华木业"],
		['000910',"http://www.wall21.net/focus_2712_details_31747.aspx","大亚科技"],
		['002043',"http://www.wall21.net/focus_2712_details_31748.aspx","兔 宝 宝"],
		['002240',"http://www.wall21.net/focus_2712_details_31749.aspx","威华股份"],
		['002354',"http://www.wall21.net/focus_2712_details_31750.aspx","科冕木业"],
		['000587',"http://www.wall21.net/focus_2712_details_31751.aspx","*ST光明"],
		['00114',"http://www.wall21.net/focus_2712_details_33538.aspx","兴利集团"],
		['08108',"http://www.wall21.net/focus_2712_details_33539.aspx","名家国际"],
		['00776',"http://www.wall21.net/focus_2712_details_33540.aspx","捷丰家居"]
	],
	"地板":[	
		['600189',"http://www.wall21.net/focus_2713_details_31754.aspx","吉林森工"],
		['000663',"http://www.wall21.net/focus_2713_details_31755.aspx","永安林业"],
		['02083',"http://www.wall21.net/focus_2713_details_36200.aspx","中国地板"]
	],
	"建材管件类":[
		['000509',"http://www.wall21.net/focus_2714_details_31756.aspx","S*ST华塑"],
		['000639',"http://www.wall21.net/focus_2714_details_31757.aspx","西王食品"],
		['002372',"http://www.wall21.net/focus_2714_details_31758.aspx","伟星新材"],
		['002271',"http://www.wall21.net/focus_2714_details_31759.aspx","东方雨虹"],
		['002247',"http://www.wall21.net/focus_2714_details_31760.aspx","帝龙新材"],
		['600155',"http://www.wall21.net/focus_2714_details_31761.aspx","*ST宝硕"],
		['02128',"http://www.wall21.net/focus_2714_details_33541.aspx","中国联塑"],
		['02009',"http://www.wall21.net/focus_2714_details_33542.aspx","金隅股份"]
	],
	"涂料":[
		['002256',"http://www.wall21.net/focus_2715_details_31762.aspx","彩虹精化"],
		['000565',"http://www.wall21.net/focus_2715_details_31763.aspx","渝三峡Ａ"],
		['600885',"http://www.wall21.net/focus_2715_details_31764.aspx","*ST力阳"],
		['900939',"http://www.wall21.net/focus_2715_details_31765.aspx","ST汇丽B"]
	],
	"装修装饰":[
		['002081',"http://www.wall21.net/focus_2716_details_31766.aspx","金 螳 螂"],
		['002163',"http://www.wall21.net/focus_2716_details_31767.aspx","中航三鑫"],  　
		['002325',"http://www.wall21.net/focus_2716_details_31768.aspx","洪涛股份"],
		['002375',"http://www.wall21.net/focus_2716_details_31769.aspx","亚厦股份"],
		['02355',"http://www.wall21.net/focus_2716_details_33543.aspx","宝业集团"]
	],
	"电器行业":[
		['08032',"http://www.wall21.net/focus_2739_details_33546.aspx","非凡中国"],
		['00081',"http://www.wall21.net/focus_2739_details_33544.aspx","中海外宏洋"]
	]
};

var	prefix={
		"0":["sz","深"],
		"3":["sz","创"],
		"6":["sh","沪"],
		"9":["sh","沪"]
	};

$(document).ready(function(){
	var obj=$("#StockBody");
	if(obj){
	    var list="";
	    for(var tname in stockData){
	    	if(stockData.hasOwnProperty(tname)){
	    		var data=stockData[tname];
	    		for(var i=data.length-1;i>=0;i--){
				    var start= data[i][0].length==5 ? "hk" : prefix[data[i][0].substr(0,1)][0];
			        list+=start+data[i][0]+",";
	    		}
	    	}
	    }
	  	$.ajax({
	   		type: "GET",
	   		url: "http://hq.sinajs.cn/",
		    dataType: "script",
		    data:"list="+list.substr(0,list.length-1),
		    processData:false,
	   		success: function(msg){
	   		    var m=0,html="<table cellpadding='0' cellspacing='0' width='100%'>";
			    for(var tname in stockData){
			    	if(stockData.hasOwnProperty(tname)){
			    		var data=stockData[tname];
						html+="<tr><td colspan='4' style='background-color:"+((m%2==0)?"#e8e8e8":"#cccccc")+"'>&nbsp;&nbsp;"+tname+"：</td></tr>";
						m++;
			    		for(var i=0;ln=data.length,i<ln;i++){
						    var j=0,start= data[i][0].length==5 ? "hk" : prefix[data[i][0].substr(0,1)][0],
						    	h=window['hq_str_'+start+data[i][0]].split(",");
					  		if(isNaN(h[1]))j=1;
							html+="<tr style='background-color:"+((m%2==0)?"#e8e8e8":"#cccccc")+"'>"+
							  	"<td style='width:95px;'><a href='"+data[i][1]+"' target='_blank'>【"+data[i][2]+"】</a></td>"+
							  	"<td style='width:85px;'>开盘价："+h[j+1]+"</td>"+
							  	"<td style='width:85px;'>现价："+h[j+4]+"</td>"+
							  	"<td style='width:20px;text-align:center'>"+(data[i][0].length==5?"港" : prefix[data[i][0].substr(0,1)][1])+"</td></tr>";
					  		m++;
			    		}
			    	}
			    }
	    		html+="</table>"
	    		$("#StockBody").html(html);
	   		}
	   	})
	}
});


