﻿    var FlagShowGame=1;
var FlagShowGameQQ=1;
var FlagShowGamePhone=1;
var FlagClock;
function ShowGameCard()
{
  if(FlagShowGame==0)
  {
  window.clearTimeout(FlagClock);
   return;
  }
  var HeightTwopx=document.getElementById("ulTwo").style["height"];
  var HeightTwo=parseInt(HeightTwopx.replace("px",""));
  if(HeightTwo>0)
  {
    FlagShowGameQQ=0;
    document.getElementById("ulTwo").style["height"]=(HeightTwo-5).toString()+"px";
  }
  var HeightThreepx=document.getElementById("ulThree").style["height"];
  var HeightThree=parseInt(HeightThreepx.replace("px",""));
  if(HeightThree>0)
  {
    FlagShowGamePhone=0;
    document.getElementById("ulThree").style["height"]=(HeightThree-5).toString()+"px";
  }
  var HeightOnepx=document.getElementById("ulOne").style["height"];
  var HeightOne=parseInt(HeightOnepx.replace("px",""));
  if(HeightOne==145)
  {
   FlagShowGame=1;
   FlagShowGameQQ=1;
   FlagShowGamePhone=1;
   return;
  }
  else
  {
    document.getElementById("ulOne").style["height"]=(HeightOne+5).toString()+"px";
    document.getElementById("GameCardA").style.backgroundImage="url(jquery/ha-header-first-active.jpg)";
    document.getElementById("ShowGameQQA").style.backgroundImage="url(jquery/ha-header.jpg)";
    document.getElementById("ShowPhoneA").style.backgroundImage="url(jquery/ha-header-last.jpg)";
   FlagClock=window.setTimeout("ShowGameCard()",10);
  }
}
function ShowGameQQ()
{
  if(FlagShowGameQQ==0)
  {
  window.clearTimeout(FlagClock);
   return;
  }
  var HeightOnepx=document.getElementById("ulOne").style["height"];
  var HeightOne=parseInt(HeightOnepx.replace("px",""));
  if(HeightOne>0)
  {
    FlagShowGame=0;
    document.getElementById("ulOne").style["height"]=(HeightOne-5).toString()+"px";
  }
  var HeightThreepx=document.getElementById("ulThree").style["height"];
  var HeightThree=parseInt(HeightThreepx.replace("px",""));
  if(HeightThree>0)
  {
    FlagShowGamePhone=0;
    document.getElementById("ulThree").style["height"]=(HeightThree-5).toString()+"px";
  }
  var HeightTwopx=document.getElementById("ulTwo").style["height"];
  var HeightTwo=parseInt(HeightTwopx.replace("px",""));
  if(HeightTwo==145)
  {
   FlagShowGame=1;
   FlagShowGameQQ=1;
   FlagShowGamePhone=1;
   return;
  }
  else
  {
    document.getElementById("GameCardA").style.backgroundImage="url(jquery/ha-header-first.jpg)";
    document.getElementById("ShowGameQQA").style.backgroundImage="url(jquery/ha-header-active.jpg)";
    document.getElementById("ShowPhoneA").style.backgroundImage="url(jquery/ha-header-last.jpg)";
    document.getElementById("ulTwo").style["height"]=(HeightTwo+5).toString()+"px";
     FlagClock=window.setTimeout("ShowGameQQ()",10);
  }
}
function ShowPhone()
{
  if(FlagShowGamePhone=0)
  {
  window.clearTimeout(FlagClock);
   return;
  }
  var HeightOnepx=document.getElementById("ulOne").style["height"];
  var HeightOne=parseInt(HeightOnepx.replace("px",""));
  if(HeightOne>0)
  {
    FlagShowGame=0;
    document.getElementById("ulOne").style["height"]=(HeightOne-5).toString()+"px";
  }
  var HeightTwopx=document.getElementById("ulTwo").style["height"];
  var HeightTwo=parseInt(HeightTwopx.replace("px",""));
  if(HeightTwo>0)
  {
    FlagShowGameQQ=0;
    document.getElementById("ulTwo").style["height"]=(HeightTwo-5).toString()+"px";
  }
  var HeightThreepx=document.getElementById("ulThree").style["height"];
  var HeightThree=parseInt(HeightThreepx.replace("px",""));
  if(HeightThree==145)
  {
   FlagShowGame=1;
   FlagShowGameQQ=1;
   FlagShowGamePhone=1;
   return;
  }
  else
  {
    document.getElementById("GameCardA").style.backgroundImage="url(jquery/ha-header-first.jpg)";
    document.getElementById("ShowGameQQA").style.backgroundImage="url(jquery/ha-header.jpg)";
    document.getElementById("ShowPhoneA").style.backgroundImage="url(jquery/ha-header-active.jpg)";
    document.getElementById("ulThree").style["height"]=(HeightThree+5).toString()+"px";
      FlagClock=window.setTimeout("ShowPhone()",10);
  }
}