/*■■■■■■■■■■■■■■■■■■■
日時を取得
指定時間で表示切り替え
■■■■■■■■■■■■■■■■■■■■*/


t = 0;
ClockFlag = false;


SWFname2009 = 'topflash';
SWFpass2009 = 'swf/top.swf';
SWFwidth2009 = '956';
SWFheight2009 = '328';
txt2009_01 = '\
<div id="bgmaintop">\
<div id="bgcontainer">\
<div id="container">\
<!--header start-->\
<div id="headerTop">\
<div id="topflash">トップFlash</div>\
';
txt2009_02 = '';

SWFname2010 = 'topFlash2010';
SWFpass2010 = 'swf/topFlash2010.swf';
SWFwidth2010 = '1020';
SWFheight2010 = '430';
txt2010_01 = '\
<!--2010年始変更箇所ここから-->\
<div id="bgmaintop" style="background:url(/img/bg2010topFlash.gif) top center no-repeat;">\
<div id="bgcontainer" style="background:url(/img/bg2010topFlash.gif) top center no-repeat;">\
<div id="container" style="background:url(/img/bg2010topFlash.gif) top center no-repeat;">\
<!--header start-->\
<div id="headerTop" style="height:502px; width:1020px;">\
<ul>\
<li><img src="/img/gnavTop_01_on.gif" alt="Home　ホーム" width="76" height="33" /></li>\
<li><a href="/about/index.html"><img src="/img/gnavTop_02.gif" alt="About　会社概要" width="76" height="33" class="imgover" /></a></li>\
<li><a href="/works/index.html"><img src="/img/gnavTop_03.gif" alt="Works　制作実績" width="76" height="33" class="imgover" /></a></li>\
<li><a href="/recruit/index.html"><img src="/img/gnavTop_04.gif" alt="Recruit　求人情報" width="76" height="33" class="imgover" /></a></li>\
<li><a href="/lab/index.html"><img src="/img/gnavTop_05.gif" alt="Laboratory　ラボについて" width="107" height="33" class="imgover" /></a></li>\
</ul>\
<p id="logo2010"><a href="/"><img src="/img/logo_2010_coosy.gif" alt="クリエイティブを本気で考える会社COOSY（クーシー）です。" width="220" height="52" /></a></p>\
<div id="topFlash2010Area">\
  <div id="topFlash2010">トップFlash</div>\
';
txt2010_02 = '\
<noscr' + 'ipt>\
<a href="/"><img src="/img/topFlash2010.jpg" alt="Maru Blog クーシーのウサギ　マルのブログがスタート！" width="1020" height="430" /></a>\
</noscr' + 'ipt>\
</div>\
<!--2010年始変更箇所ここまで-->\
';


function CheckTime() {
  DD = new Date();
  nowYear = DD.getFullYear();
  nowMonth = DD.getMonth()+1;
  nowDate = DD.getDate();
  
	if(nowYear>=2010){
  	SWFname = SWFname2010;
  	SWFpass = SWFpass2010;
  	SWFwidth = SWFwidth2010;
  	SWFheight = SWFheight2010;
  	HtmlTxt_01 = txt2010_01;
  	HtmlTxt_02 = txt2010_02;
		ClockFlag = false;
  }else if(nowYear<2010){
  	SWFname = SWFname2009;
  	SWFpass = SWFpass2009;
  	SWFwidth = SWFwidth2009;
  	SWFheight = SWFheight2009;
  	HtmlTxt_01 = txt2009_01;
  	HtmlTxt_02 = txt2009_02;
  	ClockFlag = true;
  }
}
function Clock() {
  DD = new Date();
  nowYear = DD.getFullYear();
  nowMonth = DD.getMonth()+1;
  nowDate = DD.getDate();
  Hours = DD.getHours();
  Minutes = DD.getMinutes();
  Seconds = DD.getSeconds();
  
  if(ClockFlag){
  	if(nowYear==2010&&nowMonth==1&&nowDate>=1&&Hours>=0){
	  	window.location.reload();
		}
  }else{
		clearTimeout(t);
  }
}


