//以下可编辑
var img_width=301; //图片宽度
var img_height=68; //图片高度
var img_url="images/201106290913.jpg"; //图片地址
var link_url="/"; //链接地址

//以下勿需改动
document.write("<DIV id=img style='POSITION: absolute; width: "+img_width+"px; height: "+img_height+"px;z-index:9'><a href="+link_url+" target=_blank><img src="+img_url+" width="+img_width+" height="+img_height+" border=0></a><div align=right><strong><a href=# onClick='AdvClose(img)'><font color=#000000>关闭</font></a></strong></div></DIV>");
var xPos_1 = 20;
var yPos_1 = document.body.clientHeight;
var step_1 = 1;
var delay_1 = 30; 
var height_1 = 0;
var Hoffset_1 = 0;
var Woffset_1 = 0;
var yon_1 = 0;
var xon_1 = 0;
var pause_1 = true;
var interval_1;
img.style.top = yPos_1;
function changePos_1() {
width_1 = document.body.clientWidth;
height_1 = document.body.clientHeight;
Hoffset_1 = img.offsetHeight;
Woffset_1 = img.offsetWidth;
img.style.left = xPos_1 + document.body.scrollLeft;
img.style.top = yPos_1 + document.body.scrollTop;
if (yon_1) {
yPos_1 = yPos_1 + step_1;
}
else {
yPos_1 = yPos_1 - step_1;
}
if (yPos_1 < 0) {
yon_1 = 1;
yPos_1 = 0;
}
if (yPos_1 >= (height_1 - Hoffset_1)) {
yon_1 = 0;
yPos_1 = (height_1 - Hoffset_1);
}
if (xon_1) {
xPos_1 = xPos_1 + step_1;
}
else {
xPos_1 = xPos_1 - step_1;
}
if (xPos_1 < 0) {
xon_1 = 1;
xPos_1 = 0;
}
if (xPos_1 >= (width_1 - Woffset_1)) {
xon_1 = 0;
xPos_1 = (width_1 - Woffset_1);
}
}

function AdvClose(ADname) //广告关闭代码
{
	ADname.style.display="none";
}

function start_1() {
img.visibility = "visible";
interval_1 = setInterval('changePos_1()', delay_1);
}
start_1();
