﻿//GetPageIn
//End:GetPageIn

//noCopy
function document.oncontextmenu() {return false;}
function document.onselectstart() {return false;}
//End:noCopy

//StatusBar
var TxtStyle=3;
var strStatus;
var delay = 10;
var position = 150;
if (wplang=="b5"){strStatus="   歡迎光臨 ! 永鴻地產 !   ";}
else if (wplang=="gb"){strStatus="   欢迎光临 ! 永鸿地产 !   ";}
else if (wplang=="en"){strStatus="   Welcome to wing-hung.com !   ";}
var scroll = new statusMessageObject()
function statusMessageObject(p,d) {
this.msg = strStatus;
this.out = " ";
this.pos = position;
this.delay = delay;
this.I = 0;
this.reset = clearMessage;
}
function clearMessage(){
this.pos = position;
}
function RunShowStatus(){
for (scroll.I = 0; scroll.I < scroll.pos; scroll.I++) {scroll.out += " ";}
if (scroll.pos >= 0)
scroll.out += scroll.msg;
else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length);
window.status = scroll.out;
scroll.out = " ";
scroll.pos--;
if (scroll.pos < -(scroll.msg.length)) {
scroll.reset();
}
setTimeout('RunShowStatus()',scroll.delay);
}
function StatusBar(jumpSpaces,position) {
var msg = scroll.msg;
var out = "";
for (var I=0; I<position; I++){out += msg.charAt(I)}
for (I=1;I<jumpSpaces;I++){out += " "}
out += msg.charAt(position);
window.status = out;
if (jumpSpaces <= 1) {
position++;
if (msg.charAt(position) == ' '){position++}
jumpSpaces = 100-position;
} else if (jumpSpaces >  3){jumpSpaces *= .75}
else
{jumpSpaces--}
if (position != msg.length) {
var cmd = "StatusBar(" + jumpSpaces + "," + position + ")";
window.setTimeout(cmd,scroll.delay);
} else {
window.status="";
jumpSpaces=0;
position=0;
cmd = "StatusBar(" + jumpSpaces + "," + position + ")";
window.setTimeout(cmd,scroll.delay);
return false;
}
return true;
}
StatusBar(100,0);
//End:StatusBar