﻿<!--//
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

var htmls = "";
var htmls01 = "";
var now = new Date();
var sec = now.getSeconds() % 2;

htmls += ' <div id=skyMenu style="position:absolute; left:900px; top:50px;"> ';
htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
htmls += ' <TR><TD> ';


htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go3()" style="cursor:hand" > ';
	htmls += ' <IMG SRC=/images/guide/images_new/diem-ban-the.gif WIDTH=90 HEIGHT=91 BORDER=0></A> ';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';
	htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
		htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go()" style="cursor:hand" > ';
	htmls += ' <IMG SRC=/images/guide/images_new/Nap-oncach-qua-sms.gif WIDTH=90 HEIGHT=91 BORDER=0></A> ';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> '
	htmls += '  ';
	htmls += '  ';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';
	htmls += ' </TABLE> ';
	
	
	
	
	
	
	htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go2()" style="cursor:hand" ><IMG SRC=/images/guide/images_new/Nhan-Gold-Qua-Sms.gif WIDTH=90 HEIGHT=91 BORDER=0> ';
	htmls += ' </A>';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';







	htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go6()" style="cursor:hand" ><IMG SRC=/images/guide/images_new/Nap-the-qua-sms.gif WIDTH=90 HEIGHT=91 BORDER=0> ';
	htmls += ' </A>';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';
	
	
	
	
	htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go5()" style="cursor:hand" ><IMG SRC=/images/guide/images_new/nap-oncash-da-nang-qua-SMS.gif WIDTH=90 HEIGHT=91 BORDER=0> ';
	htmls += ' </A>';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';
	
	
	
	
	htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go1()" style="cursor:hand" > ';
	htmls += ' <IMG SRC=/images/guide/images_new/Huong-Dan.gif WIDTH=90 HEIGHT=91 BORDER=0></A> ';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';


        htmls += ' <TABLE WIDTH="90" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ';
	htmls += ' <TR><TD> ';
	htmls += ' <A onclick="go8()" style="cursor:hand" > ';
	htmls += ' <IMG SRC=/images/guide/images_new/Huong-Dan-Nap-OC--1.gif WIDTH=90 HEIGHT=91 BORDER=0></A> ';
	htmls += ' </TD> ';
	htmls += ' </TR> ';
	htmls += ' </TABLE> ';
	
	
	
htmls += ' </DIV> ';

document.write(htmls);
function go2()
{
window.open("/gold/","","width=920 height=730 scrollbars=yes resizable=yes");
}
function go1()
{
window.open("/huongdan/naponcashdanang.html","","width=1000 height=730 scrollbars=yes resizable=yes");
}
document.write(htmls01);
function go()
{
window.open("/huongdan/muaOncashquasms.html","","width=720 height=730 scrollbars=yes");
}
function go3()
{
window.open("https://ongate.vn/images_og/upload/HuongDanOngate/daily/daily4.html","","width=920 height=730 scrollbars=yes");
}


function go4()
{
window.open("/gold/","","width=920 height=730 scrollbars=yes");
}



function go5()
{
window.open("https://ongate.vn/images_og/upload/HuongDanOngate/NapOncashDNSMS.html ","","width=900 height=730 resizable=yes scrollbars=yes");
}



function go6()
{
window.open("/cashstation/smsnew/","","width=900 height=730 scrollbars=yes resizable=yes");
}



function go8()
{
window.open("https://ongate.vn/images_og/upload/HuongDanOngate/NapATMVi.html","","width=900 height=730 scrollbars=yes resizable=yes");
}


function CheckUIElements() {
	var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

	if(bNetscape4plus) { //+-++- +++- +++e --Ѧ
		yMenuFrom = document["skyMenu"].top;
		yMenuTo = top.pageYOffset + 70;
	}

	else if(bExplorer4plus) { //+-+++++ +++- +++e --Ѧ
		yMenuFrom = parseInt(skyMenu.style.top,10);
		yMenuTo = document.body.scrollTop + 70;
	}

	timeoutNextCheck = 800;

	if(Math.abs(yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom) {
		setTimeout("CheckUIElements()", timeoutNextCheck);
		return;
	}

	if(yButtonFrom != yButtonTo) {
		yOffset = Math.ceil(Math.abs(yButtonTo - yButtonFrom) / 10);

		if(yButtonTo < yButtonFrom) yOffset = -yOffset;
		if(bNetscape4plus) document["divLinkButton"].top += yOffset;
		else if(bExplorer4plus) divLinkButton.style.top = parseInt(divLinkButton.style.top,10) + yOffset;

		timeoutNextCheck = 10;
	}

	if(yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);

		if(yMenuTo < yMenuFrom) yOffset = -yOffset;
		if(bNetscape4plus) document["skyMenu"].top += yOffset;
		else if(bExplorer4plus) skyMenu.style.top = parseInt(skyMenu.style.top,10) + yOffset;

		timeoutNextCheck = 10;
	}

	setTimeout("CheckUIElements()",timeoutNextCheck);
}

function OnLoad() {
	var y;
	if(top.frames.length)
		if(bNetscape4plus) {//+-++- ++++ +++ +++e --Ѧ
			document["skyMenu"].top = top.pageYOffset + 100;
			document["skyMenu"].visibility = "visible";
		}

		else if(bExplorer4plus) {//+-+++++ ++++ +++ +++e --Ѧ
			skyMenu.style.top = document.body.scrollTop + 100;
			skyMenu.style.visibility = "visible";
		}

	CheckUIElements();
	return true;
}

OnLoad();
//-->
