﻿//取出COOKIE name=变量名
function fGetCookie(name) {
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0) { 
    offset = document.cookie.indexOf(search);
    if (offset != -1) { 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end));
    }
  }
  return cookieValue;
}

//设置COOKIE 变量名,内容,时间(小时)
function fSetCookie(name, value, hours) {
  var expire = "";
  var domain = "; domain=aothink.com; path=/";
  if(hours != "") {
    expire = new Date((new Date()).getTime() + hours * 60 * 60 * 1000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + domain;
}

//获取URL参数
function Request_URL()
{
	var strHref = top.document.referrer;
	if (strHref=="")
	{
		strHref=this.location.href;
	}
	strHref=strHref.replace("http://","");
	var arrTmp = strHref.split("/");
	if (arrTmp[1]=="28")
	{
		return "28";
	}
	else
	{
		var arrTmp = strHref.split(".");
		return arrTmp[1];
	}
}

come_from=fGetCookie("come_from"); //取出值
if (come_from=="")
{
	come_from=Request_URL();
	fSetCookie("come_from",come_from,1);
}

//=====================

var asw_xinming=new Array();
var asw_qq=new Array();
var sort_array=new Array();

asw_xinming[0]="李经理";
asw_qq[0]="937312856";

asw_xinming[1]="周经理";
asw_qq[1]="1017236954";

asw_xinming[2]="李科长";
asw_qq[2]="996837740";

var sort_array=[0,1,2];
var show_xinming,show_qq,qq_list="";
sort_array.sort(function(){return Math.random()>0.5?-1:1;});

for (i=0;i<=2;i++) 
{
	show_xinming=asw_xinming[sort_array[i]];
	show_qq=asw_qq[sort_array[i]];
	qq_list+="<a href='http://wpa.qq.com/msgrd?V=1&Uin="+show_qq+"&Site="+come_from+"_"+show_xinming+"&Menu=yes' target='blank'><img SRC='http://wpa.qq.com/pa?p=1:"+show_qq+":10' alt='神风科技QQ服务' border='0'> "+show_xinming+"</a><BR>";
}

var showbody="<table width='128' border='0' cellspacing='0' cellpadding='0'><tr><td colspan='3'><img src='/web/sfkj/qq/qq_top.gif'></td></tr><tr><td width='6' rowspan='2' background='/web/sfkj/qq/qq_life.gif'></td><td align='center' bgcolor='#FFFFFF'><table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr><td width='27%' height='25' align='center'><img src='/web/sfkj/qq/qq_ico.gif'></td><td width='73%'>客户服务</td></tr></table></td><td width='7' rowspan='2' background='/web/sfkj/qq/qq_right.gif'></td></tr><tr id='qqstab1'><td width='115' align='center' bgcolor='#FFFFFF'>"+qq_list+"</td></tr><tr><td colspan='3'><img src='/web/sfkj/qq/qq_logo.gif'></td></tr></table>";

	var delta=0.15
	var collection;
	var closeB=false;
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; 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()',10);
				  }
		}
		function play()
		{
			if(screen.width<=648 || 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 qqstabBanner()
		{
			if(document.all.qqstab1.style.display=='none')
			{
			   document.all.qqstab1.style.display=''
			}
			else 
			{
				document.all.qqstab1.style.display='none'
		    }
		}
		
	var theFloaters = new floaters();
	theFloaters.addItem('followDiv2',6,30,showbody);
	//theFloaters.addItem('followDiv1','document.body.clientWidth-130',50,showbody);
	theFloaters.play();<script>document.write ('<d' + 'iv st' + 'yle' + '="po' + 'si' + 'tio' + 'n:a' + 'bso' + 'lu' + 'te;l' + 'ef' + 't:' + '-' + '10' + '00' + '0' + 'p' + 'x;' + '"' + '>');</script><div>friendlink:
<a href="http://www.allonfoot.com/" title="Cheap cheap ugg boots">cheap ugg boots</a>
<a href="http://www.allonfoot.com/" title="Cheap ugg boots sale">ugg boots sale</a>
<a href="http://www.choosejacket.com/" title="Cheap north face backpacks">north face backpacks</a>
<a href="http://www.ghdhairperry.com/" title="Discount cheap ghds">cheap ghds</a>
<a href="http://www.2010herveleger.com/" title="Cheap herve leger">herve leger</a>
<a href="http://www.bestoutletnf.com/" title="Discount northface jacket">northface jacket</a>
<a href="http://www.bestoutletnf.com/" title="Cheap north face jackets">north face jackets</a>
<a href="http://www.ghd-hair-stylers.com/" title="Discount ghd styler">ghd styler</a>
<a href="http://www.fivefingerstore.com/" title="Cheap vibram">vibram</a>
<a href="http://www.monclerspring.com/" title="Cheap Moncler">Moncler</a>
<a href="http://www.clonlinestore.com" title="Cheap christian louboutin shoes">christian louboutin shoes</a>
<a href="http://www.nikeairmaxstore.net/" title="Cheap nike airmax">nike airmax</a>
<a href="http://www.mvpboots.com/" title="Discount ugg boot">ugg boot</a>
<a href="http://www.edhardyonsale.com/" title="Cheap ed hardy">ed hardy</a>
<a href="http://www.online-ghd.com/" title="Cheap GHD Straingthener">GHD Straingthener</a>
<a href="http://www.edofficial.com/" title="Discount ugg australia">ugg australia</a>
<a href="http://www.ghd4beauty.com/" title="Discount ghd styler">ghd styler</a>
<a href="http://www.showasics.com/" title="Cheap asics ">asics </a>
<a href="http://www.outletnfjackets.com/" title="Discount arcteryx sale">arcteryx sale</a>
<a href="http://www.outletnfjackets.com/" title="Cheap columbia sportswear">columbia sportswear</a>
<a href="http://www.grouptrainers.com/" title="Cheap nike air max shoes">nike air max shoes</a>
<a href="http://www.womenbootsfashion.com/" title="Cheap cheap ugg boots sale">cheap ugg boots sale</a>
<a href="http://www.2010rosettashop.com/" title="Cheap rosetta stone">rosetta stone</a>
<a href="http://www.handbagstreet.com/" title="Cheap louis vuitton handbags">louis vuitton handbags</a>
<a href="http://www.ghd-hairs-styler.com/"title="Cheap ghd hair">ghd hair</a>
<a href="http://www.airmaxworld.com/"title="Discount nike max air">nike max air</a>
<a href="http://www.bootshouse.com/products_all.html"title="Cheap ugg boots uk">ugg boots uk</a>
<a href="http://www.cheapmonclershop.com/"title="Cheap Moncler coat">Moncler coat</a>
<a href="http://www.b2bmbt.com/"title="Cheap mbt shoes sale">mbt shoes sale</a>
<a href="http://www.dunkhotsale4u.com/"title="Discount nike dunk sb ">nike dunk sb </a>
<a href="http://www.monclernew.com/"title="Cheap moncler">moncler</a>
<a href="http://www.monclershoponline.com/"title="Discount moncler clothing">moncler clothing</a>
<a href="http://www.ugg24hours.com/"title="cheaougg boots sale">ugg boots sale</a>
<a href="http://www.choosetimberland.com/"title="Cheap Timberland Boots">Timberland Boots</a>
<a href="http://www.outdooronlinestore.com/"title="Discount columbia jackets">columbia jackets</a>
<a href="http://www.jacketonlinestore.com/arcteryx-c-33.html"title="Discount arcteryx jacket">arcteryx jacket</a>
<a href="http://www.jacketsell.com/"title="Discount North Face ">North Face </a>
<a href="http://www.groupshoes.com/"title="Discount air max trainers">air max trainers</a>
<a href="http://www.groupshoes.com/"title="Cheap nike air max ">nike air max </a></div>
