﻿var maximg = 3;
var fc = Math.floor(Math.random()*maximg);
var bttc='<img src="/img/backtotop.gif" border="0">'

switch (fc)	{
    case 0:bttc='<img  class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this);top.focus()" onClick="top.focus()"   width=120 height=120  src="/img/bacio.gif" alt="Đầu trang" border="0">';break;
    case 1:bttc='<img  class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this);top.focus()" onClick="top.focus()" src="/img/backtotop.gif" alt="Đầu trang" border="0">';break;
    case 2:bttc = '<img class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this);top.focus()" onClick="top.focus()"  src="/img/cop.gif" alt="Đầu trang" border="0">'; break;
    //case 0:bttc='<img   src="/images/noel/anh080.gif" alt="Đầu trang" border="0">';break;
    //case 1:bttc='<img   width=90 height=90  src="/images/noel/hny07.gif" alt="Đầu trang" border="0">';break;
    //case 2:bttc='<img   width=90 height=90  src="/images/noel/hny12.gif" alt="Đầu trang" border="0">';break;
    //case 0:bttc='<img   width=80 height=200  src="/images/26/top01.jpg" alt="Đầu trang" border="0">';break;
    //case 1:bttc='<img   width=80 height=200  src="/images/26/top02.jpg" alt="Đầu trang" border="0">';break;
    //case 2:bttc='<img   width=80 height=200  src="/images/26/top03.jpg" alt="Đầu trang" border="0">';break;
    //case 3:bttc='<img   width=80 height=200  src="/images/26/top04.jpg" alt="Đầu trang" border="0">';break;
    //case 4:bttc='<img   width=80 height=200  src="/images/26/top05.jpg" alt="Đầu trang" border="0">';break;
    

default:
    bttc='<img src="/img/backtotop.gif" border="0">';break;
}
var btts=1000, bttx=120, btty=150;
function winWid(){ return (ns4||ns6)?window.innerWidth:document.body.clientWidth; }
function winHei(){ return (ns4||ns6)?window.innerHeight:document.body.clientHeight; }
function winOfy(){ return (ns4||ns6)?window.pageYOffset:document.body.scrollTop; }
function mtoplink(){ with(eval(bttll)){ left=(winOfy()>0)?winWid()-bttx:-500; top=(winOfy()>0)?winHei()-btty+winOfy():-500; } setTimeout('mtoplink()',btts); }
function toplink(){ rt=(!ns4)?'<div id="bttl" style="position:absolute;">':'<layer name="bttl">'; rt+=(!ns4)?'<a style="cursor: '+hand+'" onclick':'<a href"'; rt+='="JavaScript:scrollTo(0,0)">'; rt+=bttc; rt+=(!ns4)?'</a></div>':'</a></layer>'; document.write(rt); mtoplink(); }
var ns4=(document.layers)?1:0;
var ie4=(document.all)?1:0;
var ns6=(document.getElementById&&!document.all)?1:0;
var hand=(ie4)?'hand':'pointer';
if(ie4)	bttll="document.all['bttl'].style";
if(ns4) bttll="document.layers['bttl']";
if(ns6) bttll="document.getElementById('bttl').style";
toplink();

function Color1_onclick() {TableBody.bgColor = Color1.style.backgroundColor;}
function Color2_onclick() {TableBody.bgColor = Color2.style.backgroundColor;}
function Color3_onclick() {TableBody.bgColor = Color3.style.backgroundColor;}
function Color4_onclick() {TableBody.bgColor = Color4.style.backgroundColor;}
function Color5_onclick() {TableBody.bgColor = Color5.style.backgroundColor;}
function Color6_onclick() {TableBody.bgColor = Color6.style.backgroundColor;}
function Color7_onclick() {TableBody.bgColor = Color7.style.backgroundColor;}
function Color8_onclick() {TableBody.bgColor = Color8.style.backgroundColor;}
function Color9_onclick() {TableBody.bgColor = Color9.style.backgroundColor;}
function Color10_onclick() {TableBody.bgColor = Color10.style.backgroundColor;}
function Color11_onclick() {TableBody.bgColor = Color11.style.backgroundColor;}
function Color12_onclick() {TableBody.bgColor = Color12.style.backgroundColor;}
function Color13_onclick() {TableBody.bgColor = Color13.style.backgroundColor;}
function Color14_onclick() {TableBody.bgColor = Color14.style.backgroundColor;}
function Color15_onclick() {TableBody.bgColor = Color15.style.backgroundColor;}
function Color16_onclick() {TableBody.bgColor = Color16.style.backgroundColor;}
function Color17_onclick() {TableBody.bgColor = Color17.style.backgroundColor;}
function Color18_onclick() {TableBody.bgColor = Color18.style.backgroundColor;}
function Color19_onclick() {TableBody.bgColor = Color19.style.backgroundColor;}
function Color20_onclick() {TableBody.bgColor = Color20.style.backgroundColor;}
