  function bluring(){
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
  }

  document.onfocusin=bluring;

  /* Site All link - Focus Out */
  function bluring(){
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
  }
  document.onfocusin=bluring;

  function hidediv ( d ) {
   DIVNAME = eval("document.getElementById('"+d+"')")
   if ( DIVNAME )
    DIVNAME.style.display = 'none';
  }
  function showdiv ( d ) {
   DIVNAME = eval("document.getElementById('"+d+"')")
   if ( DIVNAME )
    DIVNAME.style.display = '';
  }

 /* ¸ÞÀÎ º£½ºÆ® µð½ºÇÃ·¹ÀÌ */
  function bestdiv( i , n ) {
      var j,ibg,idv,igo,igf,imb,imc;
        for ( j=1 ; j <= 7  ; j++ ) {
          ibg = eval( "document.getElementById('intro_tit_"+ j +"')" );
          idv = eval( "document.getElementById('BEST_" + j +"')" );
          imc = eval( "document.getElementById('IMG_BEST')" );
          imb = eval( "document.getElementById('IMG_BEST_"+ j +"')" );
          igo = "http://www.ios.co.kr/image/intro_tit_"+ j + "_on.jpg";
          igf = "http://www.ios.co.kr/image/intro_tit_"+ j + "_off.jpg";
          //alert ( imc + '' + imb );
          if ( j == i ) {
            ibg.src = igo;
            idv.style.display = "";
          }
          else {
            ibg.src = igf;
            idv.style.display = "none";
          }


          if ( j == i ) {
            if ( imb )
              modifyimage ( 'BESTPHOTO' , imb.value );
          }
      }
  }


  function modifyimage(loadarea, imgindex){   /* Div name , image target */
      var preloadimg="yes"
      var optlinktarget=""
      var imgborderwidth=0
      var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5 Duration=1.0)"
      if (document.getElementById){
        var imgobj=document.getElementById(loadarea)
        if (imgobj.filters && window.createPopup){
          imgobj.style.filter=filterstring
          imgobj.filters[0].Apply()
        }

        if(typeof(imgobj) != "undefined"){
	        imgobj.innerHTML=returnimgcode( imgindex )
	        if (imgobj.filters && window.createPopup)
	          imgobj.filters[0].Play()
	        return false
	      }
      }
  }

  function returnimgcode(theimg){
    var imghtml=""
    imghtml+='<img src="'+theimg+'" width="210" height="144" border="0">'
    return imghtml
  }

  function getCookie_won(Name) {	//2008.03.27 wonÃß°¡
	  var search = Name + "=";
	  if (document.cookie.length > 0) {

	  offset = document.cookie.indexOf(search);
	   if (offset != -1){

	    offset += search.length;
	    end = document.cookie.indexOf(";", offset);
	    if (end == -1)
	     end = document.cookie.length;
	    return unescape(document.cookie.substring(offset, end));
	   }
	  }
	 }


  function fc_click(gb){		//2008.03.27 wonÃß°¡

  	if(typeof(getCookie_won('Cookies_Id')) == "undefined" || getCookie_won('Cookies_Id') == "") {
  		if (confirm('·Î±×ÀÎÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù.\n\n·Î±×ÀÎÈÄ ÄíÆù»ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.\n\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î ?')) {
  			window.location="/member/login.php";
  			//window.location="/member/login.php?path="+encodeURI(gb);
  			//window.location="/member/login.php?path="+encodeURI("<?=$PHP_SELF?>");
  		}
		}else{
			window.open(gb,'lotte_coupon','scrollbars=no,toolbar=no,resizable=no,width=600,height=630,left=200,top=50');
		}
  }

  function fc_click_path(gb,path){		//2008.03.27 wonÃß°¡
  	//alert("aa");
  	if(typeof(getCookie_won('Cookies_Id')) == "undefined" || getCookie_won('Cookies_Id') == "") {
  		if (confirm('·Î±×ÀÎÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù.\n\n·Î±×ÀÎÈÄ ÄíÆù»ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.\n\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î ?')) {
  			window.location="/member/login.php?path=lottedfs.com"+encodeURI(path);
  		}
		}else{
			window.open(gb,'lotte_coupon','scrollbars=yes,toolbar=no,resizable=no,width=1024,height=800,left=200,top=50');
		}

  }