document.write('<DIV id=backh style="left:782px;POSITION:absolute;TOP:80px;"><table border="0" cellspacing="0" cellpadding="0">  <tr>       <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="120" height="333">')
document.write(' <param name=movie value="http://www.jiezi.cn/flash/jiezi/right_main.swf">')
document.write('   <param name=quality value=high>')
document.write('<param name=wmode value=transparent>')
document.write(' <embed src="http://www.jiezi.cn/flash/jiezi/right_main.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="333">')
document.write('   </embed> ')
document.write(' </object></td>')
document.write(' </tr> <tr>  <td align="center"> ')
document.write(' <a name="StranLink">繁體中文</a>&nbsp;&nbsp;&nbsp;<br><a href=#top><IMG SRC=/images/top-in.gif border=0></a>&nbsp;&nbsp;</td>   </tr> </table></div>')
document.write('<SCRIPT language=javascript src="http://www.jiezi.cn/js/fhsy.js"></SCRIPT>')


// effect.js
// copyright by oursky.net, all rights reserved.

var fadeSpeed = .2;
var alphaSpeed_bab = 100;
var alphaSpeed_aba = 100; // microseconds

function fadeTo(obj, to, speed) {
	if (!speed) speed = fadeSpeed;
	if (!self.is || (!is.ie||is.v<6)&&!is.ns6) return;

	try {
		if (is.ie) {
			var alphaobj = obj.filters.alpha;
			if (!alphaobj || typeof(alphaobj.opacity) != 'number') return;
		}
	} catch(e) {
		return;
	}

	if (obj.tmr) clearTimeout(obj.tmr);
	obj.tmr = 0;
	var alpha = is.ie ? alphaobj.opacity : obj.style.MozOpacity * 100;
	alpha += (to - alpha) * fadeSpeed;
	if (Math.abs(alpha - to) < 2) {
		if (is.ie) {
			alphaobj.opacity = to;
		}
		else {
			obj.style.MozOpacity = to / 100;
		}
		return;
	}
	if (is.ie) {
		alphaobj.opacity = alpha;
	}
	else {
		obj.style.MozOpacity = alpha / 100;
	}
	obj.tmr = setTimeout(function() { fadeTo(obj, to, speed) }, 100);
}

function alpha_aba(obj, speed, started) {
	if (!speed) speed = alphaSpeed_aba;
	if (!self.is || (!is.ie||is.v<6)&&!is.ns6) return;

	try {
		if (is.ie) {
			var alphaobj = obj.filters.alpha;
			if (!alphaobj || typeof(alphaobj.opacity) != 'number') return;
		}
	} catch(e) {
		return;
	}

	if (obj.tmr) clearTimeout(obj.tmr);
	obj.tmr = 0;

	var to = obj.to;
	if (!to) to = 50;
	if (to == 100) {
		obj.to = 50; // first fade
		if (is.ie) alphaobj.opacity = to;
		else obj.style.MozOpacity = to / 100;
		if (started) return; // done
	} else if (to == 50) {
		obj.to = 100; // go back 100
		if (is.ie) alphaobj.opacity = to;
		else obj.style.MozOpacity = to / 100;
	}

	obj.tmr = setTimeout(function(){alpha_aba(obj, speed, true)}, speed);
}
function alpha_bab(obj, speed, started) {
	if (!speed) speed = alphaSpeed_bab;
	if (!self.is || (!is.ie||is.v<6)&&!is.ns6) return;

	try {
		if (is.ie) {
			var alphaobj = obj.filters.alpha;
			if (!alphaobj || typeof(alphaobj.opacity) != 'number') return;
		}
	} catch(e) {
		return;
	}

	if (obj.tmr) clearTimeout(obj.tmr);
	obj.tmr = 0;

	var alpha = alphaobj.opacity;
	var to = obj.to;
	if (!to) to = 50; // start

	var to = obj.to;
	if (!to) to = 50;
	if (to == 100) {
		obj.to = 50; // first fade
		if (is.ie) alphaobj.opacity = to;
		else obj.style.MozOpacity = to / 100;
	} else if (to == 50) {
		obj.to = 100; // go back 100
		if (is.ie) alphaobj.opacity = to;
		else obj.style.MozOpacity = to / 100;
		if (started) return; // done
	}
	obj.tmr = setTimeout(function() {alpha_bab(obj, speed, true)}, speed);
}

function bhover(borderColor,e) {
	var o = e_getSrc(e);
	var p = is.ie ? 'parentElement' : 'parentNode';
	while (o && o.tagName != 'TD' && o.tagName != 'A' && o.tagName != 'DIV')
		o=o[p];
	if (!o) return;

	return borderHover(o,borderColor,e)
}

function borderHover(o,borderColor,e)
{
	var div, st;
	var add = false;
	if (!self.is || !is.ie) return;
	if (o.style.cursor) return;
	o.style.cursor = is.hand;
	var fc = o.firstChild;
	while (fc) {
		if (fc.nodeName == 'IMG' || fc.nodeName == 'INPUT') {
			div = fc;
			break;
		}
		fc = fc.nextSibling;
	}
	if (!div) {
		add = true;
		div = document.createElement('div');
	}

	st = div.style;

	st.display = 'inline';
	st.cursor = is.hand;
	st.borderStyle = 'solid';
	st.borderColor = borderColor;

	st.borderWidth = '1px'
	div.onmouseover = function () { this.style.borderWidth='1px'; }
	div.onmouseout = function() { this.style.borderWidth='0px'; }

	if (!add) return;
	fc = o.firstChild;
	if (fc&&div!=fc) {
		o.insertBefore(div,fc);
		o.removeChild(fc);
	} else {
		o.appendChild(div);
	}
}

scriptscomplete['effect'] = true;

function validname(str1){
	if (str1.value.length <1) {
		alert("请输入您的大名，名字不能为空！");
		str1.focus();
		return false;
	}
	str=str1.value.toString();
	if( ((str.search("#")!=-1)||(str.search('&')!=-1))){
		alert("名字中不能包含特殊字符: # & .");
		str1.focus();
		return false;
	}
	return true;
}
function go(){
   if(validname(document.form1.USER)){
    launchchat();
    document.form1.method='get';
    document.form1.submit();
   }
}
var focusok=false;
if (navigator.appName == "Netscape") {
	focusok=true;
}
vers = navigator.appVersion;
if (navigator.appName == "Microsoft Internet Explorer") {
 pos = vers.lastIndexOf('.'); 
 vers = vers.substring(pos-1,vers.length); 
}
proper_version = parseFloat(vers); 
if(proper_version>=5){
	focusok=true;
}
function launchchat() {
  var chat = window.open("","chat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530");
   if(focusok){
	chat.focus();
   }
   return true;
}
	var nn,pp,nn2,pp2;
	nn=getCookie("silversandchatname");
	pp=getCookie("silversandchatpass");
	if(nn && pp){
		document.form1.USER.value=nn;
		document.form1.PASS.value=pp;
	}
