/*　更新マークの自動削除　*/

nwIcon1st = 'img/koushin222.gif';
upIcon1st = 'img/koushin111.gif';
function WhatsNew1st(sy,sm,sd,y,m,d,k){
  var td = new Date(y,m-1,d), nd = new Date();
  if(td.getTime()>nd.getTime()){
    var icon = (k=='koushin222')?nwIcon1st:upIcon1st;
    var cmt  = sm+'/'+sd+'更新';
    var s='<img src="'+icon+'" alt="'+cmt+'" title="'+cmt+'" '
         +'border=0 width=31 height=15'+'>';
    document.write(s);
  }
}

nwIcon2nd = '../img/koushin222.gif';
upIcon2nd = '../img/koushin111.gif';
function WhatsNew2nd(sy,sm,sd,y,m,d,k){
  var td = new Date(y,m-1,d), nd = new Date();
  if(td.getTime()>nd.getTime()){
    var icon = (k=='koushin222')?nwIcon2nd:upIcon2nd;
    var cmt  = sm+'/'+sd+'更新';
    var s='<img src="'+icon+'" alt="'+cmt+'" title="'+cmt+'" '
         +'border=0 width=31 height=15'+'>';
    document.write(s);
  }
}

nwIcon3rd = '../../img/koushin222.gif';
upIcon3rd = '../../img/koushin111.gif';
function WhatsNew3rd(sy,sm,sd,y,m,d,k){
  var td = new Date(y,m-1,d), nd = new Date();
  if(td.getTime()>nd.getTime()){
    var icon = (k=='koushin222')?nwIcon3rd:upIcon3rd;
    var cmt  = sm+'/'+sd+'更新';
    var s='<img src="'+icon+'" alt="'+cmt+'" title="'+cmt+'" '
         +'border=0 width=31 height=15'+'>';
    document.write(s);
  }
}

nwIcon4th = '../../../img/koushin222.gif';
upIcon4th = '../../../img/koushin111.gif';
function WhatsNew4th(sy,sm,sd,y,m,d,k){
  var td = new Date(y,m-1,d), nd = new Date();
  if(td.getTime()>nd.getTime()){
    var icon = (k=='koushin222')?nwIcon4th:upIcon4th;
    var cmt  = sm+'/'+sd+'更新';
    var s='<img src="'+icon+'" alt="'+cmt+'" title="'+cmt+'" '
         +'border=0 width=31 height=15'+'>';
    document.write(s);
  }
}


/*　WhatsNew関数の設定　*/
/*　WhatsNew(sy,sm,sd,y,m,d,k);
/*　sy,sm,sd : 更新日( sy = 西暦年, sm = 月[1-12], sd = 日[1-31] )　*/
/*　y, m, d  : 有効期限( y = 西暦年, m = 月[1-12],  d = 日[1-31] )　*/
/*　k        : マークの種類( 'koushin222' = 新規項目, 'koushin111' = 更新項目 )　*/


/* iframeタイプの新着情報関連 */
var scrSize = 2;
var scrSpeed = 7;
var timeId;
function scrDown(){scrWin.scrollBy(0,scrSize);timeId = setTimeout("scrDown()",scrSpeed);}
function scrUp(){scrWin.scrollBy(0,-1*scrSize);timeId = setTimeout("scrUp()",scrSpeed);}
function scrStop(){clearTimeout(timeId);}
function scrBackToTop(){
scrWin.document.location.href="http://www.lea-lea.com/whats_new_s.htm";
}