/* flash */
function PnFlash(fname,wlen,hlen)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
document.write('id="ExternalInterface"');
document.write('width="');
document.write(wlen);
document.write('" height="');
document.write(hlen);
document.write('" >');
document.write('<param name="movie" value="');
document.write(fname);
document.write('">');
document.write('<param name="quality" value="high"> ');
document.write('<param name=wmode value=transparent> ');
document.write('<param name="allowScriptAccess" value="always" /> ');
document.write('<embed src="');
document.write(fname);
document.write('"');
document.write('width="');
document.write(wlen);
document.write('" height="');
document.write(hlen);
document.write('"');
document.write(' align="right" quality="high" ');
document.write('wmode=transparent pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write('scale="noscale" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"></embed></object>');
};

/* Quick */
function initMoving01(target, position, topLimit, btmLimit) {
 if (!target)
  return false;
 var obj = target;
 obj.initTop = position;
 obj.topLimit = topLimit;
 obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;
 obj.style.position = "absolute";
 obj.top = obj.initTop;
 obj.left = obj.initLeft;
 if (typeof(window.pageYOffset) == "number") {
  obj.getTop = function() {
   return window.pageYOffset;
  }
 } else if (typeof(document.documentElement.scrollTop) == "number") {
  obj.getTop = function() {
   return document.documentElement.scrollTop;
  }
 } else {
  obj.getTop = function() {
   return 0;
  }
 }
 if (self.innerHeight) {
  obj.getHeight = function() {
   return self.innerHeight;
  }
 } else if(document.documentElement.clientHeight) {
  obj.getHeight = function() {
   return document.documentElement.clientHeight;
  }
 } else {
  obj.getHeight = function() {
   return 500;
  }
 }
 obj.move = setInterval(function() {
  if (obj.initTop > 0) {
   pos = obj.getTop() + obj.initTop;
  } else {
   pos = obj.getTop() + obj.getHeight() + obj.initTop;
   //pos = obj.getTop() + obj.getHeight() / 2 - 15;
  }
  if (pos > obj.bottomLimit)
   pos = obj.bottomLimit;
  if (pos < obj.topLimit)
   pos = obj.topLimit;
  interval = obj.top - pos;
  obj.top = obj.top - interval / 3;
  obj.style.top = obj.top + "px";
 }, 30)
};

function btn_top() {
	window.scrollTo(0,0);return false;	
}
