
window.onload = init;

function init(){
	
	///////////////////////////////////////////////////////////////////////////////////////////
	sw=screen.availWidth;
	sh=screen.availHeight;
	sw = sw-1003-21;//1003-right±îÁöÀÇ width 21-½ºÅ©·Ñ
	document.getElementById("blank").style.width=sw; //ÇØ»óµµ °è»êÇØ¼­ ¿À¸¥ÂÊ ºó°ø°£ Ã¤¿ì±â
	///////////////////////////////////////////////////////////////////////////////////////////
	document.getElementById("searchtext").setAttribute("autocomplete","off");
	if(navigator.appName.indexOf("Microsoft") == -1) {window.setTimeout("checkQryFF()",500);}

	///////////////////////////////////////////////////////ÇØ»óµµ °è»êÇØ¼­ ¹Ùµð Å©±â¸¦ ´Ã·ÈÀ»¶§ Å©±â·Î ¹Ù²ãÁà¾ß Ä«Å×°í¸®·ÎÀÌµ¿½Ã ¾ÈÀß¸²
	var availWidth = window.screen.availWidth;
	var availHeight = window.screen.availHeight;
	var LeftWidth=132;
	var RightWidth=27;
	var ScrollWidth=21;
	var TopWidth = availWidth - RightWidth - ScrollWidth - LeftWidth;
	document.getElementById("body_div01").style.width=TopWidth;
	////////////////////////////////////////////////////////////////////////////////////////


  //left ´ëÄ«Å×°í¸® ·Îµå
  CategoryOnload();
 
   //Ä«¿îÅÍ
	Counter();
	
	//°Ë»ö¾î
	SearchEX();
	TopTextSlade();//Å¾ ÅØ½ºÆ®½½¶óÀÌµå
	MainEvent117(); //°Ë»öÀ§¿¡

  //ÃÊ±âÈ­
  dhtmlHistory.initialize();
  //ÆË¾÷
  CallPopup();
  //ÇØ½¬°ª¾ø´Â ¼ø¼öÇÏ°Ô Ã¹Á¢¼Ó½Ã
  if (!dhtmlHistory.getCurrentLocation()){
		//¸ÞÀÎÆäÀÌÁö Á¢¼Ó½Ã
		
		MainIndex('1');
		addHistory('Main');
  }
  else
  {
	  
	  //¸®ÇÁ·¹½¬ ÇßÀ»°æ¿ì ¹Ùµð µð¹ÙÀÌ½º °ªÀÌ ÃÊ±âÈ­µÇ¾î ´Ù½Ã °ªÀ» ¹Ù²ÛÈÄ rsh_body_change¿¡¼­ ´Ù½Ã ÇÑ¹ø ¹Ù²Þ 
	  if (document.getElementById('body_number').value == 1)
	  {
		document.getElementById('body_number').value = 2;
	  }
	  else
	  {
		document.getElementById('body_number').value = 1;
	  }

	  //ÇØ½¬°ªÀÌ ÀÖ°í Áñ°ÜÃ£±â³ª ÀúÀåµÈ ÁÖ¼Ò°ªÀ¸·Î Á¢¼Ó½Ã unit_number°ªÀÌ ¾øÀ»¶§
	  if (document.getElementById('unit_number').value == 1)
	  {
		  rsh_body_change(dhtmlHistory.getCurrentLocation());
	  }
	  
  }
  

  //µÚ·Î ¾ÕÀ¸·Î ¸®ÇÁ·¹½¬ °æ¿ì È£Ãâ
  dhtmlHistory.addListener(
	function(location,data)
	{
		if (location)
		{	
			rsh_body_change(location);
		}
		
	}
  );

  

  

};

// ÆäÀÌÁö º¯µ¿ ¹× »ó¼¼ º¸±â ½ÇÇà½Ã addHistory È£Ãâ
function addHistory(val){
	
  dhtmlHistory.add(
	val,val);
};

