//title:对联广告右|createTime:2007-4-2 9:30:32|creater:1|editTime:93032
var aweb_duilian_right_beginTime='20071111';
var aweb_duilian_right_endTime='20071130';
var aweb_duilian_right_currentTime=getCurrentDate();
var aweb_duilian_right_isMove='123';
if(isvalidation()){


var aweb_duilian_right_ad_float_right_src = "banner3.gif ";
var aweb_duilian_right_ad_float_right_url = "http://top.aweb.com.cn";
var aweb_duilian_right_ad_float_right_type = "img";
var aweb_duilian_right_imgheight_right
var aweb_duilian_right_imgwidth_right
document.ns = navigator.appName == "Microsoft Internet Explorer"
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;
if(document.ns){
	document.write("<div id='aweb_duilian_right_myright' style='position: absolute;width:80;top:0;left:960;visibility: visible;z-index: 1'>\
	<table border='0' cellpadding='0' cellspacing='0'><tr><td>");

	if(aweb_duilian_right_ad_float_right_type!="flash")
		document.write("<a href='" + aweb_duilian_right_ad_float_right_url + "' target = '_blank'><img src='" + aweb_duilian_right_ad_float_right_src + "' WIDTH='100' HEIGHT='300' border = '0' alt=''></a>");
	else{
		document.write('<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="100" height="300"><param name="movie" value="'+aweb_duilian_right_ad_float_right_src+'" /><param name="quality" value="high" /><embed src="'+aweb_duilian_right_ad_float_right_src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"></embed></object>');
	}
	
	document.write("</td></tr><tr><td width='100' bgcolor='#cccccc' style='text-align:right;padding-top:2px;padding-right:3px;'><a href='javascript:aweb_duilian_right_close_float_right();void(0);' style='font-size:12px;color:#000000;text-decoration:none;'>CLOSE</a></td></tr>\
	</table>\
	</div>");

}
var aweb_duilian_right_myright_ = document.getElementById('aweb_duilian_right_myright')
window.screen.width>800 ? aweb_duilian_right_imgheight_right=560:aweb_duilian_right_imgheight_right=560
window.screen.width>800 ? aweb_duilian_right_imgwidth_right=bdy.scrollLeft+bdy.offsetWidth-130:aweb_duilian_right_imgwidth_right=10

 function aweb_duilian_right_myload()
{
aweb_duilian_right_myright_.style.top=bdy.scrollTop+bdy.offsetHeight-aweb_duilian_right_imgheight_right;
aweb_duilian_right_myright_.style.left=aweb_duilian_right_imgwidth_right;
if(aweb_duilian_right_isMove=='123'){
    aweb_duilian_right_mymove();
}
}
 function aweb_duilian_right_mymove()
 {
 aweb_duilian_right_myright_.style.top=bdy.scrollTop+bdy.offsetHeight-aweb_duilian_right_imgheight_right;
 aweb_duilian_right_myright_.style.left=aweb_duilian_right_imgwidth_right;
 setTimeout("aweb_duilian_right_mymove();",50)
 }

function aweb_duilian_right_close_float_right(){
	aweb_duilian_right_myright_.style.visibility='hidden';
}


    if(document.ns){
         aweb_duilian_right_myload()
    }
}else{
    document.write ('')
}



function getCurrentDate(){
var objDate=new Date();//创建一个日期对象表示当前时间
var year=objDate.getFullYear()+'';
var month=objDate.getMonth()+1;    //getMonth返回的月份是从0开始的，因此要加1
var date=objDate.getDate();
if (month<10) {
	month='0'+month;
}else{
	month=''+month;
}
if(date<10){
    date ='0'+date;
}else{
    date=''+date;
}
return year+month+date;
}
function isvalidation(){
  return (parseInt(aweb_duilian_right_currentTime)>=parseInt(aweb_duilian_right_beginTime))&&(parseInt(aweb_duilian_right_currentTime)<parseInt(aweb_duilian_right_endTime))
}
var scrollWidth_ = document.body.scrollWidth;
function resizeBody(){
	if( Math.abs(scrollWidth_-document.body.scrollWidth)>100){
		location.reload();
	}
}

window.onresize = function(){
 	setTimeout("resizeBody()",100);
}
