function get_position(divname) { 
  var start, end, scale; 
  start = parseInt (document.getElementById(divname).style.top, 10); 
  end = get_top(); 
  if ( start != end ) { 
    scale = Math.ceil( Math.abs( end - start ) / 20 ); // ¼Óµµ default : 20 
    if ( end < start )  scale = -scale; 
    document.getElementById(divname).style.top = parseInt (document.getElementById(divname).style.top, 10)+ scale + "px"; 
  } 
  setTimeout ("get_position('"+divname+"')", 10); // ºÎµå·¯¿î Á¤µµ default : 5 ~ 10 
} 

function move_start(divname) { 
  document.getElementById(divname).style.top = get_top()+"px"; 
  document.getElementById(divname).style.position = "relative"; 
  get_position(divname); 
  return true; 
} 

function get_top() { 
  return document.body.scrollTop ? document.body.scrollTop: document.documentElement.scrollTop; 
} 


function bluring() { 
    if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") { 
        document.body.focus(); 
    } 
} 
document.onfocusin=bluring; 

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 + "'"

        window.open( page, name, option );
}

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 top_menu01()  
		{	location.href='/';} //È¨
function top_menu02()  
		{	location.href='/front/php/login/login_f.php';} //·Î±×ÀÎ

function top_menu02_o()  
		{	location.href='/front/php/login/login_a.php?mode=logout';} //·Î±×¾Æ¿ô


function top_menu03()  
		{	location.href='/front/php/c/member_regist_f.php';} //È¸¿ø°¡ÀÔ

function top_menu03_o()  
		{	location.href='/front/php/c/member_regist_f.php';} //È¸¿øÁ¤º¸¼öÁ¤

function top_menu04()  
		{	location.href='/front/php/faq.php';} //ÀÌ¿ë¾È³»

function top_menu05()  
		{	location.href='/front/php/basket.php';} //Àå¹Ù±¸´Ï

function top_menu06()  
		{	location.href='/front/php/myshop/myshop_orders.php';} //ÁÖ¹®Á¶È¸
		
function top_menu07()  
		{	location.href='/front/php/myshop/myshop.php';} //¸¶ÀÌ¼îÇÎ


function top_menu08()  
		{	location.href='/front/php/b/board_list.php?board_no=3';} //°Ô½ÃÆÇ

//menu.swf

//È¸»ç¼Ò°³
function company01()  
		{	location.href='/front/php/com_intro.php';} //ÀÎ»ç¸»
function company02()  
		{	location.href='/front/php/com_intro.php#02';} //¿¬Çõ
function company03()  
		{	location.href='/front/php/com_intro.php#03';} //¿À½Ã´Â±æ

//»ç¾÷¼Ò°³

function work01()  
		{	location.href='/front/php/b/board_list.php';} //»ç¾÷¾È³»

//Á¦Ç°±¸ÀÔ
function pro01()  
		{	location.href='http://ecdemo3076.cafe24.com/front/php/category.php?cate_no=4';} //»óÇ°1

function pro02()  
		{	location.href='http://ecdemo3076.cafe24.com/front/php/category.php?cate_no=7';} //»óÇ°1

function pro03()  
		{	location.href='http://ecdemo3076.cafe24.com/front/php/category.php?cate_no=12';} //»óÇ°1


//°Ô½ÃÆÇ
function board01()  
		{	location.href='/front/php/b/board_list.php';} //°øÁö»çÇ×

function board02()  
		{	location.href='/front/php/b/board_list.php?board_no=2';} //°Ô½ÃÆÇ

function board03()  
		{	location.href='/front/php/b/board_list.php?board_no=3';} //°Ô½ÃÆÇ


//¸ÞÀÎÇÃ·¡½¬¹è³Ê

function roll_pro01()  
		{	location.href='/front/php/product.php?product_no=283&main_cate_no=35&display_group=1';} //º¥·Î


http://acepho.com/front/php/


function roll_pro02()  
		{	location.href='/front/php/category.php?cate_no=27';} //ÃæÀü±â

function roll_pro03()  
		{	location.href='/front/php/category.php?cate_no=28';} //ÇÊÅÍ

function roll_pro04()  
		{	location.href='/front/php/category.php?_cate_no=31';} //·»Áî

function roll_pro05()  
		{	location.href='/front/php/category.php?cate_no=30';} //¸®´õ±â

function roll_pro06()  
		{	location.href='/front/php/category.php?cate_no=29';} //ÇÃ·¡½Ã

function roll_pro07()  
		{	location.href='/front/php/category.php?cate_no=25';} //¸ÞÄÚ

function roll_pro08()  
		{	location.href='/front/php/category.php?cate_no=32';} //¿¢¼¼¼­¸®

function roll_pro09()  
		{	location.href='/front/php/product.php?product_no=299&main_cate_no=102&display_group=1';} //AC-303


var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["gotop"].top;
                yMenuTo     = top.pageYOffset + 200; 
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (gotop.style.top, 10);
                yMenuTo     = document.body.scrollTop + 200; 
        }

        timeoutNextCheck = 10;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 3 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 3 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["gotop"].top += yOffset;
                else if ( bExplorer4plus )
                        gotop.style.top = parseInt (gotop.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["gotop"].top = top.pageYOffset ;
                document["gotop"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                gotop.style.top = document.body.scrollTop ;
                gotop.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}
OnLoad();

