﻿// JavaScript Document
//<!-- Begin
//scroller width
var wholemessage=''

wholemessage="<table cellpadding='0' cellspacing='2' border='0' class='Bangscroll'>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'> Công ty TNHH Tin Học Gia Hào</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'><img src='Hinhtrangtri/Dot_orange.gif' border='0'>Chuyên cung cấp các giải pháp về tin học, phần mềm tin học quản lý,... </a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'><img src='Hinhtrangtri/Dot_orange.gif' border='0'>Đặc biệt, chúng tôi cung cấp các dịch vụ về tên miền - domain name và hosting với chất lượng cao</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'><img src='Hinhtrangtri/Dot_orange.gif' border='0'>Cùng với đội ngũ nhiều kinh nghiệm chuyên thiết kế website, cả thế giới sẽ biết và tìm đến bạn </a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'><img src='Hinhtrangtri/Dot_orange.gif' border='0'>Hãy liên hệ ngay đến công ty Gia Hào của chúng tôi : </a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'>Địa chỉ : 47/3 Võ Văn Ngân, P. Linh Chiểu, Q. Thủ Đức, TP.Hồ Chí Minh</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'>Điện thoại : (84-8)8970634</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'>Fax : (84-8)7240784</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'>Website: http://www.giahao.com</a></td></tr>"
wholemessage=wholemessage + "<tr><td><a href='http://www.giahao.com' target='_blank'>Email : giahao@giahao.com</a></td></tr>"
wholemessage=wholemessage + "</table><br>"

var swidth=300

//scroller height
var sheight=100

//scroller's speed;
var sspeed=50
function start(){
	if (document.all) return
	if (document.getElementById){
		document.getElementById("slider").style.visibility="show"
		ns6marquee(document.getElementById('slider'))
	}
	else if(document.layers){
		document.slider1.visibility="show"
		ns4marquee(document.slider1.document.slider2)
	}
}

function ns4marquee(whichlayer){
	ns4layer=eval(whichlayer)
	ns4layer.document.write(wholemessage)
	ns4layer.document.close()
	sizeup=ns4layer.document.height
	ns4layer.top-=sizeup
	ns4slide()
}

function ns4slide(){
	if (ns4layer.top>=sizeup*(-1)){
	ns4layer.top-=sspeed
	setTimeout("ns4slide()",500)
	}
	else{
		ns4layer.top=sheight
		ns4slide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	ns6div.innerHTML=wholemessage
	ns6div.style.top=sheight
	sizeup=sheight
	ns6slide()
}

function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed
		setTimeout("ns6slide()",500)
	}
	else{
		ns6div.style.top=sheight
		ns6slide()
	}
}
function XuatBangscroll ()
{
if (document.all){
					document.writeln('<marquee id="ieslider" scrollAmount=2 width=200 height=150 direction=up style="border:0 solid red;">')
					document.writeln(wholemessage)
					ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
					ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=2")
					document.write('</marquee>')
					}
					if (document.getElementById&&!document.all){
					document.write('<div style="position:relative;overflow:hidden;width:20;height:150;clip:rect(0 302 102 0);border:0px solid red;" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
					document.write('<div id="slider" style="position:relative;width:&{swidth};">')
					document.write('</div></div>')
				}
				}
//  End -->