var musicsrc = "/front/php/newpage.php?code=6";
var ismain='';
var islist='';
var bloc = "/";
function gohome(){
  top.mallmain.location.href= '/front/php/gonggu/gonggu.php'
} 

function playmusic(){
 parent.musicfrm.location.href=musicsrc;
 parent.mf = "play";
}

function stopmusic(){
 parent.musicfrm.location.href='';
 parent.mf = "stop";
}




function bookmark(){
if (document.all) window.external.AddFavorite(favoriteurl,favoritetitle);

}

function bluring(){ 
if(event.srcElement.tagName=="map"||event.srcElement.tagName=="area"||event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 

document.body.focus(); 
} 
document.onfocusin=bluring; 

function IEZN_quick_menu_simple(input_obj,move_top){
    this.timeId     = new Array();
    this.div_obj = new Array();
    try{
        this.input_obj = input_obj;
        this.input_obj.style.display = 'none';
    }catch(e){}
    var IEZN_quick_menu_counter;
    IEZN_quick_menu_counter = (typeof(IEZN_quick_menu_counter)=='undefined')? 0:IEZN_quick_menu_counter++;
    this.counter = IEZN_quick_menu_counter;
    this.div_obj_top = parseInt(this.input_obj.style.top);
    this.div_obj_left = parseInt(this.input_obj.style.left);    
    this.div_obj_max_move_top = (move_top)? move_top:this.div_obj_top;//browser top offset 
    this.move();
}

IEZN_quick_menu_simple.prototype = {    
    move : function(){
        this.div_obj = document.createElement("div");
        this.div_obj.id='izqm1'+this.counter;
        this.div_obj.style.position = 'absolute';
        this.div_obj.style.top=this.div_obj_top+'px';
        this.div_obj.style.padding='0px';
        this.div_obj.style.left=this.div_obj_left+'px';
        this.div_obj.style.backgroundColor=(this.input_obj.style.backgroundColor)? this.input_obj.style.backgroundColor:'transparent';
        this.div_obj.style.overflow='hidden';
        this.div_obj.style.textOverflow='ellipsis';
        this.div_obj.style.width=this.input_obj.style.width;
        this.div_obj.style.border=this.input_obj.style.border;
        this.div_obj.style.padding=this.input_obj.style.padding;
        try{
            document.body.appendChild(this.div_obj);            
            this.div_obj.innerHTML = this.input_obj.innerHTML;
            this.move_menu();
        }catch(e){alert(e)}
    },
    move_menu : function (){
        var obj = this;
        this.div_obj_start = parseInt(this.div_obj.style.top,10);
        this.div_obj_end = parseInt(this.scrollTop()) + parseInt(this.div_obj_max_move_top,10);
        if (this.div_obj_end < parseInt(this.div_obj_top,10)) this.div_obj_end = parseInt(this.div_obj_top,10);
        if (this.div_obj_start != this.div_obj_end ) {
            this.div_obj_offset = Math.ceil(Math.abs( this.div_obj_end - this.div_obj_start ) / 15 );
            t = parseInt(this.div_obj.style.top, 10) + ((this.div_obj_end<this.div_obj_start)? this.div_obj_offset*-1:this.div_obj_offset);
            this.div_obj.style.top = t+'px';
            this.slide_time = 10;
        }
        this.timeId[this.div_obj.id] = window.setTimeout(function(){obj.move_menu()},this.slide_time);
    },
    scrollTop : function (){//xhtml doctype patch
        if (window.pageYOffset){
            scroll_top = window.pageYOffset
        }else if (document.documentElement && document.documentElement.scrollTop){
            scroll_top = document.documentElement.scrollTop
        }else if (document.body){
            scroll_top = document.body.scrollTop
        }
        return scroll_top;
    }
}

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 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 ) ;
}