// »ç¿ëÀÚ °¡ÀÌµå
function guide()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//ÀÌº£ÀÌ´ëÇà ¾È³»
function guide_ebay()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=ebay","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//¾Æ¸¶Á¸´ëÇà ¾È³»
function guide_amazon()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=amazon","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//¹Ì±¹´ëÇà ¾È³»
function guide_shopusa()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=shopusa","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//¿µ±¹´ëÇà ¾È³»
function guide_shopuk()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=shopuk","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//¹è¼Û´ëÇà ¾È³»
function guide_delivery()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=requestdelivery","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//Á÷Á¢±¸¸Å ¾È³»
function guide_selfshopping()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=selfshopping","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

//»ç¾÷ÀÚ´ëÇà ¾È³»
function guide_bizservice()
{
px=(sw-800)/2;
py=(sh-600)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=bizservice","","scrollbars=yes,width=820,height=670,top="+py+",left="+px);
}

// »çÀÌÁî Á¶°ßÇ¥
function chart()
{
px=(sw-600)/2;
py=(sh-400)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=sizechart","","scrollbars=yes,width=820,height=600,top="+py+",left="+px);
}

// °ü¼¼À²Ç¥
function tax()
{
px=(sw-600)/2;
py=(sh-400)/2;

window.open("http://www.modubuy.com/html/popup/guide/?howto=customs","","scrollbars=yes,width=820,height=600,top="+py+",left="+px);
}

// ºñ¿ë°è»ê±â
function charge()
{
px=(sw-666)/2;
py=(sh-382)/2;

window.open("http://www.modubuy.com/html/popup/calculator.php","","scrollbars=no,width=520,height=550,top="+py+",left="+px);
}

// ºñ¿ë°è»ê±â4
function charge4()
{
px=(sw-666)/2;
py=(sh-382)/2;

window.open("http://www.modubuy.com/html/popup/calculator4.php","","scrollbars=no,width=520,height=550,top="+py+",left="+px);
}

// ´Ü¹®¹ø¿ª±â
function google()
{
px=(sw-600)/2;
py=(sh-400)/2;

window.open("http://translate.google.com/translate_t","","scrollbars=yes,width=730,height=600,top="+py+",left="+px);
}

function guide_popup(num) {
	var url = "/guide_popup" + num + ".html";
	var name = "guide_popup" + num;
	var option = "width=800,height=700,scrollbars=yes, left=200, top=100";
	window.open(url,name,option);
}


function ResetRemocon()
{

  var DivMovingLayerYFrom, DivMovingLayerYTo, OffsetY, ResetTime;

  ResetTime = 100;

  if (DivMovingLayerRule == 'center'){
    //ÇØ»óµµ ±âÁØ, °¡¿îµ¥ ¿¡¼­ x¸¸Å­ ¶³¾îÁø °÷¿¡ À§Ä¡

    if (navigator.userAgent.toLowerCase().indexOf("gecko") > -1) {

      if (document.body.clientWidth < ContentsWidth + 10) {

        DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + 10 + "px";
      }
      else {

        DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
      }
    }
    else{

      if (document.body.clientWidth < ContentsWidth) {

        DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + "px";
      }
      else {

        DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
      }
    }
  }
  else if (DivMovingLayerRule == 'left'){
    //ÇØ»óµµ¿Í ¹«°ü, ¿ÞÂÊ ¿¡¼­ x¸¸Å­ ¶³¾îÁø °÷¿¡ À§Ä¡

    DivMovingLayer.style.left = (DivMovingLayerX) + "px";
  }

  DivMovingLayerYFrom = parseInt (DivMovingLayer.style.top, 10);
  DivMovingLayerYTo = DivMovingLayerY + document.body.scrollTop + 1;

  if ( DivMovingLayerYFrom != DivMovingLayerYTo ) {

    OffsetY = Math.ceil( Math.abs( DivMovingLayerYTo - DivMovingLayerYFrom ) / 20 );

    if ( DivMovingLayerYTo < DivMovingLayerYFrom )
      OffsetY = -OffsetY;

    DivMovingLayer.style.top = (DivMovingLayerYFrom + OffsetY) + "px";

    ResetTime = 10;
  }

  setTimeout ("ResetRemocon()", ResetTime);
}

function SetRemocon() {

  DivMovingLayer.style.display = "block";

  DivMovingLayer.style.top = (DivMovingLayerY + document.body.scrollTop + 1) + "px";

  ResetRemocon();
  return true;
}

function NoneRemocon() {

  DivMovingLayer.style.display = "none";
  selectBoxVisible();
}

function NoneBulletin() {

	DivBulletinLayer.style.display = "none";
}



