﻿document.write ('<div id="yy" style="position:absolute; left:600px; top:200px; width:138px; height:105px; z-index:1">');
document.write ('<a href="../qingxinju" onmouseover="pausey_resume()" onmouseout="pausey_resume()"></a><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="353.65" height="172.7"><param name="movie" value="../flash/icon.swf"> <param name="wmode" value="transparent"><param name="quality" value="high"><embed src="../flash/icon.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="138" height="105"></embed> </object></a>');

document.write ('</div>');

//var xposy = 200;
//var yposy = document.body.clientHeight;
var xposy = 600;
var yposy = 20;
var stepy = 1.0;
var delayy = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yony = 1;
var xony = 0;
var pausey = true;
var interval;
yy.style.top = yposy;
yy.style.left = xposy;
function changePosy() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = yy.offsetHeight;
Woffset = yy.offsetWidth;
yy.style.left = xposy + document.body.scrollLeft;
yy.style.top = yposy + document.body.scrollTop;
if (yony) {
yposy = yposy + stepy;
}
else {
yposy = yposy - stepy;
}
if (yposy < 0) {
yony = 1;
yposy = 0;
}
if (yposy >= (height - Hoffset)) {
yony = 0;
yposy = (height - Hoffset);
}
if (xony) {
xposy = xposy + stepy;
}
else {
xposy = xposy - stepy;
}
if (xposy < 0) {
xony = 1;
xposy = 0;
}
if (xposy >= (width - Woffset)) {
xony = 0;
xposy = (width - Woffset);
   }
}
function start() {
yy.visibility = "visible";
interval = setInterval('changePosy()', delayy);
}
function pausey_resume() {
if(pausey) {
clearInterval(interval);
pausey = false;
}
else {
interval = setInterval('changePosy()',delayy);
pausey = true;
   }
}
start();


