﻿// JavaScript Document
/*
var delta=0.8;
var collection;
var closeB=false;
function floaters() {
this.items	= [];
this.addItem	= function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 99; POSITION: absolute;  width:100px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem				= {};
newItem.object			= document.getElementById(id);
newItem.x				= x;
newItem.y				= y;
this.items[this.items.length]		= newItem;
}
this.play	= function()
{
collection				= this.items
setInterval('play()',30);

}
}
function play()
{
if(screen.width<=800 || closeB)
{
for(var i=0;i<collection.length;i++)
{
collection[i].object.style.display	= 'none';
}
return;
}
for(var i=0;i<collection.length;i++)
{
var followObj		= collection[i].object;
var followObj_x		= (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y		= (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display	= '';
}
}
function closeBanner()
{
closeB=true;
return;
}

function timeclose()
{
	
	setTimeout("adclose()",1000);
	

return;
}
function adclose()
{
	followDiv3.style.display	= 'none';
	}

var theFloaters		= new floaters();
//
theFloaters.addItem('followDiv','document.body.clientWidth-110','document.body.clientHeight-150','<a style="text-align:right; cursor: hand; display:block; width:100px;" onClick="closeBanner();">&times;</a><img src="/webdocs/images/kefu_img.gif"/>');

//theFloaters.addItem('followDiv1','document.body.clientWidth-100',25,'<a style="text-align:right; cursor: hand; display:block; width:81px;" onClick="closeBanner();">&times;</a><img src="/webdocs/images/1-1.jpg"/>');

//theFloaters.addItem('followDiv2','3',25,'<a style="text-align:left; cursor: hand; display:block; width:81px;" onClick="closeBanner();">&times;</a><img src="/webdocs/images/1-2.jpg"/>');



theFloaters.play();


*/
/*

adTime=100; //关闭窗口等待的时间

chanceAd=1;
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
 if(!ns && !ie && !w3) return;
 if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
 else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
 else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv").style');
 randAd=Math.ceil(Math.random()*chanceAd);
 if (ie||w3)
 adDiv.visibility="visible";
 else
 adDiv.visibility ="show";
 if(randAd==1) showAd();
}
function showAd(){
if(adTime>1){adCount+=1;
 if (ie){documentWidth =document.body.offsetWidth/2+document.body.scrollLeft-20;
 documentHeight =document.body.offsetHeight/2+document.body.scrollTop-20;}
 else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
 documentHeight=window.innerHeight/2+window.pageYOffset-20;}
 else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
 documentHeight=self.innerHeight/2+window.pageYOffset-20;}
 adDiv.left=(document.body.offsetWidth-761+document.body.scrollLeft-20)/2+97;adDiv.top =202;
 }
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}
onload=initAd;
var myDate = new Date();
var dayn=23;
var day1=myDate.getDate();
var day2=dayn-day1;
var isshow="none";

if(day2>0){
	isshow="";
}

//document.write('<div id="sponsorAdDiv" style="visibility:hidden;Z-INDEX: 98; POSITION:absolute;width:761px; height:60px;display:'+isshow+'"><DIV id=focusPic1 style="DISPLAY: block"><img src="/webdocs/images/'+day2+'.jpg" ></DIV><DIV id=focusPic2 style="DISPLAY: none"><a href="http://www.l-zzz.com/pop/pp.html" target="_blank"><img src="/webdocs/images/gg2.gif" border="0"></a></DIV><DIV id=focusPic3 style="DISPLAY: none"><a href="gginfo/index.html" target="_blank"><img src="/webdocs/images/gg.gif" border="0"></a></DIV><div id="close" style="position:absolute; right:2px; top:0px; cursor:hand;" ><img src="/webdocs/images/close.gif" onClick="closeAd()" width="10" height="10" border="0" vspace="3" alt="关闭"></div></div>')

document.write('<div id="sponsorAdDiv" style="visibility:hidden;Z-INDEX: 98; POSITION:absolute;width:761px; height:60px;"><DIV id=focusPic1 style="DISPLAY: block"><a href="ad/shop_ad.html" target="_blank"><img src="/webdocs/images/shop_ig.jpg" ></a></DIV><div id="close" style="position:absolute; right:2px; top:0px; cursor:hand;" ><img src="/webdocs/images/close.gif" onClick="closeAd()" width="10" height="10" border="0" vspace="3" alt="关闭"></div></div>')

var nn;
nn=1;
//setTimeout('change_img()',0);
//setTimeout('closeAd()',15000);
function change_img()
{
if(nn>3) nn=1
setTimeout('setFocus1('+nn+')',0);
nn++;
tt=setTimeout('change_img()',5000);
}
function setFocus1(i)
{
selectLayer1(i);
}
function selectLayer1(i)
{
switch(i)
{
case 1:
document.getElementById("focusPic1").style.display="block";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
break;
case 2:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="block";
document.getElementById("focusPic3").style.display="none";
break;
case 3:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="block";
break;
}
}
*/
////kefu
var specialcode2="<DIV id=searchspe2 style='text-align:right; cursor:pointer;position:absolute;z-index:99; left:5px;width:30px !important; width:25px; height:98px;  top:300px;' ><div style='width:30px;height: 98px;'><a href='http://dx.l-zzz.com/' target='_blank' ><img src='/webdocs/images/lzzzdx.gif'></a></div></DIV>";document.write(specialcode2);lastScrollY=0;function heartBeat1(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe2.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat1()",1);


var specialcode="<DIV id=searchspe style='text-align:right; cursor:pointer;position:absolute;z-index:99; right:5px;width:109px !important; width:25px; height:98px;  top:300px;' ><div id='fifth'><div style=' background:url(/webdocs/images/kf2.gif) no-repeat; height:190px;width:109px;'><div style='height: 145px;'  onclick='fifthFade1.start();'></div> <div style=' padding-top: 0 !important;padding-top: 2px;padding-left:3px;text-align:left;width:104px !important; width:107px;'><a href='http://xh.ex-cp.com/help/yanshi/d1.jsp' target='_blank' id='msg_viewer' title='会员如何修改订单价格？' style=' color:#ffffff'>会员如何修改订单价格？</a></div></div></div><div style='display:none; width:109px;' id='secth'  onclick='fifthFade2.start();'><img src='/webdocs/images/kf1.gif'></div></DIV>";document.write(specialcode);function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat0()",1);
var animation_start = function(){
		var el = document.getElementById('fifth');
		var sl = document.getElementById('secth');
		if (el){
			el.style.display = 'none';
			sl.style.display = 'block';
		}
	}
var animation_stop = function(){
		var el = document.getElementById('fifth');
		var sl = document.getElementById('secth');
		if (el){
			el.style.display = 'block';
			sl.style.display = 'none';
		}
	}

var fifthFade1 = new Spry.Effect.Fade('fifth', {finish:animation_start, duration: 1000, from: 100, to: 0, toggle:false});
var fifthFade2 = new Spry.Effect.Fade('fifth', {setup:animation_stop, duration: 1000, from: 0, to: 100, toggle:false});

(function(){
                var msgViewer = document.getElementById('msg_viewer'), _timer, _msgs = [{
                    text: '会员如何修改订单价格？',
                    href: 'http://xh.ex-cp.com/help/yanshi/d1.jsp'
                }, {
                    text: '卖方如何快速发布商品？',
                    href: 'http://xh.ex-cp.com/help/yanshi/gp01.jsp'
                }, {
                    text: '会员如何在线充值？',
                    href: 'http://xh.ex-cp.com/help/yanshi/cz1.jsp'
                }, {
                    text: '会员如何订阅交易短信？',
                    href: 'http://xh.ex-cp.com/help/yanshi/dx01.jsp'
                }, {
                    text: '会员如何申请开具服务费发票？',
                    href: 'http://xh.ex-cp.com/help/yanshi/zh01.jsp'
                }, {
                    text: '会员如何找回、重置密码？',
                    href: 'http://xh.ex-cp.com/help/yanshi/gs01.jsp'
                }, {
                    text: '会员如何进行现货融资？',
                    href: 'http://xh.ex-cp.com/helper.do?mkname=z&pname=checksend'
                }], _curIndex = 0, DELAY = 5000;
                
                var playMsg = function(){
                    //当游戏信息大于一条的时候
                    if (_msgs.length > 1) {
                        clearInterval(_timer);
                        msgViewer.innerHTML = _msgs[_curIndex].text;
                        msgViewer.target = '_blank';
                        _timer = setInterval(function(){
                            msgViewer.innerHTML = _msgs[_curIndex].text;
							msgViewer.title = _msgs[_curIndex].text;
                            msgViewer.target = '_blank';
                            msgViewer.href = _msgs[_curIndex].href;
                            if (++_curIndex == _msgs.length) {
                                _curIndex = 0;
                            }
                        }, 5000);
                    }
                    else {
                        msgViewer.innerHTML = _msgs[0].text;
                        msgViewer.target = '_blank';
                        msgViewer.href = _msgs[0].href;
                    }
                }
                
                if (typeof(msgViewer) != 'undefined' && msgViewer) {
                    playMsg();
                }
                
                try {
                    switchfarm('nc');
                } 
                catch (error) {
                }
            })();