// JavaScript Document

function img_effect_on(obj,nums){
	return;
	for(var i=0; i<=nums; i++){
		$(".img_effect_"+i).css("opacity","0.5");
	}
	
	$(".img_effect_"+obj).css("opacity","1");
	
	$(".img_effect_"+obj).css("border","#FFF 2px solid");
	
	$(".img_effect_"+obj).css("margin-top","-1px");
	$(".img_effect_"+obj).css("margin-left","-1px");
	$(".img_effect_"+obj).css("margin-right","-1px");
	/*
	$(".img_effect_"+obj).css("margin-bottom","-2px");
	
	*/
}

function img_effect_off(obj,nums){
	return;
	for(var i=0; i<=nums; i++){
		$(".img_effect_"+i).css("opacity","1");
	}
	$(".img_effect_"+obj).css("border","");
	$(".img_effect_"+obj).css("margin-top","2px");
	$(".img_effect_"+obj).css("margin-left","1px");
	$(".img_effect_"+obj).css("margin-right","1px");
}



/***************************************************************************** 

  * 바디를 최상단으로 올리는 함수
/*****************************************************************************/
function body_top(){
		document.documentElement.scrollTop=0;
}




/***************************************************************************** 

  * 플래시를 불러오는 함수
 /*****************************************************************************/

function flash(c,d,e,f) {
var flash_tag = "";
flash_tag = '<OBJECT id="' + f + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
flash_tag +='<param name="movie" value="'+e+'">';
flash_tag +='<param name="quality" value="high">';
flash_tag +='<param name="menu" value="false">';
flash_tag +='<param name="wmode" value="transparent">';
flash_tag +='<param name="FlashVars" value="xmlURL=http://192.168.123.1:8080/shop2/admin/flash/crossdomain.xml">';
flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
flash_tag +='type="application/x-shockwave-flash" WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
document.write(flash_tag,"");
}
/***************************************************************************** 

  * 천단위 콤마 찍기
 /*****************************************************************************/
function add_comma(num){
 var returnVal = String(num);

 while(returnVal.match(/^(-?\d+)(\d{3})/)){
  returnVal = returnVal.replace(/^(-?\d+)(\d{3})/,'$1,$2');
 }
 return returnVal;
}



 /***************************************************************************** 
// 팝업창 함수
 /*****************************************************************************/
function win_popup(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;

	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)

	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}






