// JScript File
try
{
var b_divTop,b_divLeft,b_divWidth,b_divHeight,b_docHeight,b_docWidth,b_objTimer;
function b_getMsg()
{
b_divTop = parseInt(document.getElementById("newMessageBox").style.top,10);
b_divLeft = parseInt(document.getElementById("newMessageBox").style.left,10);
b_divHeight = parseInt(document.getElementById("newMessageBox").offsetHeight,10);
b_divWidth = parseInt(document.getElementById("newMessageBox").offsetWidth,10);
b_docWidth = document.body.clientWidth;
b_docHeight = document.body.clientHeight;
document.getElementById("newMessageBox").style.top = parseInt(document.body.scrollTop,10) + b_docHeight + 10;
document.getElementById("newMessageBox").style.left = parseInt(document.body.scrollLeft,10) + b_docWidth - b_divWidth;
document.getElementById("newMessageBox").style.visibility="visible";
b_objTimer = window.setInterval("b_moveDiv()",10);
}
function b_resizeDiv()
{
try
{
if(document.getElementById("newMessageBox").style.visibility=="visible")
{
b_divHeight = parseInt(document.getElementById("newMessageBox").offsetHeight,10);
b_divWidth = parseInt(document.getElementById("newMessageBox").offsetWidth,10);
b_docWidth = document.body.clientWidth;
b_docHeight = document.body.clientHeight;
document.getElementById("newMessageBox").style.top = b_docHeight - b_divHeight + parseInt(document.body.scrollTop,10);
document.getElementById("newMessageBox").style.left = b_docWidth - b_divWidth + parseInt(document.body.scrollLeft,10);
}
}
catch(e){}
}
function b_moveDiv()
{
try
{
if(parseInt(document.getElementById("newMessageBox").style.top,10) <= (b_docHeight - b_divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(b_objTimer);
b_objTimer = window.setInterval("b_resizeDiv()",1);
}
b_divTop = parseInt(document.getElementById("newMessageBox").style.top,10);
document.getElementById("newMessageBox").style.top = b_divTop - 1;
}
catch(e){}
}
function closeDiv()
{
document.getElementById('newMessageBox').style.visibility='hidden';
if(b_objTimer) window.clearInterval(b_objTimer);
}
function openWebIM()
{
window.open("http://wim.yeeyoo.com/mainForm.aspx","YY_WebIM","width=700,height=420,resizable=yes,toolbar=no");
}
document.write(" \n");
document.write("\n");
document.write("\n");
function openWin()
{
var currentURL = document.URL;
window.open('http://user.yeeyoo.com/cusservice/index.jsp?currentURL='+currentURL,'newwindow','height=610,width=778,top=400,left=400,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
}
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write("
找朋友,上亿友! \n");
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write(" \n");
document.write(" 首页 \n");
document.write(" \n");
document.write(" 搜友 \n");
document.write(" \n");
document.write(" 精彩空间 \n");
document.write(" \n");
document.write(" 征友启示 \n");
document.write(" \n");
document.write(" 在线会员 \n");
document.write(" \n");
document.write(" \n");
document.write("
\n");
document.write("
\n");
document.write(" 社区 \n");
document.write(" 新人秀 \n");
document.write(" \n");
document.write(" \n");
document.write(" \n");
document.write(" 排行榜 \n");
document.write(" \n");
document.write("
\n");
document.write("
\n");
document.write("
\n");
document.write("\n");
document.write(" \n");
document.write("
\n");
var marqueeContent=new Array(5);
marqueeContent[0]="
新增6款音乐播放器皮肤 [7月15日] ";
marqueeContent[1]="
空间模版自定义上线拉! [7月16日] ";
marqueeContent[2]="
亿友积分功能上线![7月18日] ";
marqueeContent[3]="
关注TA的新鲜事上线拉! [7月23日] ";
marqueeContent[4]="
【七夕.诗文颂】征文赛开始[7月23日] ";
var marqueeInterval=new Array();
var marqueeId=0;
var marqueeDelay=2500;
var marqueeHeight=20;
function initMarquee() {
var str=marqueeContent[0];
document.write("
");
marqueeId++;
marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay);
}
function startMarquee() {
var str=marqueeContent[marqueeId];
marqueeId++;
if(marqueeId>=marqueeContent.length) marqueeId=0;
if(marqueeBox.childNodes.length==1) {
var nextLine=document.createElement('DIV');
nextLine.innerHTML=str;
marqueeBox.appendChild(nextLine);
}
else {
marqueeBox.childNodes[0].innerHTML=str;
marqueeBox.appendChild(marqueeBox.childNodes[0]);
marqueeBox.scrollTop=0;
}
clearInterval(marqueeInterval[1]);
marqueeInterval[1]=setInterval("scrollMarquee()",1);
}
function scrollMarquee() {
marqueeBox.scrollTop++;
if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){
clearInterval(marqueeInterval[1]);
}
}
initMarquee();
document.write("\n");
document.write("
\n");
document.write("
\n");
var firstrun=true;
function username_click(obj)
{
if(firstrun)
{
firstrun=false;
obj.value="";
}
}
function isInteger(value)
{
var tmp = parseInt(value);
if (isNaN(tmp))
{
return false;
}
else if (tmp.toString() == value)
{
return true;
}
else
{
return false;
}
}
function check_loginform(obj)
{
var err_input=false;
var v=obj.identity.value;
if(v.length<1)
err_input=true;
if(v.indexOf("@")<1&&!isInteger(v))
err_input=true;
if(err_input)
{
alert("请输入您注册的电子邮件地址或者手机号码进行登录!");
obj.identity.focus();
return false;
}
else
return true;
}
function check_loginform_new(obj)
{
var v=obj.identity.value;
var pwd = obj.pwd.value;
if(v.length<1||v=="用户名/电子邮件/手机号")
{
alert("请输入您注册的用户名,电子邮件地址或者手机号码进行登录!");
obj.identity.focus();
return false;
}
else if(pwd.length<1){
alert("请输入您的登录密码进行登录!");
obj.pwd.focus();
return false;
}
else
return true;
}
function submit_form() {
document.loginform.url.value = location.href;
if (check_loginform_new(document.loginform)) {
if (document.getElementById("autologin").checked) {
document.loginform.maxAge.value="2592000";
} else {
document.loginform.maxAge.value="-1";
}
document.loginform.submit();
}else{
return false;
}
}
function KeyDown() {
if (event.keyCode == 13) {
submit_form()
}
}
var islogin = false;
var login_flag = 0;
var d = parent.document;
document.write("
\n");
document.write("\n");
document.write("
");
document.write("
\n");
document.write("
\n");
var username000 = "";
var userrole000 = "";
var usernl = "";
var userwz = "";
var userphoto="";
//亿友娱乐(中国)有限公司即时消息通知
//2006-04-28 by Software Depart.
//flash 响应
function loginFlash(vip_name,b_name,dp_url,xb,speak_info,vip_boolean,f_name,lei,nl,wz,photo_url)
{
try
{
//接收用户id
if(b_name!="") document.getElementById("myFlash").SetVariable("b_name", b_name);
//地盘url
if(dp_url!="") document.getElementById("myFlash").SetVariable("dp_url", dp_url);
//性别 1女 2男
if(xb!="") document.getElementById("myFlash").SetVariable("xb", xb);
//消息内容
if(speak_info!="") document.getElementById("myFlash").SetVariable("speak_info", speak_info);
//是否vip
if(vip_boolean!="") document.getElementById("myFlash").SetVariable("vip_boolean", vip_boolean);
//用户呢称
if(f_name!="") document.getElementById("myFlash").SetVariable("f_name", f_name);
//设置值1:接收所有消息2:只接收个人消息3:暂停所有消息接收
var shezhi = flash_getcookie("webim_shezhi");
if(shezhi!=null) document.getElementById("myFlash").SetVariable("shezhi", shezhi);
//触发类别1访问地盘2好友上线3新消息通知4新的点评5聊天通知6vip会员在线速配
//lei=1 参数:vip_name b_name xb
//lei=2 参数:vip_name b_name
//lei=3 参数:b_name
//lei=4 参数:b_name
//lei=5 参数:vip_name b_name xb speak_info
//lei=6 参数:图片photo_url1~6 人名vip_name1~6 城市vip_city1~6 图片链接地址vip_url1~6
//--后加的
if(nl!="") document.getElementById("myFlash").SetVariable("nl", nl);
if(wz!="") document.getElementById("myFlash").SetVariable("wz", wz);
if(photo_url!="") document.getElementById("myFlash").SetVariable("photo_url", photo_url);
//------------
document.getElementById("myFlash").SetVariable("lei", lei);
//当前操作用户id
if(vip_name!="") document.getElementById("myFlash").SetVariable("vip_name", vip_name);
}
catch(E)
{
//alert("loginFlash:"+E.description);
}
}
//只是连接
function flash_login(vip_name,xb,f_name,vip_boolean,nl,wz,photo_url)
{
loginFlash(vip_name,"","",xb,"",vip_boolean,f_name,0,nl,wz,photo_url);
//alert("flash_login:(已连接)"+f_name);
}
//访问地盘
function flash_fwdp(vip_name,b_name,dp_url)
{
loginFlash(vip_name,b_name,dp_url,"","","","",1,"","","");
//alert("vip_name:"+vip_name+" b_name:"+b_name);
}
//好友上线
function flash_hysx(vip_name,b_name)
{
loginFlash(vip_name,b_name,"","","","","",2,"","","");
//alert("vip_name:"+vip_name+" b_name:"+b_name);
}
//新消息
function flash_xsx(vip_name,b_name)
{
loginFlash(vip_name,b_name,"","","","","",3,"","","","")
}
//新点评
function flash_xdp(b_name)
{
loginFlash("",b_name,"","","","","",4,"","","","")
}
//聊天通知
function flash_lttz(vip_name,b_name,f_name,speak_info)
{
loginFlash(vip_name,b_name,"","",speak_info,"",f_name,5,"","","","")
}
//vip会员在线速配 users为数组[6][4]维
function flash_zxsp(users)
{
try
{
for(var i=0;i<6;i++)
{
var num = (i+1).toString();
document.getElementById("myFlash").SetVariable("photo_url"+num, users[i][0]);
document.getElementById("myFlash").SetVariable("vip_name"+num, users[i][1]);
document.getElementById("myFlash").SetVariable("vip_city"+num, users[i][2]);
document.getElementById("myFlash").SetVariable("vip_url"+num, users[i][3]);
//alert("1:"+users[i][0]+"2:"+users[i][1]+"3:"+users[i][2]+"4:"+users[i][3]);
}
}
catch(E)
{
//alert("flash_zxsp:"+E.description);
}
var shezhi = flash_getcookie("webim_shezhi");
if(shezhi!=null) document.getElementById("myFlash").SetVariable("shezhi", shezhi);
document.getElementById("myFlash").SetVariable("lei", 6);
}
//连接状态设置0断开1连接2重新连接
function flash_connect(live)
{
//0断开1连接2重新连接
try
{
document.getElementById("myFlash").SetVariable("live", live);
}
catch(E)
{
//alert("flash_connect:"+E.description);
}
}
//写出flash
//div id: webIM_Flash
//flash id: myFlash
function flash_writeFlash()
{
document.write("");
document.write("
");
document.write(" ");
document.write(" ");
document.write(" ");
document.write(" ");
document.write("");
document.write(" ");
document.write(" ");
// alert("flash_writeFlash");
}
//定位flash 窗口右下角
function flash_moveFlash()
{
try{
/* var divHeight = 300;
var divWidth = 300;
var docWidth = document.body.clientWidth;
var docHeight = document.body.clientHeight;
document.getElementById("webIM_Flash").style.position = "absolute";
document.getElementById("webIM_Flash").style.top = docHeight - divHeight ;
document.getElementById("webIM_Flash").style.left = docWidth - divWidth ;
*/
var divHeight = 300;
var divWidth = 300;
var docWidth = document.documentElement.clientWidth;
var docHeight = document.documentElement.clientHeight;
var webFlash =document.getElementById("webIM_Flash");
webFlash.style.position = "absolute";
webFlash.style.top = (docHeight - divHeight)+"px" ;
webFlash.style.left = (docWidth - divWidth)+"px" ;
}
catch(E)
{
//alert("flash_moveFlash:"+E.description);
}
flash_mymoveFlash();
}
//如果滚动条
function flash_mymoveFlash()
{
//document.getElementById("webIM_Flash").style.position = "absolute";
//document.getElementById("myFlash").style.position = "absolute";
document.getElementById("webIM_Flash").style.top=(document.documentElement.clientHeight+document.documentElement.scrollTop-320)+"px";
document.getElementById("webIM_Flash").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-320)+"px";
document.getElementById("myFlash").style.top=(document.documentElement.clientHeight+document.documentElement.scrollTop-320)+"px";
document.getElementById("myFlash").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-320)+"px";
setTimeout("flash_mymoveFlash();",50);
}
/*
function flash_mymoveFlash()
{
var flashTop = parseInt(document.getElementById("webIM_Flash").style.top);
if(flashTop !=document.body.scrollHeight-300){
document.getElementById("webIM_Flash").style.top=document.body.scrollTop+document.body.offsetHeight-315;
document.getElementById("webIM_Flash").style.left=document.body.scrollLeft+document.body.offsetWidth-340;
}else{
//document.getElementById("webIM_Flash").style.top=flashTop -340;
}
setTimeout("flash_mymoveFlash();",50);
}
*/
//cookie保存时间是3个小时
var expdays=3;
var exp=new Date();
exp.setTime(exp.getTime()+(expdays*60*60*1000));
//获取该访问者的已访问次数
function flash_getCookieVal(offset)
{
var endstr=document.cookie.indexOf(";",offset);
if (endstr==-1)
endstr=document.cookie.length;
return unescape(document.cookie.substring(offset,endstr));
}
//截取Cookie中的name信息段
function flash_getcookie(name)
{
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i2)?argv[2]:null;
var path=(argc>3)?argv[3]:null;
var domain=(argc>4)?argv[4]:null;
var secure=(argc>5)?argv[5]:false;
document.cookie=name+"="+escape(value)
+((expires==null)?" ":(";expires="+expires.toGMTString()))
+((path==null)?" ":(";path="+path))
+((domain==null)?" ":(";domain="+domain))+((secure==true)?";secure":" ");
}
//使该信息行失效,删除该用户关于访问次数的信息
function flash_deletecookie(name)
{
var exp=new Date();
exp.setTime(exp.getTime()-1);
var cval=flash_getcookie(name);
document.cookie=name+"="+cval+";expires="+exp.toGMTString();
}
//webim_shezhi 表示flash中设置是否弹出消息1接收所有消息2只接收个人消息3暂停接收消息
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)
{
var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
flash_setcookie("webim_shezhi",args,exp);
//如果是暂停所有消息,就是断开flash
if(args==3) flash_connect(0);
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write(' \n');
}
//获取flash设置值
function flash_getShowFlash()
{
var flag = flash_getcookie("webim_shezhi");
if(flag==null)
{
return 1;
}
else
{
return flag;
}
}
//执行写flash,定位flash,登陆
flash_writeFlash();
window.onload = flash_moveFlash;
function fms_login()
{
try
{
//flash_writeFlash();
//flash_moveFlash();
var webim_userid = flash_getcookie("userid");
var webim_xb = flash_getcookie("gender");
var webim_username = username000;
var webim_shezhi = flash_getShowFlash();
var vip_boolean = 0;
//
var nl = usernl;
var wz = userwz;
var photo_url = userphoto;
if(userrole000=="2") vip_boolean =1;
if(webim_userid!=null)
{
var ss = "flash_login("+"\""+webim_userid+"\","+"\""+webim_xb+"\","+"\""+webim_username+"\","+"\""+vip_boolean+"\","+"\""+nl+"\","+"\""+wz+"\","+"\""+photo_url+"\""+")";
setTimeout(ss,1000);
}
}
catch(E)
{
//alert("exe:"+E.description);
}
}
}
catch(E){;}
try
{
var myhost = parent.location;
document.getElementById("logout0").innerHTML = " ";
}
catch(E){;}
//
function flash_openwin(){
var wid = 670;
var hei = 600;
var lefts = (screen.width - wid) / 2;
var tops = (screen.height - hei) / 2;
var win = window.open("http://user.yeeyoo.com/flash/UserUtils.jsp","flash","width=670,height=600,left="+lefts+",top="+tops);
win.focus();
return;
}
function flash_findWin(){
var win = window.open("","flash");
win.focus();
return;
}
function flash_get_cookie(Name) {
var search = Name + "=";
//alert("search = " + search);
var returnvalue = "";
//alert("document.cookie.length = "+document.cookie.length);
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
//alert("offset = "+offset);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
//alert("end = "+end);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end));
//alert("returnvalue = "+returnvalue);
}
}
return returnvalue;
}
/*
function flash_loadpopup(){
//alert(flash_get_cookie("popped"));
if (flash_get_cookie("popped")==""){
flash_openwin();
}else{
flash_findWin();
}
}
*/
function flash_set_cookie(){
var expdate = new Date();
expdate.setTime (expdate.getTime() + 1 * (24 * 60 * 60 * 1000)); //+1 day
var expires = expdate.toGMTString();
document.cookie="popped=no;expires ="+ expires +";path=/;domain=user.yeeyoo.com" ;
}
function flash_delete_cookie(){
var expdate = new Date();
expdate.setTime (expdate.getTime() -1); //+1 day
var expires = expdate.toGMTString();
document.cookie="popped=no;expires ="+ expires +";path=/;domain=user.yeeyoo.com" ;
}
//
function flash_loadpopup(userid)
{
var oldWin = window.open("","flash","toolbar=yes,menubar=yes,location=yes,resizable=yes,status=1");
if(oldWin){//如果浏览器没有进行弹出窗口阻止
oldWin.focus();
try{
if(oldWin.status==null || oldWin.status=="")
{
var flash_url = "http://user.yeeyoo.com/flash/UserUtils.jsp";
if(userid != null && userid != "")
{
flash_url = flash_url + "?q_q=yes&ssb_id=" + userid;
}
oldWin.location=flash_url;
}
else
{
if(userid != null && userid != ""){
var flash;
if(navigator.appName.indexOf("Microsoft") != -1)
{
flash = window["myFlash"];
}
else
{
flash = window.document["myFlash"];
}
flash.Do_send_so(userid);
}
}
}catch(E){
if(userid != null && userid != ""){
var flash;
if(navigator.appName.indexOf("Microsoft") != -1){
flash = window["myFlash"];
}else{
flash = window.document["myFlash"];
}
flash.Do_send_so(userid);
}
}
}else{//如果进行了阻止
alert("您的浏览器刚刚阻止了弹出聊天窗口,请及时修改您的浏览器设置(或咨询本站客服),这样才不会错过每一个结交新朋友的机会哦! ");
}
}
function flash_loadpopup01(userid){
var oldWin = window.open("","flash","toolbar=yes,menubar=yes,location=yes,resizable=yes,status=1");
oldWin.focus();
if(oldWin.status==null || oldWin.status==""){
var flash_url = "http://user.yeeyoo.com/flash/UserUtils.jsp";
if(userid != null && userid != ""){
flash_url = flash_url + "?hd=yes&ssb_id=" + userid;
}
oldWin.location=flash_url;
}
}
function setElementIndex(obj_name,index_num){
var obj = document.getElementById(obj_name);
obj.style.zIndex=index_num;
}
function setDivUp(){
setElementIndex("webIM_Flash",1001);
}
function setDivDown(){
setElementIndex("webIM_Flash",-100);
}
//-- Google Analytics Urchin Module
//-- Copyright 2005 Google, All Rights Reserved.
//-- Urchin On Demand Settings ONLY
var _uacct=""; // set up the Urchin Account
var _userv=1; // service mode (0=local,1=remote,2=both)
//-- UTM User Settings
var _ufsc=1; // set client info flag (1=on|0=off)
var _udn="auto"; // (auto|none|domain) set the domain name for cookies
var _uhash="on"; // (on|off) unique domain hash for cookies
var _utimeout="1800"; // set the inactive session timeout in seconds
var _ugifpath="/__utm.gif"; // set the web path to the __utm.gif file
var _utsp="|"; // transaction field separator
var _uflash=1; // set flash version detect option (1=on|0=off)
var _utitle=1; // set the document title detect option (1=on|0=off)
var _ulink=0; // enable linker functionality (1=on|0=off)
var _uanchor=0; // enable use of anchors for campaign (1=on|0=off)
var _utcp="/"; // the cookie path for tracking
//-- UTM Campaign Tracking Settings
var _uctm=1; // set campaign tracking module (1=on|0=off)
var _ucto="15768000"; // set timeout in seconds (6 month default)
var _uccn="utm_campaign"; // name
var _ucmd="utm_medium"; // medium (cpc|cpm|link|email|organic)
var _ucsr="utm_source"; // source
var _uctr="utm_term"; // term/keyword
var _ucct="utm_content"; // content
var _ucid="utm_id"; // id number
var _ucno="utm_nooverride"; // don't override
//-- Auto/Organic Sources and Keywords
var _uOsr=new Array();
var _uOkw=new Array();
_uOsr[0]="google"; _uOkw[0]="q";
_uOsr[1]="yahoo"; _uOkw[1]="p";
_uOsr[2]="msn"; _uOkw[2]="q";
_uOsr[3]="aol"; _uOkw[3]="query";
_uOsr[4]="aol"; _uOkw[4]="encquery";
_uOsr[5]="lycos"; _uOkw[5]="query";
_uOsr[6]="ask"; _uOkw[6]="q";
_uOsr[7]="altavista"; _uOkw[7]="q";
_uOsr[8]="search"; _uOkw[8]="q";
_uOsr[9]="netscape"; _uOkw[9]="s";
_uOsr[10]="cnn"; _uOkw[10]="query";
_uOsr[11]="looksmart"; _uOkw[11]="qt";
_uOsr[12]="about"; _uOkw[12]="terms";
_uOsr[13]="mamma"; _uOkw[13]="query";
_uOsr[14]="alltheweb"; _uOkw[14]="q";
_uOsr[15]="gigablast"; _uOkw[15]="q";
_uOsr[16]="voila"; _uOkw[16]="kw";
_uOsr[17]="virgilio"; _uOkw[17]="qs";
_uOsr[18]="live"; _uOkw[18]="q";
_uOsr[19]="baidu"; _uOkw[19]="wd";
_uOsr[20]="alice"; _uOkw[20]="qs";
//-- Auto/Organic Keywords to Ignore
var _uOno=new Array();
//_uOno[0]="urchin";
//_uOno[1]="urchin.com";
//_uOno[2]="www.urchin.com";
//-- Referral domains to Ignore
var _uRno=new Array();
//_uRno[0]=".urchin.com";
//-- **** Don't modify below this point ***
var _uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1";
var _ugifpath2="http://www.google-analytics.com/__utm.gif";
if (_udl.hash) _udlh=_udl.href.substring(_udl.href.indexOf('#'));
if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif";
if (!_utcp || _utcp=="") _utcp="/";
function urchinTracker(page) {
if (_udl.protocol=="file:") return;
if (_uff && (!page || page=="")) return;
var a,b,c,v,z,k,x="",s="",f=0;
var nx=" expires=Sun, 18 Jan 2038 00:00:00 GMT;";
var dc=_ubd.cookie;
_udh=_uDomain();
if (!_uVG()) return;
_uu=Math.round(Math.random()*2147483647);
_udt=new Date();
_ust=Math.round(_udt.getTime()/1000);
a=dc.indexOf("__utma="+_udh);
b=dc.indexOf("__utmb="+_udh);
c=dc.indexOf("__utmc="+_udh);
if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
if (_utimeout && _utimeout!="") {
x=new Date(_udt.getTime()+(_utimeout*1000));
x=" expires="+x.toGMTString()+";";
}
if (_ulink) {
if (_uanchor && _udlh && _udlh!="") s=_udlh+"&";
s+=_udl.search;
if(s && s!="" && s.indexOf("__utma=")>=0) {
if (!(_uIN(a=_uGC(s,"__utma=","&")))) a="-";
if (!(_uIN(b=_uGC(s,"__utmb=","&")))) b="-";
if (!(_uIN(c=_uGC(s,"__utmc=","&")))) c="-";
v=_uGC(s,"__utmv=","&");
z=_uGC(s,"__utmz=","&");
k=_uGC(s,"__utmk=","&");
if ((k*1) != ((_uHash(a+b+c+z+v)*1)+(_udh*1))) {_ubl=1;a="-";b="-";c="-";z="-";v="-";}
if (a!="-" && b!="-" && c!="-") f=1;
else if(a!="-") f=2;
}
}
if(f==1) {
_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
_ubd.cookie="__utmb="+b+"; path="+_utcp+";"+x+_udo;
_ubd.cookie="__utmc="+c+"; path="+_utcp+";"+_udo;
} else if (f==2) {
a=_uFixA(s,"&",_ust);
_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
_ufns=1;
} else if (a>=0 && b>=0 && c>=0) {
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
} else {
if (a>=0) a=_uFixA(_ubd.cookie,";",_ust);
else a=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1";
_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
_ufns=1;
}
if (_ulink && v && v!="" && v!="-") {
v=_uUES(v);
if (v.indexOf(";")==-1) _ubd.cookie="__utmv="+v+"; path="+_utcp+";"+nx+_udo;
}
_uInfo(page);
_ufns=0;
_ufno=0;
_uff=1;
}
function _uInfo(page) {
var p,s="",dm="",pg=_udl.pathname+_udl.search;
if (page && page!="") pg=_uES(page,1);
_ur=_ubd.referrer;
if (!_ur || _ur=="") { _ur="-"; }
else {
dm=_ubd.domain;
if(_utcp && _utcp!="/") dm+=_utcp;
p=_ur.indexOf(dm);
if ((p>=0) && (p<=8)) { _ur="0"; }
if (_ur.indexOf("[")==0 && _ur.lastIndexOf("]")==(_ur.length-1)) { _ur="-"; }
}
s+="&utmn="+_uu;
if (_ufsc) s+=_uBInfo();
if (_uctm) s+=_uCInfo();
if (_utitle && _ubd.title && _ubd.title!="") s+="&utmdt="+_uES(_ubd.title);
if (_udl.hostname && _udl.hostname!="") s+="&utmhn="+_uES(_udl.hostname);
s+="&utmr="+_ur;
s+="&utmp="+pg;
if (_userv==0 || _userv==2) {
var i=new Image(1,1);
i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
i.onload=function() {_uVoid();}
}
if (_userv==1 || _userv==2) {
var i2=new Image(1,1);
i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
i2.onload=function() { _uVoid(); }
}
return;
}
function _uVoid() { return; }
function _uCInfo() {
if (!_ucto || _ucto=="") { _ucto="15768000"; }
if (!_uVG()) return;
var c="",t="-",t2="-",t3="-",o=0,cs=0,cn=0,i=0,z="-",s="";
if (_uanchor && _udlh && _udlh!="") s=_udlh+"&";
s+=_udl.search;
var x=new Date(_udt.getTime()+(_ucto*1000));
var dc=_ubd.cookie;
x=" expires="+x.toGMTString()+";";
if (_ulink && !_ubl) {
z=_uUES(_uGC(s,"__utmz=","&"));
if (z!="-" && z.indexOf(";")==-1) { _ubd.cookie="__utmz="+z+"; path="+_utcp+";"+x+_udo; return ""; }
}
z=dc.indexOf("__utmz="+_udh);
if (z>-1) { z=_uGC(dc,"__utmz="+_udh,";"); }
else { z="-"; }
t=_uGC(s,_ucid+"=","&");
t2=_uGC(s,_ucsr+"=","&");
t3=_uGC(s,"gclid=","&");
if ((t!="-" && t!="") || (t2!="-" && t2!="") || (t3!="-" && t3!="")) {
if (t!="-" && t!="") c+="utmcid="+_uEC(t);
if (t2!="-" && t2!="") { if (c != "") c+="|"; c+="utmcsr="+_uEC(t2); }
if (t3!="-" && t3!="") { if (c != "") c+="|"; c+="utmgclid="+_uEC(t3); }
t=_uGC(s,_uccn+"=","&");
if (t!="-" && t!="") c+="|utmccn="+_uEC(t);
else c+="|utmccn=(not+set)";
t=_uGC(s,_ucmd+"=","&");
if (t!="-" && t!="") c+="|utmcmd="+_uEC(t);
else c+="|utmcmd=(not+set)";
t=_uGC(s,_uctr+"=","&");
if (t!="-" && t!="") c+="|utmctr="+_uEC(t);
else { t=_uOrg(1); if (t!="-" && t!="") c+="|utmctr="+_uEC(t); }
t=_uGC(s,_ucct+"=","&");
if (t!="-" && t!="") c+="|utmcct="+_uEC(t);
t=_uGC(s,_ucno+"=","&");
if (t=="1") o=1;
if (z!="-" && o==1) return "";
}
if (c=="-" || c=="") { c=_uOrg(); if (z!="-" && _ufno==1) return ""; }
if (c=="-" || c=="") { if (_ufns==1) c=_uRef(); if (z!="-" && _ufno==1) return ""; }
if (c=="-" || c=="") {
if (z=="-" && _ufns==1) { c="utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"; }
if (c=="-" || c=="") return "";
}
if (z!="-") {
i=z.indexOf(".");
if (i>-1) i=z.indexOf(".",i+1);
if (i>-1) i=z.indexOf(".",i+1);
if (i>-1) i=z.indexOf(".",i+1);
t=z.substring(i+1,z.length);
if (t.toLowerCase()==c.toLowerCase()) cs=1;
t=z.substring(0,i);
if ((i=t.lastIndexOf(".")) > -1) {
t=t.substring(i+1,t.length);
cn=(t*1);
}
}
if (cs==0 || _ufns==1) {
t=_uGC(dc,"__utma="+_udh,";");
if ((i=t.lastIndexOf(".")) > 9) {
_uns=t.substring(i+1,t.length);
_uns=(_uns*1);
}
cn++;
if (_uns==0) _uns=1;
_ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+cn+"."+c+"; path="+_utcp+"; "+x+_udo;
}
if (cs==0 || _ufns==1) return "&utmcn=1";
else return "&utmcr=1";
}
function _uRef() {
if (_ur=="0" || _ur=="" || _ur=="-") return "";
var i=0,h,k,n;
if ((i=_ur.indexOf("://"))<0) return "";
h=_ur.substring(i+3,_ur.length);
if (h.indexOf("/") > -1) {
k=h.substring(h.indexOf("/"),h.length);
if (k.indexOf("?") > -1) k=k.substring(0,k.indexOf("?"));
h=h.substring(0,h.indexOf("/"));
}
h=h.toLowerCase();
n=h;
if ((i=n.indexOf(":")) > -1) n=n.substring(0,i);
for (var ii=0;ii<_uRno.length;ii++) {
if ((i=n.indexOf(_uRno[ii].toLowerCase())) > -1 && n.length==(i+_uRno[ii].length)) { _ufno=1; break; }
}
if (h.indexOf("www.")==0) h=h.substring(4,h.length);
return "utmccn=(referral)|utmcsr="+_uEC(h)+"|"+"utmcct="+_uEC(k)+"|utmcmd=referral";
}
function _uOrg(t) {
if (_ur=="0" || _ur=="" || _ur=="-") return "";
var i=0,h,k;
if ((i=_ur.indexOf("://")) < 0) return "";
h=_ur.substring(i+3,_ur.length);
if (h.indexOf("/") > -1) {
h=h.substring(0,h.indexOf("/"));
}
for (var ii=0;ii<_uOsr.length;ii++) {
if (h.toLowerCase().indexOf(_uOsr[ii].toLowerCase()) > -1) {
if ((i=_ur.indexOf("?"+_uOkw[ii]+"=")) > -1 || (i=_ur.indexOf("&"+_uOkw[ii]+"=")) > -1) {
k=_ur.substring(i+_uOkw[ii].length+2,_ur.length);
if ((i=k.indexOf("&")) > -1) k=k.substring(0,i);
for (var yy=0;yy<_uOno.length;yy++) {
if (_uOno[yy].toLowerCase()==k.toLowerCase()) { _ufno=1; break; }
}
if (t) return _uEC(k);
else return "utmccn=(organic)|utmcsr="+_uEC(_uOsr[ii])+"|"+"utmctr="+_uEC(k)+"|utmcmd=organic";
}
}
}
return "";
}
function _uBInfo() {
var sr="-",sc="-",ul="-",fl="-",je=1;
var n=navigator;
if (self.screen) {
sr=screen.width+"x"+screen.height;
sc=screen.colorDepth+"-bit";
} else if (self.java) {
var j=java.awt.Toolkit.getDefaultToolkit();
var s=j.getScreenSize();
sr=s.width+"x"+s.height;
}
if (n.language) { ul=n.language.toLowerCase(); }
else if (n.browserLanguage) { ul=n.browserLanguage.toLowerCase(); }
je=n.javaEnabled()?1:0;
if (_uflash) fl=_uFlash();
return "&utmsr="+sr+"&utmsc="+sc+"&utmul="+ul+"&utmje="+je+"&utmfl="+fl;
}
function __utmSetTrans() {
var e;
if (_ubd.getElementById) e=_ubd.getElementById("utmtrans");
else if (_ubd.utmform && _ubd.utmform.utmtrans) e=_ubd.utmform.utmtrans;
if (!e) return;
var l=e.value.split("UTM:");
var i,i2,c;
if (_userv==0 || _userv==2) i=new Array();
if (_userv==1 || _userv==2) { i2=new Array(); c=_uGCS(); }
for (var ii=0;ii=2;ii--) {
try {
var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
if (fl) { f=ii + '.0'; break; }
}
catch(e) {}
}
}
return f;
}
function __utmLinker(l,h) {
if (!_ulink) return;
var p,k,a="-",b="-",c="-",z="-",v="-";
var dc=_ubd.cookie;
if (!l || l=="") return;
var iq = l.indexOf("?");
var ih = l.indexOf("#");
if (dc) {
a=_uES(_uGC(dc,"__utma="+_udh,";"));
b=_uES(_uGC(dc,"__utmb="+_udh,";"));
c=_uES(_uGC(dc,"__utmc="+_udh,";"));
z=_uES(_uGC(dc,"__utmz="+_udh,";"));
v=_uES(_uGC(dc,"__utmv="+_udh,";"));
k=(_uHash(a+b+c+z+v)*1)+(_udh*1);
p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
}
if (p) {
if (h && ih>-1) return;
if (h) { _udl.href=l+"#"+p; }
else {
if (iq==-1 && ih==-1) _udl.href=l+"?"+p;
else if (ih==-1) _udl.href=l+"&"+p;
else if (iq==-1) _udl.href=l.substring(0,ih-1)+"?"+p+l.substring(ih);
else _udl.href=l.substring(0,ih-1)+"&"+p+l.substring(ih);
}
} else { _udl.href=l; }
}
function __utmLinkPost(f,h) {
if (!_ulink) return;
var p,k,a="-",b="-",c="-",z="-",v="-";
var dc=_ubd.cookie;
if (!f || !f.action) return;
var iq = f.action.indexOf("?");
var ih = f.action.indexOf("#");
if (dc) {
a=_uES(_uGC(dc,"__utma="+_udh,";"));
b=_uES(_uGC(dc,"__utmb="+_udh,";"));
c=_uES(_uGC(dc,"__utmc="+_udh,";"));
z=_uES(_uGC(dc,"__utmz="+_udh,";"));
v=_uES(_uGC(dc,"__utmv="+_udh,";"));
k=(_uHash(a+b+c+z+v)*1)+(_udh*1);
p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
}
if (p) {
if (h && ih>-1) return;
if (h) { f.action+="#"+p; }
else {
if (iq==-1 && ih==-1) f.action+="?"+p;
else if (ih==-1) f.action+="&"+p;
else if (iq==-1) f.action=f.action.substring(0,ih-1)+"?"+p+f.action.substring(ih);
else f.action=f.action.substring(0,ih-1)+"&"+p+f.action.substring(ih);
}
}
return;
}
function __utmSetVar(v) {
if (!v || v=="") return;
if (!_udo || _udo == "") {
_udh=_uDomain();
if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
}
if (!_uVG()) return;
var r=Math.round(Math.random() * 2147483647);
_ubd.cookie="__utmv="+_udh+"."+_uES(v)+"; path="+_utcp+"; expires=Sun, 18 Jan 2038 00:00:00 GMT;"+_udo;
var s="&utmt=var&utmn="+r;
if (_userv==0 || _userv==2) {
var i=new Image(1,1);
i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
i.onload=function() { _uVoid(); }
}
if (_userv==1 || _userv==2) {
var i2=new Image(1,1);
i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
i2.onload=function() { _uVoid(); }
}
}
function _uGCS() {
var t,c="",dc=_ubd.cookie;
if ((t=_uGC(dc,"__utma="+_udh,";"))!="-") c+=_uES("__utma="+t+";+");
if ((t=_uGC(dc,"__utmb="+_udh,";"))!="-") c+=_uES("__utmb="+t+";+");
if ((t=_uGC(dc,"__utmc="+_udh,";"))!="-") c+=_uES("__utmc="+t+";+");
if ((t=_uGC(dc,"__utmz="+_udh,";"))!="-") c+=_uES("__utmz="+t+";+");
if ((t=_uGC(dc,"__utmv="+_udh,";"))!="-") c+=_uES("__utmv="+t+";");
if (c.charAt(c.length-1)=="+") c=c.substring(0,c.length-1);
return c;
}
function _uGC(l,n,s) {
if (!l || l=="" || !n || n=="" || !s || s=="") return "-";
var i,i2,i3,c="-";
i=l.indexOf(n);
i3=n.indexOf("=")+1;
if (i > -1) {
i2=l.indexOf(s,i); if (i2 < 0) { i2=l.length; }
c=l.substring((i+i3),i2);
}
return c;
}
function _uDomain() {
if (!_udn || _udn=="" || _udn=="none") { _udn=""; return 1; }
if (_udn=="auto") {
var d=_ubd.domain;
if (d.substring(0,4)=="www.") {
d=d.substring(4,d.length);
}
_udn=d;
}
if (_uhash=="off") return 1;
return _uHash(_udn);
}
function _uHash(d) {
if (!d || d=="") return 1;
var h=0,g=0;
for (var i=d.length-1;i>=0;i--) {
var c=parseInt(d.charCodeAt(i));
h=((h << 6) & 0xfffffff) + c + (c << 14);
if ((g=h & 0xfe00000)!=0) h=(h ^ (g >> 21));
}
return h;
}
function _uFixA(c,s,t) {
if (!c || c=="" || !s || s=="" || !t || t=="") return "-";
var a=_uGC(c,"__utma="+_udh,s);
var lt=0,i=0;
if ((i=a.lastIndexOf(".")) > 9) {
_uns=a.substring(i+1,a.length);
_uns=(_uns*1)+1;
a=a.substring(0,i);
if ((i=a.lastIndexOf(".")) > 7) {
lt=a.substring(i+1,a.length);
a=a.substring(0,i);
}
if ((i=a.lastIndexOf(".")) > 5) {
a=a.substring(0,i);
}
a+="."+lt+"."+t+"."+_uns;
}
return a;
}
function _uTrim(s) {
if (!s || s=="") return "";
while ((s.charAt(0)==' ') || (s.charAt(0)=='\n') || (s.charAt(0,1)=='\r')) s=s.substring(1,s.length);
while ((s.charAt(s.length-1)==' ') || (s.charAt(s.length-1)=='\n') || (s.charAt(s.length-1)=='\r')) s=s.substring(0,s.length-1);
return s;
}
function _uEC(s) {
var n="";
if (!s || s=="") return "";
for (var i=0;i0) r=a.substring(i+1,i2); else return "";
if ((i=a.indexOf(".",i2+1))>0) t=a.substring(i2+1,i); else return "";
var c=new Array('A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9');
return c[r>>28&m]+c[r>>23&m]+c[r>>18&m]+c[r>>13&m]+"-"+c[r>>8&m]+c[r>>3&m]+c[((r&7)<<2)+(t>>30&3)]+c[t>>25&m]+c[t>>20&m]+"-"+c[t>>15&m]+c[t>>10&m]+c[t>>5&m]+c[t&m];
}
function _uIN(n) {
if (!n) return false;
for (var i=0;i"9") && (c!=".")) return false;
}
return true;
}
function _uES(s,u) {
if (typeof(encodeURIComponent) == 'function') {
if (u) return encodeURI(s);
else return encodeURIComponent(s);
} else {
return escape(s);
}
}
function _uUES(s) {
if (typeof(decodeURIComponent) == 'function') {
return decodeURIComponent(s);
} else {
return unescape(s);
}
}
function _uVG() {
if((_udn.indexOf("www.google.") == 0 || _udn.indexOf(".google.") == 0 || _udn.indexOf("google.") == 0) && _utcp=='/') {
return false;
}
return true;
}
_uacct = "UA-302852-9";
urchinTracker();