/* --------------------------*/
/* Gallery　表示スクリプト    */
/* --------------------------*/

/* 初期化関数 */
function init(){
  initCrossBrowserLib();
  rePosition();
}

/* 注意書き書き出し関数 */
function htmlAttention(){
  var html = '';
  var now = new Date();
  var year = now.getFullYear();

  html += '    <table border="0" cellpadding="0" cellspacing="0" width="800px" align="center">';
  html += '      <tr id="backcol">';
  html += '        <td class="indexmark" colspan="2">&nbsp;<br></td>';
  html += '      </tr>';
  html += '      <tr id="backcol">';
  html += '        <td class="indexmark">&nbsp;◆</td>';
  html += '        <td class="indexstr" nowrap>画像の転載及び使用を希望の方は、<a href="mailto:info@atelier-r-hata.com">atelierR</a>  までご連絡下さい。。</td>';
  html += '      </tr>';
  html += '      <tr id="backcol">';
  html += '        <td class="indexmark">&nbsp;◆</td>';
  html += '        <td class="attention" nowrap>このwebsiteにある全ての写真及び文章は、著作権法により無断転載・無断使用出来ません。</td>';
  html += '      </tr>';
  html += '      <tr id="backcol">';
  html += '        <td class="indexmark">&nbsp;◆</td>';
  html += '        <td class="attention" nowrap>Copyright(C) atelier R. 2000-'+ year +'. All Rights Reserved.</td>';
  html += '      </tr>';
  html += '    </table>';


  document.write(html);
  
}

/* ページ変更関数 */
function changeKen(id){
  location.href = getURL(0) + '?id=' + id;
}

/* 拡大画像表示関数 */
function openPict(id, pid){
  var win;
  var btoolbar=0, bloction=0;    //ツ−ルバ−/ ロケ−ションバ−
  var bmenubar=0, bscrollbars=1; //メニュ−バ−/ スクロ−ルバ−
  var bdirectories=0, bstatus=0; //directoriesボタン/ ステ−タス行
  var bresizable=1               //リサイズ
  var pw = 800, ph = 700;        //画面サイズ
  var w = 0,  h = 0;

     win = window.open('','winmap','width='+pw+',height='+ph+
      ',left='+w+',top='+h+',screenX='+w+',screenY='+h+',toolbar='+btoolbar+
      ',loction='+bloction+',directories='+bdirectories+',status='+bstatus+
      ',menubar='+bmenubar+',scrollbars='+bscrollbars+',resizable='+bresizable);

     win.location.href = getURL(1) + '?id=' + id + '&pid=' + pid;	/* ### CGI設定 */
     win.focus();
}

