<!--
 SiteUrl = 'http://www.yiwufocus.com';


url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()


// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.
// ?clickmenu=1



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

//»õÃ¢
  url_list[0] = SiteUrl + '/';    //È¨

//ÀÌ¿ì´º½º
  url_list[101] = SiteUrl + '/ch1/ch1_1.html';    //°øÁö»çÇ×
  url_list[102] = SiteUrl + '/ch1/ch1_2.html';    //´º½º


//ÀÌ¿ì½ÃÀå
  url_list[201] = SiteUrl + '/ch2/ch2_1.html';    // ÇªÅÙ½ÃÀå 1±â
  url_list[202] = SiteUrl + '/ch2/ch2_2.html';    // ÇªÅÙ½ÃÀå 2±â
  url_list[212] = SiteUrl + '/ch2/ch2_12.html';    // ÇªÅÙ½ÃÀå 3±â
  url_list[203] = SiteUrl + '/ch2/ch2_3.html';    // ¼Ò»óÇ°½ÃÀå
  url_list[204] = SiteUrl + '/ch2/ch2_4.html';    // ºóÅº½ÃÀå
  url_list[205] = SiteUrl + '/ch2/ch2_5.html';    // ºÏÀå½ÃÀå
  url_list[206] = SiteUrl + '/ch2/ch2_6.html';    // ¾ç¸»½ÃÀå
  url_list[207] = SiteUrl + '/ch2/ch2_7.html';    // ÁöÆÛ½ÃÀå
  url_list[208] = SiteUrl + '/ch2/ch2_8.html';    // ¾È°æ½ÃÀå
  url_list[209] = SiteUrl + '/ch2/ch2_9.html';    // È­ÀåÇ°½ÃÀå
  url_list[210] = SiteUrl + '/ch2/ch2_10.html';   // °¡±¸½ÃÀå
  url_list[211] = SiteUrl + '/ch2/ch2_11.html';   // ¾Ù¹ü,¾×ÀÚ½ÃÀå
  url_list[213] = SiteUrl + '/ch2/ch2_13.html';   // ÀÎ¼â¿ëÇ°½ÃÀå
  url_list[214] = SiteUrl + '/ch2/ch2_14.html';   // »ý»êÀÚÀç½ÃÀå
  url_list[215] = SiteUrl + '/ch2/ch2_15.html';   // ¹°ÀÚ½ÃÀå
  url_list[216] = SiteUrl + '/ch2/ch2_16.html';   // ¸ñÀç½ÃÀå





//ÀÌ¿ìÁ¤º¸
  url_list[301] = SiteUrl + '/ch3/ch3_1.html';    // ÀÌ¿ì¼Ò°³
  url_list[30001] = SiteUrl + '/ch3/ch3_1.html?bmode=read&cat=&code=yiwu_info&W_index=60';    // ÀÌ¿ì¼Ò°³
  url_list[302] = SiteUrl + '/ch3/ch3_2.html';    // »ýÈ°Á¤º¸
  url_list[30002] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=78';
  url_list[30003] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=100';
  url_list[30004] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=102';
  url_list[30005] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=101';
  url_list[30006] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=104';
  url_list[30007] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=103';
  url_list[30008] = SiteUrl + '/ch3/ch3_2.html?bmode=read&cat=&code=yiwu_life&W_index=82';
  url_list[303] = SiteUrl + '/ch3/ch3_3.html';    // ÀÌ¿ìÁöµµ
  url_list[30301] = SiteUrl + '/ch3/jido01.html'; //
  url_list[30302] = SiteUrl + '/ch3/jido02.html'; //
  url_list[30303] = SiteUrl + '/ch3/jido03.html'; //
  url_list[30304] = SiteUrl + '/ch3/jido04.html'; //
  url_list[30305] = SiteUrl + '/ch3/jido05.html'; //
  url_list[30306] = SiteUrl + '/ch3/jido06.html'; //
  url_list[30307] = SiteUrl + '/ch3/jido07.html'; //
  url_list[30308] = SiteUrl + '/ch3/jido08.html'; //
  url_list[30309] = SiteUrl + '/ch3/jido09.html'; //
  url_list[30310] = SiteUrl + '/ch3/jido10.html'; //
  url_list[30311] = SiteUrl + '/ch3/jido11.html'; //
  url_list[30312] = SiteUrl + '/ch3/jido12.html'; //
  url_list[304] = SiteUrl + '/ch3/ch3_4.html';    // ÀÌ¿ìÆ÷Åä
  url_list[305] = SiteUrl + '/ch3/ch3_5.html';    // ÀÌ¿ìµ¿¿µ»ó



//¾÷Ã¼Á¤º¸
  url_list[401] = SiteUrl + '/ch4/ch4_1.html';    // °ø Àå
  url_list[402] = SiteUrl + '/ch4/ch4_2.html';    // µµ¸Å»ó
  url_list[403] = SiteUrl + '/ch4/ch4_3.html';    // ½Ä ´ç
  url_list[404] = SiteUrl + '/ch4/ch4_4.html';    // È£ ÅÚ
  url_list[405] = SiteUrl + '/ch4/ch4_5.html';    // ¹Î¹Ú, ¼÷¼Ò
  url_list[406] = SiteUrl + '/ch4/ch4_6.html';    // ÆíÀÇ½Ã¼³
  url_list[407] = SiteUrl + '/ch4/ch4_7.html';    // ÃßÃµ¾÷Ã¼



//Ãë¾÷Á¤º¸
  url_list[501] = SiteUrl + '/ch5/ch5_1.html';    // ±¸ ÀÎ
  url_list[502] = SiteUrl + '/ch5/ch5_2.html';    // ±¸ Á÷
  url_list[503] = SiteUrl + '/ch5/ch5_3.html';    // °¡ÀÌµå/Åë¿ª
  url_list[504] = SiteUrl + '/ch5/ch5_4.html';    // Ãë¾÷°ü·Ã¼Ò½Ä



//ºÎµ¿»êÁ¤º¸
  url_list[601] = SiteUrl + '/ch6/ch6_1.html';    // »ç¹«½Ç
  url_list[602] = SiteUrl + '/ch6/ch6_2.html';    // ¼÷ ¼Ò
  url_list[603] = SiteUrl + '/ch6/ch6_3.html';    // Á¡ Æ÷
  url_list[604] = SiteUrl + '/ch6/ch6_4.html';    // °ø Àå



//ÀÚµ¿Â÷¸Å¸Å
  url_list[701] = SiteUrl + '/ch7/ch7_1.html';    // »ð´Ï´Ù
  url_list[702] = SiteUrl + '/ch7/ch7_2.html';    // ÆË´Ï´Ù

//ÆÇ¸Å¹× ±¸ÀÔ
  url_list[801] = SiteUrl + '/ch8/ch8_1.html';    // ÆÇ ¸Å(´ýÇÎ»óÇ°)
  url_list[802] = SiteUrl + '/ch8/ch8_2.html';    // ±¸ ÀÔ
  url_list[803] = SiteUrl + '/ch8/ch8_3.html';    // ½Å»óÇ°




//Ä¿¹Â´ÏÆ¼
  url_list[901] = SiteUrl + '/ch9/ch9_1.html';    // ÀÚÀ¯°Ô½ÃÆÇ
  url_list[902] = SiteUrl + '/ch9/ch9_2.html';    // º­·è½ÃÀå
  url_list[903] = SiteUrl + '/ch9/ch9_3.html';    // ÇÕ½Â,·»ÅÍÄ«
  url_list[904] = SiteUrl + '/ch9/ch9_4.html';    // Æ÷Åä°¶·¯¸®
  url_list[905] = SiteUrl + '/ch9/ch9_5.html';    // µ¿È£È¸/¸ðÀÓ
  url_list[906] = SiteUrl + '/ch9/ch9_6.html';    // Áß±¹±³Æ÷¼Ò½Ä
  url_list[907] = SiteUrl + '/ch9/ch9_7.html';    // ÀÌ¿ìÇÑÀÎ¼Ò½Ä
  url_list[908] = SiteUrl + '/ch9/ch9_8.html';    // ¹®È­/Çà»ç°ø¿¬
  url_list[909] = SiteUrl + '/ch9/ch9_9.html';    // ÇÑÁÙ°øÁö
  url_list[910] = SiteUrl + '/ch9/ch9_10.html?bmode=read&cat=&code=lotto&W_index=166';    // ·Î¶Çº¹±Ç


//ÀÌ¿ë¾È³»
  url_list[1001] = SiteUrl + '/ch10/ch10_1.html';    // ÀÌ¿ë¾È³»
  url_list[1002] = SiteUrl + '/ch10/ch10_2.html';    // ±¤°í¹®ÀÇ
  url_list[1003] = SiteUrl + '/ch10/ch10_3.html';    // ÀÌ¿ë¾à°ü
  url_list[1004] = 'mailto:arirang@yiwufocus.com';                      // ¸ÞÀÏ

  //¸¶ÀÌÆäÀÌÁö
  url_list[1101] = SiteUrl + '/member/login.html';            // ·Î±×ÀÎ
  url_list[1102] = SiteUrl + '/member/logout.html';           // ·Î±×¾Æ¿ô
  url_list[1103] = SiteUrl + '/member/agree.html';            // È¸¿ø°¡ÀÔ
  url_list[1104] = SiteUrl + '/member/member_policy.html';    // °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
  url_list[1105] = SiteUrl + '/member/member_edit.html';      // È¸¿øÁ¤º¸¼öÁ¤
  url_list[1106] = SiteUrl + '/member/idpw_lost.html';        // ¾ÆÀÌµðÆÐ½º¿öµå Ã£±â
  url_list[1107] = SiteUrl + '/member/member_out.html';       // È¸¿øÅ»Åð


//ÆË¾÷Ã¢
  url_list[2001] = SiteUrl + '/tomato.html';       // Åä¸¶Åä
  url_list[2002] = SiteUrl + '/jb.html';       // jbÅë»ó
  url_list[2003] = SiteUrl + '/guide_ltd.html';       // ¹«¿ªÅë»ó
  url_list[2004] = SiteUrl + '/guide.html';       // °¡ÀÌµåÅë»ó
  url_list[2006] = SiteUrl + '/sms/sms.html';       // °¡ÀÌµåÅë»ó  

// »õÃ¢ÀÎ ¸Þ´º
// newwin_list[100] = 'true';

// ÆË¾÷À¸·Î ¿­¸®´Â°æ¿ì
  window_list[30301] = 'scrollbars=yes,width=510,height=650';
  window_list[30302] = 'scrollbars=yes,width=570,height=650';
  window_list[30303] = 'scrollbars=yes,width=550,height=650';
  window_list[30304] = 'scrollbars=yes,width=550,height=650';
  window_list[30305] = 'scrollbars=yes,width=490,height=650';
  window_list[30306] = 'scrollbars=yes,width=560,height=650';
  window_list[30307] = 'scrollbars=yes,width=510,height=650';
  window_list[30308] = 'scrollbars=yes,width=570,height=650';
  window_list[30309] = 'scrollbars=yes,width=550,height=650';
  window_list[30310] = 'scrollbars=yes,width=510,height=650';
  window_list[30311] = 'scrollbars=yes,width=480,height=650';
  window_list[30312] = 'scrollbars=yes,width=552,height=650';
  window_list[2001] = 'scrollbars=no,width=454,height=600';
  window_list[2002] = 'scrollbars=no,width=454,height=600';
  window_list[2003] = 'scrollbars=no,width=454,height=600';
  window_list[2004] = 'scrollbars=no,width=454,height=600';
  window_list[2006] = 'scrollbars=yes,width=700,height=600';  


//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'

//»õÃ¢



//############################   ÆäÀÌÁö Á¤ÀÇ   ###############################




//¾ÆÀÌÇÁ·¹ÀÓ Á¶Àý ÇÔ¼ö
var ie_yn = 'N';
if(window.navigator.appName.indexOf("Explorer") !=-1)
{
  ie_yn = 'Y';
}

function resize_iframe(ifname)
{
  try
  {

    var obj_iframe = document.getElementById(ifname);

    if(ie_yn == 'Y')
    {
      var obj_ibody = obj_iframe.contentWindow.document.body;
    }
    else
    {
      var obj_ibody = document.getElementById(ifname).contentDocument.body;
    }
    iframe_height = obj_ibody.scrollHeight + (obj_ibody.offsetHeight - obj_ibody.clientHeight);
    if(iframe_height < 1) iframe_height = 1;
    obj_iframe.style.height = iframe_height;
  }
  catch(e)
  {
  }
}

function reload_iframe(ifname)
{
   resize_iframe(ifname);
   setTimeout("reload_iframe('" + ifname + "');",1000);
}



var ff_top = 0;
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";



function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 242;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 0 + ff_top; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 253;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}




function go_site(num)
{
  self.status = num;
  if(url_list[num])
  {

// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }
}


//ÇÃ·¡½¬ÆÄÀÏ º¸¿©ÁÖ´Â ÇÔ¼ö
function flash_print(flash_filename, flash_width, flash_height)
{
  if(flash_width != '') var width_str = 'width=' + flash_width;
  if(flash_height != '') var height_str = 'height=' + flash_height ;
	var sTag = ''
		+ '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0\' ' + width_str + ' ' + height_str + '>'
		+ '        <param name=\'movie\' value=\'' + flash_filename + '\'>'
		+ '        <param name=\'play\' value=\'true\'>'
		+ '        <param name=\'loop\' value=\'true\'>'
	  + '        <param name=wmode value=Transparent>'
		+ '        <param name=\'quality\' value=\'high\'>'
		+ '        <embed src=\'' + flash_filename + '\' play=\'true\' loop=\'true\' quality=\'high\' pluginspage=\'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\' ' + width_str + ' ' + height_str + '></embed></object>'
		+ '';
	document.write (sTag);
}


function view_movie(filename){
	var sTag = ''
		+ '<object id="MediaPlayer1" width="300" height="222" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">'
		+ '                                            <param name="transparentAtStart" value="True">'
		+ '                                            <param name="transparentAtStop" value="True">'
		+ '                                            <param name="AnimationAtStart" value="False">'
		+ '                                            <param name="AutoStart" value="true">'
		+ '                                            <param name="AutoRewind" value="true">'
		+ '                                            <param name="DisplaySize" value="0">'
		+ '                                            <param name="AutoSize" value="false">'
		+ '                                            <param name="ShowDisplay" value="false">'
		+ '                                            <param name="ShowStatusBar" value="true">'
		+ '                                            <param name="ShowControls" value="false">'
		+ '                                            <param name="EnableContextMenu" value="False">'
		+ '                                            <param name="FileName" value="' + filename + '">'
		+ '                                            <param name="Volume" value="0">'
		+ '                                            <embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="' + filename + '" name="MediaPlayer1" width="300" height="222" displaysize="0" showcontrols="false"'
		+ 'autostart="true" transparentatstart="True" transparentatstop="True" animationatstart="False" autorewind="true" autosize="false" showdisplay="false" showstatusbar="true" enablecontextmenu="False" volume="0"> </embed>'
		+ '                                    </object>'
		+ '';
	document.write (sTag);
}
//ºÏ¸¶Å© Ãß°¡
function add_bookmark()
{
  window.external.AddFavorite(SiteUrl, 'ÀÌ¿ìÆ÷Ä¿½º');
}


//-->