function bookmark(){ 
window.external.AddFavorite('http://designpara.com/', '비젼투엘브 - 카페24,메이크샵,후이즈몰,고도몰,퍼스트몰 등 원하시는 샵에 맞춰 제작해 드립니다.') 
}










function goTop(orix,oriy,desx,desy) {
  var Timer;
  var winHeight = document.body.scrollTop;
  if(Timer) clearTimeout(Timer);
  startx = 0;
  starty = winHeight;
  if(!orix || orix < 0) orix = 0;
  if(!oriy || oriy < 0) oriy = 0;
  var speed = 7;
  if(!desx) desx = 0 + startx;
  if(!desy) desy = 0 + starty;
  desx += (orix - startx) / speed;
  if (desx < 0) desx = 0;
  desy += (oriy - starty) / speed;
  if (desy < 0) desy = 0;
  var posX = Math.ceil(desx);
  var posY = Math.ceil(desy);
  window.scrollTo(posX, posY);
  if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
   clearTimeout(Timer);
   window.scroll(orix,oriy);
  }else if(posX != orix || posY != oriy){
   Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
  }else{
   clearTimeout(Timer);
  }
 }


function blu(a,b){
    a.filters.blur.strength=b
}

function autoBlur() { 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 
















function open_window( filename, option, name )
{
	if( !name )
	{
		name = 'new'
	}


        win = window.open( filename, name, option );

        return win
}

function window_open( page, name, top, left, width, height )
{
	option = "'toolbar=no," +
		"location=no," +
		"directories=no," +
		"status=no," +
		"menubar=no," +
		"scrollbars=yes," +
		"resizable=yes," +
		"width=" + width + "," +
		"height=" + height + "," +
		"top=" + top + "," +
		"left=" + left + "'"

	var w=window.open( page, name, option );
	w.focus();
}

function open_poll_pop( mode, no )
{
	page = '/front/php/poll_r.php?mode=' + mode + '&no=' + no;
	window_open( page, 'poll', 100, 300, 466, 382 );
}

/*Left menu 반투명 레이어 구현*/
function Layer_overload(LayerName,Status) 
{
    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
}

/*Left menu구현*/
var old='';

function menu(name)
{
	submenu=eval("submenu_"+name+".style");
	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


function Layer_rollover(img_name,img_url)
{
	var menu;	
	//tmp = new String( "document."+img_name );
	menu=eval("document."+img_name);		
	menu.src = img_url;
	return;
}

function image_zoom( product_no, main_cate_no, display_group )
{
	//href = '/front/php/image_zoom.php?img='+image+'&product_no='+document.frm.product_no.value;
	href = '/front/php/image_zoom.php?product_no='+product_no+'&main_cate_no='+main_cate_no+'&display_group='+display_group;
	option = 'toolbar=no,scrollbars=no,resizable=yes,width=800,height=640,left=0,top=0';
	win_name = 'image'

	window.open( href, win_name, option );
}

/*
 * 출석체크 팝업
 */
function attend_popup() 
{
	url = "/front/php/attend_event_popup.php";
	winname = "attend_event_popup" ;
	option = "toolbar=no location=no scrollbars=yes width=700 height=900";
	opener = window.open( url, winname, option ) ;
}
