//返回对象
function $(id) {
  if(document.getElementById) { return document.getElementById(id); }
  else if(document.all) { return document.all[id]; }
  else if(document.layers) { return document.layers[id]; }
  else { return false; }
}
function $$(id)
{
	return $(id).style;
}
function PR(text)
{
	document.write(text);
}



function Ajax() {
  var obj;
  try { obj = new XMLHttpRequest(); }
  catch(e) {
    var AjList = ["MSXML2.XMLHTTP","MSXML.XMLHTTP","Microsoft.XMLHTTP"];
    for(var i=0;i < AjList.length;i++) {
      try {
        obj = new ActiveXObject(AjList[i]);
        break;
      } catch(e) { }
    }
  }
  return obj;
}

//登陆
function openme(){
$$('loginbg').display='block';
$$('loginshow').display='block';
}
function closeme(){
$$('loginbg').display='none';
$$('loginshow').display='none';
}

//得到最后一次阅读的cookies
function getLastRead(CookiesName)
{ 
    var cookieString = new String(document.cookie);
    var cookieHeader = CookiesName + "=";
    var beginPosition = cookieString.indexOf(cookieHeader);
    var myvalue = "";
    if (beginPosition != -1)
    {
        myvalue = cookieString.substring(beginPosition  + cookieHeader.length);
        var SemiPos = myvalue.indexOf('\;');
		if (SemiPos>0)
	        myvalue = myvalue.substring(0,SemiPos);
    }//if
    return myvalue;
}

function ShowLastRead()
{
	var s = getLastRead("UserLastBook");
	if ((s==null) | (s==""))	//没有纪录
	{
		$$("divLastHas").display='none';
		$$("divLastNone").display='block';
	}else
	{
		var ss = s.split("|")
		$$("divLastHas").display='block';
		$$("divLastNone").display='none';
		var LastAid = ss[0];
		var LastName =  ss[1];
		$("divLastHas").innerHTML="您最近正在阅读<span class='red'>《<a href='http://novel.hongxiu.com/a/" + LastAid + "/' target='_blank'>" + unescape(LastName) + "</a>》</span> <em><a href='http://sns.hongxiu.com/PersonManager/Read/Store/lastsee.aspx' target='_blank'>我看过的书</a> ┆ <a href='http://www.hongxiu.com/zt/fm/fm1.html' target='_blank'>封面推荐</a> ┆ <a href='http://novel.hongxiu.com/shuku/' target='_blank'>书库</a></em>";
	}
}


function logo_in(){
var username=$('myname').value;
var userpass=$('mypass').value;

  var xmlhttp = Ajax();
  var AjaxURL = '/mylogin/dologin.asp?username='+escape(username)+'&userpass='+escape(userpass);
  xmlhttp.onreadystatechange = function() {
    if(xmlhttp.readyState == 4) { 
      var getText = parseInt(xmlhttp.responseText);
      if(getText == 1) 
	  {
		  dologin();
		  closeme();
		  $('myname').value="";
		  $('mypass').value="";
	  }
	  else if(getText == 2)
	  {
		  alert("用户名或密码错误!");
	  }
	  else if(getText == 3)
	  {
		  alert("你的帐号已经被冻结！");
	  }
	  else if(getText == 0)
	  {
		  alert("用户名密码不能够为空！")
	  }
	  else
	  {
		  alert("用户名或密码错误！")
	  }
    }
  }
  xmlhttp.open("GET",AjaxURL,true);
  xmlhttp.setRequestHeader("Content-type", "text/html;charset=gb2312");
  xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  xmlhttp.send(null);
}



//选肤cookie
function getCookie(name) 
{
	var my_cookie = document.cookie;
	var start = my_cookie.indexOf(name + "=");
	if (start == -1) return '';
	
	start += name.length + 1; //1 stands of '='
	
	var end = my_cookie.indexOf(";" ,start);
	if (end == -1) end = my_cookie.length;
	return my_cookie.substr(start, end - start);
}

<!-- 登录显示 start -->
//根据cookies判断是否登录
function checkIsLoginByCookie()
{
	if (document.cookie.length>0){
        var k_start = document.cookie.indexOf("21rednet=");
        if(k_start == -1)
            return false;
        k_start = k_start + 9; 
        var k_end = document.cookie.indexOf(";",k_start);
        if(k_end == -1) k_end = document.cookie.length;
        var cookiesWithKey = unescape(document.cookie.substring(k_start,k_end));
        var cookies = cookiesWithKey.split("&");
        for(var i=0;i<cookies.length;i++){
            if(cookies[i].split("=")[0] == "UserName")
            {
                if(cookies[i].split("=")[1] == "")
					return false;
				else
					return true;
            }//if
        }//for
		return false;
    }//if
	return false;
}

//根据登录情况显示用户信息
function dologin() 
{
	if(checkIsLoginByCookie() == true)
	{
		var xmlhttp = Ajax();
		var AjaxURL = '/mylogin/login.asp';
		xmlhttp.onreadystatechange = function() {
			if(xmlhttp.readyState == 4) { 
				var getText = xmlhttp.responseText;
				xmlhttp = '';
				$('mylogin').innerHTML = getText;
			} //if
		}//fun
		xmlhttp.open("GET",AjaxURL,true);
		xmlhttp.setRequestHeader("Content-type", "text/html;charset=gb2312");
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		xmlhttp.send(null);
	}
	else
	{
		$('mylogin').innerHTML = "<a href='javascript:void(0);' onclick=\"openme();\" target='_parent'>登录</a>| <a href='http://sns.hongxiu.com/Reg.aspx' target='_blank'><font color='#000'>注册</font></a>";
	}
}
<!-- 登录显示 end -->

<!-- 退出显示 start -->
function loginout() {
  var xmlhttp = Ajax();
  var AjaxURL = '/mylogin/loginout.asp';
  xmlhttp.onreadystatechange = function() {
    if(xmlhttp.readyState == 4) { 
		dologin();
    }
  }
  xmlhttp.open("GET",AjaxURL,true);
  xmlhttp.setRequestHeader("Content-type", "text/html;charset=gb2312");
  xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  xmlhttp.send(null);
}
<!-- 退出显示 end -->



//加入收藏函数
 function bookmarkit()
{
   if (document.all)
   {
      window.external.addFavorite('http://www.hongxiu.com','红袖添香');
   }
   else if (window.sidebar)
   {
      window.sidebar.addPanel('红袖添香', 'http://www.hongxiu.com',  "");
   }
}
//加入收藏函数结束

//设为首页函数
function setHomepage(pageURL)   
{   
 if (document.all)   
    {   
        document.body.style.behavior='url(#default#homepage)';   
  document.body.setHomePage(pageURL);   
    
    }   
    else if (window.sidebar)   
    {   
    if(window.netscape)   
    {   
         try  
   {     
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");     
         }     
         catch (e)     
         {     
    alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );     
         }   
    }    
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);   
    prefs.setCharPref('browser.startup.homepage',pageURL);   
 }   
}  
//设为首页函数结束

//搜索相关函数
function soByCls(){
	var f = document.sform;
	var cf = document.cform;
	f.query.value = document.sform1.query.value;
	f.style.value = cf.style.value;
	f.ending.value = cf.ending.value;
	f.period.value = cf.period.value;
	f.plot.value = cf.plot.value;
	f.hero.value = cf.hero.value;
	f.heroine.value = cf.heroine.value;
	f.submit();
}
//搜索相关函数结束
//显示搜索
function printSearch()
{
PR("<table cellpadding='0'><tr>");
PR("<form action='http://s.hongxiu.com/cgi-bin/l' method='get' name='sform1' target='_blank'>");
PR("<td align='center' valign='middle'><img src='http://pic.hongxiu.com/index/images_2008/ico_search.gif' /></td>");
PR("<td  valign='top' ><input name='query'  value='' type='text' onfocus='this.select()'  maxlength='20' class='ssrk'/></td>");
PR("<td align='right' valign='top'>");
PR("<SELECT size=1 name='ls' onChange='javascript:sform1.action='http://s.hongxiu.com/cgi-bin/'+this.value;'> ");
PR("<OPTION selected value='l'>长篇</OPTION> ");
PR("<OPTION value='s'>短篇</OPTION> ");
PR("</SELECT>&nbsp;<select name='iftitle' size='1'>");
PR("<option value=''>全文</option>");
PR("<option value='1' selected='selected'>标题</option>");
PR("<option value='2'>作者</option>");
PR("</select></td>");
PR("<td align='center' valign='top'>&nbsp;<input src='http://pic.hongxiu.com/index/images_2008/b_s.gif' type='image' name='Submit' width='52' height='21' id='Image12' alt='红袖搜索' /></td>");
PR("</form>");
PR("");
PR("<form name='cform' id='cform' >");
PR("<td align='right' valign='top'>&nbsp;<select name='style' >");
PR("<option value=''>风格</option>");
PR("<option value='A'>悲情</option>");
PR("<option value='B'>正剧</option>");
PR("<option value='C'>搞笑</option>");
PR("<option value='D'>甜美</option>");
PR("<option value='E'>轻松</option>");
PR("</select>&nbsp;<select name='ending' >");
PR("<option value=''>结局</option>");
PR("<option value='A'>喜</option>");
PR("<option value='B'>悲</option>");
PR("<option value='C'>开放式</option>");
PR("</select>&nbsp;<select name='period' >");
PR("<option value=''>时代</option>");
PR("<option value='A'>现代生活</option>");
PR("<option value='B'>民国</option>");
PR("<option value='C'>清朝</option>");
PR("<option value='D'>唐宋元明</option>");
PR("<option value='E'>秦汉魏晋</option>");
PR("<option value='F'>架空</option>");
PR("<option value='G'>未来</option>");
PR("<option value='H'>西方</option>");
PR("<option value='I'>回到过去</option>");
PR("</select>&nbsp;<select name='plot' >");
PR("<option value=''>情节</option>");
PR("<option value='A'>未婚怀孕</option>");
PR("<option value='B'>别后重逢</option>");
PR("<option value='C'>青梅竹马</option>");
PR("<option value='D'>婚后相处</option>");
PR("<option value='E'>办公室恋情</option>");
PR("<option value='F'>青春校园</option>");
PR("<option value='G'>姐弟恋</option>");
PR("<option value='H'>暗恋成真</option>");
PR("<option value='I'>日久生情</option>");
PR("<option value='J'>斗智斗勇</option>");
PR("</select>&nbsp;<select name='hero' >");
PR("<option value=''>男主</option>");
PR("<option value='A'>沉默是金</option>");
PR("<option value='B'>聪明睿智</option>");
PR("<option value='C'>深不可测</option>");
PR("<option value='D'>强取豪夺</option>");
PR("<option value='E'>俊逸若仙</option>");
PR("<option value='F'>阳光健康</option>");
PR("<option value='G'>轻松逗趣</option>");
PR("<option value='H'>冷峻坚毅</option>");
PR("<option value='I'>为妻是从</option>");
PR("<option value='J'>放荡不羁</option>");
PR("</select>&nbsp;<select name='heroine'>");
PR("<option value=''>女主</option>");
PR("<option value='A'>可爱</option>");
PR("<option value='B'>淑女</option>");
PR("<option value='C'>媚惑</option>");
PR("<option value='D'>野蛮</option>");
PR("<option value='E'>才女</option>");
PR("<option value='F'>事业</option>");
PR("<option value='G'>成熟</option>");
PR("<option value='H'>幼稚</option>");
PR("<option value='I'>善良</option>");
PR("</select></td>");
PR("<td align='center' valign='top'>&nbsp;<input src='http://pic.hongxiu.com/index/images_2008/b_s.gif' type='image' name='Image' width='52' height='21' id='Image' onclick='soByCls(); return false;' alt='按属性搜索'/></td>");
PR("</form></tr></table>");
PR("<form name='sform' method='get' action='http://s.hongxiu.com/cgi-bin/l' target='_blank'>");
PR("<input type='hidden' name='query' value=''>");
PR("<input type='hidden' name='cid' value='0'>");
PR("<input type='hidden' name='indays' value=''>");
PR("<input type='hidden' name='sort' value='LastModified DESC'>");
PR("<input type='hidden' name='iftitle' value=''>");
PR("<input type='hidden' name='style' value=''>");
PR("<input type='hidden' name='ending' value=''>");
PR("<input type='hidden' name='period' value=''>");
PR("<input type='hidden' name='plot' value=''>");
PR("<input type='hidden' name='hero' value=''>");
PR("<input type='hidden' name='heroine' value=''>");
PR("<input type='hidden' name='finish' value='0'>");
PR("</form>");
}
//显示搜索函数结束

	// 榜单tab

function Show_BlkBlackTab(BlkBlackTabid_num,BlkBlackTabnum){
	for(var i=0;i<5;i++){$$("BlkBlackTabcontent_"+BlkBlackTabid_num+i).display="none";}
	for(var i=0;i<5;i++){$("BlkBlackTabmenu_"+BlkBlackTabid_num+i).className="tab_off";}
	$("BlkBlackTabmenu_"+BlkBlackTabid_num+BlkBlackTabnum).className="tab_on";
	$$("BlkBlackTabcontent_"+BlkBlackTabid_num+BlkBlackTabnum).display="";
}	

	// 最新更新tab
function showlist(k,h){
   for(var i=0;i<4;i++){$$("box_"+k+i).display="none";}
   for(var i=0;i<4;i++){$("tab_"+k+i).className="";}
   $("tab_"+k+h).className="tab_def";
   $$("box_"+k+h).display="block";
  }


//封面滚动图片start
function show_selector_menu(select_menu_id){
	var select_menu = $(select_menu_id);
	if( select_menu.style.visibility == "inherit"){
		var menu_content = select_menu.firstChild;
		if(navigator.userAgent.indexOf('MSIE')>=0){
			menu_content.style.marginBottom = "0";
			var select_menu_height = select_menu.offsetHeight;
			var timer = setInterval(
								function(){
									var marginb = parseInt(menu_content.style.marginBottom);
									if( marginb<=parseInt("-"+select_menu_height) ){
										menu_content.style.marginBottom = "0";
										select_menu.style.visibility = "hidden";
										clearInterval(timer);	
									}else{
										menu_content.style.marginBottom = (marginb-20)+"px";
									}
								}
								,1);
		}else{
			select_menu.style.visibility = "hidden";
		}
	}else{
		var menu_content = select_menu.firstChild;
		if(navigator.userAgent.indexOf('MSIE')>=0){
			menu_content.style.marginBottom = "-"+ select_menu.offsetHeight+"px";
			var timer = setInterval(
								function(){
									var marginb = parseInt(menu_content.style.marginBottom);
									if(marginb>=0){
										menu_content.style.marginBottom = "0";
										clearInterval(timer);	
									}else{
										menu_content.style.marginBottom = (marginb+20)+"px";
									}
								}
								,1);
		}
		selector_is_clicked[select_menu_id] = true;
		select_menu.style.visibility = "inherit";
	}
}

var showImageIndex = -1;
var imageTimer;
function showImage(imageIndex)
{
	var flash_img_div = $("flash_img");
	var flash_title = $("flash_title");
	
	
	if(imageIndex>fImgs.length-1){
		imageIndex = 0;
	}
	
	if(imageIndex<0)
	{
		imageIndex=fImgs.length-1;
	}
	
	if(!fImgs[imageIndex] || imageIndex==showImageIndex)
		return false;	
	var imgId = "__fImg"+imageIndex;
	flash_img_div.filters && flash_img_div.filters[0].Apply();
	for(i=0; i<flash_img_div.childNodes.length; i++){
		flash_img_div.childNodes[i].style.display = "none";
	}
	if( $(imgId) ){
		var imga = $(imgId);
		imga.style.display = "block";
		if(imga.tagName=="OBJECT"){
			imga.rewind();
			imga.Play();
		}
	}else{
		var pos = fImgs[imageIndex].img.lastIndexOf(".");
		if( fImgs[imageIndex].img.substr(pos+1).substr(0,3).toLowerCase()=="swf" ){
			flash_img_div.innerHTML += '\
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240" id="'+imgId+'">\
					<param name="movie" value="'+fImgs[imageIndex].img+'" />\
					<param name="quality" value="high" />\
					<embed src="'+fImgs[imageIndex].img+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="320" height="240"></embed>\
				</object>';

		}else{
			var img = new Image();
			img.border = "0";
			img.src = fImgs[imageIndex].img;
			img.width = "250";
			img.height = "170";
			var a = document.createElement("a");
			a.href = fImgs[imageIndex].href;
			a.target = "_blank";
			a.id = imgId;
			a.appendChild(img);
			flash_img_div.appendChild(a);
		}
	}
	flash_img_div.filters && flash_img_div.filters[0].Play();
	var flash_show_ctl_msg = $("flash_show_ctl_msg");
	flash_show_ctl_msg.filters && flash_show_ctl_msg.filters[0].Apply();
	flash_title.href = fImgs[imageIndex].href;
	flash_title.innerHTML = fImgs[imageIndex].title;
	flash_show_ctl_msg.filters && flash_show_ctl_msg.filters[0].Play();
	showImageIndex = imageIndex;	
	var myid,mybid;
	myid="txt"+imageIndex;
    for(var i=0;i<fImgs.length;i++) {
       mybid="txt"+i;
       $$(mybid).display="none";
    }
	$$(myid).display="block";	
	return true;
}
function imagePlay()
{
	if(imageTimer) return;
	if(showImageIndex>=fImgs.length-1){
		showImageIndex = -1;
	}
	var myDate=new Date();
	var mytime=myDate.toLocaleTimeString();   
	if((mytime>="21:00:00") || (mytime<="10:00:00"))
	{
		showImage(showImageIndex+1);
	}
	else if(mytime>"10:00:00" && mytime<="15:00:00")
	{
		showImage(showImageIndex+2);
	}
	else if(mytime>"15:00:00" && mytime<"21:00:00")
	{
		showImage(showImageIndex+3)
	}
	
//	imageTimer = setInterval(function(){
//					var stat = showImage(showImageIndex+1);
//					if(!stat){
//						stop();
//					}	
//				},7000);
}
function stop(){
	clearInterval(imageTimer);
	imageTimer = null;
}
function showNextImage(){
	showImage(showImageIndex+1);
}
function showPrevImage(){
	showImage(showImageIndex-1);
}
//封面滚动图片end

//滚动文字start
function ppRoll(a)
{
	this.myA = a;
	this.myA.IsPlay = 1;
	this.$(a.demo).style.overflow = "hidden";
	this.$(a.demo).style.width = a.width;
	this.$(a.demo).style.height = a.height;
	this.$(a.demo2).innerHTML=this.$(a.demo1).innerHTML;
	this.$(a.demo).scrollTop=this.$(a.demo).scrollHeight;
	this.Marquee();
	this.$(a.demo).onmouseover=function() {eval(a.objStr+".clearIntervalpp();");}
	this.$(a.demo).onmouseout=function() {eval(a.objStr+".setTimeoutpp();")}
}
ppRoll.prototype.$ = function(Id)
{
	return document.getElementById(Id);
}
ppRoll.prototype.getV = function(){ 
alert(this.$(this.myA.demo2).offsetWidth-this.$(this.myA.demo).scrollLeft);
alert(this.$(this.myA.demo2).offsetWidth);
alert(this.$(this.myA.demo).scrollLeft);}
ppRoll.prototype.Marquee = function()
{
	this.MyMar=setTimeout(this.myA.objStr+".Marquee();",this.myA.speed);
	if(this.myA.IsPlay == 1)
	{
		//向上滚动
		if(this.myA.direction == "roll_top")
		{
			if(this.$(this.myA.demo).scrollTop>=this.$(this.myA.demo2).offsetHeight)
				this.$(this.myA.demo).scrollTop-=this.$(this.myA.demo2).offsetHeight;
			else{
				this.$(this.myA.demo).scrollTop++;
			}
		}
		
		//向下滚动
		if(this.myA.direction == "roll_down")
		{
			if(this.$(this.myA.demo1).offsetTop-this.$(this.myA.demo).scrollTop>=0)
				this.$(this.myA.demo).scrollTop+=this.$(this.myA.demo2).offsetHeight;
			else{
				this.$(this.myA.demo).scrollTop--;
			}
		}
		
		//向左滚动
		if(this.myA.direction == "roll_left")
		{
			if(this.$(this.myA.demo2).offsetWidth-this.$(this.myA.demo).scrollLeft<=0)
				this.$(this.myA.demo).scrollLeft-=this.$(this.myA.demo1).offsetWidth;
			else{
				this.$(this.myA.demo).scrollLeft++;
			}
		}
		
		//向右滚动
		if(this.myA.direction == "roll_right")
		{
			if(this.$(this.myA.demo).scrollLeft<=0)
				this.$(this.myA.demo).scrollLeft+=this.$(this.myA.demo2).offsetWidth;
			else{
				this.$(this.myA.demo).scrollLeft--;
			}
		}

	}
}
ppRoll.prototype.clearIntervalpp = function()
{
	this.myA.IsPlay = 0;
}
ppRoll.prototype.setTimeoutpp = function()
{
	this.myA.IsPlay = 1;
}
//滚动文字结束 end 
						

function killErrorsss() {return true;}
window.onerror = killErrorsss;
var allyesagt=navigator.userAgent.toLowerCase();
var allyesie = ((allyesagt.indexOf("msie") != -1) && (allyesagt.indexOf("opera") == -1) && (allyesagt.indexOf("omniweb") == -1));
function alysxc(src,height,width,flashId,mode){
	if(typeof(flashVarsdb)=="undefined")flashVarsdb="errorDB";
	if(typeof(floatFlashVars)=="undefined") floatFlashVars="";
	var pAry=mode.split("=");
	if(allyesie){
		var winstr="<object id='"+flashId+"' name='hsn' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'width="+width+" height="+height+">";
		winstr+="<param name='allowScriptAccess' value='always' />";
		winstr+="<param name='movie' value='"+src+"' />";
		winstr+="<param name='quality' value='high' />";
		if(typeof(pAry[1])!="undefined")
			winstr+="<param name='scale' value='noscale' />";
		if(typeof(floatFlashVars)!="undefined")
			winstr+="<param name='FlashVars' value='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+floatFlashVars+"' />";
		else
			winstr+="<param name='FlashVars' value='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' />";
		winstr+="<param name='wmode' value='"+pAry[0]+"' />";

		winstr+="</object>";
}else
{
	var winstr="<embed id='"+flashId+"' src='"+src+"' quality='high' ";
	winstr+="pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
	winstr+=" width='"+width+"' height='"+height+"' swliveconnect='true' ";
	if(typeof(pAry[1])!="undefined")
		winstr+=" scale='noscale' ";
	if(typeof(floatFlashVars)!="undefined")
		winstr+=" FlashVars='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+floatFlashVars+"' ";
	else
		winstr+="FlashVars='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' ";
	winstr+=" wmode='"+pAry[0]+"' ";
	winstr+=" name='"+flashId+"' >";
	winstr+="</embed>";
}
PR(winstr);
}
function writeDoc(temp,str){temp.open();temp.write(str);temp.close();}
function popStatus(flashsrc1,flashsrc2){
var winstr="<div id='flashid1' style='cursor:hand;display:none'>";
winstr+="<object id='hsn1' name='hsn' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='100%' height='100%'>";
winstr+="<param name='allowScriptAccess' value='always' />";
winstr+="<param name='movie' value='"+flashsrc1+"' />";
winstr+="<param name='quality' value='high' />";
winstr+="<param name='salign' value='LB' />";
winstr+="<param name='FlashVars' value='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' />";
winstr+="<param name='wmode' value='Opaque' />";
winstr+="<embed id='emhsn' src='"+flashsrc1+"' quality='high' ";
winstr+="pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
winstr+=" width='100%' height='100%' swliveconnect='true' ";
winstr+=" scale='LB' ";
winstr+=" FlashVars='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' ";
winstr+=" wmode='Opaque' ";
winstr+=" name='emhsn' >";
winstr+="</embed></object></div>";
winstr+="<div id='flashid2' onmouseover='parent.show2(1);' style='cursor:hand;display:none'><object id='hsn2' name='hsn2' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='100%' height='100%'>";
winstr+="<param name='allowScriptAccess' value='always' />";
winstr+="<param name='movie' value='"+flashsrc2+"' />";
winstr+="<param name='quality' value='high' />";
winstr+="<param name='salign' value='LB' />";
winstr+="<param name='FlashVars' value='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' />";
winstr+="<param name='wmode' value='Opaque' />";
winstr+="<embed  id='emhsn2' src='"+flashsrc2+"' quality='high' ";
winstr+="pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
winstr+=" width='100%' height='100%' swliveconnect='true' ";
winstr+=" scale='LB' ";
winstr+=" FlashVars='postallyesid="+escape(temclickadd)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' ";
winstr+=" wmode='Opaque' ";
winstr+=" name='emhsn2' >";
winstr+="</embed></object></div>";

winstr+="<div ID='divnameimgdis' name='divnameimgdis' style='position:absolute;z-index:100000;left:"+parent.leftPos+";top:"+parent.TopPos+";width:10; height:10'><table border=0><tr><td><img border=0 src='"+parent.clogifadd+"' style='cursor:hand' title='close' width=10 height=10 onclick='parent.disdiv()'></td></tr></div>";
op.document.body.innerHTML = winstr;
}
function alysxc_parent(divId,src,height,width,flashId,mode,mouseMethod,click){
	if(typeof(flashVarsdb)=="undefined")
		flashVarsdb="errorDB";
	if(typeof(frameIndex)=="undefined")
		frameIndex=0;
	var pAry=mode.split("=");
	if(allyesie){
		var winstr="<object id='"+flashId+"' name='hsn' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'width="+width+" height="+height+">";
		winstr+="<param name='allowScriptAccess' value='always' />";
		winstr+="<param name='movie' value='"+src+"' />";
		winstr+="<param name='quality' value='high' />";
		if(typeof(pAry[1])!="undefined")
			winstr+="<param name='scale' value='noscale' />";

		if(typeof(floatFlashVars)!="undefined")
			winstr+="<param name='FlashVars' value='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&frameIndex="+escape(frameIndex)+"&db="+escape(flashVarsdb)+floatFlashVars+"' />";
		else
			winstr+="<param name='FlashVars' value='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&frameIndex="+escape(frameIndex)+"&db="+escape(flashVarsdb)+"' />";
		winstr+="<param name='wmode' value='"+pAry[0]+"' />";

		winstr+="</object>";
}else
{
	var winstr="<embed id='"+flashId+"' src='"+src+"' quality='high' ";
	winstr+="pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
	winstr+=" width='"+width+"' height='"+height+"' swliveconnect='true' ";
	if(typeof(pAry[1])!="undefined")
		winstr+=" scale='noscale' ";
	
	if(typeof(floatFlashVars)!="undefined")
		winstr+=" FlashVars='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&frameIndex="+escape(frameIndex)+"&db="+escape(flashVarsdb)+floatFlashVars+"' ";
	else
		winstr+="FlashVars='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&frameIndex="+escape(frameIndex)+"&db="+escape(flashVarsdb)+"' ";
	
	winstr+=" wmode='"+pAry[0]+"' ";
	winstr+=" name='"+flashId+"' >";
	winstr+="</embed>";
}
if(allyesie){
	b = "<div id="+divId+ " "+mouseMethod+" style=\'display:none;z-index:99999;position:absolute;width:"+width+"px;height:"+height+"px\'>";
	b += winstr;
	b += "</div>";
	parent.document.body.insertAdjacentHTML("afterBegin",b);
} else {
	b = "<div id="+divId+ " "+mouseMethod+" style=\'z-index:9999999;display:;position:absolute;width:0px;height:0px\'>";
	b += winstr;
	b += "</div>";
	var oDiv=document.createElement("DIV");
	
	parent.document.body.appendChild(oDiv);
	oDiv.innerHTML = b;
}
}
function wf(bgfile,divId,pointList,w,h){
var _html = "<div id='"+divId+"' style='z-index:99999;display:none;position:absolute;left:0px;top:0px;width:"+w+"px;height:"+h+"px'><object id='smflashID' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='100%' height='100%' align='middle'><param name='allowScriptAccess' value='always' /><param name='movie' value='"+bgfile+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='salign' value='T' /><param name='menu' value='false' /><param name='scale' value='noscale' /><param name='FlashVars' value='postallyesid="+escape(temclickadd)+pointList+"&postpath="+escape(temadfhost)+"&dbName="+escape(flashVarsdb)+"' /></object></div>";
PR(_html);
}
function dospan_sohu0413() { 
	for(var i=0;i<window.document.getElementsByTagName("div").length;i++) 
	{
		if(window.document.getElementsByTagName("div")[i].className=="banner")
		{
			document.getElementsByTagName("div")[i].innerHTML = $("53cd434212add4603e92487faf64fb47").innerHTML;
		} 
	} 
}
function wf_163(bgfile,pointList,w,h,click){
var _html = "<object id='smflashID' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='100%' height='100%' align='middle'><param name='allowScriptAccess' value='always' /><param name='movie' value='"+bgfile+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='salign' value='T' /><param name='menu' value='false' /><param name='scale' value='noscale' /><param name='FlashVars' value='postallyesid="+escape(click)+pointList+"&postpath="+escape(temadfhost)+"&dbName="+escape(flashVarsdb)+"' /></object>";
return _html;
}
function addEelment(bgfile,pointList,w,h,div_id,click)
{
if(typeof div_id =="undefined")
	var div_id ="bg_68";
var _item = document.createElement("DIV");
document.body.children(0).insertAdjacentElement("BeforeBegin",_item);
_item.id = div_id;
_item.style.width = w+"px";
_item.style.height = h+"px";
_item.innerHTML = wf_163(bgfile,pointList,w,h,click);
}
function writeFlashDiv(str) {
PR(str);
}
function alysxc_2(src,height,width,flashId,mode,click){
	if(typeof(flashVarsdb)=="undefined")flashVarsdb="errorDB";
	if(typeof(floatFlashVars)=="undefined") floatFlashVars="";
	var pAry=mode.split("=");
	if(allyesie){
		var winstr="<object id='"+flashId+"' name='hsn' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'width="+width+" height="+height+">";
		winstr+="<param name='allowScriptAccess' value='always' />";
		winstr+="<param name='movie' value='"+src+"' />";
		winstr+="<param name='quality' value='high' />";
		if(typeof(pAry[1])!="undefined")
			winstr+="<param name='scale' value='noscale' />";
		if(typeof(floatFlashVars)!="undefined")
			winstr+="<param name='FlashVars' value='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+floatFlashVars+"' />";
		else
			winstr+="<param name='FlashVars' value='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' />";
		winstr+="<param name='wmode' value='"+pAry[0]+"' />";

		winstr+="</object>";
}else
{
	var winstr="<embed id='"+flashId+"' src='"+src+"' quality='high' ";
	winstr+="pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
	winstr+=" width='"+width+"' height='"+height+"' swliveconnect='true' ";
	if(typeof(pAry[1])!="undefined")
		winstr+=" scale='noscale' ";
	if(typeof(floatFlashVars)!="undefined")
		winstr+=" FlashVars='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+floatFlashVars+"' ";
	else
		winstr+="FlashVars='postallyesid="+escape(click)+"&postpath="+escape(temadfhost)+"&db="+escape(flashVarsdb)+"' ";
	winstr+=" wmode='"+pAry[0]+"' ";
	winstr+=" name='"+flashId+"' >";
	winstr+="</embed>";
}
PR(winstr);
}
function writeInnerHtml(div, html)
{
div.innerHTML = html;
}
function free_sh()
{
	if(typeof(_smid)!="undefined")
	{
		if(eval("_sh_"+_smid)==1)
		{
			eval("sc_"+_smid).s = 2;
		}
	}
}
if(typeof(FQT_main)=="function")window.setTimeout("free_sh()",5000);

