var t
x=1
y=0
n=0
leftx=200
fullx=300
topy=160
fully=330
steps=5
rowh=12
func='play'
rows=parseInt(steps*(fully/rowh-1))
function setref(lrid){
if(document.all){
	objref="document.all."+lrid+".style"}
else if(document.layers){
	objref="document."+lrid}
else if(document.getElementById){
	objref="document.getElementById('"+lrid+"').style"}
return objref
}
function position(lr,w,h,p,x,y,v){
	var o=eval(setref(lr))
	if(bname=='Netscape'){
		o.width=w
		o.height=h
		o.pageX=x
		o.pageY=y}
	else{
		o.width=w
		o.height=h
		o.pixelLeft=x
		o.pixelTop=y}
	o.position=p
	o.visibility=v
}
mov='play';s=0;ttlid=1;var t2;
function movingtitle(){
	ttl=eval(setref("ttl"+ttlid))
	if(mov=='replay'){
	mov='play';s=0;
	ttl.left=60
	ttl.top=140}
	s++
	if(s<=5){
	ttl.top=140-s*26
	ttl.left=60+s*48
	t2=setTimeout('movingtitle()',50)}
	else{clearTimeout(t2);ttlid=1}
}
function runningtext(){
	if(func=='replay'){
	func='play';x=1;y=0;n=0;
	eval(setref('cover')+".height="+fully)
	eval(setref('run')+".left="+leftx)
	eval(setref('run')+".top="+topy)
	eval(setref('cover')+".left="+leftx)
	eval(setref('cover')+".top="+(topy+rowh))}
	n++
	x++
	if(n<rows){
	if(x<=steps){
	eval(setref('run')+".left="+(x*fullx/steps+leftx))
	eval(setref('run')+".width="+(fullx-x*fullx/steps))}
	else{
	x=1
	y++
	eval(setref('run')+".width="+fullx)
	eval(setref('run')+".top="+(y*rowh+topy))
	eval(setref('run')+".left="+leftx)
	eval(setref('cover')+".height="+(fully-y*rowh))
	eval(setref('cover')+".top="+((y+1)*rowh+topy))}
	t=setTimeout('runningtext()',10)}
	else{
	eval(setref('run')+".visibility='hidden'")
	eval(setref('cover')+".visibility='hidden'")
	eval(setref('run')+".left="+leftx)
	eval(setref('run')+".top="+topy)
	eval(setref('cover')+".left="+leftx)
	eval(setref('cover')+".top="+(topy+rowh))
	x=1;y=0;n=0;
	clearTimeout(t)}
}
function togglemen(id,textrun){
	eval(setref('ini1')+".visibility='hidden'")
	for(i=1;i<=3;i++){
	x="m"+i
	men=eval(setref(x))
	if(x==id){
	ttlid=i
	men.visibility="hidden"
	ttl=eval(setref("ttl"+i))
	ttl.visibility="visible"
	if(textrun==1){
	eval(setref('run')+".visibility='visible'")
	eval(setref('cover')+".visibility='visible'")}
	eval(setref("text"+i)+".visibility='visible'")
	eval(setref("rightimgs"+i)+".visibility='visible'")}
	else{
	eval(setref("ttl"+i)+".visibility='hidden'")
	eval(setref("text"+i)+".visibility='hidden'")
	eval(setref("rightimgs"+i)+".visibility='hidden'")
	men.visibility="visible"}
}
}
function openwin(url,w,h,x){
	var w=window.open(url, "smallwin",
	"width="+w+",height="+h+",status=no,resizable=no,scrollbars="+x)
}
function QTmovie()
{
  document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n');
  document.write('codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"\n');
  document.write('width="480" height="400" align="middle">\n');
  document.write('<param name="src" value="hqnov.mov" />\n');
  document.write('<param name="autoplay" value="true" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="bgcolor" value="#000000" />\n');
  document.write('<embed name="QTversion" quality="high" bgcolor="#000000"\n');
  document.write('type="video/quicktime" controls="ControlPanel"\n');
  document.write('src="hqnov.mov" center="1" autostart="true" width="480" height="400"\n');
  document.write('cache="true" loop="false" controller="true">\n');
  document.write('</object>\n');
}
