var 
    htmlstr_m = "", 
    flag=true, 
    mouse=1, 
    speed=20,  //¼ýÀÚ°¡ Ä¿Áú¼ö·Ï ´À¸²
    wait=0, 
    temp=0, 

	stopCnt = 4;
    m_left=90;
	m_amount = 90;//m_left * stopCnt;

var ctnt=new Array(), i=0, j=0;

function startText_m() {
  for (i=0; i<ctnt.length; i++) insertText_m(i);
  window.setTimeout("scroll_m()",wait);
}

function scroll_m() {
  if (mouse && flag) {
    for (i=0;i<ctnt.length;i++) {
      temp++;
      tmp = document.getElementById('scroll_area'+i).style;
      tmp.left = parseInt(tmp.left) - 1;
      if (parseInt(tmp.left) <= m_left*(-1)) {
        tmp.left = m_left*(ctnt.length-1);
      }
      if (temp>(m_amount-1)*ctnt.length) {
        flag=false;
        temp=0;
        window.setTimeout("flag=true;temp=0;",wait);
      }
    }
  }
  window.setTimeout("scroll_m()",speed);
}

function insertText_m(i) {
  htmlstr_m='<div style="left:'+((m_left)*i)+'px; width:'+m_amount+'px; position: absolute; top: 0px;padding:0 0 0 0" id="scroll_area'+i+'">\n';
  htmlstr_m+=ctnt[i]+'\n'+'</div>\n';
  document.write(htmlstr_m);
  //alert(i + " " + htmlstr_m);
}


ctnt[0] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_01.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[1] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_02.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[2] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_03.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[3] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_04.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[4] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_05.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[5] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_06.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'

ctnt[6] = '<table width="68" height="114" border="0" cellpadding="0" cellspacing="0" ><tr><td align="center" valign="top"><img src="/image/portfolio_07.gif" width="68" height="114" style="text-align:justify; border-width:1px; border-style:solid; border-color:#BFCBCF;"></td></tr></table>'
