﻿var topGtHeight = 0;
var topIsPlay = false;
function totopShow(){
    setTimeout("topHide()",15000);
    topShow();
}
function topShow()
{
    if(!topIsPlay){
    topIsPlay = true;
    var dgt = document.getElementById("topDivG");
    dgt.style.heigh = "1px";
    dgt.style.display = "block";
    setTimeout("ghshow()",50);
    }
}
function ghshow(){
    var dgt = document.getElementById("topDivG");
    if(topGtHeight<160){
        topGtHeight = topGtHeight + 20;
        dgt.style.height = topGtHeight + "px";
        setTimeout("ghshow()",50);
    }else{
        dgt.style.height = "200px";
	topIsPlay = false;
    }
}
function topHide()
{
    if(!topIsPlay){
    setTimeout("ghhide()",50);
    topIsPlay = true;
    }
}
function ghhide(){
    var dgt = document.getElementById("topDivG");
    if(topGtHeight>20){
        topGtHeight = topGtHeight - 20;
        dgt.style.height = topGtHeight + "px";
        setTimeout("ghhide()",50);
    }else{
        dgt.style.height = "1px";
        dgt.style.display = "none";
	topIsPlay = false;
    }
}

