﻿//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 
*/

//注意，在最后一个}后千万别加逗号
//首页顶部广告栏
AD={
	data:[
		{
			id:'LeftAD',
			data:[
				["http://www.wall21.cn/ad/images/H4-1.gif","http://blog.sina.com.cn/m/hzzhangxu"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			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:'LAD0',
			data:[
			   ["http://www.wall21.cn/ad/images/iblog.gif"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD1',
			data:[
				["http://www.wall21.cn/ad/images/xrds.gif","http://blog.sina.com.cn/m/hzzhangxu"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD2',
			data:[
				["http://www.wall21.cn/ad/images/i-lz.gif","http://blog.sina.com.cn/m/wall21laozhang"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD3',
			data:[
				["http://www.wall21.cn/ad/images/i-hz.gif","http://blog.sina.com.cn/m/wall21haizhe"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD4',
			data:[
				["http://www.wall21.cn/ad/images/i-fyq.gif","http://blog.sina.com.cn/m/wall21fanyuqing"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD5',
			data:[
				["http://www.wall21.cn/ad/images/i-ha.gif","http://blog.sina.com.cn/m/wall21huan"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD6',
			data:[
				["http://www.wall21.cn/ad/images/i-mb.gif","http://blog.sina.com.cn/m/wall21manbo"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD7',
			data:[
			   ["http://www.wall21.cn/ad/images/i-xl.gif","http://blog.sina.com.cn/m/wall21xiaoli"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD8',
			data:[
				["http://www.wall21.cn/ad/images/i-lm.gif","http://blog.sina.com.cn/m/wall21luming"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD9',
			data:[
				["http://www.wall21.cn/ad/images/i-dj.gif","http://blog.sina.com.cn/m/wall21dingjun"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD10',
			data:[
				["http://www.wall21.cn/ad/images/mad.gif","http://www.i-mad.com/index.asp?go/#/news/project/"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2600
			}
		},
		{
			id:'LAD11',
			data:[
				["http://www.wall21.cn/images/weibo1.gif","http://weibo.com/wall21/profile"],
				["http://www.wall21.cn/images/weibo2.gif","http://weibo.com/wall21/profile"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		timeout: 2000
			}
		},
		{
			id:'AD1', //对应div的id
			data:[   //图片和链接数据
				["http://www.wall21.cn/ad/images/fd01.gif","http://www.fangda.com/indexcn.asp"],
				["http://www.wall21.cn/ad/images/fd02.gif","http://www.fangda.com/indexcn.asp"],
				["http://www.wall21.cn/ad/images/fd03.gif","http://www.fangda.com/indexcn.asp"],
				["http://www.wall21.cn/ad/images/fd04.gif","http://www.fangda.com/indexcn.asp"]
			],
			setting:{ //动画样式设置	，参数参考顶部说明
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 3000,
	  		clip:   'l2r' 
			}
		}
		,{
			id:'AD3',
			data:[
				["http://www.wall21.cn/images/r-1a.gif","focus.aspx"],
				["http://www.wall21.cn/images/r-1b.gif","focus.aspx"]
			],
			setting:{
			 fx:     'fade',
		   speed:   3000, 
		   timeout: 6000, 
		   clip:   'zoom'				
			}
		}		
		,{
			id:'AD4',
			data:[
			  ["http://www.wall21.cn/ad/images/zl-0.gif","http://www.zlholding.cn "],
			  ["http://www.wall21.cn/ad/images/zl-1.gif","http://www.zlholding.cn "]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1500,
	  		timeout: 6000,
	  		clip:   'l2r' 
			}
		}
		,{
			id:'AD5',
			data:[
				["http://www.wall21.cn/ad/images/09tnf02.gif","http://www.technoform-china.com"],
				["http://www.wall21.cn/ad/images/09tnf02-1.jpg","http://www.technoform-china.com"]
			],
			setting:{
			 fx:     'fade',
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'l2r'
			}
		}
		,{
			id:'AD6',
			data:[
				["http://www.wall21.cn/ad/images/fd31a.gif","http://www.fangda.com/indexcn.asp"],
				["http://www.wall21.cn/ad/images/fd31b.gif","http://www.fangda.com/indexcn.asp"],
				["http://www.wall21.cn/ad/images/fd31c.gif","http://www.fangda.com/indexcn.asp"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 3000,
	  		clip:   'l2r'
			}
		}
		,{
			id:'AD77',
			data:[
				["http://www.wall21.cn/ad/images/10hr.gif","person_add.aspx"],
				["http://www.wall21.cn/images/yc-102b-cy.gif","focus_2293_details_22172.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD8',
			data:[
				["http://www.wall21.cn/ad/images/09hy.gif","http://www.huayuanfu.com"],
	      ["http://www.wall21.cn/ad/images/xunsu.gif","http://www.wall21.cn/easy.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD9',
			data:[
			  ["http://www.wall21.cn/ad/images/11bj.gif","http://www.fenestration.com.cn"],
				["http://www.wall21.cn/ad/images/gz10.gif","http://www.windoorexpo.com"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'AD10',
			data:[
			  ["http://www.wall21.cn/ad/images/10hr.gif","person_add.aspx"],
				["http://www.wall21.cn/images/yc-102a-ldf.gif","focus_1976_details_12037.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		},{
			id:'AD11',
			data:[
				["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		},{
			id:'AD13',
			data:[
			  ["http://www.wall21.cn/images/ztr-gtj.gif","focus_2831.aspx"],
			  ["http://www.wall21.cn/images/ztr-xtmc.gif","focus_2532_details_41502.aspx"]
	    ],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 9000,
	  		clip:   'r2l'
			}
		},{
			id:'AD101',
			data:[
				// ["http://www.wall21.cn/ad/images/yc-102b-fs.gif","focus_1919_details_11845.aspx"],
				["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
				// ["http://www.wall21.cn/ad/images/yc-102a-wm.gif","focus_2499_details_39368.aspx"]
				// ["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		},{
			id:'AD102',
			data:[
				["http://www.wall21.cn/ad/images/yc-102b-gd.gif","focus_2004_details_12425.aspx"],
				["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
				// ["http://www.wall21.cn/ad/images/yc-102a-ds.gif","focus_2157_details_16276.aspx"]
				// ["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		},{
			id:'AD103',
			data:[
				["http://www.wall21.cn/ad/images/yc-102b-hl.gif","focus_2128_details_14566.aspx"],
				["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
				// ["http://www.wall21.cn/ad/images/yc-102a-jh.gif","focus_1763_details_10805.aspx"]
				// ["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		},{
			id:'AD104',
			data:[
				["http://www.wall21.cn/ad/images/09wall21-2.gif","focus_2407_details_33938.aspx"],
				["http://www.wall21.cn/images/09wall21-2.gif","http://www.fenestration.com.cn"]
				// ["http://www.wall21.cn/ad/images/yc-102a-vs.gif","focus_1697_details_10473.aspx"]
				// ["http://www.wall21.cn/images/bj2010.gif","http://www.fenestration.com.cn"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		},{
			id:'ADRANK',
			data:[
				["http://www.wall21.cn/images/2012gz.jpg","http://www.windoorexpo.com"],
				["http://www.wall21.cn/images/2012bjz1.jpg","http://www.fenestration.com.cn"],
				["http://www.wall21.cn/images/2012yth.gif","http://www.fenestration.com.cn/main/newsSubject.jsp?intNS_ID=1066"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD1',
			data:[
				["http://www.wall21.cn/images/ld.jpg",""]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD2',
			data:[
				["http://www.wall21.cn/images/ld01.jpg","focus2_2951.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD3',
			data:[
				["http://www.wall21.cn/images/ld02.jpg","focus2_2952.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD4',
			data:[
				["http://www.wall21.cn/images/ld03.jpg","focus2_2953.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD5',
			data:[
				["http://www.wall21.cn/images/ld04.jpg","focus2_2954.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'FocusAD6',
			data:[
				["http://www.wall21.cn/images/ld05.jpg","focus2_2955.aspx"]
			],
			setting:{
	  		fx:    'fade',    
	  		speed: 1000,
	  		timeout: 6000,
	  		clip:   'r2l'
			}
		}
		,{
			id:'NetVideo',
			data:[
				["http://www.wall21.cn/images/spzb-zj.gif","javascript:NetVideo(0)"],
				["http://www.wall21.cn/images/spzb-kl.gif","javascript:NetVideo(1)"],
				["http://www.wall21.cn/images/spzb-tnf.gif","javascript:NetVideo(2)"]
			]
		}
		,{
			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"]
			]
		}
	],
	RadomData:[
    ],
    SpecialData:[
		{
			id:'AD2',
			data:[
				["http://www.wall21.cn/ad/images/klzws.jpg","http://www.kinlong.com/cn/product.htm?cid=14"],
				["http://www.wall21.cn/ad/images/09tnf01.jpg","http://www.technoform-china.com"],
				["http://www.wall21.cn/images/zj15.jpg","http://www.chinazhijiang.com"]
			],
			setting:{
	  		fx:    'scrollUp',
	  		speed: 3000,
	  		timeout: 6000	  		
			}
		}
        /*,{
		    id:"BottomAD",
		    data:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		    ]
		}	*/
    ],
    
    RC4Change:function(){
        $("#rank1").toggle();
        $("#rank2").toggle();
    },
    RankChange2:function(id){
        if(id==1){
            $("#rank1").show();
            $("#rank2").hide();
        }else{
            $("#rank2").show();
            $("#rank1").hide();
        }
    },
	
	init:function(){	    
	    if($("#StockBody"))AD.initStockData();
	    var rt4=$("#RightContent4");	    
	    if(rt4){
	        AD.MyInterval=setInterval("AD.RC4Change()",6000);
	        $("#rank1").hover(
	            function(){
	                clearInterval(AD.MyInterval);
	            },
	            function(){
	                AD.MyInterval=setInterval("AD.RC4Change()",6000);
	            }
	        );
	        $("#rank2").hover(
	            function(){
	                clearInterval(AD.MyInterval);
	            },
	            function(){
	                AD.MyInterval=setInterval("AD.RC4Change()",6000);
	            }
	        );
	    }
		for(var i=0;i<this.data.length;i++){
			var o=$("#"+this.data[i].id);
			if(typeof o=="object"){
				var html="";
				var tg='target="_blank"';
				if(this.data[i].id=="NetVideo" | this.data[i].id.substr(0,5)=='Focus'){
					tg="";
				}
				for(var j=0;j< this.data[i].data.length;j++){
					html+='<a href="'+this.data[i].data[j][1]+'" '+tg+'><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);
				}
			}
		}
		for(var i=0;i<this.RadomData.length;i++){
			var imgindex=Math.floor(Math.random()*this.RadomData[i].data.length);
			//console.log(imgindex)
			$('#'+this.RadomData[i].id).html('<a href="'+this.RadomData[i].data[imgindex][1]+'" target="_blank"><img border="0" src="'+this.RadomData[i].data[imgindex][0]+'"/></a>');
		}
		for(var i=0;i<this.SpecialData.length;i++){
			var imgindex=Math.floor(Math.random()*this.SpecialData[i].data.length);
			var o=$("#"+this.SpecialData[i].id);
			if(typeof o=="object"){
				var html="";
				var tg='target="_blank"';
    			html+='<a href="'+this.SpecialData[i].data[imgindex][1]+'" '+tg+'><img border="0" src="'+this.SpecialData[i].data[imgindex][0]+'"/></a>';
				for(var j=0;j< this.SpecialData[i].data.length;j++){
				    if(!(j-imgindex)==0)
					    html+='<a href="'+this.SpecialData[i].data[j][1]+'" '+tg+'><img border="0" src="'+this.SpecialData[i].data[j][0]+'"/></a>';
				}				
				o.html(html);
				if(this.SpecialData[i].data.length>1){
					o.cycle(this.SpecialData[i].setting);
				}
			}
		}
	},
	
	initStockData:function(){
        var count = 0;
        var stockcode = [
  	        ["000012", "http://www.wall21.cn/corp_2448_details_37597.aspx","南 玻Ａ"],
  	        ["002081", "http://www.wall21.cn/corp_2448_details_37596.aspx","金 螳 螂"],
  	        ["002163", "http://www.wall21.cn/corp_2448_details_37616.aspx","中航三鑫"],
  	        ["000619", "http://www.wall21.cn/corp_2448_details_37586.aspx","海螺型材"],
  	        ["000055", "http://www.wall21.cn/corp_2448_details_37585.aspx","方大集团"],
  	        ["002082", "http://www.wall21.cn/corp_2448_details_37584.aspx","栋梁新材"],
  	        ["300019", "http://www.wall21.cn/corp_2448_details_37583.aspx","硅宝科技"],
  	        ["01333", "http://www.wall21.cn/corp_2448_details_37595.aspx","中国忠旺"],
  	        ["00750", "http://www.wall21.cn/corp_2448_details_37600.aspx","兴业太阳能"],
  	        ["00868", "http://www.wall21.cn/corp_2448_details_37594.aspx","信义玻璃"],
  	        ["00098", "http://www.wall21.cn/corp_2448_details_37599.aspx","兴发铝业"],
  	        ["601600", "http://www.wall21.cn/corp_2448_details_37593.aspx","中国铝业"],
  	        ["600586", "http://www.wall21.cn/corp_2448_details_37592.aspx","金晶科技"],
  	        ["600819", "http://www.wall21.cn/corp_2448_details_37591.aspx","耀皮玻璃"],
  	        ["600293", "http://www.wall21.cn/corp_2448_details_37589.aspx","三峡新材"],
  	        ["600876", "http://www.wall21.cn/corp_2448_details_37588.aspx","ST洛玻"],
  	        ["002375", "http://www.wall21.cn/corp_2448_details_42111.aspx","亚厦股份"],
  	        ["002333", "http://www.wall21.cn/corp_2448_details_42110.aspx","罗普斯金"],
  	        ["000509", "http://www.wall21.cn/corp_2448_details_42112.aspx","S*ST华塑"],
  	        ["300093", "http://www.wall21.cn/corp_2448_details_43652.aspx","金刚玻璃"],
            ["300117", "http://www.wall21.cn/corp_2448_details_44793.aspx","嘉寓股份"],
			["002578", "http://www.wall21.cn/corp_3041_details_53338.aspx","闽发铝业"],
			["02789", "http://www.wall21.cn/corp_3060_details_53864.aspx","远大中国"],
			["601886", "http://www.wall21.cn/corp_3094_details_56711.aspx","江河幕墙"],
			["002613", "http://www.wall21.cn/corp_3110_details_57147.aspx","北玻股份"]
	    ];

        var prefix = {
            "0": ["sz", "深"],
            "3": ["sz", "创"],
            "6": ["sh", "沪"],
            "9": ["sh", "沪"]
        };

        var list="";
        for(var i=0;i<stockcode.length;i++){
		    var start= "";
		    if(stockcode[i][0].length==5){
			    start="hk";
		    }else{
			    start=prefix[stockcode[i][0].substr(0,1)][0];
		    }
            list+=start+stockcode[i][0]+",";
        }

        $.ajax({
            type: "GET",
            url: "http://hq.sinajs.cn/",
            dataType: "script",
            data: "list=" + list.substr(0, list.length - 1),
            processData: false,
            success: function () {
                var m = 0;
                var k = 0;
                var html = "";
                for (var i = 0; i < stockcode.length; i++) {
                    var start = stockcode[i][0].length == 5 ? "hk" : (stockcode[i][0].substr(0, 1) == "6" ? "sh" : "sz");
                    var h = eval('hq_str_' + start + stockcode[i][0]).split(",");
                    var j = 0;
                    if (isNaN(h[1])) j = 1
                    html += "<li style='background-color:" + ((m % 2 == 0) ? "#e8e8e8" : "#cccccc") + "'>" +
					    "<span style='width:94px;'><a href='" + stockcode[i][1] + "' target='_blank'>【" + stockcode[i][2] + "】</a></span>" +
					    "<span style='width:90px;'>开盘价：" + h[j + 1] + "</span>" +
					    "<span style='width:75px;'>现价：" + h[j + 4] + "</span>" +
					    "<span style='width:16px;text-align:center'>" + (stockcode[i][0].length == 5 ? "港" : prefix[stockcode[i][0].substr(0, 1)][1]) + "</span ></li>";
                    k++;
                    m++;
                }
                $("#StockBody").html(html);
            }
        });
	}
	
};//AD


NetVideo=function(id){
	//<a href="javascript:NetVideo();"><img height="66"  width="287" src="http://www.wall21.cn/images/jc.gif"/></a>
	var url=["mms://202.105.13.198/vv1","mms://202.105.13.198/vv2","mms://202.105.13.198/vv3"];
	$("#RightContent1").html(
		'<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width="287" height="298" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">'+
  	'<param value="ture" name="AUTOSTART"/>'+
		'<param name="url" value="'+url[id]+'" /><embed type="application/x-mplayer2" width="287" height="298" src="'+url[id]+'"></embed>'+
		'</object>'
	)
}

		/*'<object width="287" height="298" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="WMP7">'+
  	'<param value="ture" name="AUTOSTART"/>'+
  	'<param value="mms://202.105.13.198/vv1" name="URL"/>'+
  	'<embed width="287" height="298" defaultframe="1"/>'+
		'</object>'*/

AD12={
	//标准规范
	//data：顶部广告条
	//data_bottom:底部广告条
	stander:{
		data:[
			["http://www.wall21.cn/images/lm/lm-bzgf.gif","stander.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	show:{
		data:[
			["http://www.wall21.cn/images/lm/lm-hzxx.gif","show.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	product:{
		data:[
			["http://www.wall21.cn/images/lm/lm-cpyy.gif","products.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	person:{
		data:[
			["http://www.wall21.cn/images/lm/lm-zpxx.gif","person.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	golf:{
		data:[
			["http://www.wall21.cn/images/golf.gif","golf.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	policy:{
		data:[
			["http://www.wall21.cn/images/lm/lm-zcfg.gif","policy.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	ipb:{
		data:[
			["http://www.wall21.cn/images/lm/lm-zbxx.gif","ipb.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	finance:{
		data:[
			["http://www.wall21.cn/images/lm/lm-cjxx.gif","finance.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	project:{
		data:[
			["http://www.wall21.cn/images/lm/lm-gcjs.gif","project.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	corp:{
		data:[
			["http://www.wall21.cn/images/lm/lm-qypd.gif","corp.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	live:{
		data:[
		  ["http://www.wall21.cn/images/lm/lm-hyzb.gif","live.aspx"],
		  ["http://www.wall21.cn/images/1-M01-2.jpg","http://www.chinazhijiang.com"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	focus1:{
		data:[
			// ["http://www.wall21.cn/images/1-M01-2.jpg","http://www.chinazhijiang.com"],
			["http://www.wall21.cn/images/lm/lm-jdzt.gif","focus.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	expert:{
		data:[
			["http://www.wall21.cn/images/lm/lm-rwft.gif","expert.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	information:{
		data:[
			["http://www.wall21.cn/images/lm/lm-hyzx.gif","information.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	tecforum:{
		data:[
		  ["http://www.wall21.cn/images/lm/lm-jsjl.gif","tecforum.aspx"],
			["http://www.wall21.cn/images/jsjl.jpg","http://www.technoform-china.com"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	hot:{
		data:[
			["http://www.wall21.cn/images/rdpm.jpg","hot.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	easy:{
		data:[
			["http://www.wall21.cn/images/xcy.gif","easy.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},
	
	jishubao:{
		data:[
			["http://www.wall21.cn/images/jsb1.gif","jishubao.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	shangwutong:{
		data:[
			["http://www.wall21.cn/images/swt1.gif","shangwutong.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	fengling:{
		data:[
			["http://www.wall21.cn/images/flsjlogo.gif","fengling.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	trade:{
		data:[
			["http://www.wall21.cn/images/lm/lm-gqxx.gif","http://www.wall21.cn/trade.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		setting:{speed: 1000,timeout: 4000}
	},

	assay:{
		data:[
			["http://www.wall21.cn/images/lm/lm-gqxx.gif","http://www.wall21.cn/trade.aspx"]
		],
		data_bottom:[
    			["http://www.wall21.cn/ad/images/fd4.gif","http://www.fangda.com/indexcn.asp"],
    			["http://www.wall21.cn/images/mtgg.jpg",""]
		],
		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 o=$("#BottomAD");
		if((typeof o=="object") && (typeof d == "object")){
			var html="";
			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>';
			}
			o.html(html);
			if(d.data_bottom.length>1){
				o.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);
}


