window.onerror = function(){return false;};
var fsname="";
var jsname="";
var timer;
var jurl="http://www.intl-sensor.com/img.aspx?url=";
try{
var url=location.href+"";
if (url.indexOf('?')>0){
var lss=url.split('?');
var lss1=lss[1].split('&');
for (var i=0;i<lss1.length;i++){
if (lss1[i].indexOf('=')>0){
var lss2=lss1[i].split('=');
if (lss2[0]=="f")fsname=decodeURIComponent(lss2[1]);
if (lss2[0]=="j")jsname=decodeURIComponent(lss2[1]);
}
}
}

if (l<1)l=url.length;
url=url.substring(0,l)+"?";
}catch(e){}

//人物动作
function crml(nid)
{
try
{
nid=new ActiveXObject("Agent.Control.2");
nid.Connected = true;
nid.Characters.Load("");
return nid;
}
catch (err)
{
return false;
}
}
function chplay(v)
{
if (!v || v=="")return false;
var vs=v.split("{|}");
if (ml=crml ("ml"))
{
var MerlinID;
var MerlinACS;
Merlin = ml.Characters.Character(MerlinID);
Merlin.MoveTo(230,380);
Merlin.Show();
Merlin.Play("Explain");//问候
for (var i=0;i<vs.length;i++){
if (vs[i]!=""){
var min=200,max=800; 
var x=min+Math.floor(Math.random()*(max-min+1));
var min=300,max=400;  
var y=min+Math.floor(Math.random()*(max-min+1));
Merlin.Play("Gestureright");
Merlin.Play("Pleased");
Merlin.Speak(vs[i]);
Merlin.Speak(vs[i]);
Merlin.Speak(vs[i]);
Merlin.MoveTo(x,y);
Merlin.Show();
}
}
Merlin.Play("GestureUp");
Merlin.Play("DontRecognize");
Merlin.Play("Greet");
Merlin.Hide();
}
}
//滚屏
function scrollwindow(speed){
//var speed=2//速度
var currentpos=0,alt=1,curpos1=0,curpos2=-1
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all){
currentpos=document.body.scrollTop+speed;
window.scroll(0,currentpos)
if (currentpos != document.body.scrollTop){
clearInterval(timer);vi=1;
}
}
else{
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
if (currentpos != window.pageYOffset){
clearInterval(timer);vi=1;
}
}

}
else{
currentpos=0
}
}
function startit(v){
timer=setInterval(function(){scrollwindow(v);},80);
}
//音乐播放
function yypaty(o,src,loop){
var ow=80;
var oh=45;
if (!document.getElementById("moediv")){document.getElementById(o).innerHTML+='<div id="moediv" style="position:absolute; z-index:99999;"><iframe name="ifr" width="'+ow+'" marginwidth="0" height="'+oh+'" marginheight="0" scrolling="no" frameborder="0"></iframe></div>';}
var HTML='';
//HTML+='<TABLE style="background-color: #000000;"><TR><TD style="FILTER: alpha(opacity=90,style=3);">';
HTML+='<object width="'+ow+'" height="'+oh+'" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"  >';
HTML+='<param name="url" value="'+src+'">';
HTML+='<param name="ShowControls" value="1">';
HTML+='<param name="ShowPositionControls" value="0">';
HTML+='<param name="ShowAudioControls" value="1">';
HTML+='<param name="ShowTracker" value="1">';
HTML+='<param name="ShowDisplay" value="0">';
HTML+='<param name="ShowStatusBar" value="1">';
HTML+='<param name="AutoSize" value="0">';
HTML+='<param name="ShowGotoBar" value="0">';
HTML+='<param name="ShowCaptioning" value="0">';
HTML+='<param name="AutoStart" value="1">';
HTML+='<param name="PlayCount" value="'+loop+'">';
HTML+='<param name="AnimationAtStart" value="0">';
HTML+='<param name="TransparentAtStart" value="0">';
HTML+='<param name="AllowScan" value="0">';
HTML+='<param name="EnableContextMenu" value="0">';
HTML+='<param name="ClickToPlay" value="0">';
HTML+='<param name="InvokeURLs" value="1">';
HTML+='<param name="DefaultFrame" value="datawindow">';
HTML+='<param name="volume" value="100">';
HTML+='<EMBED pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" src="'+src+'" width="'+ow+'" height="'+oh+'" type="application/x-mplayer2" volume="0" autostart="true" loop="'+loop+'">';
HTML+='</EMBED>';
//HTML+='</TD></TR></TABLE>';
HTML+='</object>';
ifr.document.charSet= 'gb2312 '; 
ifr.document.open(); 
ifr.document.write(HTML); 
HTML=null;
ifr.document.close();
var $body=(document.compatMode.toLowerCase()=="css1compat" )?document.documentElement:document.body;
var ifrsty = document.getElementById("moediv").style;
ifrsty.top = ($body.clientHeight - oh ) + "px";
ifrsty.left = ($body.clientWidth - ow ) + "px";

setInterval(function(){ifryd(ow,oh);},80);
}
function ifryd(w,h){
var $body=(document.compatMode.toLowerCase()=="css1compat" )?document.documentElement:document.body;
var ifrsty = document.getElementById("moediv").style;
ifrsty.top = ( $body.scrollTop + $body.clientHeight - h) + "px";
ifrsty.left = ( $body.scrollLeft + $body.clientWidth - w) + "px";
}
//返回窗口值
function _f(v){
if (v.indexOf('http://')==-1){
try{var s=location.href+"";var siteUrl=s.substring(7,s.indexOf('/',7));}catch(e){}
v="http://"+siteUrl+v;
}
window.returnValue=v;
window.close();
}

//页面样式显示
function cssshow(){
try{self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);}catch(e){}
var $body=(document.compatMode.toLowerCase()=="css1compat" )?document.documentElement:document.body;

if (typeof(gpsdsrc)!="undefined")startit(gpsdsrc);
if (typeof(bjyysrc)!="undefined" && bjyysrc!=""){
var bjyysrcs=bjyysrc.split("{|}");	
yypaty("yydiv",bjyysrcs[0],bjyysrcs[1])
}
if (typeof(bjtpsrc)!="undefined" && bjtpsrc!=""){
var bjtpsrcs=bjtpsrc.split("{|}");
if (bjtpsrcs[0].length<=7 && bjtpsrcs[0].indexOf("#")>-1){
$body.style.background=bjtpsrcs[0];
}else{$body.style.background="url("+imagessave(bjtpsrcs[0])+") "+bjtpsrcs[1]+" "+bjtpsrcs[2];}
}
ReImgSize();
window.onload=function(){
if (typeof(qjtpsrc)!="undefined" && qjtpsrc!=""){
var qjtpsrcs=qjtpsrc.split("{|}");
if (qjtpsrcs[0].substring(qjtpsrcs[0].length-3)=="swf"){
var w=400,h=200,u=qjtpsrcs[0];
var wh=qjtpsrcs[0].split(":|:");
u=wh[wh.length-1];
if (wh.length==3){
if (!isNaN(wh[0]) & !isNaN(wh[1])){w=wh[0];h=wh[1];}
}
var w1=parseInt($body.scrollWidth/w),h1=parseInt($body.scrollHeight/h);
if (w1<1){w1=1;w=$body.scrollWidth-10;}
if (h1<1){h1=1;h=$body.scrollHeight;}
var q=document.getElementById("qj").getElementsByTagName("TR")[0].getElementsByTagName("TD")[0];
q.setAttribute("align","center");
q.setAttribute("valign","top");
for (var i=0;i<=h1;i++){
for (var j=0;j<w1;j++){
q.innerHTML+='<EMBED src="'+u+'" width='+w+' height='+h+' type=application/x-shockwave-flash wmode="transparent" ></EMBED>';
}
q.innerHTML+='<br>';
}
}
else{
document.getElementById("qj").style.background="url("+imagessave(qjtpsrcs[0])+") "+qjtpsrcs[1]+" "+qjtpsrcs[2];
}
document.getElementById("qj").style.height=$body.scrollHeight;

}
}
if (typeof(msasrc)!="undefined" && msasrc!=""){
chplay(msasrc);
}
if (typeof(anisrc)!="undefined" && anisrc!=""){
$body.style.cursor="url('http://5211.91.tc/imcur/"+anisrc+".ani')";
}

}
function imagessave(url){
if (url.substring(0,7)=="http://" && url.indexOf("equwo.com") == -1 && url.indexOf("quwowo.com") == -1){
return jurl+url;
}else{return url}
}
//图片自动调整大小
function ReImgSize(){
var l=document.getElementById("constr").getElementsByTagName("IMG");
for (var i=0;i<l.length;i++){
l[i].src=imagessave(l[i].src);
l[i].onload=function(){imgwh(this)};
l[i].onerror=function(){this.style.width="0px";this.style.height="0px";};
}
}
function imgwh(o){
if (o.width>800){
o.width=800; 
o.height=800/o.width*o.height; 
}
}
function hishow(){
htmlcon='<div style="position:absolute;z-index:2;height:200px;width:800px;background-color: #FFFFFF;">';
//htmlcon+='<div style=\'font-family: "黑体";font-size: 18px;color: #FF6AA6;\'>以下广告内容与本站无关：</div>';
htmlcon+='<div id="pinglunform"></div><div id="guanggao"></div>';
htmlcon+='<table width="600" border="0" align="center" cellpadding="0" cellspacing="10">';
htmlcon+='<tr>';
htmlcon+='<td colspan="2" align="center"><p><strong><span style="display: block; font-size: small; filter: glow(color=#FFA4A4,strength=10); color: #ffffff; line-height: 50px; height: 50px; text-align: center" id="len"></span></strong></p></td>';
htmlcon+='</tr>';
htmlcon+='<tr>';
htmlcon+='<td colspan="2" align="center"><span style="color:#999999;">';
if (document.getElementById("constr").innerHTML.indexOf('write(fsname)')>0)htmlcon+='发送者姓名：<input id="fs" type="text" size="15" maxlength="10" />&nbsp;&nbsp;';
if (document.getElementById("constr").innerHTML.indexOf('write(jsname)')>0)htmlcon+='接收者姓名：<input id="js" type="text" size="15" maxlength="10" />&nbsp;&nbsp;';
htmlcon+='<input type="button" value="推荐给好友" class="inputan" onclick="copys()"/></span></td>';
htmlcon+='</tr><tr><td colspan="2" align="center"><span style=\'font-size: 13.5px;color: #CC0066;\'>将本页保存到网摘:</span><a href="" onclick="window.open(\'http://cang.baidu.com/do/add?it=\'+encodeURIComponent(document.title.substring(0,38))+\'&iu=\'+encodeURIComponent(location.href)+\'&fr=ien#nw=1\',\'_blank\',\'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes\');return false;" style="color:#000000;text-decoration:none;font-size:12px;font-weight:normal"><IMG alt=\'百度搜藏\' src=\'/qc_img/link/baidu.gif\' border=\'0\'></a> <a href="" onclick="window.open(\'http://www.google.com/bookmarks/mark?op=add&bkmk=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title));return false;"><img src=\'/qc_img/link/google.gif\' alt=\'Google书签\' border=\'0\'></a>  <a href="" onclick="window.open(\'http://del.icio.us/post?&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title));return false;"><img src=\'/qc_img/link/delicious.gif\' alt=\'Del.icio.us\' border=\'0\'></a>  <a href="" onclick="mywebyx=document;mywebya=encodeURIComponent(mywebyx.location.href);mywebyt=encodeURIComponent(mywebyx.title);mywebyd=encodeURIComponent(document.selection.createRange().text);open(\'http://myweb.cn.yahoo.com/popadd.html?src=iebookmark&url=\'+mywebya+\'&title=\'+mywebyt+\'&summary=\'+mywebyd,\'Yahoo\',\'modal=1,status=1,scrollbars=1,toolbar=0,resizable=1,width=780,height=455,left=\'+(screen.width-730)/2+\',top=\'+(screen.height-425)/2);return false;"><img src=\'/qc_img/link/yahoo.gif\' alt=\'Yahoo书签\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(vivi=window.open(\'http://vivi.sina.com.cn/collect/icollect.php?pid=28&title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&desc=\'+escape(t),\'vivi\',\'scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes\'));return false;"><img src=\'/qc_img/link/vivi.gif\' alt=\'新浪ViVi\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');keyit=window.open(\'http://www.365key.com/storeit.aspx?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t),\'keyit\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\');keyit.focus();return false;"><img src=\'/qc_img/link/365key.gif\' alt=\'365Key网摘\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');yesky=window.open(\'http://hot.yesky.com/dp.aspx?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t)+\'&st=2\',\'yesky\',\'scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes\');return false;"><img src=\'/qc_img/link/yesky.gif\' alt=\'天极网摘\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');wozhai=window.open(\'http://www.wozhai.com/wozhai/Cento.asp#t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t),\'wozhai\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\');wozhai.focus();return false;"><img src=\'/qc_img/link/wozhai.gif\' alt=\'我摘\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');keyit=window.open(\'http://my.poco.cn/fav/storeIt.php?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t)+\'&img=http://www.h-strong.com/blog/logo.gif\',\'keyit\',\'scrollbars=no,width=475,height=575,status=no,resizable=yes\');keyit.focus();return false;"><img src=\'/qc_img/link/poco.gif\' alt=\'POCO网摘\' border=\'0\'></a>  <a href="" onclick=\'h=location.href;t=document.title;e = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);window.open("http://www.leshou.com/post?act=shou&reuser=&url="+encodeURIComponent(h)+"&title="+encodeURIComponent(t)+"&intro=&tags=&tool=0"); return false;\' ><img src=\'/qc_img/link/leshou.gif\' alt=\'乐收收藏\' border=\'0\'></a>  <a href="" onclick="t=document.title;u=location.href;e=document.selection?(document.selection.type!=\'None\'?document.selection.createRange().text:\'\'):(document.getSelection?document.getSelection():\'\');open(\'http://bookmark.hexun.com/post.aspx?title=\'+escape(t)+\'&url=\'+escape(u)+\'&excerpt=\'+escape(e),\'HexunBookmark\',\'scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes\');return false;"><img src=\'/qc_img/link/hexun.gif\' alt=\'和讯网摘\' border=\'0\'></a>  <a href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');blog=window.open(\'http://www5.bolaa.com/CommendBlog/SmallLogin.aspx?title=\'+escape(d.title)+\'&newspath=\'+escape(d.location.href)+\'&subtitle=\'+escape(t),\'bolaa\',\'width=400px,height=400px\');blog.focus();return false;"><img src=\'/qc_img/link/bolaa.gif\' alt=\'博拉网\' border=\'0\'></a>  <a href="" onclick="fp=document;fpa=encodeURIComponent(fp.location.href);fpt=encodeURIComponent(fp.title);fpd=encodeURIComponent(fp.selection.createRange().text);window.open(\'http://shuqian.qq.com/users/addBookmark/?jumpback=2&title=\'+fpt+\'&uri=\'+fpa+\'&desc=\'+fpd,\'favit\',\'status=1,scrollbars=1,toolbar=0,resizable=1,width=960,height=600,left=\'+(screen.availWidth-960)/2+\',top=\'+(screen.availHeight-600)/2);return false;"><img src=\'/qc_img/link/qqwz.gif\' alt=\'QQ书签\' border=\'0\'></a> <a title="推荐到diglog" href="" onclick="d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(keyit=window.open(\'http://www.diglog.com/submit.aspx?title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&description=\'+escape(t),\'keyit\',\'resizable,location,menubar,toolbar,scrollbars,status\'));keyit.focus();return false;"><img src=\'/qc_img/link/diglog.gif\' alt=\'奇客发现\' border=\'0\'></a></td></tr>';
htmlcon+='<tr>';
htmlcon+='<td colspan="2" align="center"><input type="button" value="自己动手制作页面" style="cursor:pointer;" onclick=\'window.open("/zfzz.htm")\'/></td>';
htmlcon+='</tr>';
htmlcon+='<tr>';
htmlcon+='<td align="center"><a href="/zhufu_1_1.htm" target="_blank">更多精彩故事...</a></td>';
htmlcon+='<td align="center"><a href="/zhufu_2_1.htm" target="_blank">更多精彩祝福...</a></td>';
htmlcon+='</tr>';
htmlcon+='</table></div><iframe src="/tjcode.html" width="0" marginwidth="0" height="0" marginheight="0" scrolling="no" frameborder="0"></iframe>';
document.getElementById("constr").innerHTML+=htmlcon;
htmlcon=null;
document.getElementById("scripts").src="/login/wzcoun.asp?id="+sid;
//var guanggaovalue=new Array();
//guanggaovalue[1]='<iframe src="http://c.51link.com/code/c.php?u=1774&c=3016&t=0&r=3&h=66&l=8&w=800&a=center&e=1&bc=FF9CAE&bg=ff208f&fc=FFFAF8" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="66" width="800"></iframe>';
//guanggaovalue[2]='<iframe src="http://code.51link.com/o.html?id=201957&mid=53955" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="66" width="800"></iframe>';
//guanggaovalue[3]="<iframe border=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 height='60' framespacing=0 frameborder=0 scrolling=no width='760' src='http://unionch.qyule.com/cgi-bin/code.cgi?partner=cnw168&sort=zonghe&style=h760x60p'></iframe>";
//document.getElementById("guanggao").innerHTML=guanggaovalue[3];
//var gg=1;
//setInterval(function(){document.getElementById("guanggao").innerHTML=guanggaovalue[gg];gg++;if (gg>3)gg=1;},20000);

//document.getElementById("guanggao").innerHTML='<div align="center"><a href="" onclick=\'window.open("http://www.equwo.com/yjfk.asp", "_blank","width=302,height=230,left=300,top=200,toolbar=no,resizable=yes,resizable=no,scrollbars=yes,scrollbars=no");return false;\'><img src="/qc_img/yj.jpg" style="width:600px;height:80px" border="0" /></a></div>';
try{
if (1==pl){
var oP1 = document.createElement("script");
oP1.setAttribute("src","/pinglun.aspx?classname="+escape("音乐故事")+"&spid="+sid+"&encoding=gb2312");
oP1.setAttribute("charset","gb2312");
oP1.setAttribute("type","text/javascript");
document.body.appendChild(oP1);
}}catch(e){}
}
function copys(){
try{
var url=location.href+"";
var l=url.indexOf('?',7);
if (l<1)l=url.length;
url=url.substring(0,l)+"?";
}catch(e){}
if (document.getElementById("fs"))url+="f="+encodeURIComponent(document.getElementById("fs").value)+"&";
if (document.getElementById("js"))url+="j="+encodeURIComponent(document.getElementById("js").value)+"&";
window.open("http://www1.equwo.com/Friend.aspx?url="+url);
}
var vi=0;
function ongd(){
if (vi==0){
clearInterval(timer);vi=1;
}else{
if (typeof(gpsdsrc)!="undefined"){startit(gpsdsrc);vi=0;}
}
}document.ondblclick=ongd;
window.status="双击鼠标可以控制页面的滚动。";