document.write("<div align='center' id='waterMark' style='position:absolute; BACKGROUND-COLOR: white; FONT-SIZE: small; VISIBILITY: hidden; Z-INDEX: 9999;'><a href='#top'><img src=http://www.logvoice.com/skywing/image/top.gif border=0 alt='Go Top'></a></div>");

markW = 80;       // pixels wide
markH = 15;       // pixels high
markX = 93;      // percent right
markY = 90;      // percent down
markRefresh = 100; // milliseconds
// set common object reference
if (!document.all) document.all = document;
if (!document.all.waterMark.style) document.all.waterMark.style = document.all.waterMark;
wMark = document.all.waterMark.style;
wMark.width = markW;
wMark.height = markH;
navDOM = window.innerHeight; // Nav DOM flag

function setVals() {
 barW = 0; // scrollbar compensation for PC Nav
 barH = 0;
 if (navDOM) {
  if (document.height > innerHeight) barW = 20;
  if (document.width > innerWidth) barH = 20;
  } else {
  innerWidth = document.body.clientWidth;
  innerHeight = document.body.clientHeight;
  }
 posX = ((innerWidth - markW)-barW) * (markX/100);
 posY = ((innerHeight - markH)-barH) * (markY/100);
// staticX = posX;
 wMark.visibility = innerWidth>=400 && innerHeight>=200 ? "visible": "hidden";
 }

function wRefresh() {
 wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);
 wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);
// posX--;
// if(posX<=0)  posX = staticX;
 }

function markMe() {
 setVals();
 window.onresize=setVals;
 markID = setInterval ("wRefresh()",markRefresh);
 }
markMe(); // safety for Mac IE4.5

function getCookie(CookieName) {
   var WholeCookie = document.cookie;
   //alert(unescape("all cookie="+WholeCookie));
   var index = WholeCookie.indexOf(CookieName + "=");
   if (index == -1) return "";
   index = WholeCookie.indexOf("=", index) + 1;
   var endstr = WholeCookie.indexOf(";", index);
   if (endstr == -1) endstr = WholeCookie.length;
   var IndividualCookie = unescape(WholeCookie.substring(index, endstr));
   // check for empty cookie. Various browsers handle empty cookies differently.
   if (IndividualCookie == null || IndividualCookie == "null" ||
IndividualCookie == "" || IndividualCookie.indexOf("undefined") >= 0 ||
IndividualCookie.lastIndexOf("=") == IndividualCookie.length - 1) {
      IndividualCookie = ""
   }
   return unescape(IndividualCookie);
}
function setCookie(name, value, expire_second, path) {
  var expire = new Date();
  if(expire_second)
    expire.setTime(expire.getTime() + expire_second*1000 );
  var curCookie = name + "=" + escape(value) +
     ((expire_second != 0) ? "; expires=" + expire.toGMTString() : "") +
     ((path) ? "; path=" + path : "") ;
  document.cookie = curCookie;
}

function setb2g() {
	setCookie("WMTR", "b2g", 0,"/");
	w = window;
	while( w.parent != w )
	  w = w.parent;
	w.location.href= eval("w.location.href");
}

function setnoc() {
	setCookie("WMTR", "noc", 0,"/");
	w = window;
	while( w.parent != w )
	  w = w.parent;
	w.location.href= eval("w.location.href");
}